/* =========================================================
   机器人科创实验室 - 样式表
   深色科技风（借鉴 RoboMaster 官网：深海军蓝 + 亮青点缀）
   改主题：调整 :root 里的颜色变量即可
   ========================================================= */

:root {
  --accent: #4da3e0;            /* 主色调（柔和雾蓝） */
  --accent-dark: #3a86b8;       /* 主色调（深色，用于悬停） */
  --text: #e8eef7;              /* 正文颜色（近白） */
  --text-light: #8ea3c0;        /* 次要文字（浅蓝灰） */
  --bg: #0a1120;                /* 页面背景（深海军蓝） */
  --bg-alt: #0f1830;            /* 交替区块背景 */
  --card: #101b33;              /* 卡片背景 */
  --border: #1e2f4f;            /* 边框 */
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 30px rgba(77, 163, 224, 0.10);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #86c6f2; }

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

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

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: var(--text-light);
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

/* 汉堡按钮（手机端显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.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); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 18px rgba(77, 163, 224, 0.25); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  font-size: 14px;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-small { padding: 6px 16px; font-size: 14px; }

/* ---------- 首页 Hero ---------- */
.hero {
  text-align: center;
  padding: 90px 20px 100px;
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(77, 163, 224, 0.08), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(77, 163, 224, 0.05), transparent 60%);
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  border: 3px solid #fff;
}

.hero-banner {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  background: #fff;
  padding: 12px 18px;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-light);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #7cc3f0);
  margin: 12px auto 0;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 14.5px;
  max-width: 640px;
  margin: -20px auto 34px;
}

.team-note {
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  margin-top: 20px;
}

/* ---------- 成员分组名单 ---------- */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.group-card h4 { font-size: 15.5px; margin-bottom: 14px; }

.name-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.name-tag {
  font-size: 13px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.name-tags-center { justify-content: center; max-width: 820px; margin: 0 auto; }

/* ---------- 实验室简介 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p { margin-bottom: 16px; color: #c7d3e6; text-indent: 2em; }

.about-facts { display: flex; flex-direction: column; gap: 16px; }

.fact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.fact-card h3 { font-size: 16px; margin-bottom: 10px; }

.fact-card ul { padding-left: 20px; }
.fact-card li { margin-bottom: 4px; color: #c7d3e6; }
.fact-card p { color: #c7d3e6; font-size: 15px; }

/* ---------- 快速导航卡片 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.quick-icon { font-size: 34px; margin-bottom: 12px; }
.quick-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.quick-card p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }

.quick-more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* ---------- 团队成员 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  overflow: hidden;
}

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

.member-card h3 { font-size: 16.5px; margin-bottom: 4px; }

.member-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.member-dir { font-size: 13.5px; color: var(--text-light); margin-bottom: 6px; }
.member-mail { font-size: 13px; }

/* ---------- 战队板块 ---------- */
.team-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.team-logo {
  width: 240px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px;
}

.about-banner {
  display: block;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.team-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 24px;
}

.team-subtitle {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 24px;
}

.team-grid + .btn,
.team-desc + .btn { display: block; }

.team-section-center { text-align: center; }

/* ---------- 内页标题区 ---------- */
.page-header {
  padding: 60px 20px;
  text-align: center;
  background:
    radial-gradient(800px 300px at 50% -20%, rgba(77, 163, 224, 0.07), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.page-header p { color: var(--text-light); }

/* ---------- 项目卡片 ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-top h3 { font-size: 18px; }

.badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(77, 163, 224, 0.15);
  color: #86c6f2;
}

.badge-green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.badge-blue  { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.project-desc { color: var(--text-light); font-size: 14.5px; margin-bottom: 16px; flex-grow: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.tag {
  font-size: 12.5px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.project-links { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }

/* ---------- 四宫格（项目页四大方向） ---------- */
.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: start;
}

.quad-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quad-link {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  padding: 9px 16px;
  transition: all 0.2s;
}

.quad-link:hover { background: var(--accent); color: #fff; }

.quad-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.quad-icon { font-size: 42px; margin-bottom: 14px; }

.quad-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--text); }

.quad-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }

.quad-more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* ---------- 成果统计 ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.stat span { color: var(--text-light); font-size: 14px; }

/* ---------- 代表成果 ---------- */
.feature-award {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(77, 163, 224, 0.06), rgba(77, 163, 224, 0.02));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.feature-award-icon { font-size: 44px; line-height: 1; }

.feature-award h3 { font-size: 18px; margin-bottom: 6px; }

.feature-award-meta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-award-desc { color: var(--text-light); font-size: 14.5px; margin-bottom: 12px; }

.feature-award-links { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }

