/* ==========================================================================
   此刻 · 我在 —— 站点样式
   结构：1. 设计令牌  2. 基底与装饰  3. 通用组件  4. 各页面  5. 响应式与动效
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  color-scheme: light;

  /* 色板（晨光） */
  --paper: #fbf6f1;
  --paper-2: #f6ece2;
  --ink: #3a332c;
  --ink-soft: #6f665c;
  --ink-faint: #a49888;

  --peach: #e0976a;
  --peach-deep: #c8754a;
  --peach-soft: #f8e6d5;
  --blush: #f0c9c2;
  --sage: #a9c8ab;
  --sage-deep: #6f9b74;
  --mist: #86a9c6;
  --mist-deep: #557d9e;
  --mist-soft: #e0edf5;

  /* 表面 */
  --card: rgba(255, 255, 255, 0.62);
  --card-strong: rgba(255, 255, 255, 0.86);
  --card-line: rgba(255, 255, 255, 0.75);
  --hairline: rgba(120, 95, 72, 0.14);
  --ring: rgba(224, 151, 106, 0.22);

  /* 危机提示 */
  --alert-bg: #fbe9e4;
  --alert-line: #eab9ad;
  --alert-ink: #9c4a3c;

  /* 阴影 */
  --shadow-sm: 0 6px 16px rgba(120, 90, 70, 0.08);
  --shadow-md: 0 16px 38px rgba(120, 90, 70, 0.12);
  --shadow-lg: 0 26px 60px rgba(112, 82, 62, 0.18);

  /* 形状与尺度 */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --maxw: 780px;
  --nav-h: 64px;

  /* 字体 */
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --grad-brand: linear-gradient(120deg, var(--peach) 0%, #e6b48c 42%, var(--mist) 100%);
  --grad-sage: linear-gradient(120deg, var(--sage) 0%, var(--mist) 100%);
  /* 实底控件专用：保证白色文字的两端都有足够对比度 */
  --grad-cta: linear-gradient(120deg, #e0976a 0%, #c8754a 72%, #ac5f39 100%);
  --on-cta: #ffffff;
}

/* 暮色主题 */
html[data-theme="dusk"] {
  color-scheme: dark;

  --paper: #17141d;
  --paper-2: #1d1826;
  --ink: #ece3d8;
  --ink-soft: #b7ac9e;
  --ink-faint: #a09382;

  --peach: #eaa87c;
  --peach-deep: #f2bd95;
  --peach-soft: rgba(234, 168, 124, 0.16);
  --blush: rgba(214, 148, 140, 0.3);
  --sage: #92b896;
  --sage-deep: #a6c9a9;
  --mist: #9cc0dc;
  --mist-deep: #b6d2e8;
  --mist-soft: rgba(156, 192, 220, 0.14);

  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.09);
  --card-line: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.1);
  --ring: rgba(234, 168, 124, 0.32);

  --alert-bg: rgba(196, 96, 78, 0.16);
  --alert-line: rgba(214, 120, 100, 0.42);
  --alert-ink: #f0b7a8;

  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.5);

  --grad-brand: linear-gradient(120deg, #eaa87c 0%, #d9a2c0 46%, #9cc0dc 100%);
  --grad-sage: linear-gradient(120deg, #92b896 0%, #9cc0dc 100%);
  --grad-cta: linear-gradient(120deg, #eaa87c 0%, #d9895a 72%, #c07a44 100%);
  --on-cta: #291d13;
}

/* ---------- 2. 基底与装饰 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.4s ease;
}

/* 渐变氛围层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(640px 620px at 8% -8%, rgba(240, 201, 194, 0.55), transparent 62%),
    radial-gradient(560px 560px at 96% 4%, rgba(200, 220, 240, 0.5), transparent 60%),
    radial-gradient(760px 700px at 84% 104%, rgba(169, 200, 171, 0.42), transparent 64%),
    radial-gradient(520px 520px at 2% 98%, rgba(248, 230, 213, 0.6), transparent 60%),
    linear-gradient(168deg, var(--paper) 0%, var(--paper-2) 52%, var(--paper) 100%);
  background-attachment: fixed;
}

html[data-theme="dusk"] body::before {
  background:
    radial-gradient(640px 620px at 10% -10%, rgba(120, 78, 96, 0.5), transparent 62%),
    radial-gradient(560px 560px at 92% 6%, rgba(58, 88, 124, 0.5), transparent 60%),
    radial-gradient(760px 700px at 82% 104%, rgba(52, 84, 68, 0.42), transparent 64%),
    radial-gradient(520px 520px at 4% 96%, rgba(122, 86, 58, 0.35), transparent 60%),
    linear-gradient(168deg, #15111b 0%, #1c1727 50%, #14121a 100%);
}

/* 极淡噪点，增加纸感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

html[data-theme="dusk"] body::after { opacity: 0.07; }

/* 漂移光球 */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; }
.orb-a {
  width: 340px; height: 340px; left: -70px; top: 6%;
  background: radial-gradient(circle, rgba(240, 201, 194, 0.9), transparent 70%);
  animation: drift 26s ease-in-out infinite;
}
.orb-b {
  width: 400px; height: 400px; right: -90px; top: 34%;
  background: radial-gradient(circle, rgba(200, 220, 240, 0.85), transparent 70%);
  animation: drift 32s ease-in-out infinite reverse;
}
.orb-c {
  width: 320px; height: 320px; left: 32%; bottom: -70px;
  background: radial-gradient(circle, rgba(169, 200, 171, 0.85), transparent 70%);
  animation: drift 30s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -30px) scale(1.06); }
}

