/* ==========================================================
   电气自动化学院心理健康咨询部 · 样式表
   ----------------------------------------------------------
   设计方向：企业官网。深青蓝主色块 + 金铜强调色，大字重无衬线，
   分区带左侧色条，卡片有厚度和悬停层级。
   想换品牌色，只改下面 :root 里的 --brand / --gold 两行就够了。
   ========================================================== */

:root {
  /* 品牌色：深青蓝。用在顶部条、首页大屏、页脚 */
  --brand:        #0b4a6f;
  --brand-deep:   #07304a;
  --brand-deeper: #05202f;
  --brand-soft:   #eaf2f7;
  --brand-line:   #cfe0eb;

  /* 强调色：金铜。用在按钮、数字、求助相关 */
  --gold:         #a97a2a;
  --gold-deep:    #8a6320;
  --gold-soft:    #fbf3e4;
  --gold-light:   #dcb158;
  --gold-line:    #ecdcbb;

  --ink:    #0c1a24;
  --ink-2:  #435665;
  --muted:  #7b8b98;

  --bg:      #f4f7f9;
  --surface: #ffffff;
  --line:    #e3e9ef;
  --line-2:  #ccd8e2;

  --danger:  #b03a2e;

  --radius:    8px;
  --radius-sm: 6px;
  --maxw:      1180px;

  --shadow-sm: 0 1px 2px rgba(12,26,36,.05);
  --shadow:    0 4px 16px -6px rgba(12,26,36,.14);
  --shadow-lg: 0 22px 48px -22px rgba(12,26,36,.34);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 表格里的数字等宽，看起来更整齐 */
  font-variant-numeric: tabular-nums;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brand); color: #fff; padding: 10px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------- 排版基调 ---------------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }

/* 小标签：字距拉开，配一条左侧粗色条——企业官网最常见的分区标记 */
.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em;
  color: var(--brand);
  margin: 0;
}
.kicker::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--brand); flex: none;
}
/* 深色背景上改用金铜色 */
.hero .kicker { color: var(--gold-light); }
.hero .kicker::before { background: var(--gold-light); }

/* ---------------- 顶栏 ---------------- */

.topbar {
  background: var(--brand-deeper);
  color: #9db4c4;
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar-inner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  min-height: 40px;
}
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item b { color: var(--gold-light); font-weight: 600; }
.topbar .tb-spacer { margin-left: auto; }

/* ---------------- 主菜单 ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-head.is-scrolled { box-shadow: 0 6px 24px -18px rgba(12,26,36,.5); }

/* 阅读进度：贴在菜单底边的一条金线，随滚动增长。整页范围的状态提示 */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-head.is-scrolled .scroll-progress { opacity: 1; }

.head-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 78px;
  transition: min-height .3s var(--ease);
}
.site-head.is-scrolled .head-inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: 13px; color: inherit; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 600; line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(11,74,111,.7);
  transition: background .3s var(--ease);
}
.brand:hover .brand-mark { background: var(--brand-deep); }

.brand-text { display: flex; flex-direction: column; line-height: 1.32; min-width: 0; }
.brand-name { font-weight: 600; font-size: 16.5px; color: var(--ink); }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.nav a {
  position: relative;
  padding: 10px 15px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--ink); font-size: 18px; line-height: 1;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px rgba(11,74,111,.9); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 14px 30px -14px rgba(11,74,111,.95); }

.btn-accent { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -14px rgba(169,122,42,.9); }
.btn-accent:hover { background: var(--gold-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }

/* 深色背景上的浅色描边按钮 */
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }

.btn-lg { padding: 16px 36px; font-size: 16.5px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- 首页大屏 ---------------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 58%, #0d5b85 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* 背景细网格：持续缓慢斜向漂移，让整块大屏一直是"活的" */
.hero::before {
  content: "";
  position: absolute; inset: -80px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 72%);
  animation: gridDrift 56s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 62px 62px, 62px 62px; }
}

/* 金色光晕：一边缓慢呼吸，一边跟着鼠标走。
   位移由 JS 逐帧平滑（所以这里不加 transition，否则会重一层、变迟钝）；
   呼吸只改透明度，跟位移的 transform 不冲突。 */
