/* ============================================================
   脑认知与心理健康实验室 — 全局样式
   主色：#015aa1
   ============================================================ */
:root {
  --primary: #015aa1;
  --primary-dark: #01467e;
  --primary-deep: #01315a;
  --primary-light: #e8f2fa;
  --accent: #ff9a3c;
  --text: #333;
  --text-light: #777;
  --border: #e3ecf3;
  --shadow: 0 6px 24px rgba(1, 90, 161, .08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(1, 90, 161, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  border-radius: 4px;
}

/* 二级下拉菜单 */
.main-nav li {
  position: relative;
}

.main-nav .sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: block;
  min-width: 140px;
  padding: 6px 0;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 10px 26px rgba(1, 90, 161, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.main-nav .sub-nav a {
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 0;
}

.main-nav li:hover .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

/* ---------- 首屏轮播 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 38vw;
  max-height: 780px;
  min-height: 220px;
  float: left;
  overflow: hidden;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hero-slide:hover img {
  transform: scale(1.05);
}

.hero-nav {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  transition: background .25s;
}

.hero-btn:hover {
  background: var(--primary);
}

.hero-btn.prev,
.hero-btn.next {
  position: static;
  transform: none;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* ---------- 右侧浮动快捷栏 ---------- */
.side-dock {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  flex-direction: column;
  width: 108px;
  background: var(--primary);
  box-shadow: -4px 4px 18px rgba(1, 90, 161, .3);
}

.side-dock a {
  display: block;
  padding: 11px 6px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: background .25s, color .25s;
}

.side-dock a:hover,
.side-dock a.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.side-dock .to-top {
  background: var(--primary-deep);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  padding: 11px 6px;
}

.side-dock .to-top:hover {
  background: #fff;
  color: var(--primary);
}

/* ---------- 通用版块标题 ---------- */
.section {
  padding: 56px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 36px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 2px;
}

.section-title.center {
  justify-content: center;
}

.section-title .dot {
  flex: none;
  width: 33px;
  height: 33px;
  background: url("../img/index-more.png") center/contain no-repeat;
}

.section-title.on-blue {
  color: #fff;
}

/* ---------- 实验室新闻 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-feature {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.news-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 90, 161, .16);
}

.news-feature .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-feature .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.news-feature:hover .thumb img {
  transform: scale(1.05);
}

.news-feature .date-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.2;
}

.news-feature .date-badge .d {
  font-size: 24px;
  font-weight: 700;
}

.news-feature .date-badge .ym {
  font-size: 11px;
  opacity: .9;
}

.news-feature .body {
  padding: 18px 20px 22px;
}

.news-feature .body h3 {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature .body p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  background: #f7fafc;
  border-left: 3px solid transparent;
  transition: background .25s, border-color .25s;
}

.news-item:hover {
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.news-item .news-thumb {
  flex: none;
  align-self: center;
  width: 104px;
  height: 78px;
  overflow: hidden;
  background: var(--primary-light);
}

.news-item .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-item .tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #fff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 2px;
}

.news-item .info {
  flex: 1;
  min-width: 0;
}

.news-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .date {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-item .date::after {
  content: "⟶";
  color: var(--primary);
}

/* ---------- 通知公告 ---------- */
.notice-section {
  background: linear-gradient(180deg, #fff 0%, #f4f8fb 100%);
  border-top: 1px solid var(--border);
}

.notice-wrap {
  position: relative;
  padding: 0;
}

.notice-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid #e6ecf2;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.notice-track::-webkit-scrollbar {
  display: none;
}

.notice-card {
  scroll-snap-align: start;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
}

.notice-card .date-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--primary-deep);
  margin-bottom: 14px;
}

.notice-card .date-line .d {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: #1f2d3d;
}

.notice-card .date-line .ym {
  font-size: 12.5px;
  color: #9aa7b2;
  padding-top: 5px;
}

.notice-card h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #1f2d3d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
  transition: color .25s;
}

.notice-card:hover h4 {
  color: var(--primary);
}

.notice-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.notice-card .link::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--accent);
}

