/* ============================================================
   课题组网站 - 全局样式表
   说明：想更换网站主色调，只需要修改下面 :root 里的颜色值即可
   ============================================================ */

/* ---------- 全局变量（颜色、圆角、阴影都在这里改） ---------- */
:root {
  --primary: #155a9c;        /* 主色：学术蓝 */
  --primary-dark: #0d3a68;   /* 深蓝色（用于渐变、悬停） */
  --primary-light: #e8f1f9;  /* 浅蓝背景 */
  --accent: #e8a33d;         /* 点缀色：学术金 */
  --text: #2b3440;           /* 正文颜色 */
  --text-muted: #68737f;     /* 次要文字颜色 */
  --bg: #ffffff;             /* 页面背景 */
  --bg-alt: #f4f7fa;         /* 浅灰背景（用于交替板块） */
  --border: #e2e8ee;         /* 边框颜色 */
  --shadow: 0 2px 12px rgba(20, 50, 80, 0.08);
  --radius: 10px;
  --header-h: 72px;          /* 顶部导航高度 */
}

/* ---------- 基础样式 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.brand-sub { font-size: 0.75rem; color: var(--text-muted); }

.site-nav { display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 10px; color: var(--text);
  font-size: 0.92rem; border-radius: 6px; position: relative;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }
/* 当前所在页面的导航项高亮（由 main.js 自动添加 active） */
.site-nav a.active { color: var(--primary); font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

/* 手机端汉堡菜单按钮（默认隐藏，小屏幕才显示） */
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 4px 10px;
}

