/* ====================================================================
 * QDU Campus Guide - Main Stylesheet (Impeccable-grade refresh)
 * 设计方向：编辑感海岸游乐场 — 暖奶油底 + 自信海蓝/珊瑚 + 圆体中文字体
 * 注：网页字体通过各页面 <head> 中的非阻塞 <link> 加载（media=print swap），
 *     避免 Google Fonts 在国内被墙时阻塞首屏渲染导致白屏；加载失败则自动回退系统字体。
 * ==================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色（保留原有语义，加深层次） */
  --c-primary: #185a8d;
  --c-primary-light: #2a93b0;
  --c-primary-dark: #103b54;
  --c-secondary: #2bb6c4;
  --c-accent: #f4633f;
  --c-accent-light: #ff8a63;
  --c-success: #6fae1f;
  --c-warning: #f3a712;

  /* 暖调中性色（取代纯灰） */
  --c-bg: #fbf6ee;
  --c-bg-alt: #f3ebdd;
  --c-surface: #ffffff;
  --c-surface-2: #fdfaf4;
  --c-border: #ece2d2;
  --c-border-strong: #ddd0bb;
  --c-text: #18222c;
  --c-text-muted: #6a6258;
  --c-text-light: #9b9388;

  /* 板块专属强调色 */
  --c-section-food: #f4633f;
  --c-section-travel: #2bb6c4;
  --c-section-study: #185a8d;
  --c-section-freshman: #6fae1f;

  /* 字体：圆体中文字体用于标题，Noto 用于正文 */
  --ff-base: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ff-display: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;

  /* 流体字阶（clamp：marketing/内容页用） */
  --fs-display: clamp(2.4rem, 5.5vw, 3.6rem);
  --fs-h1: clamp(1.8rem, 3.4vw, 2.4rem);
  --fs-h2: clamp(1.4rem, 2.4vw, 1.8rem);
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* 间距（8px 网格） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* 阴影（更柔、更暖） */
  --sh-xs: 0 1px 2px rgba(24, 60, 84, 0.05);
  --sh-sm: 0 3px 12px rgba(24, 60, 84, 0.07);
  --sh-md: 0 8px 24px rgba(24, 60, 84, 0.09);
  --sh-lg: 0 18px 44px rgba(24, 60, 84, 0.13);
  --sh-xl: 0 32px 64px rgba(24, 60, 84, 0.18);

  /* 缓动（自然减速，绝不用回弹） */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --nav-h: 66px;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; border: none; background: none; padding: 0; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--sp-3); }

ul, ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }

table { border-collapse: collapse; width: 100%; margin: var(--sp-4) 0; }
th, td { padding: var(--sp-3); border: 1px solid var(--c-border); text-align: left; }
th { background: var(--c-bg-alt); font-weight: 700; }

/* ---------- 3. 工具类 ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-4); }
.container-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-4); }
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.flex { display: flex; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 滚动揭示（由 shared.js 触发；无 JS 时默认可见）
   注意：is-visible 的覆盖规则必须比 body.reveal-ready .reveal 优先级更高，
   否则一旦加上 reveal-ready，.reveal 区块会永远停在 opacity:0（即“下半屏空白”）。 */
.reveal { transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
body.reveal-ready .reveal { opacity: 0; transform: translateY(28px); }
body.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 4. 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease-out-quart), border-color .3s, background .3s;
}
.nav.scrolled {
  box-shadow: 0 6px 24px rgba(24, 60, 84, 0.08);
  border-bottom-color: var(--c-border);
  background: rgba(251, 246, 238, 0.92);
}

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.nav-brand { display: flex; align-items: center; gap: var(--sp-3); font-weight: 700; font-size: 1.05rem; color: var(--c-primary); }
.nav-brand img { height: 38px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
.nav-brand-text { line-height: 1.2; }
.nav-brand-text small { display: block; font-size: 11px; font-weight: 400; color: var(--c-text-muted); margin-top: 2px; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.nav-link.active { background: var(--c-primary); color: #fff; }

.nav-cta {
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(244, 99, 63, .34);
  transition: transform .2s var(--ease-out-quart), box-shadow .2s, background .2s;
}
.nav-cta:hover { background: var(--c-accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244, 99, 63, .42); }
.nav-cta:active { transform: translateY(0) scale(.97); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-md);
  align-items: center; justify-content: center; background: var(--c-bg-alt);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--c-text); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.95rem; font-weight: 700;
  border-radius: var(--r-md);
  background: var(--c-primary); color: #fff;
  transition: transform .18s var(--ease-out-quart), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0) scale(.97); }

