/* ============================================================
   探险家族 · 设计系统 v2.0
   「被阳光晒过的颜色」—— 大地疗愈色系 × 手工纸感
   ============================================================ */

:root {
  /* 大地色板 */
  --courage:   #B85450;   /* 勇气红 */
  --courage-d: #9A423E;
  --nature:    #7A8B5C;   /* 自然绿 */
  --nature-d:  #5F7048;
  --wisdom:    #5A6B7A;   /* 智慧蓝 */
  --wisdom-d:  #47565F;
  --earth:     #C4A265;   /* 大地黄 */
  --earth-d:   #A9884C;
  --parchment: #F2EDE4;   /* 羊皮纸 */
  --fog:       #FAF8F5;   /* 雾白 */
  --ink:       #3D3229;   /* 深褐 */
  --ink-soft:  #8C7E6E;   /* 灰褐 */
  --ink-faint: #BCAEA0;

  /* 紧急度 */
  --urgent-red:    #C05B4D;
  --urgent-yellow: #D9A441;
  --urgent-blue:   #6B8FA3;

  --shadow-paper: 0 1px 2px rgba(61,50,41,.06), 0 4px 14px rgba(61,50,41,.08), 0 12px 34px rgba(61,50,41,.07);
  --shadow-lift:  0 2px 4px rgba(61,50,41,.08), 0 10px 28px rgba(61,50,41,.13), 0 24px 60px rgba(61,50,41,.12);

  --font-hand: 'Ma Shan Zheng', 'Zhi Mang Xing', cursive;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius-card: 20px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(196,162,101,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(122,139,92,.10), transparent 60%),
    linear-gradient(180deg, #F6F1E7 0%, var(--parchment) 40%, #EDE6D9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* 全局纸纹颗粒 */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
  z-index: 9990;
  mix-blend-mode: multiply;
}

::selection { background: rgba(184,84,80,.25); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ============ 字体层级 ============ */
.hand { font-family: var(--font-hand); font-weight: 400; }
.serif { font-family: var(--font-serif); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.35; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .28em; font-weight: 600;
  color: var(--courage); text-transform: uppercase;
}
.eyebrow::before, .eyebrow.center::after {
  content: ''; width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--courage) 0 6px, transparent 6px 10px);
  opacity: .7;
}
.eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 14px 0 12px;
}
.section-sub { color: var(--ink-soft); max-width: 620px; font-size: 16px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ============ 布纽扣按钮 ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  border: none; border-radius: 18px;
  font-size: 16px; font-weight: 700; color: #FFF9F0;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  box-shadow: 0 3px 0 var(--btn-dark, var(--courage-d)), 0 10px 24px rgba(61,50,41,.16);
  background: var(--btn-bg, var(--courage));
}
.btn::after { /* 缝线 */
  content: ''; position: absolute; inset: 5px;
  border: 1.5px dashed rgba(255,249,240,.45);
  border-radius: 13px; pointer-events: none;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--btn-dark, var(--courage-d)), 0 18px 34px rgba(61,50,41,.2); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--btn-dark, var(--courage-d)); }

.btn-green  { --btn-bg: var(--nature); --btn-dark: var(--nature-d); }
.btn-blue   { --btn-bg: var(--wisdom); --btn-dark: var(--wisdom-d); }
.btn-earth  { --btn-bg: var(--earth);  --btn-dark: var(--earth-d); }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink-faint);
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-soft); background: rgba(255,255,255,.4); }

.btn-lg { padding: 19px 42px; font-size: 18px; border-radius: 22px; }
.btn-lg::after { border-radius: 16px; }

