/* =========================
   Global base & layout
   ========================= */

/* Reset（保留全站通用） */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffeab5; /* 站点底色 */
    padding: 115px 0px 0;     /* 为固定导航预留顶部空间 */
}

ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before,
blockquote:after,
q:before,
q:after { content: ""; content: none; }

table { border-collapse: collapse; border-spacing: 0; }

/* 颜色变量（全站可用） */
:root{
  --bg-light-yellow:#ffeab5;
  --frame-yellow:#f7cf85;
  --panel-gray:#dfe6ea;
  --stroke-brown:#b06a3e;
  --stroke-brown-dark:#8f4f29;
  --title-brown:#9a5632;
}

/* =========================
   Layout / Header / Nav
   ========================= */
.layout {
    width: 90%;
    /* max-width: 1400px; */
    margin: 0 auto;
    background-color: transparent;
    padding-bottom: 50px;
}
.header {
    width: 100%;
    position: relative;
    margin: 0 auto;
}
.header--no-banner { padding-bottom: 50px; }

/* Banner 背景色 */
.bg.my-home-hero {
  background-color: #F1AE2B;   /* 你上传的黄色 */
  width: 100%;
  text-align: center;
  padding: 20px 0; 
}

/* 如果里面有图片，可以让图片居中显示 */
.bg.my-home-hero img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header .gap {
    height: 30px;
    background-color: #ffeab5;
}

.header .nav-container {
    left: 0;                /* 全屏固定 */
    width: 100%;            /* 铺满屏幕 */
    background-color: #ffd978;
    height: 115px;

    /* 固定导航条到视口顶部（全站通用） */
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding-left: 10%;
}