/* ---------- 3. 通用组件 ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.4;
}

p { margin: 0 0 0.85em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

main, .footer { position: relative; z-index: 1; }

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s ease, background 0.4s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav { background: var(--paper); }
}
.nav.is-stuck { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(224, 151, 106, 0.35);
  flex: 0 0 auto;
}
.brand-mark svg { width: 16px; height: 16px; display: block; color: #fff; }
.brand-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: var(--peach-soft); }
.nav-links a.active { color: var(--peach-deep); background: var(--peach-soft); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--peach-deep);
}

.theme-toggle {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, color 0.3s, border-color 0.3s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); color: var(--peach-deep); border-color: var(--peach); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dusk"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dusk"] .theme-toggle .icon-sun { display: none; }

/* 区块 */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px 40px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section + .section { padding-top: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title { font-size: clamp(23px, 5.4vw, 28px); margin: 0 0 8px; }
.section-title .accent {
  background: linear-gradient(100deg, var(--peach-deep) 10%, var(--mist-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 54ch;
}
.text-soft { color: var(--ink-soft); font-size: 14px; }

/* 玻璃卡片 */
.glass {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="dusk"] .glass {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card-pad { padding: 24px 22px; }

/* 按钮 */
.btn {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s, background 0.28s, color 0.28s, box-shadow 0.28s, border-color 0.28s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-small { padding: 6px 14px; font-size: 13px; }

.btn-primary {
  background: var(--grad-cta);
  color: var(--on-cta);
  box-shadow: 0 10px 24px rgba(224, 151, 106, 0.36);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(224, 151, 106, 0.48); transform: translateY(-1px); }
.btn-primary:disabled {
  background: var(--hairline);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { color: var(--mist-deep); border-color: var(--mist); background: var(--mist-soft); }

/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mist-soft);
  color: var(--mist-deep);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-warm { background: var(--peach-soft); color: var(--peach-deep); }
.chip-sage { background: rgba(169, 200, 171, 0.22); color: var(--sage-deep); }

/* 入场动画（仅在 JS 可用时隐藏待淡入元素） */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in {
  animation: fadeUp 0.72s cubic-bezier(0.22, 0.7, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}

/* ---------- 4. 各页面 ---------- */

/* Hero */
.hero {
  position: relative;
  min-height: min(74vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 20px 60px;
}
.hero-art {
  position: absolute;
  inset: auto 0 -2px 0;
  height: 62%;
  z-index: 0;
  pointer-events: none;
}
.hero-art svg.hero-hills { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hill { transition: fill 0.5s ease; }
.hill-far { fill: rgba(240, 201, 194, 0.42); }
.hill-mid { fill: rgba(169, 200, 171, 0.38); }
.hill-near { fill: rgba(248, 230, 213, 0.72); }
html[data-theme="dusk"] .hill-far { fill: rgba(120, 78, 96, 0.5); }
html[data-theme="dusk"] .hill-mid { fill: rgba(58, 88, 124, 0.5); }
html[data-theme="dusk"] .hill-near { fill: rgba(30, 26, 42, 0.9); }

.hero-lamp .lamp-halo { fill: #fff4e2; opacity: 0.28; }
.hero-lamp .lamp-core { fill: #ffdf9e; }
html[data-theme="dusk"] .hero-lamp .lamp-halo { fill: #ffe9c2; opacity: 0.35; }
html[data-theme="dusk"] .hero-lamp .lamp-core { fill: #ffd98f; }
.hero-lamp { animation: lampGlow 6s ease-in-out infinite; transform-origin: 686px 276px; }
@keyframes lampGlow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hero-moon {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff8e9 0%, #fbe7c8 48%, rgba(251, 231, 200, 0) 72%);
  box-shadow: 0 0 70px 24px rgba(251, 231, 200, 0.45);
  opacity: 0.85;
}
html[data-theme="dusk"] .hero-moon {
  background: radial-gradient(circle at 38% 36%, #fff8e9 0%, #f3ddb4 46%, rgba(243, 221, 180, 0) 72%);
  box-shadow: 0 0 90px 30px rgba(243, 221, 180, 0.28);
  opacity: 0.95;
}

.hero-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--peach);
}
.hero-spark.s1 { left: 12%; top: 16%; }
.hero-spark.s2 { left: 26%; top: 8%; background: var(--mist); }
.hero-spark.s3 { right: 26%; top: 22%; background: var(--sage-deep); }
.hero-spark.s4 { right: 12%; top: 38%; }

.hero-moon { transform-origin: center; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-spark { animation: twinkle 4.5s ease-in-out infinite; }
.hero-spark.s2 { animation-delay: 1.1s; }
.hero-spark.s3 { animation-delay: 2.2s; }
.hero-spark.s4 { animation-delay: 3.3s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-card {
  max-width: 560px;
  padding: 40px 34px;
  border-radius: var(--radius-xl);
}
.hero-title {
  font-size: clamp(30px, 7.4vw, 46px);
  line-height: 1.32;
  margin: 0 0 14px;
}
.hero-title .hl {
  background-image: linear-gradient(transparent 68%, rgba(224, 151, 106, 0.26) 68%, rgba(134, 169, 198, 0.22) 94%, transparent 94%);
  padding: 0 2px;
}
html[data-theme="dusk"] .hero-title .hl {
  background-image: linear-gradient(transparent 68%, rgba(234, 168, 124, 0.26) 68%, rgba(156, 192, 220, 0.24) 94%, transparent 94%);
}
.hero-sub { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.entry-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px 22px 24px;
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(248, 230, 213, 0.34));
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
html[data-theme="dusk"] .entry-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.entry-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--peach);
}
.entry-card:hover::after { opacity: 1; }

.entry-index {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink-faint);
  opacity: 0.35;
  letter-spacing: 0;
}
.entry-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--peach-soft);
  color: var(--peach-deep);
  box-shadow: inset 0 0 0 1px rgba(224, 151, 106, 0.18);
}
.entry-icon svg { width: 22px; height: 22px; display: block; }
.entry-card:nth-child(2) .entry-icon { background: rgba(169, 200, 171, 0.24); color: var(--sage-deep); box-shadow: inset 0 0 0 1px rgba(111, 155, 116, 0.18); }
.entry-card:nth-child(3) .entry-icon { background: var(--mist-soft); color: var(--mist-deep); box-shadow: inset 0 0 0 1px rgba(134, 169, 198, 0.22); }
.entry-card:nth-child(4) .entry-icon { background: rgba(214, 168, 190, 0.2); color: #a26b8a; box-shadow: inset 0 0 0 1px rgba(162, 107, 138, 0.18); }
html[data-theme="dusk"] .entry-card:nth-child(4) .entry-icon { color: #d9a8c2; }

.entry-title { font-size: 18px; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.entry-title .arrow {
  font-size: 15px;
  color: var(--peach-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.entry-card:hover .arrow { opacity: 1; transform: none; }
.entry-desc { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.75; }

/* 承诺条 */
.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding: 20px 22px;
}
.promise-item { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.promise-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
  font-weight: 600;
}
.promise-item strong::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  vertical-align: 2px;
}

/* 热线 */
.emergency {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  background: var(--alert-bg);
  border: 1px solid var(--alert-line);
  color: var(--alert-ink);
  font-size: 14.5px;
}
.emergency-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(156, 74, 60, 0.12);
}
.emergency-icon svg { width: 18px; height: 18px; }
.emergency b { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; }
html[data-theme="dusk"] .emergency-icon { background: rgba(240, 183, 168, 0.14); }

.hotline-list { display: grid; gap: 12px; }
.hotline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  flex-wrap: wrap;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.3s;
}
.hotline-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--peach); }
.hotline-card.is-lead {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(248, 230, 213, 0.42)),
    var(--card);
  border-color: var(--peach);
}
html[data-theme="dusk"] .hotline-card.is-lead {
  background: linear-gradient(140deg, rgba(234, 168, 124, 0.14), rgba(255, 255, 255, 0.04));
}
.hotline-info { flex: 1 1 240px; min-width: 0; }
.hotline-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hotline-hours { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.hotline-action { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hotline-number {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--mist-deep);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed rgba(134, 169, 198, 0.6);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.hotline-number:hover { color: var(--peach-deep); border-color: var(--peach); }
.site-note {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.03em;
}

/* 树洞 */
.treehole-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--mist-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin: 0 0 16px;
  line-height: 1.7;
}
.treehole-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 5px; color: var(--mist-deep); }
.treehole-compose { position: relative; }
.chat-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  background: var(--card-strong);
  resize: none;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat-input::placeholder { color: var(--ink-faint); }
.chat-input:focus { border-color: var(--peach); box-shadow: 0 0 0 4px var(--ring); }
.treehole-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.treehole-hint { font-size: 13px; color: var(--alert-ink); margin-right: auto; line-height: 1.6; }
.treehole-count { font-size: 12px; color: var(--ink-faint); margin-left: auto; font-variant-numeric: tabular-nums; }

.treehole-list { display: grid; gap: 12px; margin-top: 22px; }
.treehole-item {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 14px 20px;
}
.treehole-item::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-brand);
  opacity: 0.7;
}
.treehole-text {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.85;
  white-space: pre-line;
  word-break: break-word;
}
.treehole-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.treehole-time { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.treehole-hug {
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--peach-deep);
  background: var(--peach-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.25s, background 0.25s;
}
.treehole-hug svg { width: 14px; height: 14px; }
.treehole-hug:hover { border-color: var(--peach); }
.treehole-hug:active { transform: scale(0.94); }
.treehole-hug.is-hugged { animation: hugPop 0.42s ease; }
@keyframes hugPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.treehole-empty {
  text-align: center;
  padding: 26px 0 30px;
  color: var(--ink-faint);
  font-size: 14px;
}
.treehole-empty svg { width: 54px; height: 54px; display: block; margin: 0 auto 10px; opacity: 0.55; }

/* 评测 */
.assessment-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--card-strong);
  border: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.tab {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tab:hover { color: var(--ink); }
.tab-active {
  background: var(--grad-cta);
  color: var(--on-cta);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 151, 106, 0.3);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}
.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-sage);
  transition: width 0.45s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.assessment-intro {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 10px 0 18px;
  letter-spacing: 0.02em;
}

.question {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.question:first-child { border-top: none; padding-top: 0; }
.question.is-answered .question-text { color: var(--ink); }
.question-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.q-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--peach-deep);
  background: var(--peach-soft);
  border-radius: 8px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}
.question-text { font-size: 15.5px; margin: 0; line-height: 1.7; color: var(--ink-soft); transition: color 0.25s; }
.question-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.option {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--card-strong);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.option:hover { border-color: var(--peach); transform: translateY(-1px); }
.option[aria-pressed="true"] {
  background: var(--grad-cta);
  color: var(--on-cta);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(224, 151, 106, 0.32);
}

.assessment-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.assessment-result {
  margin-top: 20px;
  padding: 22px 20px;
  background: var(--card-strong);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s ease both;
}
.result-head { display: flex; align-items: center; gap: 20px; }
.score-ring { position: relative; flex: 0 0 auto; width: 116px; height: 116px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { stroke: var(--hairline); }
.ring-fg {
  stroke: var(--peach);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 0.7, 0.3, 1), stroke 0.4s ease;
  filter: drop-shadow(0 2px 6px rgba(224, 151, 106, 0.35));
}
.score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}
.score-num strong { font-family: var(--font-display); font-size: 30px; color: var(--ink); }
.score-num span { font-size: 12px; color: var(--ink-faint); }
.result-summary { flex: 1; min-width: 0; }
.result-score { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 4px; }
.result-label {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--peach-deep);
  font-weight: 600;
  margin: 0 0 8px;
}
.result-desc { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.85; }