/* ============ 顶部导航：毛毡悬浮条 ============ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, 94vw);
  z-index: 1000;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 22px;
  border-radius: 20px;
  background: rgba(250,248,245,.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow-paper), inset 0 0 0 1.5px rgba(61,50,41,.08);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(61,50,41,.1); }

.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; font-family: var(--font-serif); }
.nav-logo .badge {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--courage);
  display: grid; place-items: center;
  box-shadow: 0 3px 0 var(--courage-d), inset 0 0 0 2px rgba(255,249,240,.3);
  transform: rotate(-4deg);
}
.nav-logo .badge svg { width: 24px; height: 24px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: all .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: rgba(196,162,101,.16); }
.nav-links a.active { color: var(--courage); background: rgba(184,84,80,.1); }

.nav-sos {
  padding: 10px 18px; border-radius: 13px;
  background: var(--courage); color: #FFF9F0 !important;
  font-weight: 700; box-shadow: 0 2px 0 var(--courage-d);
}
.nav-links a.nav-sos, .nav-links a.nav-sos.active { background: var(--courage); color: #FFF9F0 !important; }
.nav-sos:hover { transform: translateY(-1px); }

.nav-burger { display: none; margin-left: auto; background: none; border: none; padding: 8px; }
.nav-burger svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 920px) {
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; padding: 14px;
    background: rgba(250,248,245,.97); border-radius: 18px;
    box-shadow: var(--shadow-lift);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}

/* ============ 纸张卡片 ============ */
.card {
  position: relative;
  background: var(--fog);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper), inset 0 0 0 1.5px rgba(61,50,41,.07);
  padding: 30px;
  transition: transform .28s cubic-bezier(.34,1.4,.64,1), box-shadow .28s;
}
.card::before { /* 纸纹 */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background-image: var(--grain); opacity: .04; pointer-events: none;
}
.card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(61,50,41,.09); }

/* 胶带 */
.tape {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 26px;
  background: rgba(196,162,101,.42);
  border-left: 1.5px dashed rgba(255,255,255,.55);
  border-right: 1.5px dashed rgba(255,255,255,.55);
  box-shadow: 0 2px 5px rgba(61,50,41,.08);
  pointer-events: none;
}

/* 缝线边框 */
.stitched { position: relative; }
.stitched::after {
  content: ''; position: absolute; inset: 9px;
  border: 2px dashed rgba(140,126,110,.32);
  border-radius: calc(var(--radius-card) - 9px);
  pointer-events: none;
}

/* ============ 首屏 Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 480px at 70% 12%, rgba(245,203,167,.4), transparent 65%),
    radial-gradient(800px 400px at 15% 20%, rgba(168,216,234,.22), transparent 60%),
    linear-gradient(180deg, #F8F3E9 0%, var(--parchment) 55%, #E9E0D0 100%);
}
.hero-contours { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.hero-cloud { position: absolute; opacity: .75; animation: drift 46s linear infinite; }
.hero-cloud.c2 { animation-duration: 64s; animation-delay: -30s; opacity: .55; }
.hero-cloud.c3 { animation-duration: 80s; animation-delay: -55s; opacity: .4; }
@keyframes drift { from { transform: translateX(-15vw); } to { transform: translateX(115vw); } }

.hero-inner {
  position: relative; z-index: 5;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 5vw 260px;
}
.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.25;
  letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(255,255,255,.6);
}
.hero-title .accent { color: var(--courage); position: relative; white-space: nowrap; }
.hero-title .accent svg { position: absolute; left: -2%; bottom: -8px; width: 104%; height: 16px; }
.hero-sub {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 18px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }

/* 角色舞台 */
.hero-stage {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: min(46vh, 420px);
  z-index: 4; pointer-events: none;
}
.hero-ground {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: min(1060px, 110vw);
}
.hero-char {
  position: absolute; bottom: 8px;
  filter: drop-shadow(0 14px 18px rgba(61,50,41,.22));
  animation: breathe 5.2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%      { transform: translateY(-9px) rotate(.6deg) scale(1.012); }
}
.hero-char.hc-oliver { left: calc(50% - 380px); width: 142px; animation-delay: -1.2s; z-index: 3; }
.hero-char.hc-sprout { left: calc(50% - 235px); width: 168px; animation-delay: -3s; z-index: 4; }
.hero-char.hc-rocky  { left: 50%; transform: translateX(-50%); width: 218px; z-index: 5; animation-delay: -2s; }
.hero-char.hc-zephyr { left: calc(50% + 128px); width: 158px; animation-delay: -4.1s; z-index: 4; }

.hero-mist {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px; z-index: 6;
  background: linear-gradient(180deg, transparent, rgba(242,237,228,.9) 75%);
  pointer-events: none;
}
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 8; color: var(--ink-soft); font-size: 12px; letter-spacing: .3em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll::after {
  content: ''; width: 1.5px; height: 34px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero-char.hc-oliver { left: 3%; width: 96px; }
  .hero-char.hc-sprout { left: 19%; width: 118px; }
  .hero-char.hc-rocky  { width: 152px; }
  .hero-char.hc-zephyr { left: auto; right: 3%; width: 112px; }
  .hero-inner { padding-bottom: 240px; }
}