/* ---------- 首页首屏大图 Banner ---------- */
.hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #2a7cc4);
  background-size: 200% 200%;
  animation: heroShift 12s ease-in-out infinite;
  color: #fff; padding: 80px 0;
  position: relative; overflow: hidden;
}
@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; min-width: 0; }
.hero-mascot {
  width: 220px; flex-shrink: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero h1 { font-size: 2.6rem; letter-spacing: 2px; }
.hero-sub {
  opacity: 0.85; letter-spacing: 1px; margin-top: 6px;
  text-transform: uppercase; font-size: 0.95rem;
}
.hero-desc { margin: 18px 0 28px; max-width: 640px; font-size: 1.1rem; opacity: 0.95; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 内页顶部标题条 ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 56px 0 48px;
}
.page-banner h1 { font-size: 2rem; }
.page-banner-en { opacity: 0.8; letter-spacing: 2px; font-size: 0.85rem; text-transform: uppercase; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 6px;
  font-size: 0.95rem; transition: 0.2s; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary-dark); background: #f0f0f0; }
.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- 板块通用样式 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-en {
  display: block; font-size: 0.8rem; letter-spacing: 3px;
  color: var(--accent); font-weight: 700;
}
.section-title {
  font-size: 1.8rem; position: relative;
  display: inline-block; padding-bottom: 12px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 48px; height: 3px; background: var(--primary); border-radius: 2px;
}
.section-more { text-align: center; margin-top: 36px; }

/* ---------- 简介 + 数据 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 40px; align-items: center;
}
.about-text p { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat-num { font-size: 1.9rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.stat-link {
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.stat-link:hover,
.stat-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(20, 80, 160, 0.15);
  border-color: var(--primary);
  color: var(--text);
  outline: none;
}
.stat-link:hover .stat-label,
.stat-link:focus-visible .stat-label { color: var(--primary); }

/* ---------- 新闻列表（首页和新闻页共用） ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex; gap: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; transition: 0.2s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date {
  flex: 0 0 72px; text-align: center;
  border-right: 1px solid var(--border); padding-right: 18px;
}
.news-date .day { font-size: 1.7rem; font-weight: 700; color: var(--primary); display: block; line-height: 1.1; }
.news-date .ym { font-size: 0.8rem; color: var(--text-muted); }
.news-body h3 { font-size: 1.05rem; font-weight: 600; }
.news-body p { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- 研究方向卡片 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.research-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: 0.2s; color: var(--text); display: block;
}
.research-card:hover {
  box-shadow: var(--shadow); transform: translateY(-4px);
  border-color: var(--primary); color: var(--text);
}
.research-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.research-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.research-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.research-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 研究方向页：详细方向块 ---------- */
.research-block {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.research-block .research-icon { width: 64px; height: 64px; margin-bottom: 0; }
.research-block .research-icon svg { width: 32px; height: 32px; }
.research-block h3 { font-size: 1.25rem; margin-bottom: 8px; }
.research-block .topics { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.research-block .topics li {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.82rem; padding: 3px 12px; border-radius: 20px;
}

/* ---------- 论文列表（仿清华NLP：左序号 + 作者/题目/期刊三行，偶数行底纹） ---------- */
.pub-year {
  font-size: 1.3rem; margin: 40px 0 6px;
  padding-left: 12px; border-left: 4px solid var(--primary);
}
.pub-year:first-of-type { margin-top: 0; }
.paper-table { counter-reset: paper; }
.paper-row {
  display: flex; gap: 18px; align-items: baseline;
  padding: 13px 18px; border-radius: 8px;
}
.paper-row:nth-child(even) { background: var(--bg-alt); }
.paper-id {
  flex: 0 0 34px; color: var(--primary);
  font-weight: 700; font-size: 1.02rem;
}
.paper-id::before { counter-increment: paper; content: counter(paper); }
.paper-info { flex: 1; min-width: 0; }
.paper-author { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.paper-title { font-weight: 700; margin: 2px 0; line-height: 1.55; }
.paper-conference { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }
.paper-link { font-style: normal; margin-left: 8px; white-space: nowrap; }
.pub-tag {
  display: inline-block; font-size: 0.72rem; background: var(--accent);
  color: #fff; border-radius: 4px; padding: 1px 8px;
  margin-left: 8px; vertical-align: middle; font-style: normal;
}
.pub-tag.authority { background: #3a7ca5; }
.paper-row.hidden, .pub-year.hidden { display: none; }

/* ---------- 正文超链接：变色 + 下划线生长动效 ---------- */
.article p a:not(.btn), .article blockquote a, .prose a:not(.btn),
.teacher-info a, .paper-link, .article-nav a, .footer-grid p a {
  color: var(--primary);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat;
  background-position: left bottom;
  transition: color 0.2s, background-size 0.25s;
  padding-bottom: 1px;
}
.article p a:not(.btn):hover, .article blockquote a:hover, .prose a:not(.btn):hover,
.teacher-info a:hover, .paper-link:hover, .article-nav a:hover, .footer-grid p a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}
.footer-grid p a { color: #fff; }

/* ---------- 团队成员 ---------- */
.teacher-card {
  display: flex; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.teacher-photo {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--primary-light);
}
.teacher-info h3 { font-size: 1.2rem; }
.teacher-info .person-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 2px 0 8px; }
.teacher-info p { font-size: 0.9rem; color: var(--text-muted); }

.people-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px;
}
.person-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; transition: 0.2s;
  width: 200px;
}
.person-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person-photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px;
  border: 3px solid var(--primary-light);
}
.person-name { font-size: 1.05rem; font-weight: 600; }
.person-role { font-size: 0.82rem; color: var(--text-muted); }
.person-info { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* 校友列表 */
.alumni-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.alumni-list .alumni-where { color: var(--text-muted); }

/* ---------- 加入我们页：正文排版 ---------- */
.prose h3 {
  font-size: 1.25rem; margin: 36px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: #12273d; color: #c7d3e0; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px; padding: 56px 0 36px;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c7d3e0; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0; text-align: center;
  font-size: 0.82rem; color: #8ea1b5;
}

/* ---------- 提示条（用于"内容待补充"等提醒） ---------- */
.tip {
  background: #fff8e6; border: 1px solid #f0d78c; border-radius: 8px;
  padding: 12px 18px; font-size: 0.9rem; color: #8a6d1a; margin-bottom: 28px;
}

/* ---------- 新闻详情页正文 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: 1.6rem; line-height: 1.4; margin-bottom: 8px; }
.article-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article p { margin-bottom: 14px; }
.article img { border-radius: 8px; }
.figure { margin: 24px 0; text-align: center; }
.figure img { margin: 0 auto; border: 1px solid var(--border); border-radius: 8px; }
.figure figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.article-back { margin-top: 36px; text-align: center; }

/* ---------- 研究方向配图 ---------- */
.research-figure { margin-top: 16px; }
.research-figure img { border: 1px solid var(--border); border-radius: 8px; }
.research-figure figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; text-align: center; }

/* ---------- 数据下载页 ---------- */
.dataset-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px;
}
.dataset-item h3 { font-size: 1.05rem; }
.dataset-item .dataset-date { font-size: 0.82rem; color: var(--text-muted); }
.dataset-item p { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- 滚动渐入动画（给板块加 class="reveal" 即可） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 新闻详情页：元信息卡片 / 引用块 / 上一篇下一篇 ---------- */
.article-meta-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--primary-light); border-radius: 8px;
  padding: 10px 16px; font-size: 0.88rem; color: var(--primary-dark);
  margin-bottom: 28px;
}
.article blockquote {
  border-left: 4px solid var(--accent); background: #fdf6ea;
  padding: 14px 18px; margin: 18px 0; border-radius: 0 8px 8px 0;
  color: #6b5420;
}
.article h2 {
  font-size: 1.25rem; margin: 32px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--primary);
}
.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.article-nav a { max-width: 48%; }
.article-nav .next { margin-left: auto; text-align: right; }