/* ---------- 科研动态 ---------- */
.research-section {
  background: linear-gradient(180deg, #f4f8fb 0%, #e7eff7 100%);
  color: var(--text);
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.research-feature {
  background: #fff;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(1, 49, 90, .12);
}

.research-feature .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.research-feature .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-feature .body {
  padding: 26px 28px 30px;
}

.research-feature .body h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: #1f2d3d;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}

.research-feature .body p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #7b8794;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-feature .more {
  display: block;
  margin-top: 20px;
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
}

.research-list {
  display: flex;
  flex-direction: column;
  background: var(--primary);
}

.research-item {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
  padding: 18px 16px;
  transition: background .25s;
}

.research-item:hover {
  background: rgba(255, 255, 255, .08);
}

.research-item .mini-thumb {
  flex: none;
  width: 110px;
  height: 76px;
  overflow: hidden;
}

.research-item .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-item .info {
  flex: 1;
  min-width: 0;
}

.research-item h4 {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-item .info p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-item .date {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}

.research-item .arrow {
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
}

/* ---------- 研究团队 ---------- */
.team-section {
  background:
    linear-gradient(rgba(1, 49, 90, .82), rgba(1, 49, 90, .82)),
    url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=modern%20neuroscience%20laboratory%20interior%20with%20brain%20imaging%20equipment%20and%20researchers%20working%2C%20blue%20tone%2C%20blurred%20background&image_size=landscape_16_9") center/cover fixed;
  color: #fff;
}

.team-carousel {
  overflow: hidden;
  padding: 10px 0 24px;
}

.team-track {
  display: flex;
  transition: transform .5s ease;
}

.team-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.team-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s, background .3s;
}

.team-dots button.active {
  width: 28px;
  background: #fff;
}

.team-card {
  background: #fff;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .3s;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card .photo {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.team-card:hover .photo img {
  transform: scale(1.06);
}

.team-card .meta {
  padding: 14px 10px 16px;
  color: var(--text);
}

.team-card .meta .name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-deep);
}

/* ---------- 仪器设备 ---------- */
.equip-section {
  background: #fbfdfe;
}

.equip-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.equip-card {
  text-align: center;
}

.equip-card .circle {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  padding: 18px;
  transition: box-shadow .3s, border-color .3s;
}

.equip-card .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.equip-card:hover .circle {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.equip-card h4 {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.equip-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ---------- 实验室简介（首页板块） ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  box-shadow: var(--shadow);
}

.about-photo {
  min-height: 240px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-panel {
  background: var(--primary);
  color: #fff;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-panel h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.about-panel p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .88);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-panel p+p {
  margin-top: 12px;
}

.about-panel .detail-link {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 9px 22px;
  font-size: 14px;
  color: #fff;
  transition: background .25s, color .25s;
}

.about-panel .detail-link:hover {
  background: #fff;
  color: var(--primary);
}

.about-logo {
  margin-top: 72px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.about-logo img {
  width: 50%;
  max-width: 100%;
  height: auto;
}

/* ---------- 内页（about.html） ---------- */
.article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 16px;
}

.article-body>p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 2;
  color: #444;
  text-indent: 2em;
}

.article-body>p.lead {
  font-size: 17px;
  color: var(--primary-deep);
  font-weight: 600;
}

.pillar-title {
  margin: 44px 0 24px;
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---------- 实验室概况页：左侧栏 + 内容 ---------- */
.sub-banner {
  height: 200px;
  overflow: hidden;
  background: var(--primary-deep);
}

.sub-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-wrap {
  background: #f6f7f9;
  padding: 28px 0 56px;
}

.sub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.sub-side-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 88px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.sub-side-title span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sub-side-title i {
  width: 22px;
  height: 2px;
  margin-top: 10px;
  background: rgba(255, 255, 255, .85);
}

.sub-menu {
  background: #fff;
}

.sub-menu li+li {
  border-top: 1px solid var(--border);
}

.sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 15px;
  color: #555;
  border-left: 3px solid transparent;
  transition: color .25s, background .25s, border-color .25s;
}

.sub-menu a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  transform: rotate(-45deg);
}

.sub-menu a:hover,
.sub-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.sub-menu a:hover::after,
.sub-menu a.active::after {
  border-color: var(--primary);
}

.sub-main {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0 24px 28px;
}

.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
}

.sub-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.sub-head .crumb {
  font-size: 13px;
  color: #999;
}

