/* ============================================================
   云途安和 · 踏途寻灵  —  赛博徒步风全站样式
   配色：暖米/纸白底 + 墨色文字 + 柔和彩色点缀
   字体：Ma Shan Zheng（书法标题）+ Noto Serif SC（正文）
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --bg: #faf6f0;
  --bg-warm: #f5ede0;
  --bg-card: #ffffff;
  --text-primary: #2c2416;
  --text-secondary: #7a6f5d;
  --text-light: #a89b85;
  --border: #e8dfd0;
  --shadow: rgba(44,36,22,0.06);
  --accent-red: #e07a68;
  --accent-green: #85a88e;
  --accent-yellow: #e8c468;
  --accent-blue: #9db4c0;
  --accent-orange: #d4a574;
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
  --font-calli: 'Ma Shan Zheng', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 18px; }
.logo-icon { font-size: 22px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; transition: color .25s; }
.nav-links a:hover { color: var(--accent-orange); }
.nav-right { display: flex; gap: 10px; }
.btn-outline-sm {
  padding: 5px 14px; border: 1px solid var(--border); border-radius: 20px;
  background: transparent; cursor: pointer; font-family: inherit; font-size: 13px;
  transition: all .2s;
}
.btn-outline-sm:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-primary-sm {
  padding: 5px 14px; border: none; border-radius: 20px;
  background: var(--accent-red); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 13px; transition: opacity .2s;
}
.btn-primary-sm:hover { opacity: .88; }

/* ========== 英雄区 Hero ========== */
.hero-section {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px; overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, rgba(232,168,124,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(133,168,142,.10) 0%, transparent 45%),
    linear-gradient(180deg, #fdfaf5 0%, var(--bg) 40%, var(--bg-warm) 100%);
}

/* 装饰云朵 */
.deco-cloud {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.55);
  filter: blur(1px);
  animation: cloudFloat 18s ease-in-out infinite alternate;
}
.deco-cloud-1 { width: 200px; height: 80px; top: 12%; left: 5%; animation-delay: 0s; }
.deco-cloud-2 { width: 160px; height: 65px; top: 22%; right: 12%; animation-delay: -6s; }
.deco-cloud-3 { width: 120px; height: 50px; top: 45%; left: 70%; animation-delay: -12s; }
@keyframes cloudFloat {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(25px) translateY(-12px); }
}

/* 底部山峦 */
.deco-mountain {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background:
    linear-gradient(135deg, transparent 35%, rgba(224,222,215,.3) 35%, rgba(224,222,215,.3) 38%, transparent 38%),
    linear-gradient(115deg, transparent 52%, rgba(210,205,195,.25) 52%, rgba(210,205,195,.25) 58%, transparent 58%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; border-radius: 20px; font-size: 13px; color: var(--text-secondary);
  background: rgba(255,255,255,.75); border: 1px solid var(--border);
  margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }

.hero-title {
  font-family: var(--font-calli);
  font-size: clamp(48px, 9vw, 88px);
  letter-spacing: .08em;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text-light);
  letter-spacing: .25em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 15px; color: var(--text-secondary); line-height: 2;
  max-width: 580px; margin: 0 auto 38px;
}

/* 数据统计条 */
.hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block; font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.stat-red { color: var(--accent-red); }
.stat-green { color: var(--accent-green); }
.stat-yellow { color: #c9a84c; }
.stat-blue { color: var(--accent-blue); }

.scroll-hint {
  margin-top: 48px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-light); animation: bounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 28px; background: var(--border); position: relative;
}
.scroll-line::after { content:''; position:absolute; top:0;left:-2px;width:5px;height:6px;border-radius:3px;background:var(--accent-orange); animation: scrollDot 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes scrollDot { 0%{top:0} 100%{top:22px} }

/* ========== 通用区块头 ========== */
.section-header { text-align: center; padding: 72px 24px 42px; }
.section-tag {
  display: inline-block; font-size: 13px; color: var(--text-light);
  padding: 4px 14px; border-radius: 14px; background: rgba(255,255,255,.7);
  border: 1px solid var(--border); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-calli); font-size: clamp(32px,5vw,46px);
  letter-spacing: .06em; margin-bottom: 8px;
}
.section-subtitle { font-size: 14px; color: var(--text-light); }