/* ---------- 发表文章页：搜索 + 年份导航 ---------- */
.pub-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 28px;
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 50;
  box-shadow: var(--shadow);
}
.pub-search {
  flex: 1; min-width: 200px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.92rem; font-family: inherit;
}
.pub-search:focus { outline: none; border-color: var(--primary); }
.pub-years { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-year-chip {
  padding: 4px 12px; font-size: 0.82rem; border-radius: 20px;
  background: var(--bg-alt); color: var(--text-muted);
  cursor: pointer; border: 1px solid transparent; transition: 0.15s;
}
.pub-year-chip:hover { border-color: var(--primary); color: var(--primary); }
.pub-year-chip.active { background: var(--primary); color: #fff; }
.pub-count { font-size: 0.85rem; color: var(--text-muted); margin-left: auto; }
.pub-empty { display: none; text-align: center; color: var(--text-muted); padding: 40px 0; }
.pub-empty.show { display: block; }

/* ---------- 课题组介绍页：Logo墙 / 项目 / 荣誉 ---------- */
.about-logo-banner {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; margin-bottom: 32px;
}
.about-logo-banner img { max-width: 480px; margin: 0 auto; }
.project-list { counter-reset: proj; }
.project-item {
  position: relative; padding: 12px 0 12px 40px;
  border-bottom: 1px dashed var(--border); font-size: 0.95rem;
}
.project-item::before {
  counter-increment: proj; content: counter(proj);
  position: absolute; left: 0; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.project-item .proj-role {
  font-size: 0.75rem; border-radius: 4px; padding: 1px 8px; margin-left: 8px;
  background: var(--accent); color: #fff; vertical-align: middle;
}
.project-item .proj-role.member { background: #7a8a99; }
.award-list li {
  padding: 9px 0 9px 24px; position: relative; font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.award-list li::before {
  content: "🏆"; position: absolute; left: 0; font-size: 0.85rem;
}
.award-list .award-year { color: var(--primary); font-weight: 600; margin-right: 6px; }

/* ---------- 吉祥物 / 表情包 / 校园风采 ---------- */
.mascot-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center;
}
.mascot-img { width: 100%; animation: floatY 4s ease-in-out infinite; }
.sticker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px; margin-top: 20px;
}
.sticker-grid figure {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; text-align: center; transition: 0.2s;
}
.sticker-grid figure:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }
.sticker-grid img { width: 100%; border-radius: 6px; }
.sticker-grid figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.campus-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.campus-gallery img {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: var(--radius); transition: 0.25s;
}
.campus-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ---------- 数据下载页：左侧导航 + 右侧表格（仿 aslcfs 风格） ---------- */
.data-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px; align-items: start;
}
.data-sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.data-sidebar h3 {
  font-size: 0.95rem; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.data-tree li { margin-bottom: 2px; }
.data-tree a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 6px;
  font-size: 0.88rem; color: var(--text);
}
.data-tree a:hover { background: var(--primary-light); color: var(--primary); }
.data-tree a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.data-tree .tree-count { font-size: 0.75rem; color: var(--text-muted); }
.data-tree .tree-lv2 a { padding-left: 24px; font-size: 0.85rem; }

/* 筛选工具条 */
.data-filter-bar {
  display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr;
  gap: 12px; margin-bottom: 16px;
}
.data-filter-bar label {
  display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px;
}
.data-filter-bar select, .data-filter-bar input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.88rem; font-family: inherit; background: #fff;
}
.data-filter-bar select:focus, .data-filter-bar input:focus {
  outline: none; border-color: var(--primary);
}