/* ============ 信任缎带 ============ */
.ribbon {
  position: relative; z-index: 7;
  background: var(--ink);
  color: #EDE4D3;
  overflow: hidden;
  padding: 15px 0;
  transform: rotate(-1.1deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(61,50,41,.2);
}
.ribbon-track { display: flex; gap: 64px; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon-item { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .06em; }
.ribbon-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--earth); }
.ribbon-item b { color: #F5CBA7; font-family: var(--font-serif); }

/* ============ 区块 ============ */
.section { position: relative; padding: 110px 0; }

/* 价值卡 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.value-card { text-align: left; overflow: visible; }
.value-icon {
  width: 66px; height: 66px; border-radius: 20px;
  display: grid; place-items: center;
  margin-bottom: 20px; transform: rotate(-4deg);
  box-shadow: 0 3px 0 rgba(61,50,41,.15), inset 0 0 0 2px rgba(255,249,240,.35);
}
.value-icon svg { width: 34px; height: 34px; }
.value-card h3 { font-size: 21px; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 15px; }
.value-card .meta { margin-top: 16px; font-size: 13px; color: var(--ink-faint); letter-spacing: .1em; }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* ============ 角色家族 ============ */
.family-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 56px; }
.family-card { padding: 22px 16px 26px; text-align: center; }
.family-card .avatar-ring {
  position: relative; width: 128px; height: 128px; margin: 6px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDF8, var(--ring, #EFE6D6));
  box-shadow: inset 0 0 0 2px rgba(61,50,41,.08), 0 8px 20px rgba(61,50,41,.1);
}
.family-card .avatar-ring img {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  height: 118%; width: auto; max-width: none;
  filter: drop-shadow(0 6px 8px rgba(61,50,41,.18));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.family-card:hover .avatar-ring img { transform: translateX(-50%) translateY(-6px) scale(1.05); }
.family-card h3 { font-size: 19px; }
.family-card .role { font-size: 12.5px; color: var(--ring-t, var(--courage)); letter-spacing: .14em; font-weight: 700; margin: 3px 0 9px; }
.family-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

@media (max-width: 1000px) { .family-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .family-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ 双轨内容 ============ */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dual-panel { position: relative; border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-paper); }
.dual-panel.kid { background: linear-gradient(160deg, #FDF9F1, #F7F0E2); border: 2px solid rgba(196,162,101,.4); }
.dual-panel.parent { background: linear-gradient(160deg, #F4F6F7, #EBEFF1); border: 2px solid rgba(90,107,122,.28); }
.dual-panel .who {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.dual-panel.kid .who { background: rgba(196,162,101,.2); color: var(--earth-d); }
.dual-panel.parent .who { background: rgba(90,107,122,.14); color: var(--wisdom); }
@media (max-width: 860px) { .dual { grid-template-columns: 1fr; } }

/* 角色对话气泡 */
.bubble {
  position: relative;
  background: #fff;
  border-radius: 16px; border-bottom-left-radius: 4px;
  padding: 14px 18px; margin: 0 0 14px 52px;
  font-size: 15px; line-height: 1.75;
  box-shadow: 0 2px 8px rgba(61,50,41,.07), inset 0 0 0 1.5px rgba(61,50,41,.06);
}
.bubble .speaker {
  position: absolute; left: -52px; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--fog);
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.1);
  overflow: hidden;
}
.bubble .speaker img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bubble .who-name { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--courage); margin-bottom: 4px; }

/* ============ 标签 / 徽章 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  background: var(--fog);
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.1), 0 2px 6px rgba(61,50,41,.05);
  transition: all .2s;
  cursor: pointer;
}
.tag:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.16), 0 6px 14px rgba(61,50,41,.1); }
.tag .dot { width: 9px; height: 9px; border-radius: 50%; }
.tag.red .dot { background: var(--urgent-red); }
.tag.yellow .dot { background: var(--urgent-yellow); }
.tag.blue .dot { background: var(--urgent-blue); }

.chip {
  display: inline-block; padding: 4px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
}
.chip.red    { background: rgba(192,91,77,.13);  color: var(--urgent-red); }
.chip.yellow { background: rgba(217,164,65,.15); color: #A97B1F; }
.chip.blue   { background: rgba(107,143,163,.14); color: var(--urgent-blue); }
.chip.green  { background: rgba(122,139,92,.14); color: var(--nature-d); }

/* ============ 搜索 ============ */
.search-hero {
  position: relative;
  display: flex; align-items: center;
  background: var(--fog);
  border-radius: 22px;
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(196,162,101,.45);
  padding: 8px 8px 8px 26px;
  max-width: 720px; margin: 0 auto;
}
.search-hero input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 17px; font-family: inherit; color: var(--ink); padding: 14px 0;
}
.search-hero input::placeholder { color: var(--ink-faint); }
.search-hero .btn { border-radius: 16px; padding: 14px 26px; }

/* ============ SOS 卡片 ============ */
.sos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sos-card { cursor: pointer; padding: 26px; }
.sos-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sos-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.sos-card p { font-size: 14px; color: var(--ink-soft); }
.sos-card .guardian {
  display: flex; align-items: center; gap: 9px; margin-top: 18px;
  font-size: 13px; color: var(--ink-soft);
}
.sos-card .guardian img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top;
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.12); background: #fff;
}
@media (max-width: 960px) { .sos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sos-grid { grid-template-columns: 1fr; } }

/* ============ 页头（内页） ============ */
.page-head {
  position: relative;
  padding: 170px 0 70px;
  text-align: center;
  overflow: hidden;
}
.page-head .deco { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 60px); font-family: var(--font-hand); letter-spacing: .03em; }
.page-head .sub { color: var(--ink-soft); margin-top: 14px; max-width: 600px; margin-inline: auto; }

