* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }
button { font-family: inherit; }

.container {
  width: 1320px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

/* ---------- 顶部快捷栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; padding: 0 32px; font-size: 16px; line-height: 1;
  background: #fdeef1; border-bottom: 1px solid #f7d7de;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 28px; }
.topbar a { display: inline-flex; align-items: center; color: #4a4a4a; font-size: 16px; line-height: 1; }
.topbar a:hover { color: #f4511e; }
.topbar svg { width: 18px; height: 18px; }
.topbar-label { color: #4a4a4a; font-size: 15px; }
.topbar-welcome { color: #4a4a4a; font-size: 14px; line-height: 1; }
.topbar-welcome a { color: #4a4a4a; text-decoration: none; border-bottom: 1px dotted transparent; transition: color .2s, border-color .2s; }
.topbar-welcome a:hover { color: #4a90d9; border-bottom-color: #4a90d9; }

/* ---------- 头部 ---------- */
.site-header { padding: 18px 0 8px; text-align: center; background: #fff; }
.header-inner { display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.brand img { width: 78px; height: 78px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 28px; line-height: 1.2; letter-spacing: 2px; color: #111; }
.brand-text span { margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.2; color: #333; }
.welcome { margin: 8px 0 16px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.welcome .green { color: #19994a; }
.welcome .orange { color: #f47c20; }
.welcome .blue { color: #2a5db0; }

/* ---------- 导航 ---------- */
.main-nav { background: linear-gradient(90deg, #f4511e, #ff6a2b); box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.nav-list { display: flex; justify-content: center; height: 50px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; height: 50px; padding: 0 22px;
  color: #fff; font-size: 18px; line-height: 1.2; font-weight: 600; white-space: nowrap;
  transition: background .2s;
}
.nav-list > li:hover > a, .nav-list > li.active > a { background: rgba(0, 0, 0, .13); }
.home-icon { font-size: 21px; margin-right: 4px; }
.caret { width: 0; height: 0; margin-left: 6px; border: 4px solid transparent; border-top-color: #fff; transform: translateY(2px); }
.dropdown {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  min-width: 160px; padding: 6px 0; background: #fff; border-radius: 0 0 5px 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18); display: none; z-index: 30;
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 18px; color: #444; font-size: 15px; white-space: nowrap; }
.dropdown a:hover { background: #fff2eb; color: #f4511e; }

/* ---------- 首屏 Banners 轮动图 ---------- */
.hero-wrap { margin-top: 18px; }
.hero {
  position: relative; overflow: hidden; border-radius: 10px;
  background: #1a1a1a;
}
.hero-slides { position: relative; height: 420px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .32); color: #fff;
  cursor: pointer; transition: background .2s;
}
.hero-arrow svg { display: block; width: 22px; height: 22px; }
.hero-arrow:hover { background: rgba(0, 0, 0, .6); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dot {
  width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* ---------- 蓝色宣传条 ---------- */
.feature-banner {
  position: relative; display: block; width: 1320px; max-width: calc(100% - 32px);
  height: 126px; margin: 34px auto 30px;
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(120deg, #0b3d91, #1261a0 55%, #0a4f8a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.feature-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(circle, rgba(160, 215, 255, .95) 1.5px, transparent 2px);
  background-size: 46px 46px;
}
.feature-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 24, 64, .4), transparent 65%); }
.banner-net { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(120, 190, 255, .18) 80px 81px); }
.feature-banner h3 {
  position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0 40px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: 4px;
  text-shadow: 0 0 16px rgba(255, 180, 120, .9), 0 3px 5px rgba(0, 0, 0, .55);
}
.banner-btn {
  position: absolute; right: 18px; bottom: 14px; z-index: 2;
  padding: 6px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6);
  color: #333; font-size: 12px;
}

/* ---------- 负责人与研究方向 ---------- */
.info-section { padding-bottom: 34px; }
.info-grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: 22px; align-items: stretch; }
.profile-card {
  display: flex; gap: 18px; padding: 18px; background: #f7f7f7;
  border: 1px solid #eee; border-radius: 5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .09);
}
.profile-photo { width: 210px; height: 290px; object-fit: cover; flex: none; align-self: center; border-radius: 3px; box-shadow: 0 2px 7px rgba(0, 0, 0, .18); }
.profile-text h2 { margin: 2px 0 16px; font-size: 21px; color: #222; }
.profile-text p { margin: 0; font-size: 15.5px; line-height: 1.9; color: #555; }
.panel-card { display: flex; flex-direction: column; border-radius: 5px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.panel-tabs { display: flex; height: 40px; }
.tab { flex: 1; border: 0; background: #f9e6ef; color: #333; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.tab:hover { background: #ffd9e7; }
.tab.active { background: #ff4b1f; color: #fff; }
.panel-body { flex: 1; padding: 22px 20px; background: #d9f0e3; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane li { position: relative; padding-left: 14px; font-size: 15px; font-weight: 700; line-height: 2.15; color: #111; }
.tab-pane li::before { content: ""; position: absolute; left: 0; top: 15px; width: 5px; height: 5px; background: #ff4b1f; border-radius: 50%; }

/* ---------- 实验室牌匾 ---------- */
.lab-plaques { padding: 0 0 6px; }
.plaque-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plaque-grid img {
  display: block; width: 100%; height: 190px; object-fit: cover;
  border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
}

/* ---------- 科研成果 ---------- */
.achievements { padding: 30px 0 10px; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title h2 { display: inline-block; margin: 0; padding-bottom: 10px; border-bottom: 3px solid #0a7d3f; font-size: 24px; font-weight: 800; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 0 12px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.achievement-card { flex: 0 0 calc((100% - 60px) / 4); border: 1px solid #e7e7e7; border-radius: 3px; overflow: hidden; background: #fff; }
.thumb { height: 300px; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.achievement-card:hover .thumb img { transform: scale(1.06); }
.achievement-card h4 { margin: 0; padding: 12px 6px; text-align: center; font-size: 15px; font-weight: 500; color: #333; }
.carousel-arrow {
  position: absolute; top: 36%; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #dedede; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
  transition: background .2s;
}
.carousel-arrow:hover { background: #bdbdbd; }
.carousel-arrow.prev { left: -52px; }
.carousel-arrow.next { right: -52px; }

/* ---------- 论文 ---------- */
.papers { padding: 26px 0 34px; }
.papers .section-title, .updates .section-title { text-align: left; }
.papers .section-title h2, .updates .section-title h2 { font-family: inherit; font-size: 30px; border-bottom-color: #8b1a1a; }
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paper-img { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 9px rgba(0, 0, 0, .12); }
.paper-img img { display: block; width: 100%; height: 300px; object-fit: cover; }

/* ---------- News 与 Mushrooms ---------- */
.updates { padding: 0 0 64px; }
.updates-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.updates .section-title { margin-bottom: 22px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card img { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.news-card h3, .paper-card h3 { margin: 18px 4px 10px; font-size: 20px; font-weight: 700; line-height: 1.5; color: #222; }
.news-card p, .paper-card p { margin: 0 4px; font-size: 15px; line-height: 1.8; color: #888; }
.mushroom-feature { position: relative; border-radius: 16px; overflow: hidden; }
.mushroom-feature img { display: block; width: 100%; height: 500px; object-fit: cover; }
.mushroom-label {
  position: absolute; left: 16px; bottom: 16px; padding: 5px 10px;
  border-radius: 4px; background: #1e7bfa; color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0c2b1f; color: #93a39a; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.6fr;
  gap: 30px; align-items: start; padding: 54px 0 44px;
}
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.footer-logo span { color: #35d07f; }
.footer-about p { max-width: 250px; margin: 16px 0 0; font-size: 13px; line-height: 1.9; color: #8fa299; }
.footer-col h4, .footer-contact h4 {
  position: relative; display: inline-block; margin: 0 0 18px; padding-bottom: 8px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.footer-col h4::after, .footer-contact h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 18px; height: 2px; background: #35d07f;
}
.footer-col li { margin-bottom: 12px; }
.footer-col li a { font-size: 13px; color: #93a39a; transition: color .2s; }
.footer-col li a:hover { color: #35d07f; }
.footer-extra { display: flex; flex-direction: column; }
.footer-qr { display: flex; gap: 18px; }
.qr-item { text-align: center; }
.qr-code { display: block; width: 68px; height: 68px; border-radius: 8px; }
.qr-item span { display: block; margin-top: 8px; font-size: 12px; color: #93a39a; }
.footer-contact { margin-top: 28px; }
.footer-contact p { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: #93a39a; }
.footer-divider { height: 1px; background: rgba(255, 255, 255, .1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0 12px; font-size: 12px; color: #75867d; flex-wrap: wrap;
}
.footer-stats { display: flex; gap: 10px; }
.stat-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 6px; background: #0e5a4b; color: #eaf4f0; font-size: 13px; }
.stat-badge .stat-icon { width: 16px; height: 16px; flex: none; color: #bfe3d6; }
.stat-badge b { font-weight: 700; font-size: 15px; }
.stat-badge.visit b { color: #ff5b9c; }
.stat-badge.visitor b { color: #ffd23f; }
.footer-runtime { display: flex; align-items: center; gap: 10px; }
.powered { padding: 3px 8px; border-radius: 4px; background: #12924a; color: #fff; font-weight: 700; }
.footer-record { margin: 0; padding-bottom: 20px; text-align: center; font-size: 12px; color: #6f8176; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-list > li > a { padding: 0 12px; font-size: 17px; }
  .hero-slides { height: 360px; }
  .info-grid { grid-template-columns: 1fr; }
  .carousel-arrow.prev { left: -8px; }
  .carousel-arrow.next { right: -8px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-about, .footer-extra { grid-column: 1 / -1; }
  .updates-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .topbar-left, .topbar-right { gap: 18px; }
  .brand-text strong { font-size: 21px; }
  .brand-text span { font-size: 12px; }
  .brand img { width: 58px; height: 58px; }
  .nav-list { height: auto; flex-wrap: wrap; }
  .nav-list > li > a { height: 42px; padding: 0 10px; font-size: 16px; }
  .hero-slides { height: 240px; }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-dots { bottom: 10px; }
  .feature-banner h3 { font-size: 19px; letter-spacing: 1px; padding: 0 16px; }
  .plaque-grid { grid-template-columns: 1fr; }
  .plaque-grid img { height: 150px; }
  .profile-card { flex-direction: column; align-items: center; }
  .profile-photo { width: 100%; height: 260px; }
  .achievement-card { flex-basis: calc((100% - 20px) / 2); }
  .paper-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 40px 0 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-runtime { flex-wrap: wrap; }
}