.sub-content {
  padding-top: 24px;
}

.sub-content>p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 2;
  color: #444;
  text-indent: 2em;
}

.sub-content>p.lead {
  font-size: 17px;
  color: var(--primary-deep);
  font-weight: 600;
}

.sub-content .pillar-title {
  text-align: left;
}

.pillar-list {
  margin-bottom: 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: pillar;
}

.pillar-list>li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 26px;
}

.pillar-list>li::before {
  counter-increment: pillar;
  content: counter(pillar);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pillar-list h3 {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-deep);
}

.pillar-list p {
  font-size: 15.5px;
  line-height: 2;
  color: #444;
}

/* ---------- 研究队伍（researchers.html） ---------- */
.member-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 24px;
}

.member-card .member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 14px;
}

.member-card .member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-deep);
}

.member-card .member-role {
  font-size: 12.5px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 3px 12px;
  line-height: 1.6;
}

.member-card h5 {
  font-size: 13.5px;
  color: var(--primary);
  margin: 16px 0 6px;
  font-weight: 600;
  letter-spacing: 1px;
}

.member-card .direction-line {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
}

.member-card .resume p {
  font-size: 14px;
  color: #555;
  line-height: 1.95;
  text-indent: 2em;
}

.member-card ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.member-card ol li {
  font-size: 13.5px;
  color: #555;
  line-height: 1.9;
  border-bottom: 1px dashed var(--border);
  padding: 6px 0;
}

.member-card ol li:last-child {
  border-bottom: none;
}

/* ---------- 研究队伍子页：成员卡片 + 分页 + 详情弹层 ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

.member-cell[hidden] {
  display: none;
}

.member-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  line-height: inherit;
  text-align: center;
  cursor: pointer;
}

.member-tile .photo {
  display: block;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  background: #eef1f4;
}

.member-tile .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.member-tile:hover .photo img {
  transform: scale(1.05);
}

.member-tile .name {
  display: block;
  padding: 9px 6px;
  font-size: 15px;
  color: #333;
  letter-spacing: 1px;
  background: #edf2f7;
  transition: background .25s, color .25s;
}

.member-tile:hover .name {
  background: var(--primary);
  color: #fff;
}

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.pager button {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.pager button:hover:not(:disabled):not(.current) {
  color: var(--primary);
  border-color: var(--primary);
}

.pager button.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.pager button:disabled {
  color: #bbb;
  cursor: not-allowed;
}

/* 详情（在内容区内切换显示，不弹窗） */
.member-grid[hidden],
.article-list[hidden],
.pager[hidden] {
  display: none;
}

.detail-view[hidden] {
  display: none;
}

.detail-bar {
  margin-bottom: 18px;
}

.detail-back,
.detail-nav button {
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.detail-back:hover,
.detail-nav button:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}

.detail-view .member-card {
  margin-bottom: 0;
}

/* 科学研究列表：日期 + 标题，整行可点击 */
.article-list .article-item {
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.article-list .article-item:hover {
  transform: none;
  box-shadow: none;
  background: #f6fafd;
}

.article-list .article-item .date-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 132px;
  border-right: none;
  padding-right: 0;
  text-align: left;
}