/* ---------- 获奖列表 ---------- */
.year {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.year:first-child { margin-top: 0; }

.award-list { list-style: none; }

/* 行式获奖条目（网站风） */
.award-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.award-row:hover {
  border-color: var(--accent);
  background: #152440;
  transform: translateX(5px);
}

.award-main { min-width: 0; }

.award-name { font-size: 15.5px; font-weight: 600; margin: 0 0 5px; }

.award-meta { font-size: 13.5px; color: var(--text-light); }

.award-lv {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.lv-guo   { background: rgba(77, 163, 224, 0.16); color: #86c6f2; }
.lv-sheng { background: rgba(74, 222, 128, 0.14); color: #6ee7a0; }
.lv-tec   { background: rgba(196, 140, 255, 0.16); color: #c9a2ff; }

.award-link {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s;
}

.award-link:hover { background: var(--accent); color: #fff; }

/* ---------- 合作伙伴 ---------- */
.partners { padding: 60px 0 70px; background: var(--bg-alt); }

.partner-row { display: flex; justify-content: center; }

.partner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 30px;
  box-shadow: var(--shadow);
}

.partner-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.partner-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.partner-row { gap: 20px; flex-wrap: wrap; }

.partner-info h3 { font-size: 16px; margin-bottom: 2px; }
.partner-info p { color: var(--text-light); font-size: 13.5px; }

/* ---------- 获奖证书墙 ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.cert-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.cert-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* 证书完整显示（不被裁切），点击可查看原图 */
.cert-item a { display: block; line-height: 0; }

.cert-item img.cert-full {
  height: 300px;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

.cert-item figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.cert-placeholder {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  background: var(--bg-alt);
  border: 1.5px dashed var(--border);
}

.cert-placeholder small { font-size: 12px; opacity: 0.8; }

/* ---------- 关注我们（媒体平台） ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.media-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }

.media-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 11px;
}

.media-douyin { background: #161823; }
.media-bilibili { background: #fb7299; }
.media-xhs { background: #ff2442; }

.media-icon img { width: 100%; height: 100%; object-fit: contain; }

.media-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.media-card p { color: var(--text-light); font-size: 13.5px; margin-bottom: 14px; }

.media-btn {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 5px 16px;
  transition: all 0.2s;
}

.media-card:hover .media-btn { background: var(--accent); color: #fff; }

/* 页脚社交图标 */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  transition: transform 0.2s;
}

.social-icons a:hover { transform: translateY(-2px); }
.social-icons .s-douyin { background: #161823; }
.social-icons .s-bilibili { background: #fff; border: 1px solid var(--border); }
.social-icons .s-xhs { background: #fff; border: 1px solid var(--border); }
.social-icons img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 页脚（整合版） ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 46px 20px 26px;
  background: #060b16;
  color: #b6c6dd;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  max-width: 1080px;
  margin: 0 auto 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col p { color: #8ea3c0; line-height: 1.8; margin-bottom: 8px; }
.footer-col a { color: #8ea3c0; transition: color 0.2s; }
.footer-col a:hover { color: #86c6f2; }

.footer-col .f-links { display: flex; flex-direction: column; gap: 8px; }

.footer-partners { display: flex; flex-direction: column; gap: 14px; }

.footer-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8ea3c0;
}

.footer-partner img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.footer-copy {
  border-top: 1px solid #1e2f4f;
  padding-top: 18px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.footer-copy a { color: #8ea3c0; }

.footer .footer-sub { margin-top: 8px; text-align: center; color: #64748b; font-size: 12.5px; }

/* 页脚社交图标（深色背景版） */
.footer .social-icons { justify-content: flex-start; margin-top: 14px; }
.footer .social-icons a:hover { transform: translateY(-2px); filter: brightness(1.15); }

/* ---------- 轮播图 ---------- */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}

.carousel-viewport { overflow: hidden; }

.carousel-track { display: flex; transition: transform 0.6s ease; }

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: 440px;
}

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 17, 32, 0.45));
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 17, 32, 0.55);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(77, 163, 224, 0.9); }
.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.carousel-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* ---------- 数字统计条 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 34px 20px;
}

.stats-band .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.stats-band .stat strong { color: #fff; font-size: 34px; }
.stats-band .stat span { color: rgba(255, 255, 255, 0.85); }

/* ---------- 核心方向 ---------- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.dir-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.dir-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 0 14px;
  display: block;
}

.dir-card h3 { font-size: 18px; margin-bottom: 10px; }
.dir-card p { color: var(--text-light); font-size: 14px; line-height: 1.8; }

/* ---------- 招新专区（简洁版） ---------- */
.recruit-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 46px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.recruit-info { text-align: center; }
.recruit-info h3 { font-size: 14px; color: var(--text-light); font-weight: 600; letter-spacing: 3px; margin-bottom: 10px; }
.recruit-info p { font-size: 21px; font-weight: 700; color: var(--text); }
.recruit-info p strong { color: var(--accent); }

.recruit-qr-box { text-align: center; }
.recruit-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: block;
  padding: 8px;
}
.recruit-qr-note { margin-top: 12px; color: var(--text-light); font-size: 13.5px; }

/* ---------- 实验室风采（瀑布流） ---------- */
.gallery-masonry {
  columns: 3 240px;
  column-gap: 18px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s;
}

.gallery-item:hover { transform: translateY(-3px); }
.gallery-item img { width: 100%; display: block; }

/* ---------- 灯箱（图片放大预览） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #e2e8f0;
  font-size: 14px;
  z-index: 301;
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, background 0.2s;
  z-index: 150;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-dark); }

/* ---------- 响应式（手机端） ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-grid { grid-template-columns: 1fr; }
  .quad-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery-masonry { columns: 2 150px; }
  .recruit-box { flex-direction: column; padding: 28px 20px; gap: 28px; }

  /* 手机端菜单 */
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 10px 20px 18px;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--bg-alt); }
  .nav-links .btn { margin-top: 12px; text-align: center; }

  .section { padding: 50px 0; }
  .hero { padding: 60px 20px 70px; }
  .stats-row { gap: 30px; }
  .feature-award { flex-direction: column; align-items: center; text-align: center; padding: 22px 20px; }
  .feature-award-links { justify-content: center; }
  .hero-logo { width: 96px; height: 96px; }
  .team-logo { width: 180px; height: 90px; }
  .partner-card { flex-direction: column; text-align: center; padding: 18px 20px; }
  .award-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .carousel-slide { height: 250px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 22px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .carousel { border-radius: 12px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
}