.hero::after {
  content: "";
  position: absolute; top: -240px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,177,88,.25) 0%, rgba(220,177,88,0) 66%);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  animation: glowPulse 9s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .72; }
  50%      { opacity: 1; }
}

.hero-inner { position: relative; z-index: 1; padding: 92px 26px 88px; }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 56px; align-items: center;
}

/* 大屏文字层：往下滚时比页面慢一点，并逐渐淡出——整页的视差感主要来自这里 */
.hero-copy {
  transform: translate3d(0, var(--hy, 0px), 0);
  opacity: var(--ho, 1);
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.9vw, 52px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 24px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }

.hero p.lead {
  font-size: 17px; line-height: 1.95;
  color: #c3d6e2; margin: 0 0 38px; max-width: 34em;
}

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

/* 大屏右侧的白色信息卡：深底 + 白卡的对比是企业官网最有效的一招 */
.help-card {
  background: #fff; color: var(--ink-2);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.help-card h2 {
  font-size: 17px; font-weight: 600; color: var(--ink);
  margin: 0 0 6px;
}
.help-card .hc-sub {
  font-size: 13px; color: var(--muted);
  margin: 0 0 22px; letter-spacing: .04em;
}
.help-card dl { margin: 0; }
.help-card .hc-row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.help-card .hc-row:last-of-type { border-bottom: 0; }
.help-card .hc-row .k {
  flex: none; width: 72px;
  font-size: 13px; color: var(--muted); letter-spacing: .06em;
}
.help-card .hc-row .v { flex: 1; font-size: 14.5px; color: var(--ink); }
.help-card .hc-hot {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.help-card .hc-hot .k { font-size: 13px; color: var(--muted); }
.help-card .hc-hot b {
  display: block; font-family: var(--mono);
  font-size: 27px; font-weight: 600; letter-spacing: .04em;
  color: var(--gold); line-height: 1.2;
}
.help-card .hc-hot small { font-size: 12.5px; color: var(--muted); }

/* ---------------- 数据带 ---------------- */

.statsband {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.statsband-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.statsband .stat {
  padding: 34px 6px 34px 28px;
  border-left: 1px solid var(--line);
}
.statsband .stat:first-child { border-left: 0; padding-left: 0; }
.statsband .stat b {
  display: block;
  font-size: 30px; font-weight: 700; line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--brand);
  margin-bottom: 6px;
}
.statsband .stat span { font-size: 13.5px; color: var(--muted); letter-spacing: .03em; }

/* ---------------- 区块 ---------------- */

.sec { padding: 84px 0; }
.sec + .sec { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: 44px; max-width: 46em; }
.sec-head h2 {
  font-size: clamp(25px, 3.1vw, 33px);
  line-height: 1.32; font-weight: 700; letter-spacing: -.02em;
  margin: 16px 0 14px;
}
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; }

.sec-foot { margin-top: 38px; }

/* ---------------- 卡片 ---------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* 鼠标在卡片上的位置决定轻微倾斜，配合 hover 抬起 */
  transform: perspective(1100px)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
             translateY(var(--lift, 0px));
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease),
              transform .45s var(--ease);
}
/* 顶部一条逐渐展开的品牌色，是卡片的主要悬停反馈 */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { --lift: -4px; }

.card h3 { font-size: 18px; margin: 0 0 11px; font-weight: 600; line-height: 1.5; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }

a.card:hover {
  text-decoration: none;
  border-color: var(--brand-line);
  box-shadow: var(--shadow-lg);
}

.card-num {
  font-family: var(--mono);
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  align-self: flex-start;
  margin-bottom: 18px;
}

/* ---------------- 内容卡（活动/科普） ---------------- */

.item-card { padding: 0; }
.item-cover { overflow: hidden; background: var(--brand-soft); }
.item-cover img {
  width: 100%; height: 196px; object-fit: cover;
  transition: transform .7s var(--ease);
}
.item-card:hover .item-cover img { transform: scale(1.06); }

.item-body { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; }