.article-list .article-item .date-box .d {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.article-list .article-item .date-box .ym {
  font-size: 12.5px;
  color: var(--text-light);
}

.article-list .article-item h3 {
  font-weight: 400;
  transition: color .25s;
}

.article-list .article-item:hover h3 {
  color: var(--primary);
}

.detail-view .article-detail {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.detail-view .article-detail h3 {
  font-size: 18px;
  color: var(--primary-deep);
  line-height: 1.6;
}

.detail-view .article-detail p {
  margin-top: 14px;
  font-size: 15px;
  color: #444;
  line-height: 2;
  text-indent: 2em;
}

.detail-nav button:disabled {
  color: #bbb;
  background: #f2f4f6;
  cursor: not-allowed;
}

/* ---------- 图文列表（实验室新闻 / 科研动态） ---------- */
.article-list.media-list .article-item {
  align-items: flex-start;
  gap: 26px;
  padding: 24px 8px;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.article-list.media-list .article-item:hover {
  transform: none;
  box-shadow: none;
  background: #f8fbfe;
}

.article-list.media-list .thumb {
  flex: none;
  width: 300px;
  height: 168px;
  overflow: hidden;
  background: var(--primary-light);
}

.article-list.media-list .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.article-list.media-list .article-item:hover .thumb img {
  transform: scale(1.04);
}

.article-list.media-list .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.article-list.media-list .info h3 {
  font-size: 19px;
  font-weight: 600;
  color: #222;
  line-height: 1.6;
}

.article-list.media-list .info .excerpt {
  margin-top: 12px;
  font-size: 14px;
  color: #8a8a8a;
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list.media-list .info .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.article-list.media-list .info .date {
  font-size: 14px;
  color: var(--primary);
}

.article-list.media-list .go {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
}

.article-list.media-list .go::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='9 7 17 7 17 15'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='9 7 17 7 17 15'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article-list.media-list .article-item:hover .go {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 767px) {
  .article-list.media-list .article-item {
    flex-direction: column;
    gap: 14px;
  }

  .article-list.media-list .thumb {
    width: 100%;
    height: 190px;
  }
}

/* ---------- 联系我们（contact.html） ---------- */
/* 内容区整体纯白底 */
.contact-wrap {
  background: #ffffff;
}

.contact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-bottom: none;
}

.contact-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.contact-head .crumb {
  font-size: 13px;
  color: #999;
}

.contact-body {
  background: #fff;
  border: 1px solid var(--border);
  padding: 44px 20px 48px;
  text-align: center;
}

.contact-gallery {
  display: flex;
  justify-content: center;
}

.contact-photo {
  width: 100%;
  max-width: 560px;
}

.contact-info {
  display: inline-block;
  margin-top: 30px;
  text-align: left;
}

.contact-info p {
  font-size: 15px;
  color: #555;
  line-height: 2.1;
}

.contact-info p span {
  display: inline-block;
  min-width: 54px;
  margin-right: 10px;
  color: var(--primary);
  font-weight: 600;
}

@media (min-width: 640px) {
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .member-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- 科研动态 / 通知公告 列表页 ---------- */
.article-item {
  display: flex;
  gap: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
  transition: transform .3s, box-shadow .3s;
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(1, 90, 161, .14);
}

.article-item .date-box {
  flex: none;
  width: 96px;
  text-align: center;
  border-right: 1px dashed var(--border);
  padding-right: 18px;
}

.article-item .date-box .y {
  font-size: 12px;
  color: var(--text-light);
}

.article-item .date-box .d {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.article-item .date-box .m {
  font-size: 13px;
  color: var(--text-light);
}

.article-item .tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 1px 8px;
  border-radius: 2px;
}

.article-item h3 {
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.6;
}

.article-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.9;
}

.article-item .notice-date {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-light);
}

/* 详情内的设备图片 */
.detail-view .detail-photo {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.detail-view .detail-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .article-item .date-box {
    width: 110px;
  }
}

/* ---------- 首页板块 “查看全部” 链接 ---------- */
.home-more {
  display: block;
  margin-top: 28px;
  text-align: right;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.home-more.on-blue {
  color: rgba(255, 255, 255, .85);
}

.home-more:hover {
  color: var(--accent);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, .8);
  padding: 44px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(255, 255, 255, .72);
  display: block;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板 ≥640px */
@media (min-width: 640px) {
  .notice-track {
    grid-auto-columns: calc((100% - 40px) / 3);
  }

  .research-grid {
    grid-template-columns: 1fr 1.05fr;
  }

  .equip-track {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 平板/桌面 ≥768px */
@media (min-width: 768px) {
  .header-inner {
    height: 84px;
  }

  .section {
    padding: 72px 0;
  }

  .news-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .research-item {
    gap: 20px;
    padding: 22px 26px;
  }

  .research-item .mini-thumb {
    width: 168px;
    height: 112px;
  }

  .team-page {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sub-banner {
    height: 340px;
  }

  .sub-layout {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }
}

/* 桌面 ≥1024px */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .side-dock {
    display: flex;
  }

  .sub-banner {
    height: 420px;
  }
}

/* 超宽屏，为右侧悬浮栏留边 */
@media (min-width: 1440px) {
  .side-dock {
    width: 118px;
  }
}