.btn-accent { background: var(--c-accent); box-shadow: 0 6px 16px rgba(244, 99, 63, .32); }
.btn-accent:hover { background: var(--c-accent-light); box-shadow: 0 10px 22px rgba(244, 99, 63, .42); }

.btn-secondary { background: var(--c-surface); color: var(--c-text); border: 1.5px solid var(--c-border-strong); box-shadow: var(--sh-xs); }
.btn-secondary:hover { background: var(--c-bg-alt); color: var(--c-text); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-bg-alt); color: var(--c-primary); }

.btn-sm { padding: 7px 14px; font-size: 0.84rem; }

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform .3s var(--ease-out-quart), box-shadow .3s var(--ease-out-quart), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }

.card-cover {
  position: relative; width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-bg-alt), var(--c-border));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.9); overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover-pin {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--c-accent); color: #fff; padding: 4px 12px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 700; box-shadow: var(--sh-sm);
}
.card-cover-tag {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: rgba(255,255,255,0.94); color: var(--c-text); padding: 4px 12px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 700;
}

.card-body { padding: var(--sp-5); }
.card-title { font-size: 1.12rem; margin-bottom: var(--sp-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt { color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: var(--sp-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-size: 0.8125rem; color: var(--c-text-muted);
  border-top: 1px dashed var(--c-border); padding-top: var(--sp-3); }
.card-meta-row { display: flex; gap: var(--sp-2); align-items: center; }

/* ---------- 7. 徽章 / 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; padding: 3px 11px;
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 500;
  background: var(--c-bg-alt); color: var(--c-text-muted); border: 1px solid var(--c-border);
}
.tag-pri { background: rgba(24, 90, 141, 0.09); color: var(--c-primary); border-color: rgba(24, 90, 141, 0.18); }
.tag-acc { background: rgba(244, 99, 63, 0.10); color: var(--c-accent); border-color: rgba(244, 99, 63, 0.20); }
.tag-suc { background: rgba(111, 174, 31, 0.12); color: var(--c-success); border-color: rgba(111, 174, 31, 0.24); }
.tag-war { background: rgba(243, 167, 18, 0.13); color: var(--c-warning); border-color: rgba(243, 167, 18, 0.26); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; background: var(--c-primary); color: #fff; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }
.badge-accent { background: var(--c-accent); }
.badge-success { background: var(--c-success); }

/* ---------- 8. 区块标题 ---------- */
.section-title { font-size: var(--fs-h2); font-weight: 400; color: var(--c-text); margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: var(--sp-3); }
.section-title-icon {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  border-radius: var(--r-md); font-size: 1.5rem;
  background: rgba(24, 90, 141, 0.10); color: var(--c-primary);
  box-shadow: inset 0 0 0 1px rgba(24, 90, 141, 0.10);
}
.section-sub { color: var(--c-text-muted); margin-bottom: var(--sp-5); font-size: 0.95rem; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 460px at 88% -30%, rgba(244, 99, 63, 0.16), transparent 60%),
    radial-gradient(820px 420px at 6% -10%, rgba(43, 182, 196, 0.20), transparent 60%),
    linear-gradient(180deg, #fbf6ee 0%, #fdeede 100%);
  padding: var(--sp-8) 0 var(--sp-7);
  overflow: hidden;
}
/* 装饰海浪 */
.hero::before {
  content: '';
  position: absolute; left: -5%; right: -5%; bottom: -40px; height: 160px;
  background:
    radial-gradient(60px 60px at 10% 100%, rgba(43,182,196,0.18) 60%, transparent 62%),
    radial-gradient(80px 80px at 30% 100%, rgba(24,90,141,0.10) 60%, transparent 62%),
    radial-gradient(70px 70px at 55% 100%, rgba(244,99,63,0.12) 60%, transparent 62%),
    radial-gradient(90px 90px at 80% 100%, rgba(43,182,196,0.16) 60%, transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--sp-6); align-items: center; }

.hero-title {
  font-size: var(--fs-display); line-height: 1.16; margin-bottom: var(--sp-4);
  color: var(--c-primary-dark); letter-spacing: -0.01em;
}
.hero-title span {
  background: linear-gradient(120deg, var(--c-accent), var(--c-accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.05rem; color: var(--c-text-muted); margin-bottom: var(--sp-5); max-width: 560px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.hero-stats { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px dashed rgba(24,90,141,0.16); }
.hero-stat-num { font-family: var(--ff-display); font-size: 2rem; font-weight: 400; color: var(--c-primary); line-height: 1; letter-spacing: 0.01em; }
.hero-stat-label { font-size: 0.82rem; color: var(--c-text-muted); margin-top: 6px; }

.hero-card {
  position: relative; background: #fff; border-radius: var(--r-xl); padding: var(--sp-5);
  box-shadow: var(--sh-xl); border: 1px solid rgba(244, 99, 63, 0.16);
  transform: rotate(-1.4deg); transition: transform .4s var(--ease-out-quart);
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero-card-tag { display: inline-block; background: rgba(244, 99, 63, 0.12); color: var(--c-accent); padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; margin-bottom: var(--sp-3); }
.hero-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-3); }
.hero-card-list { list-style: none; padding: 0; margin: 0; }
.hero-card-list li { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--c-border); font-size: 0.9rem; }
.hero-card-list li:last-child { border-bottom: none; }
.hero-card-list .ic { width: 30px; height: 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* ---------- 10. 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--sp-5); }
.card-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* 板块入口卡片（首页用） */
.section-card {
  position: relative; display: block; padding: var(--sp-5);
  background: var(--c-surface); border-radius: var(--r-xl); border: 1px solid var(--c-border);
  overflow: hidden; transition: transform .3s var(--ease-out-quart), box-shadow .3s var(--ease-out-quart), border-color .3s;
  cursor: pointer;
}
.section-card::before {
  content: ''; position: absolute; top: 0; right: -20%; width: 70%; height: 100%;
  background: radial-gradient(closest-side, var(--accent, #185a8d), transparent 70%);
  opacity: 0.12; border-radius: 50%; transition: opacity .4s, transform .5s var(--ease-out-quart);
}
.section-card:hover { transform: translateY(-7px); border-color: transparent; box-shadow: var(--sh-lg); }
.section-card:hover::before { opacity: 0.26; transform: scale(1.25); }

/* 顶部色条强化板块身份 */
.section-card { border-top: 3px solid var(--accent, #185a8d); }

.section-card-icon {
  width: 58px; height: 58px; border-radius: var(--r-md);
  background: var(--accent, #185a8d); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
  margin-bottom: var(--sp-4); box-shadow: 0 8px 20px rgba(0,0,0,.10);
  transition: transform .3s var(--ease-out-quart);
}
.section-card:hover .section-card-icon { transform: scale(1.06) rotate(-3deg); }
.section-card h3 { font-size: 1.4rem; margin-bottom: var(--sp-2); position: relative; }
.section-card-desc { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: var(--sp-3); position: relative; line-height: 1.6; }
.section-card-link { font-size: 0.875rem; font-weight: 700; color: var(--accent, #185a8d); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 11. 页脚 ---------- */
.footer { margin-top: var(--sp-8); background: linear-gradient(180deg, #173142 0%, #0d1f2b 100%); color: rgba(255,255,255,0.86); padding: var(--sp-7) 0 var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-6); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img { height: 46px; background: rgba(255,255,255,0.92); padding: 6px; border-radius: var(--r-md); }
.footer-brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-brand-tag { font-size: 0.78rem; color: rgba(255,255,255,.6); }
.footer p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-title { font-size: 0.95rem; color: #fff; margin-bottom: var(--sp-3); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); font-size: 0.825rem; color: rgba(255,255,255,0.5); }

/* ---------- 12. 板块 Banner ---------- */
.page-banner {
  background:
    radial-gradient(900px 320px at 80% 30%, rgba(255, 220, 180, 0.5), transparent 60%),
    linear-gradient(120deg, var(--banner-c, var(--c-primary)) 0%, var(--banner-c2, var(--c-primary-light)) 100%);
  color: #fff; padding: var(--sp-7) 0 var(--sp-6); position: relative; overflow: hidden;
}
.page-banner::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; }
.page-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-5); }
.page-banner-icon { width: 72px; height: 72px; border-radius: var(--r-lg); background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; flex-shrink: 0; }
.page-banner h1 { color: #fff; font-size: 2rem; margin-bottom: var(--sp-2); }
.page-banner p { font-size: 1rem; opacity: 0.92; margin-bottom: 0; max-width: 720px; }

/* ---------- 13. 工具条 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-5); padding: var(--sp-4); background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-border); box-shadow: var(--sh-xs); }
.search-box { display: flex; align-items: center; gap: var(--sp-2); flex: 1; min-width: 240px; background: var(--c-bg-alt); border: 1px solid transparent; border-radius: var(--r-md); padding: 0 var(--sp-3); transition: all .2s; }
.search-box:focus-within { background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24,90,141,.12); }
.search-box input { flex: 1; border: none; background: none; outline: none; padding: 10px 0; font-size: 0.9rem; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.filter-tab { padding: 7px 15px; border-radius: var(--r-full); font-size: 0.825rem; font-weight: 600; background: var(--c-bg-alt); color: var(--c-text-muted); transition: all .2s; }
.filter-tab:hover { background: var(--c-border); color: var(--c-text); }
.filter-tab.active { background: var(--c-primary); color: #fff; }

/* ---------- 14. 文章详情页 ---------- */
.article-page { max-width: 820px; margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-7); }
.article-header { text-align: center; margin-bottom: var(--sp-6); }
.article-title { font-size: 2.1rem; line-height: 1.3; margin-bottom: var(--sp-3); }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); color: var(--c-text-muted); font-size: 0.875rem; }
.article-cover { width: 100%; aspect-ratio: 16/7; border-radius: var(--r-xl); background: var(--c-bg-alt); margin-bottom: var(--sp-6); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--c-text); }
.article-body h3 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.35rem; color: var(--c-primary); }
.article-body h4 { margin: var(--sp-5) 0 var(--sp-3); font-size: 1.15rem; color: var(--c-primary-dark); }
.article-body ul, .article-body ol { margin-bottom: var(--sp-4); }
.article-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--sp-4); color: var(--c-text-muted); font-size: 0.875rem; }
.article-back:hover { color: var(--c-primary); }

/* ---------- 15. 通用 ---------- */
.empty { padding: var(--sp-7) var(--sp-5); text-align: center; color: var(--c-text-muted); font-size: 0.95rem; }
.empty-icon { font-size: 3rem; margin-bottom: var(--sp-3); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(24, 34, 44, 0.95); color: #fff; padding: 11px 20px; border-radius: var(--r-full); font-size: 0.875rem; box-shadow: var(--sh-lg); z-index: 9999; animation: toast-in .25s var(--ease-out-quart); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(13, 31, 43, 0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); animation: fade-in .18s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--r-xl); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; animation: modal-in .28s var(--ease-out-expo); box-shadow: var(--sh-xl); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { padding: var(--sp-5) var(--sp-5) var(--sp-3); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-border); }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-close { width: 34px; height: 34px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--c-text-muted); background: var(--c-bg-alt); transition: background .2s; }
.modal-close:hover { background: var(--c-border); }
.modal-body { padding: var(--sp-5); }
.modal-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: var(--sp-2); }

/* 表单 */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: 0.825rem; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.75rem; color: var(--c-text-muted); margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: #fff; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); font-size: 0.9rem; transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24,90,141,.12); }
.field textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.checkbox-row { display: flex; align-items: center; gap: var(--sp-2); }
.checkbox-row input { width: auto; }

/* ---------- 15.5 视频号板块 ---------- */
.video-channel { text-align: center; }
.video-channel-header { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-2); flex-wrap: wrap; }
.video-channel-header .section-title { margin-bottom: 0; }
.video-channel .section-sub { max-width: 560px; margin: 0 auto var(--sp-5); }

.video-channel-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  text-align: left;
}

.video-channel-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s var(--ease-out-quart), box-shadow .2s;
  background: var(--c-bg-alt);
}

.video-channel-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.video-channel-img-wrap:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }

.video-channel-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--r-lg);
  background: #fff;
  padding: 8px;
}

.video-channel-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(24,34,44,0.78);
  color: #fff;
  font-size: 0.78rem;
  padding: 8px 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}

.video-channel-img-wrap:hover .video-channel-hint,
.video-channel-img-wrap:focus-visible .video-channel-hint {
  opacity: 1;
  transform: translateY(0);
}

.video-channel-info { display: flex; flex-direction: column; gap: var(--sp-3); }

.video-channel-name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--c-text);
}

.video-channel-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--c-border); padding: 2px; }

.video-channel-caption { color: var(--c-text-muted); line-height: 1.75; font-size: 1rem; margin: 0; }

/* 视频号二维码放大弹窗 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,43,0.72);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fade-in .2s;
}

.lightbox-content {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 420px;
  width: 100%;
  padding: var(--sp-5);
  text-align: center;
  box-shadow: var(--sh-xl);
  animation: modal-in .28s var(--ease-out-expo);
}

.lightbox-content img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-lg);
  background: #fff;
}

.lightbox-content p { margin: 0 0 var(--sp-2); color: var(--c-text); }

.lightbox-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.lightbox-close:hover { background: var(--c-border); color: var(--c-text); }

/* ---------- 16. 响应式 ---------- */
/* 关于我们区块（社团介绍）：桌面双栏，移动端由媒体查询切单栏 */
.about-split { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-5); align-items:center; }
.about-logo { height:200px; background:rgba(255,255,255,0.92); padding:24px; border-radius:var(--r-xl); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 1.6rem; }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner-icon { width: 56px; height: 56px; font-size: 1.8rem; }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; --sp-8: 56px; }

  .nav-links {
    position: absolute; top: 100%; right: 0; width: 250px;
    min-height: calc(100vh - var(--nav-h));
    flex-direction: column; align-items: stretch; padding: var(--sp-4);
    background: #fff; border-left: 1px solid var(--c-border); opacity: 1;
    transform: translateX(100%); transition: transform .28s var(--ease-out-quart);
    box-shadow: var(--sh-xl); gap: var(--sp-1); z-index: 101;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: var(--sp-3); border-radius: var(--r-md); text-align: left; }
  .nav-toggle { display: flex; }
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; }

  .hero { padding: var(--sp-6) 0 var(--sp-5); }
  .hero-stats { gap: var(--sp-4); }
  .card-grid, .card-grid-lg { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .page-banner { padding: var(--sp-5) 0; }
  .page-banner-inner { gap: var(--sp-3); }
  .field-row { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filter-tabs { overflow-x: auto; padding-bottom: 4px; }

  /* 移动端不隐藏关键功能：工具栏仍可横向滚动 */
  .search-box { min-width: 0; }

  /* 社团介绍区块移动端：单栏 + logo 缩小居中 */
  .about-split { grid-template-columns: 1fr; gap: var(--sp-4); }
  .about-logo { height: 152px; padding: 18px; margin: 0 auto; }

  /* 视频号板块移动端：单栏、二维码居中、信息居中 */
  .video-channel-card { grid-template-columns: 1fr; text-align: center; gap: var(--sp-4); padding: var(--sp-5); }
  .video-channel-img { max-width: 220px; margin: 0 auto; }
  .video-channel-info { align-items: center; }
  .video-channel-name { justify-content: center; }
  .video-channel-caption { text-align: center; }
  .lightbox-content { max-width: 340px; padding: var(--sp-4); }
}

/* ---------- 17. 招新报名弹窗 ---------- */
.recruit-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.recruit-form label { font-weight: 700; font-size: 0.825rem; display: block; margin-bottom: 4px; }
.recruit-form input, .recruit-form select, .recruit-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); background: #fff; }
.recruit-form input:focus, .recruit-form select:focus, .recruit-form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24,90,141,.12); }

/* ---------- 18. 加载/动画 ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up .6s var(--ease-out-expo) both; }
.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }

/* ---------- 19. 可达性：尊重减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* 必须盖过 body.reveal-ready .reveal，否则减弱动效用户也会看到下半屏空白 */
  body.reveal-ready .reveal,
  body.reveal-ready .reveal.is-visible { opacity: 1 !important; transform: none !important; }
}