.header .logo {
    width: 100px;
    height: 120px;
    background: url(https://static.igem.wiki/teams/6017/img/head-logo.webp) no-repeat;
    background-size: contain;
    position: absolute;
    left: 5%;
    top: 0;
    z-index: 10;
}
.header .cat-bg {
    background-color: #ffeab5;
    z-index: 0;
    width: 681px;
    height: 161px;
    background: url(https://static.igem.wiki/teams/6017/img/right-top-green.webp) no-repeat;
    position: absolute;
    right: 0;
    top: 145px;
}
.header .cat-bg .cat {
    position: absolute;
    z-index: 100;
    left: 300px;
    top: -30px;
    width: 400px;
    height: 200px;
    background: url(https://static.igem.wiki/teams/6017/img/cat.webp) no-repeat;
    background-size: contain;
}

.navbar {
    padding-left: 200px;
    background-color: transparent !important;
    width: 100%;
}

.navbar .navbar-nav {
  display: flex;
  justify-content: center;  /* 居中对齐 */
  gap: 20px;                /* 菜单之间的间距 */
  width: 90%;
}
.navbar .nav-item {
    width: 180px;
    height: 110px;
    background: url(https://static.igem.wiki/teams/6017/img/nav.webp) no-repeat center center;
    background-size:90% 90%;
    margin: 0px 5px 0;
}
.navbar .nav-item:hover { background-size: 100% 100%; }
.navbar .nav-item:hover .nav-link { font-size: 16px; }
.navbar .nav-item .nav-link {
    text-align: center;
    margin: 60px 0 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   Common “sketch” look & content blocks
   ========================= */
.page-titlebar.sketch {
  background: var(--panel-gray);
  border: 3px solid var(--stroke-brown);
  border-radius: 16px;
  padding: 20px 28px;
  position: relative;
  text-align: center;
}
.page-titlebar.sketch h1{
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--title-brown);
  line-height: 1.05;
}

/* 轻描边小工具（复用） */
.sketch { box-shadow: 0 0 0 1px rgba(139,94,60,0.06); }

/* ===== Footer 全局 ===== */
.footer.sketch-footer{
  background:#D9D9D9;
  overflow:visible;                 
  margin-bottom:0;                  
  padding-bottom:50px;
}

/* 最后一块（如开启许可证信息） */
.footer .footer-meta{ margin-bottom:0; padding-bottom:0; }

/* 让图片与虚线满屏 */
.footer .footer-bleed,
.footer .footer-dash-bleed{
  width:100vw;                      
  margin-left:50%;                  
  transform:translateX(-50%);       
  padding-left:0;
  padding-right:0;
  margin-right:0;
  margin-bottom:0;                  
}

/* ===== 顶部三张图区域 ===== */
.footer .footer-top{
  display:flex;
  align-items:center;
  position:relative;
  padding:44px 0 0;                 
  margin-bottom:0;

  /* ✨ 为左猫预留空间（避免 logo 重叠） */
  padding-left: clamp(260px, 26vw, 380px);
}

/* 左 1 图片 */
.footer .left-cat{
  position:absolute;
  left:0;
  z-index:0;  /* ✨猫在下层 */
  top:-120px;  
}
.footer .left-cat img{
  /* max-height:300px; */
  /* transform:translateY(-20%);        */
  display:block;
  line-height:0;
}

/* 中间两个 logo ——把内容推到容器最右侧 */
.footer .footer-logos{
  margin-left:auto;   
  margin-right:8%;            /* 或者 100px，建议用百分比更自适应 */
  display:flex;
  justify-content:flex-end;   /* 关键：内容靠右对齐 */
  gap:48px;
  align-items:center; 
  position:relative;
  z-index:2;                  /* logo 在猫上层 */
  width:90%;                 /* 占据剩余空间，让对齐生效 */
}
.footer .footer-logos img{
  display:block;
  width:auto;
  height:auto;
  max-height:140px;
  line-height:0;
}

/* ===== 黄色虚线 ===== */
.footer .footer-dash-bleed{
  margin-top:-24px;                 
  margin-bottom:0;
  padding-bottom:0;
}
.footer .dash-img{
  display:block;
  max-width:none;
  width:120vw;                      
  height:auto;
  margin:0 auto;
  line-height:0;                    
  transform:translateX(calc((120vw - 100vw)/-2));  
}

/* 清理容器底部空隙 */
.footer .footer-frame{
  padding-bottom:0 !important;
}
.footer .row:last-child,
.footer .col:last-child,
.footer p:last-child{
  margin-bottom:0 !important;
}

/* ===== 响应式微调 ===== */
@media (max-width: 992px){
  .footer .footer-logos{
    margin-right:40px;  /* 小屏右边留白缩小 */
    gap:28px;
  }
  .footer .left-cat img{
    max-height:220px;
    transform:translateY(-18%);
  }
  .footer .footer-logos img{ max-height:96px; }
  .footer .footer-dash-bleed{ margin-top:-16px; }

  /* 小屏预留空间减少 */
  .footer .footer-top{
    padding-left: clamp(160px, 40vw, 240px);
  }
}

/* Awards section */
.awards {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 60px 20px;
  background-color: #ffeab5;
  flex-wrap: wrap;
}

.award {
  text-align: center;
  max-width: 300px;
}

/* 统一图片大小 */
.award img {
  width: 140px;       /* 固定宽度 */
  height: 140px;      /* 固定高度 */
  object-fit: contain; /* 保持比例缩放，留白对齐 */
  margin-bottom: 15px;
}

.award p {
  font-size: 30px;
  line-height: 1.4;
  color: #333;
}

.award a {
  color: #5a82c4;   /* 蓝色超链接 */
  text-decoration: none;
}

.award a:hover {
  text-decoration: underline;
}

/* ===== 下拉菜单整体样式 ===== */
.navbar .dropdown-menu {
  background-color: #fff9e6;       /* 下拉背景色：柔和米黄，可改 */
  border: 2px solid #b06a3e;       /* 边框呼应主色（如棕色系） */
  border-radius: 12px;             /* 圆角 */
  padding: 8px 0;
  min-width: 220px;                /* 控制宽度，可调 */
  font-size: 1rem;                 /* 字体稍大一点 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影更柔和 */
}

/* ===== 菜单项样式 ===== */
.navbar .dropdown-item {
  color: #3c2f20;                  /* 深棕文字 */
  padding: 10px 18px;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* ===== 鼠标悬停效果 ===== */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #f4d488;       /* 悬停高亮颜色（亮黄） */
  color: #000;
}

/* ===== 激活状态 ===== */
.navbar .dropdown-item.active {
  background-color: #eab85e;
  color: #fff;
}

/* ===== 调整下拉箭头与间距 ===== */
.navbar .nav-link.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 0.15em;
}