/* 表格卡片 */
.data-table-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th {
  text-align: center; font-size: 0.85rem; font-weight: 600;
  padding: 12px 10px; border-bottom: 2px solid var(--border);
  background: var(--bg-alt); white-space: nowrap;
}
.data-table td {
  padding: 11px 10px; font-size: 0.88rem; text-align: center;
  border-bottom: 1px solid var(--border);
}
.data-table td.cell-file { text-align: left; word-break: break-all; }
.data-table tbody tr:hover { background: var(--primary-light); }
.data-table tbody tr.hidden { display: none; }
.btn-download {
  display: inline-block; padding: 4px 16px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 4px;
  font-size: 0.82rem; color: var(--text); transition: 0.15s;
  background-image: none !important;
}
.btn-download:hover {
  border-color: var(--primary); color: var(--primary);
  background-size: 0% 2px !important;
}
.data-table-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 0.85rem; color: var(--text-muted);
}
.data-empty { display: none; padding: 40px 0; text-align: center; color: var(--text-muted); }
.data-empty.show { display: block; }

/* ---------- 人员组成页：快速定位工具条 ---------- */
.people-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 8px;
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 50;
  box-shadow: var(--shadow);
}
.people-toolbar .toolbar-label { font-size: 0.88rem; color: var(--text-muted); margin-right: 4px; }
.people-section { scroll-margin-top: calc(var(--header-h) + 70px); }
/* 工具条吸顶（由 js 滚动监听添加 .fixed） */
.people-toolbar.fixed {
  position: fixed; top: var(--header-h); left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 40px)); z-index: 90;
}
.people-toolbar-placeholder { display: none; }
.people-toolbar-placeholder.on { display: block; }

/* ---------- 照片墙：人员风采网格（仿清华NLP：3:4竖版 + 悬停放大 + 人名变色） ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.photo-card { text-align: center; margin: 0; }
.photo-card .photo-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in; background: #f5f5f5;
}
.photo-card:hover .photo-img { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); }
.photo-name { margin-top: 8px; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.photo-card:hover .photo-name { color: var(--accent); }
@media (max-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- 照片墙：瀑布流（学术活动/纪念墙/团建） ---------- */
.masonry { columns: 260px 3; column-gap: 18px; }
.masonry-item { break-inside: avoid; margin: 0 0 18px; }
.masonry-item img {
  width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: zoom-in;
}
.masonry-item img:hover { transform: scale(1.03) rotate(-0.5deg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* ---------- 灯箱（点击照片全屏查看，支持滚轮缩放 + 拖拽平移） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.86);
  display: none; align-items: center; justify-content: center; padding: 40px;
  overflow: hidden;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform-origin: center center; transition: transform 0.15s ease;
  cursor: grab; user-select: none; -webkit-user-drag: none;
}
.lightbox img.grabbing { cursor: grabbing; transition: none; }
.lightbox-close {
  position: absolute; top: 16px; right: 28px; z-index: 10;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lightbox-zoom-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10;
  color: rgba(255, 255, 255, 0.7); font-size: 0.82rem;
  pointer-events: none; transition: opacity 0.5s;
}

/* ---------- 不可点击但带动效的"伪链接"文字（邮箱用） ---------- */
.fakelink {
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: left bottom;
  transition: color 0.2s, background-size 0.25s;
  padding-bottom: 1px; cursor: default;
}
.fakelink:hover { color: var(--accent); background-size: 100% 2px; }

/* ---------- 平板端导航（屏幕小于 1024px 时收起为汉堡菜单） ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}

/* ---------- 手机端适配（屏幕小于 860px 时生效） ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-mascot { width: 150px; }
  .mascot-grid { grid-template-columns: 1fr; text-align: center; }
  .mascot-img { max-width: 220px; margin: 0 auto; }
  .pub-toolbar { position: static; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .data-layout { grid-template-columns: 1fr; }
  .data-sidebar { position: static; }
  .data-filter-bar { grid-template-columns: 1fr 1fr; }
  .people-toolbar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .teacher-card { flex-direction: column; text-align: center; }
  .research-block { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-date { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 8px; text-align: left; display: flex; gap: 8px; align-items: baseline; }
}