/* ============ 成长地图 ============ */
.map-shell {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(700px 300px at 30% 20%, rgba(168,216,234,.18), transparent 60%),
    linear-gradient(165deg, #F4EEE1, #EAE1CE);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(61,50,41,.08);
  overflow-x: auto;
  padding: 34px;
}
.map-svg { min-width: 1060px; width: 100%; display: block; }
.map-node { cursor: pointer; transition: transform .25s; transform-origin: center; transform-box: fill-box; }
.map-node:hover { transform: scale(1.1); }
.map-node .pulse { animation: nodepulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 0%,100% { opacity: .35; transform: scale(1);} 50% { opacity: .8; transform: scale(1.35);} }

.map-legend { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ============ 话题生成器 ============ */
.topic-machine {
  position: relative; text-align: center;
  padding: 54px 34px 46px;
  border-radius: 28px;
  background: linear-gradient(165deg, #FBF6EC, #F2E9D8);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(196,162,101,.4);
  overflow: hidden;
}
.topic-card-face { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.topic-card-face .t-title { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.topic-card-face .t-meta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.slot-shake { animation: slotshake .5s ease; }
@keyframes slotshake {
  0%,100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-8px) rotate(-1.2deg); }
  45% { transform: translateY(4px) rotate(1deg); }
  70% { transform: translateY(-3px) rotate(-.6deg); }
}
.diff-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.diff-btn {
  padding: 10px 22px; border-radius: 999px; border: none;
  background: transparent; font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
  box-shadow: inset 0 0 0 2px rgba(61,50,41,.14);
  transition: all .2s;
}
.diff-btn.on { background: var(--ink); color: #F5EEE0; box-shadow: 0 3px 0 rgba(61,50,41,.4); }

/* ============ 脚本卡 ============ */
.script-card { padding: 28px; }
.script-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1.5px dashed rgba(61,50,41,.14); font-size: 15px; }
.script-row:first-of-type { border-top: none; }
.script-row .mark { font-weight: 900; font-size: 17px; }
.script-row.no .mark { color: var(--urgent-red); }
.script-row.yes .mark { color: var(--nature-d); }
.script-row.why .mark { color: var(--earth-d); }

/* ============ 任务卡弹层 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(61,50,41,.45);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 5vw;
}
.modal-mask.show { display: flex; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.task-card {
  position: relative; width: min(520px, 100%);
  background: var(--fog); border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-lift);
  animation: popin .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popin { from { transform: translateY(26px) scale(.95); opacity: 0; } }
.task-card h3 { font-size: 22px; margin-bottom: 4px; }
.task-card .tc-row { padding: 13px 0; border-top: 1.5px dashed rgba(61,50,41,.15); font-size: 15px; }
.task-card .tc-row b { display: block; font-size: 12.5px; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 5px; }
.task-card .close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 22px; color: var(--ink-faint);
}
.task-card .actions { display: flex; gap: 12px; margin-top: 20px; }

/* ============ 数据数字 ============ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { text-align: center; padding: 36px 18px; }
.stat-card .num { font-family: var(--font-serif); font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: var(--courage); }
.stat-card .lbl { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ============ 手册词条 ============ */
.handbook-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 46px; }
.hb-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 16px; border: none;
  font-size: 15.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--fog);
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.1);
  transition: all .22s;
}
.hb-tab:hover { transform: translateY(-2px); }
.hb-tab.on { color: #FFF9F0; box-shadow: 0 3px 0 var(--tab-d, var(--courage-d)), 0 10px 22px rgba(61,50,41,.14); background: var(--tab-c, var(--courage)); }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.entry-card { cursor: pointer; padding: 26px; }
.entry-card h3 { font-size: 18px; margin-bottom: 8px; }
.entry-card p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 960px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .entry-grid { grid-template-columns: 1fr; } }

