/* ============================================================
   2026-11 D · 设计打磨（全端通用）
   原则：只调节奏、层级与气质，不动结构、不改功能
   ============================================================ */

/* ---------- 顶部导航：更安静、更有秩序 ---------- */
.site-header { backdrop-filter: saturate(1.1) blur(10px); }
.main-nav { gap: 2px; }
.main-nav a {
  font-size: 13.5px;
  padding: 8px 11px;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease;
}
.main-nav a:hover { background: #f2f5fb; color: #1c2433; }
.main-nav a.active {
  background: #eef3ff;
  color: #1f4fb0;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(36, 95, 207, .1);
}
.main-nav .nav-drop-trigger.active { background: #eef3ff; color: #1f4fb0; font-weight: 600; }
.nav-caret { opacity: .55; transform: translateY(-1px); }

/* ---------- 右上角状态：像一句轻声的说明 ---------- */
.class-now { color: #6d7686; letter-spacing: .02em; }
.class-now i {
  background: #4fa88c;
  box-shadow: 0 0 0 4px rgba(79, 168, 140, .12), 0 0 0 1px rgba(79, 168, 140, .18);
}

/* ---------- 标题与正文：断行更自然，读起来顺 ---------- */
.page-title, .hero h1, .forum-hero h1, .campus-hero h1,
.party-hero h1, .auth-story h1, .guest-gate h1, .section-heading h2 {
  text-wrap: balance;
}
.page-description, .hero-subtitle, .forum-hero p, .campus-hero p,
.auth-story p, .guest-gate-card > p, .section-heading p {
  text-wrap: pretty;
}
.section-kicker { letter-spacing: .07em; }

/* ---------- 按钮：更轻的反馈，更明确的层级 ---------- */
.primary-button, .secondary-button, .blue-button {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button:hover, .blue-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36, 95, 207, .18);
}
.primary-button:active, .blue-button:active { transform: translateY(0); }

/* ---------- 卡片：同一套圆角与阴影语言 ---------- */
.card, .drive-card, .quick-card, .service-card, .cd-item {
  box-shadow: 0 1px 2px rgba(20, 35, 60, .03);
}

/* ---------- 页脚：一条安静的分界线 ---------- */
.site-footer { border-top: 1px solid rgba(217, 222, 232, .8); }
.footer-links a { letter-spacing: .01em; }
.footer-bottom { color: #8a93a3; }

/* ---------- 选中文字与滚动条：细节的一致性 ---------- */
::selection { background: rgba(36, 95, 207, .16); }
html { scrollbar-width: thin; scrollbar-color: #c9d3e3 transparent; }

/* 统一 hidden 语义：任何组件设了 display 也不能让 hidden 失效 */
[hidden] { display: none !important; }