.level-scale {
  display: flex;
  gap: 4px;
  margin-top: 18px;
}
.level-seg {
  flex-grow: 1;
  flex-basis: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  padding: 7px 2px;
  border-radius: 10px;
  background: var(--hairline);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.level-seg.is-active {
  background: var(--grad-cta);
  color: var(--on-cta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.level-seg .lv-range { display: block; font-variant-numeric: tabular-nums; opacity: 0.85; }
.level-seg .lv-name { display: block; font-weight: 600; }

.crisis-box {
  margin-top: 16px;
  background: var(--alert-bg);
  border: 1px solid var(--alert-line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-size: 14px;
  color: var(--alert-ink);
  white-space: pre-line;
  line-height: 1.8;
}
.result-disclaimer {
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--hairline);
  padding-top: 12px;
  margin: 16px 0 0;
  line-height: 1.75;
}

/* 作者简介 */
.bio-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 22px;
}
.bio-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 104px; height: 104px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bio-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(224, 151, 106, 0.4);
}
.bio-avatar svg { width: 100%; height: 100%; display: block; }
.bio-intro { flex: 1; min-width: 0; }
.bio-intro p { font-size: 15px; color: var(--ink); margin: 0 0 0.7em; line-height: 1.9; }
.bio-intro p:last-child { margin-bottom: 0; }

.bio-placeholder {
  margin: 18px 0 22px;
  padding: 30px 22px;
  border: 1.5px dashed rgba(224, 151, 106, 0.45);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--card-strong), rgba(248, 230, 213, 0.22));
  text-align: center;
}
html[data-theme="dusk"] .bio-placeholder { background: var(--card); }
.bio-placeholder-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.bio-footnote { text-align: center; font-size: 14.5px; color: var(--ink-soft); }
.bio-link {
  color: var(--peach-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 117, 74, 0.5);
  padding-bottom: 1px;
}
.bio-link:hover { color: var(--peach); }