.item-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 15px;
}
.item-no {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; color: var(--brand);
}
.cover-type {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: var(--muted);
}
.cover-type::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 1px; background: var(--line-2); margin-right: 10px;
}
.item-body h3 {
  font-size: 18.5px; line-height: 1.5; font-weight: 600;
  margin: 0 0 11px;
  transition: color .25s var(--ease);
}
.item-card:hover .item-body h3 { color: var(--brand); }
.item-body .sum { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; flex: 1; }

.item-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 15px; border-top: 1px solid var(--line);
}
.item-body .meta {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted); letter-spacing: .04em;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: .02em;
}
.tag.accent { color: var(--gold-deep); background: var(--gold-soft); }

/* 职能组 / 工作原则 */
.group-card  { border-left: 3px solid var(--brand); }
.group-card h3 { font-size: 18px; }
.principle-card { border-left: 3px solid var(--gold); }
.principle-card h3 { font-size: 18px; }

/* ---------------- 信息表 ---------------- */

.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ledger-row {
  display: flex; gap: 24px; align-items: baseline;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .22s var(--ease);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: #fafcfd; }
.ledger-row .k {
  flex: none; width: 168px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: .05em;
}
.ledger-row .v { flex: 1; font-size: 15.5px; color: var(--ink-2); }
.ledger-row.is-hot { background: var(--brand-soft); }
.ledger-row.is-hot .v { color: var(--brand); font-weight: 600; }
.ledger-row.is-urgent { background: #fdf1ef; }
.ledger-row.is-urgent .v { color: var(--danger); font-weight: 600; }

/* ---------------- 「我们不做心理咨询」 ---------------- */

.boundary {
  margin-top: 44px; padding: 30px 34px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.boundary h2 { font-size: 21px; font-weight: 600; margin: 0 0 14px; color: var(--brand-deep); }
.boundary p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.boundary p:last-child { margin-bottom: 0; }
.boundary strong { color: var(--brand-deep); font-weight: 600; }

/* ---------------- 常见问题 ---------------- */

.faq-group { margin-bottom: 50px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group h2 {
  font-size: 20px; font-weight: 600;
  margin: 0 0 4px; padding-bottom: 15px;
  border-bottom: 2px solid var(--brand);
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.faq-group .faq-item:last-child,
.faq-list .faq-item:last-child { border-bottom: 0; }

.faq-q {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 17.5px; font-weight: 600; line-height: 1.55;
  margin: 0 0 12px; color: var(--ink);
}
.faq-q::before {
  content: "问"; flex: none;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: #fff; background: var(--brand);
  border-radius: 3px; padding: 3px 7px; line-height: 1;
  transform: translateY(-2px);
}
.faq-a { margin: 0; padding-left: 42px; color: var(--ink-2); font-size: 15px; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ---------------- 照片 ---------------- */

.photo { margin: 44px 0 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-cap { font-size: 12.5px; color: var(--muted); margin-top: 12px; letter-spacing: .05em; }
.group-photo img { max-height: 450px; object-fit: cover; }

/* ---------------- 提示条 ---------------- */

.alert {
  border-radius: var(--radius-sm); padding: 15px 20px; font-size: 14.5px;
  margin-bottom: 22px; border: 1px solid; border-left-width: 3px;
}
.alert-error { background: #fdf1ef; border-color: #efd2cd; border-left-color: var(--danger); color: var(--danger); }
.alert-ok    { background: var(--brand-soft); border-color: var(--brand-line); border-left-color: var(--brand); color: var(--brand-deep); }
.alert-warn  { background: var(--gold-soft); border-color: var(--gold-line); border-left-color: var(--gold); color: var(--gold-deep); }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; font-size: 15px; color: #6b4d18; line-height: 1.85;
}
.callout strong { color: var(--gold-deep); font-weight: 600; }

/* ---------------- 正文 ---------------- */

.prose { max-width: 40em; }
.prose h1 {
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.3;
  letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px;
}
.prose h2 { font-size: 22px; margin: 40px 0 12px; font-weight: 600; }
.prose p  { margin: 0 0 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.article-head { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line-2); }
.article-head .meta {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin-top: 12px; letter-spacing: .04em;
}

.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; letter-spacing: .04em; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filters a {
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  transition: all .22s var(--ease);
}
.filters a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.filters a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty {
  text-align: center; padding: 64px 24px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; background: var(--surface);
}

/* ---------------- 页脚 ---------------- */

.site-foot {
  background: var(--brand-deeper);
  color: #9db4c4;
  padding: 68px 0 0;
  font-size: 14px;
}
.site-foot a { color: #cfdfe9; }
.site-foot a:hover { color: #fff; text-decoration: none; }

.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; }
.foot-grid h4 {
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em;
  color: #6d8698; margin: 0 0 20px;
}
.foot-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.foot-brand .brand-mark { background: rgba(255,255,255,.14); box-shadow: none; }
.foot-brand strong { color: #fff; font-weight: 600; font-size: 17px; }
.foot-grid p { margin: 0 0 10px; line-height: 1.85; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 12px; }

.foot-hot {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.foot-hot b {
  display: block;
  font-family: var(--mono); font-size: 24px; font-weight: 600;
  letter-spacing: .06em; color: var(--gold-light);
  margin: 6px 0 8px;
}

.foot-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: #6d8698;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  letter-spacing: .04em;
  padding: 24px 0 30px;
}

/* ==========================================================
   动效
   ----------------------------------------------------------
   全部用 .has-js 打头：JS 没加载出来时内容照常显示。
   ========================================================== */

/* 入场用 translate 这个独立属性，不用 transform——
   这样卡片的 transform（鼠标倾斜 + 抬起）不会把入场位移挤掉。 */
.has-js .rise { opacity: 0; translate: 0 22px; }
.has-js .rise.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* 首屏：加载后依次升起 */
.has-js .hero-copy > * {
  opacity: 0; transform: translateY(18px);
  animation: riseIn .9s var(--ease) forwards;
}
.has-js .hero-copy > *:nth-child(1) { animation-delay: .04s; }
.has-js .hero-copy > *:nth-child(2) { animation-delay: .16s; }
.has-js .hero-copy > *:nth-child(3) { animation-delay: .28s; }
.has-js .hero-copy > *:nth-child(4) { animation-delay: .40s; }

/* 大标题单独一套：从模糊到清晰。整个首屏最重的一击 */
.has-js .hero-copy > h1 {
  animation-name: h1In;
  animation-duration: 1.15s;
}
@keyframes h1In {
  from { opacity: 0; transform: translateY(26px); filter: blur(12px); }
  55%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.has-js .help-card { animation: cardIn 1s var(--ease) .30s both; }

.has-js .topbar { animation: dropIn .6s var(--ease) both; }

@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes dropIn {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}

/* 数字滚动时不要跳版 */
.statsband .stat b { font-variant-numeric: tabular-nums; }

/* ---------------- 移动端 ---------------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { padding: 70px 26px 66px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .statsband-inner { grid-template-columns: repeat(2, 1fr); }
  .statsband .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .statsband .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .hero-inner { padding: 52px 20px 48px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .help-card { padding: 24px 22px; }
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .statsband-inner { grid-template-columns: 1fr; }
  .statsband .stat { border-left: 0; padding: 22px 0; }
  .statsband .stat:first-child { padding-top: 28px; }
  .statsband .stat + .stat { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }

  .help-card .hc-hot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .boundary { padding: 22px 20px; }
  .faq-a { padding-left: 0; }

  .topbar-inner { min-height: 36px; gap: 14px; font-size: 12px; }
  .topbar .tb-hide { display: none; }

  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 14px; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }

  .ledger-row { flex-direction: column; gap: 4px; padding: 15px 20px; }
  .ledger-row .k { width: auto; }
}

@media print {
  .topbar, .site-head, .site-foot, .hero-actions, .nav-toggle, .statsband { display: none; }
  .hero { background: #fff; color: var(--ink); }
  .hero h1, .hero h1 em { color: var(--ink); }
  body { background: #fff; }
}

/* ---------------- 无障碍 ---------------- */

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js .rise,
  .has-js .hero-copy > *,
  .has-js .help-card { opacity: 1 !important; transform: none !important; translate: none !important; }
  .hero-copy { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  .card { transform: none !important; }
}