/* ========== 取经路线图 ========== */
.route-section { padding: 0 24px 80px; }
.route-container {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start;
}

.route-map-wrapper {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 4px 24px var(--shadow), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--border);
}
.route-map-controls {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.map-label { font-weight: 600; font-size: 14px; }
.map-btns { display: flex; gap: 6px; }
.map-btn {
  padding: 4px 14px; border: 1px solid var(--border); border-radius: 16px;
  background: transparent; cursor: pointer; font-size: 12px; font-family: inherit;
  transition: all .2s;
}
.map-btn.active { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.btn-danger-sm {
  padding: 4px 14px; border: none; border-radius: 16px;
  background: var(--accent-red); color: #fff; cursor: pointer;
  font-size: 12px; font-family: inherit;
}

.route-svg-container { width: 100%; overflow: visible; }
.route-svg { width: 100%; height: auto; }

/* SVG 节点交互 */
.route-node { cursor: pointer; }
.route-node circle:first-child { transition: transform .25s, stroke-width .25s; }
.route-node:hover circle:first-child { transform: scale(1.2); stroke-width: 3.5; }
.route-node.node-active circle:first-child { transform: scale(1.25); stroke-width: 4; filter: drop-shadow(0 2px 6px rgba(224,122,104,.4)); }
.route-node.node-active .node-text { fill: var(--accent-red); }
.route-node.node-active { filter: drop-shadow(0 0 4px rgba(232,200,104,.6)); }
.node-text {
  font-family: var(--font-serif); font-size: 13px; fill: var(--text-primary);
  font-weight: 600;
}
.node-sub { font-size: 11px; fill: var(--text-light); }
.node-final { font-size: 14px; fill: var(--accent-green); font-weight: 700; }

/* 路线动画 */
.route-path-active {
  animation: drawPath 3s ease forwards;
  animation-delay: .5s;
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }

.route-legend {
  display: flex; gap: 18px; justify-content: center; margin-top: 14px; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); }
.legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* 城市详情卡片 */
.city-card-panel {
  background: var(--bg-card); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid var(--border);
  position: sticky; top: 76px;
  transition: transform .3s, box-shadow .3s;
}
.card-close {
  float: right; font-size: 22px; cursor: pointer; color: var(--text-light);
  line-height: 1; transition: color .2s;
}
.card-close:hover { color: var(--accent-red); }
.card-icon-wrap { text-align: center; margin-bottom: 12px; }
.card-icon { font-size: 40px; }
.card-title { font-family: var(--font-serif); font-size: 20px; margin-bottom: 2px; }
.card-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.card-body p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.8; }
.card-body strong { color: var(--text-primary); }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px;
  background: #f0ece4; color: var(--text-secondary);
}
.tag-green { background: rgba(133,168,142,.15); color: #5a8a64; }

/* ========== 师徒四人 / 角色卡片 ========== */
.companions-section { padding: 0 24px 80px; }
.char-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.char-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px 22px;
  text-align: center; border: 1px solid var(--border);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden; cursor: pointer;
}
.char-card:active { transform: scale(.98); }
.char-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.char-warm::before { background: linear-gradient(90deg,#e8c468,#e8a87c); }
.char-active::before { background: linear-gradient(90deg,#d4a574,#e07a68); }
.char-cool::before { background: linear-gradient(90deg,#85a88e,#9db4c0); }
.char-calm::before { background: linear-gradient(90deg,#9db4c0,#7a9eb8); }
.char-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(44,36,22,.1); }

.char-avatar-ring {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid;
}
.ring-yellow { border-color: #e8c468; background: linear-gradient(135deg,#fef9e7,#fceec9); }
.ring-orange { border-color: #d4a574; background: linear-gradient(135deg,#fef3ea,#fde0ca); }
.ring-green { border-color: #85a88e; background: linear-gradient(135deg,#edf5ef,#dceee4); }
.ring-blue { border-color: #9db4c0; background: linear-gradient(135deg,#eef4f7,#dde9ef); }
.char-avatar {
  font-family: var(--font-calli); font-size: 26px; font-weight: 700;
  color: var(--text-primary);
}
.char-name { font-size: 19px; font-weight: 700; margin-bottom: 2px; }
.char-role { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.char-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; text-align: left; }
.char-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.char-bar { text-align: left; }
.bar-label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.bar-track { height: 6px; background: #efeae0; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 1.2s ease; }
.bar-gold { background: linear-gradient(90deg,#e8c468,#d4a574); }
.bar-orange { background: linear-gradient(90deg,#e07a68,#d4a574); }
.bar-green { background: linear-gradient(90deg,#85a88e,#9db4c0); }
.bar-blue { background: linear-gradient(90deg,#9db4c0,#7a9eb8); }

.char-extra-row { max-width: 600px; margin: 28px auto 0; }
.char-mini-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 18px 22px;
  border: 1px solid var(--border); box-shadow: 0 2px 12px var(--shadow);
}
.mini-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg,#e8ecf0,#d0dae6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-calli); font-size: 20px; color: var(--text-primary);
  flex-shrink: 0;
}
.char-mini-card h4 { font-size: 16px; margin-bottom: 2px; }
.char-mini-card p { font-size: 13px; color: var(--text-light); margin-bottom: 2px; }
.mini-desc { font-size: 13px !important; color: var(--text-secondary) !important; line-height: 1.6 !important; }

/* ========== 经典灵障 / 卡片网格 ========== */
.challenges-section { padding: 0 24px 80px; background: var(--bg-warm); }
.challenge-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px;
}
.challenge-card {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 20px;
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); box-shadow: 0 2px 10px var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.challenge-card:active { transform: scale(.98); }
.challenge-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); }
.ch-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ch-icon-mountain { background: #fdf2ed; }
.ch-icon-water { background: #eef6f8; }
.ch-icon-fire { background: #fef6ed; }
.ch-icon-palace { background: #f8f0ed; }
.ch-icon-beast { background: #f0f2ed; }
.ch-icon-river { background: #edf4f7; }
.ch-tag {
  display: inline-block; font-size: 11px; color: var(--text-light);
  background: #f5f0e8; padding: 2px 10px; border-radius: 10px; margin-bottom: 6px;
}
.ch-info h4 { font-size: 16px; margin-bottom: 4px; }
.ch-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ========== 取经数据 / 仪表盘 ========== */
.data-section { padding: 0 24px 80px; }
.data-cards-row {
  max-width: 900px; margin: 0 auto 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.data-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px 18px;
  text-align: center; border: 1px solid var(--border);
  box-shadow: 0 2px 14px var(--shadow); transition: transform .25s;
}
.data-card:hover { transform: translateY(-4px); }
.dc-icon { font-size: 28px; margin-bottom: 8px; }
.dc-value {
  font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.dc-label { font-size: 13px; color: var(--text-light); }
.dc-red .dc-value { color: var(--accent-red); }
.dc-teal .dc-value { color: var(--accent-green); }
.dc-gold .dc-value { color: #c9a84c; }
.dc-blue .dc-value { color: var(--accent-blue); }

.chart-panel {
  max-width: 800px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: 0 2px 14px var(--shadow);
}
.panel-title { font-size: 17px; font-weight: 600; margin-bottom: 22px; text-align: center; }

.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row {
  display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 12px;
}
.br-label { font-size: 13px; color: var(--text-secondary); text-align: right; }
.br-track {
  height: 22px; background: #f2ebe0; border-radius: 11px; overflow: hidden;
  position: relative;
}
.br-fill {
  height: 100%; border-radius: 11px;
  width: 0; /* 由 JS 触发动画填充到 data-width */
  transition: width 1s ease;
}
.br-red { background: linear-gradient(90deg,#e07a68,#e8a87c); }
.br-orange { background: linear-gradient(90deg,#d4a574,#e8c468); }
.br-yellow { background: linear-gradient(90deg,#e8c468,#c9a84c); }
.br-green { background: linear-gradient(90deg,#85a88e,#9db4c0); }
.br-teal { background: linear-gradient(90deg,#9db4c0,#7a9eb8); }
.br-val { font-size: 12px; color: var(--text-light); }

/* ========== 弹幕浮层 ========== */
.barrage-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.barrage-box {
  width: 420px; max-width: 92vw;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.barrage-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.barrage-header h4 { font-size: 16px; }
.barrage-header button {
  background:none; border:none; cursor:pointer; font-size:16px; color:var(--text-light);
}
.barrage-input-row { display: flex; gap: 8px; margin-bottom: 14px; }
.barrage-input-row input {
  flex:1; padding: 8px 14px; border:1px solid var(--border); border-radius:20px;
  font-family:inherit; font-size:14px; outline:none; transition:border-color .2s;
}
.barrage-input-row input:focus { border-color: var(--accent-orange); }
.btn-send {
  padding: 8px 20px; border:none; border-radius:20px;
  background:var(--accent-red); color:#fff; cursor:pointer; font-family:inherit; font-size:14px;
}
.barrage-list {
  max-height: 280px; overflow-y: auto; display:flex; flex-direction:column; gap:8px;
}
.b-msg {
  padding: 8px 14px; border-radius:12px; font-size:13px; color:var(--text-secondary);
  background:#f8f4ee; align-self:flex-start; max-width:85%;
}

/* ========== 页脚 ========== */
.site-footer { position: relative; padding: 60px 24px 40px; text-align: center; overflow: hidden; }
.footer-wave {
  position: absolute; top: 0; left: -10%; right: -10%; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f5ede0' d='M0,64 C240,120 480,20 720,64 C960,108 1200,20 1440,64 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}
.footer-content { position: relative; z-index: 2; }
.footer-title { font-family: var(--font-calli); font-size: 36px; margin-bottom: 10px; }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 20px; }
.footer-dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.fd { width: 10px; height: 10px; border-radius: 50%; }
.fd-red { background: var(--accent-red); }
.fd-yellow { background: var(--accent-yellow); }
.fd-green { background: var(--accent-green); }
.fd-blue { background: var(--accent-blue); }
.footer-copy { font-size: 12px; color: var(--text-light); }

/* ========== 城市卡片「查看完整剧情」按钮 ========== */
.card-more {
  margin-top: 18px; width: 100%;
  padding: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: transparent; cursor: pointer; font-family: inherit; font-size: 13px;
  color: var(--text-secondary); transition: all .2s;
}
.card-more:hover { border-color: var(--accent-orange); color: var(--accent-orange); background: rgba(232,168,124,.06); }

/* ========== 通用详情弹窗 ========== */
.detail-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.detail-backdrop { position: absolute; inset: 0; background: rgba(28,22,14,.45); backdrop-filter: blur(2px); }
.detail-card {
  position: relative; z-index: 1;
  width: 460px; max-width: 92vw; max-height: 86vh; overflow-y: auto;
  background: var(--bg-card); border-radius: var(--radius); padding: 32px 30px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  animation: popIn .28s cubic-bezier(.2,.9,.3,1.2);
  text-align: center;
}
.detail-card-sm { width: 380px; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.detail-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: #f3eee6; color: var(--text-secondary); cursor: pointer; font-size: 16px;
  transition: all .2s;
}
.detail-close:hover { background: var(--accent-red); color: #fff; }
.detail-icon { font-size: 52px; margin-bottom: 10px; }
.detail-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.detail-sub { font-size: 13px; color: var(--accent-orange); margin-bottom: 16px; }
.detail-body { text-align: left; }
.detail-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 10px; }
.detail-body strong { color: var(--text-primary); }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.profile-form { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 10px; }
.profile-form input {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s;
}
.profile-form input:focus { border-color: var(--accent-orange); }
.btn-primary-block {
  padding: 11px; border: none; border-radius: 12px; background: var(--accent-red);
  color: #fff; cursor: pointer; font-family: inherit; font-size: 14px; transition: opacity .2s;
}
.btn-primary-block:hover { opacity: .9; }
.detail-tip { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ========== Toast 轻提示 ========== */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(20px);
  z-index: 9999; padding: 11px 22px; border-radius: 24px;
  background: rgba(44,36,22,.92); color: #fff; font-size: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25); opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 滚动显示动画 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .route-container { grid-template-columns: 1fr; }
  .city-card-panel { position: static; }
  .bar-row { grid-template-columns: 100px 1fr 50px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 22px; }
}
@media (max-width: 480px) {
  .char-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; }
  .data-cards-row { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .br-label { text-align: left; }
  .br-val { text-align: right; }
}