/* 页脚 */
.footer {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 56px;
  text-align: center;
}
.footer-wave {
  height: 44px;
  margin-bottom: 16px;
  opacity: 0.55;
}
.footer-wave svg { width: 100%; height: 100%; display: block; }
.footer-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.footer-sub {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0 0 14px;
  letter-spacing: 0.14em;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
}
.to-top:hover { color: var(--peach-deep); border-color: var(--peach); background: var(--peach-soft); transform: translateY(-2px); }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--card-strong);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 5. 响应式与动效 ---------- */
@media (max-width: 620px) {
  .nav-inner { flex-wrap: wrap; padding: 8px 16px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13.5px; white-space: nowrap; }
  .brand-text { font-size: 16px; }
  .section { padding: 40px 16px 32px; scroll-margin-top: 112px; }
  .hero { min-height: 58vh; padding: 28px 16px 44px; }
  .hero-card { padding: 30px 22px 32px; }
  .entry-grid { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; gap: 12px; }
  .question-options { grid-template-columns: repeat(2, 1fr); }
  .hotline-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hotline-action { width: 100%; justify-content: space-between; }
  .result-head { flex-direction: column; align-items: center; text-align: center; }
  .bio-head { flex-direction: column; text-align: center; }
  .level-scale { flex-wrap: wrap; }
  .level-seg { min-width: 58px; }
  .assessment-tabs { width: 100%; justify-content: center; }
}

@media (min-width: 900px) {
  .section { padding: 68px 24px 48px; }
  .hero { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; }
  .js [data-reveal] { opacity: 1; }
}

@media print {
  .nav, .theme-toggle, .footer-wave { display: none; }
}