/* ============ 详情视图 ============ */
.detail-view { display: none; }
.detail-view.show { display: block; animation: fadeup .4s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink-soft); font-size: 15px;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.12);
  transition: all .2s; cursor: pointer; background: var(--fog);
}
.back-link:hover { color: var(--ink); transform: translateX(-3px); }

/* ============ 时间线（关于页） ============ */
.timeline { position: relative; max-width: 640px; margin: 50px auto 0; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--ink-faint) 0 7px, transparent 7px 13px); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--courage); box-shadow: 0 0 0 4px rgba(184,84,80,.18);
}
.tl-item h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 5px; }
.tl-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: none; outline: none;
  background: var(--fog); border-radius: 14px;
  padding: 14px 18px; font-size: 15.5px; font-family: inherit; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.12);
  transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 2px var(--earth); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ 页脚 ============ */
.footer {
  position: relative;
  margin-top: 60px;
  background: var(--ink);
  color: #B9AD9C;
  padding: 70px 0 34px;
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 26px;
  background: inherit;
  clip-path: polygon(0 0, 3% 60%, 7% 20%, 12% 70%, 18% 25%, 24% 65%, 31% 15%, 38% 60%, 45% 22%, 52% 68%, 59% 18%, 66% 62%, 73% 24%, 80% 66%, 87% 20%, 93% 58%, 100% 26%, 100% 0);
  transform: scaleY(-1);
  background: var(--parchment);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #EFE7D8; font-family: var(--font-serif); font-size: 16.5px; margin-bottom: 18px; letter-spacing: .06em; }
.footer a { display: block; padding: 5px 0; font-size: 14.5px; transition: color .2s; }
.footer a:hover { color: #F5CBA7; }
.footer .brand { font-family: var(--font-hand); font-size: 30px; color: #F5EEE0; }
.footer .brand-sub { font-size: 14px; margin-top: 10px; max-width: 300px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(245,238,224,.14);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: #8d8171;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============ 滚动显现 ============ */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; } .rv-d4 { transition-delay: .4s; }

/* ============ 漂浮装饰 ============ */
.floaty { position: absolute; pointer-events: none; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }

/* 吐司提示 */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #F5EEE0;
  padding: 13px 26px; border-radius: 14px;
  font-size: 14.5px; z-index: 3000;
  box-shadow: var(--shadow-lift);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* 身份徽章 */
.identity-pill {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  display: flex; align-items: center; gap: 10px;
  background: var(--fog); border-radius: 999px;
  padding: 9px 18px 9px 10px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(61,50,41,.1);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: transform .2s;
}
.identity-pill:hover { transform: translateY(-3px); }
.identity-pill img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(61,50,41,.1); }

.empty-tip { text-align: center; color: var(--ink-faint); padding: 60px 0; font-size: 15px; }

/* 营火 CTA 大区块 */
.campfire-cta {
  position: relative; text-align: center;
  padding: 90px 6vw;
  border-radius: 34px;
  background:
    radial-gradient(600px 320px at 50% 108%, rgba(245,203,167,.35), transparent 70%),
    linear-gradient(170deg, #4A3D32, #3D3229 60%, #332A22);
  color: #F2EBDD;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.campfire-cta h2 { font-family: var(--font-hand); font-size: clamp(30px, 4.6vw, 52px); letter-spacing: .04em; }
.campfire-cta p { color: #C9BBA6; max-width: 520px; margin: 16px auto 36px; }
.campfire-cta .stars { position: absolute; inset: 0; pointer-events: none; }
