/* ═══════════════════════════════════════════════════════════════
   RiverMap Design System · v1.8.4 · sage mint light · iOS 风
   2026-05-07 · 0 border · shadow + spacing 做层次
   v1.8.4 · 全站无衬线 + 微信深色模式禁用
   ═══════════════════════════════════════════════════════════════ */

/* ════ v1.8.4 · 微信内深色模式强制禁用(全面拦截) ════ */
:root {
  color-scheme: light only;
  forced-color-adjust: none;
}
html, body {
  forced-color-adjust: none;
  -webkit-text-size-adjust: 100%;
  background-color: #EDF3EE;
  color: #1A2E1F;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only !important;
    forced-color-adjust: none !important;
  }
  html, body {
    background-color: #EDF3EE !important;
    color: #1A2E1F !important;
    forced-color-adjust: none !important;
  }
  /* ★ 核心容器全部强制 light 化 · 防微信反白 */
  .app, .topbar, .tabbar, .home-banner-tabs, .home-banner-tabs-inner,
  .card, .panel, .my-action, .user-hero, .my-invite-card,
  .about-collapse, details, summary,
  input, textarea, select, button,
  [class*="card"], [class*="panel"], [class*="banner"],
  [class*="hero"], [class*="action"], [class*="pill"] {
    background-color: var(--bg-card, #F7FAF7) !important;
    color: var(--ink, #1A2E1F) !important;
    forced-color-adjust: none !important;
  }
  /* 整页底色保持 */
  body, .app { background-color: #EDF3EE !important; }
  /* 顶/底栏毛玻璃色 */
  .topbar, .tabbar { background-color: rgba(247,250,247,0.95) !important; }
  /* 用户卡 / 主深绿区块 保持深绿 */
  .user-hero, .home-banner-tab.active {
    background: linear-gradient(135deg, #1B4332, #2D6A4F) !important;
    color: #fff !important;
  }
  /* 文字层级保持 */
  h1, h2, h3, h4, .page-title { color: var(--green-deep, #1B4332) !important; }
  p, span, div { color: inherit; }
}

:root {
  /* ── 背景层(从浅到深 · 用层级背景代替边框) ── */
  --bg:        #EDF3EE;   /* 主底 · 整页背景 */
  --bg-card:   #F7FAF7;   /* 一级卡片底 */
  --bg-white:  #FFFFFF;   /* 顶级白卡 */
  --bg-sunk:   #E4EDE5;   /* 凹陷区(input / 按下态) */
  --bg-mint:   #D8EDDF;   /* 极浅绿(标签 / 强调底) */
  --bg-blur:   rgba(247, 250, 247, 0.85); /* 毛玻璃 */

  /* ── 主绿色阶 ── */
  --green-deep: #1B4332;  /* 深森林绿 · 主标题 */
  --green-mid:  #2D6A4F;  /* 中绿 · 次标题 / 主按钮 */
  --green:      #40916C;  /* 亮绿 · CTA */
  --green-pale: #52B788;  /* 浅绿 · 标签 */
  --green-tint: #74C69D;  /* Tint · hover */
  --green-bg:   #D8EDDF;  /* 极浅绿 · 背景 */

  /* ── 文字层 ── */
  --ink:       #1A2E1F;   /* 主文 */
  --ink-2:     #3D5A45;   /* 次文 */
  --ink-3:     #6B8F74;   /* 辅文 */
  --ink-hint:  #9AB8A0;   /* 提示文 */

  /* ── 辅助色阶(资源分类 / 标签) ── */
  --gold:      #B5881A;   /* 金 · 高端资源 */
  --gold-bg:   #FFF3CD;   /* 金浅底 */
  --gold-deep: #7A5B0D;   /* 金深 */
  --teal:      #1B7A82;   /* 青 · 海外/合规 */
  --teal-bg:   #D6F0F2;   /* 青浅底 */
  --pur:       #5C4B8A;   /* 紫 · 私董会/稀缺 */
  --pur-bg:    #EBE7F5;   /* 紫浅底 */
  --rd:        #C0392B;   /* 红 · 风险提示 */
  --rd-bg:     #FDECEA;   /* 红浅底 */
  --am:        #C87800;   /* 琥珀 · 中等风险 */
  --am-bg:     #FFF8E6;   /* 琥珀浅底 */

  /* ── 阴影(代替 border 做层次) ── */
  --sh-1: 0 1px 2px rgba(27, 67, 50, 0.04), 0 1px 3px rgba(27, 67, 50, 0.05);
  --sh-2: 0 2px 6px rgba(27, 67, 50, 0.06), 0 4px 12px rgba(27, 67, 50, 0.04);
  --sh-3: 0 4px 16px rgba(27, 67, 50, 0.08), 0 8px 32px rgba(27, 67, 50, 0.06);
  --sh-fab: 0 4px 12px rgba(45, 106, 79, 0.25), 0 8px 24px rgba(45, 106, 79, 0.18);

  /* ── 圆角 · iOS 标准 ── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* ── 间距 ── */
  --pad-sm: 8px;
  --pad: 16px;
  --pad-lg: 20px;
  --pad-xl: 24px;

  /* ── 布局 ── */
  --topbar-h: 56px;
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0);

  /* ── 字体 ── */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* ═══════════════════ Reset + base ═══════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════ Typography ═══════════════════ */

.h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  color: var(--green-deep);
}
.h3 {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}
.body { font-size: 15px; color: var(--ink-2); }
.caption { font-size: 13px; color: var(--ink-3); }
.hint { font-size: 12px; color: var(--ink-hint); }
.mono { font-family: var(--font-mono); }

/* ═══════════════════ Layout container ═══════════════════ */

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 0;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  position: relative;
}

.page-pad { padding-left: var(--pad); padding-right: var(--pad); }
.section { margin-bottom: 28px; }

/* iOS Large Title · 主页用 · 内容顶部直接出大标题(取代 topbar) */
.page-title {
  padding: 16px var(--pad) 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--green-deep);
  letter-spacing: 0.005em;
}
.page-title-sub {
  padding: 0 var(--pad) 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* 浮动返回按钮 · 子页面用 · 取代 topbar */
.back-fab {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 12px);
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(247, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  box-shadow: var(--sh-1);
  transition: transform 0.15s, opacity 0.15s;
}
.back-fab:active { transform: scale(0.92); opacity: 0.8; }
.back-fab svg { width: 20px; height: 20px; }

/* ═══════════════════ Topbar(仅 chat / 特殊页用) ═══════════════════ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 110;
  background: var(--bg-blur);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.topbar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  position: relative;
}
.topbar-back, .topbar-action {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--green-deep);
  transition: background 0.15s;
}
.topbar-back:active, .topbar-action:active { background: var(--bg-sunk); }
.topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--green-deep);
}
.topbar-spacer { flex: 1; }

/* ═══════════════════ Tabbar(底部 4 Tab · 毛玻璃) ═══════════════════ */

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  z-index: 50;
  background: var(--bg-blur);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 -1px 0 rgba(27, 67, 50, 0.04);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-hint);
  padding: 6px 0;
  transition: color 0.15s;
}
.tab svg { width: 24px; height: 24px; }
.tab-label { font-size: 11px; letter-spacing: 0.02em; }
.tab.active { color: var(--green-mid); }
.tab.active .tab-label { font-weight: 600; }

/* ═══════════════════ AI 悬浮按钮(右下圆形) ═══════════════════ */

.fab-ai {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  width: 64px; height: 64px;             /* v1.8.3 56px → 64px 大圆球 */
  border-radius: 50%;                    /* v1.8.3 严格圆形 */
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;                /* v1.8.3 icon 上 · 文字下 */
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.32);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  cursor: pointer;
}
.fab-ai:active {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.3);
}
.fab-ai-icon { width: 22px; height: 22px; }
.fab-ai-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.fab-ai-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-tint);
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ═══════════════════ Card(无 border · 阴影分层) ═══════════════════ */

.card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: var(--pad-lg);
  box-shadow: var(--sh-1);
  margin-bottom: 12px;
}
.card-lg { padding: var(--pad-xl); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.card-flat { background: var(--bg-card); box-shadow: none; }

/* iOS Settings 分组(Settings-style grouped list) */
.group {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--sh-1);
}
.group-title {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 8px 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  position: relative;
  transition: background 0.12s;
}
.row + .row::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 0;
  height: 0.5px;
  background: rgba(27, 67, 50, 0.08);
}
.row:active { background: var(--bg-sunk); }
.row-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--green-mid);
  flex-shrink: 0;
}
.row-main { flex: 1; min-width: 0; }
.row-label { font-size: 15px; color: var(--ink); }
.row-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.row-value { font-size: 14px; color: var(--ink-3); margin-right: 6px; max-width: 50%; text-align: right; }
.row-chev { color: var(--ink-hint); flex-shrink: 0; }

/* ═══════════════════ Buttons ═══════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn-primary { background: var(--green-mid); color: #fff; }
.btn-primary:active { background: var(--green-deep); }
.btn-ghost { background: var(--bg-mint); color: var(--green-deep); }
.btn-text { color: var(--green-mid); height: auto; padding: 8px 12px; }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 16px; border-radius: var(--r-lg); }

/* ═══════════════════ Tag / Pill / Filter ═══════════════════ */

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-mint);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tag-vip { background: var(--green-deep); color: #fff; }
.tag-member { background: var(--green-pale); color: #fff; }
.tag-public { background: var(--bg-sunk); color: var(--ink-2); }
.tag-gold { background: var(--gold-bg); color: var(--gold-deep); }
.tag-teal { background: var(--teal-bg); color: var(--teal); }
.tag-pur { background: var(--pur-bg); color: var(--pur); }
.tag-rd { background: var(--rd-bg); color: var(--rd); }
.tag-am { background: var(--am-bg); color: var(--am); }

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.pill.active { background: var(--green-mid); color: #fff; }

/* ═══════════════════ Input ═══════════════════ */

.input-base {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-sunk);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
}
.input-base::placeholder { color: var(--ink-hint); }
.textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  background: var(--bg-sunk);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  resize: none;
  font-family: inherit;
}
.textarea::placeholder { color: var(--ink-hint); }

/* ═══════════════════ Hero(首页主视觉) ═══════════════════ */

.hero {
  padding: 32px 20px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(64, 145, 108, 0.08) 0%, transparent 60%),
    var(--bg);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green-mid);
  margin-bottom: 14px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  color: var(--green-deep);
  margin-bottom: 14px;
  letter-spacing: 0.005em;
}
.hero-title .hl { color: var(--green); }
.hero-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 22px;
}

/* ═══════════════════ 7 路径表 ═══════════════════ */

.path-table { background: var(--bg-white); border-radius: var(--r-lg); padding: 8px 0; box-shadow: var(--sh-1); }
.path-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  position: relative;
}
.path-row + .path-row::before {
  content: '';
  position: absolute;
  top: 0; left: 60px; right: 0;
  height: 0.5px;
  background: rgba(27, 67, 50, 0.06);
}
.path-no { font-family: var(--font-mono); font-size: 13px; color: var(--green-pale); font-weight: 500; }
.path-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.path-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.path-cost { font-family: var(--font-mono); font-size: 12px; color: var(--green-mid); }

/* ═══════════════════ 双引擎 ═══════════════════ */

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dual-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.dual-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-mint);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
}
.dual-name { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.dual-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ═══════════════════ 资源卡 ═══════════════════ */

.res {
  display: block;                 /* v1.8.1 关键:a 标签必须显式 block · 否则 inline 计算崩溃 */
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-1);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.res-locked { min-height: 92px; }  /* v1.8.1:锁定卡需要保底高度 · 否则 overlay inset:0 失败 */
.res-locked .res-body { filter: blur(3px); opacity: 0.4; pointer-events: none; }
.res-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;             /* v1.8.1 关键:column → row · 防止文字被竖排渲染 */
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(247, 250, 247, 0.78);
  backdrop-filter: blur(3px);
  white-space: nowrap;             /* v1.8.1:防止任何换行导致竖排 */
  z-index: 2;
}
.res-lock-overlay svg { flex-shrink: 0; }
.res-lock-overlay .lock-text {
  font-size: 13px;
  color: var(--green-deep);
  font-weight: 600;
  white-space: nowrap;
}
.res-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.res-name { font-weight: 600; font-size: 15px; color: var(--ink); flex: 1; }
.res-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.res-foot { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ═══════════════════ 报告中心 ═══════════════════ */

.sku-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.sku-card.featured {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F8F2 100%);
  box-shadow: var(--sh-2);
}
.sku-card.featured::after {
  content: '推荐';
  position: absolute;
  top: 10px; right: 10px;
  background: var(--green-mid);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
}
.sku-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  flex-shrink: 0;
}
.sku-main { flex: 1; min-width: 0; }
.sku-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.sku-desc { font-size: 12px; color: var(--ink-3); }
.sku-price { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--green-mid); flex-shrink: 0; }

.report-row {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-row .report-tag {
  font-size: 11px;
  color: var(--green-mid);
  background: var(--bg-mint);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.report-row .report-title { font-weight: 500; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-row .report-date { font-size: 12px; color: var(--ink-hint); font-family: var(--font-mono); }

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-3);
}
.empty-state .empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--ink-hint); }
.empty-state .empty-text { font-size: 14px; margin-bottom: 4px; }
.empty-state .empty-sub { font-size: 12px; color: var(--ink-hint); }

/* ═══════════════════ Chat 页面 ═══════════════════ */

/* ═══════════════════ Chat 页面（由 chat.html 内联样式控制，此处仅保留兼容） ═══════════════════ */
/* chat.html 已完全自包含布局，全局不再干预 */
/* chat-input-bar/input/send 由 chat.html 内联控制 */

/* 消息气泡 */
.msg { margin-bottom: 14px; display: flex; }
.msg.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}
.msg.user .msg-bubble {
  background: var(--green-mid);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.assistant .msg-bubble {
  background: var(--bg-white);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: var(--sh-1);
  white-space: pre-wrap;
}
.msg.assistant .msg-bubble.thinking {
  color: var(--ink-3);
  font-style: italic;
  display: flex;
  gap: 4px;
}
.dot-typing { display: inline-flex; gap: 3px; align-items: center; }
.dot-typing span {
  width: 6px; height: 6px;
  background: var(--ink-hint);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.dot-typing span:nth-child(2) { animation-delay: 0.2s; }
.dot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* 引导对话(空状态) */
.chat-welcome { padding: 8px 4px 20px; }
.chat-welcome-msg {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--sh-1);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  border-bottom-left-radius: 6px;
  animation: slideIn 0.4s ease-out backwards;
}
.chat-welcome-msg:nth-child(1) { animation-delay: 0.05s; }
.chat-welcome-msg:nth-child(2) { animation-delay: 0.2s; }
.chat-welcome-msg:nth-child(3) { animation-delay: 0.35s; }
.chat-welcome-msg:nth-child(4) { animation-delay: 0.5s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.chat-suggestions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-sugg {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--green-deep);
  box-shadow: var(--sh-1);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s;
}
.chat-sugg:active { transform: scale(0.98); background: var(--bg-card); }
.chat-sugg-arrow { color: var(--ink-hint); flex-shrink: 0; }

/* ═══════════════════ Drawer(左侧抽屉 · 历史) ═══════════════════ */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 28, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 200;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 78%;
  max-width: 320px;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 210;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--safe-bottom) + 12px);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--green-deep); }
.drawer-new {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-mint);
  color: var(--green-deep);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}
.drawer-list { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.drawer-item {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 6px;
  box-shadow: var(--sh-1);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: background 0.15s;
}
.drawer-item.active { background: var(--bg-mint); }
.drawer-item-main { flex: 1; min-width: 0; }
.drawer-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.drawer-item-time { font-size: 11px; color: var(--ink-hint); font-family: var(--font-mono); }
.drawer-item-del {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-hint);
  border-radius: var(--r-pill);
  opacity: 0;
  transition: opacity 0.15s;
}
.drawer-item:hover .drawer-item-del,
.drawer-item:active .drawer-item-del { opacity: 1; }
.drawer-item-del:active { background: rgba(220, 80, 70, 0.1); color: #c44; }

.drawer-empty { padding: 32px 16px; text-align: center; color: var(--ink-hint); font-size: 13px; }

/* ═══════════════════ Modal (微信弹窗等) ═══════════════════ */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 28, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 24px 22px 18px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--sh-3);
}
.modal-title { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--green-deep); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.modal-wx { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--green-mid); padding: 12px; background: var(--bg-mint); border-radius: var(--r-md); margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; height: 42px; }

/* ═══════════════════ Member CTA(membership.html) ═══════════════════ */

.member-hero {
  background: linear-gradient(180deg, #1B4332 0%, #2D6A4F 100%);
  color: #fff;
  padding: 36px 22px 32px;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  margin-bottom: 20px;
}
.member-hero-eyebrow { font-size: 12px; letter-spacing: 0.18em; color: var(--green-tint); margin-bottom: 12px; }
.member-hero-title { font-family: var(--font-sans); font-size: 26px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.member-hero-sub { font-size: 14px; opacity: 0.85; line-height: 1.6; }
.member-hero-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; margin-top: 18px; }
.member-hero-price small { font-size: 14px; opacity: 0.7; font-weight: 500; }

.benefit { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; align-items: flex-start; }
.benefit + .benefit { border-top: 0.5px solid rgba(27, 67, 50, 0.06); }
.benefit-icon { color: var(--green-mid); padding-top: 2px; }
.benefit-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.benefit-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ═══════════════════ Profile (我的) ═══════════════════ */

.profile-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-mint) 130%);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--sh-2);
}
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--green-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
}
.profile-name { font-weight: 600; font-size: 17px; color: var(--ink); }
.profile-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.profile-progress {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-sunk);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--green-mid); border-radius: var(--r-pill); transition: width 0.4s; }
.progress-pct { font-family: var(--font-mono); font-size: 13px; color: var(--green-mid); font-weight: 600; min-width: 36px; text-align: right; }

.team-card {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  box-shadow: var(--sh-1);
}
.team-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--green-deep);
  font-weight: 600;
  flex-shrink: 0;
}
.team-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.team-role { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }

/* ═══════════════════ 工具类 ═══════════════════ */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.divider { height: 0.5px; background: rgba(27, 67, 50, 0.06); margin: 12px 0; }

/* ═══════════════════ 响应式微调 ═══════════════════ */

@media (max-width: 360px) {
  :root { --pad: 14px; }
  .hero-title { font-size: 26px; }
  .h1 { font-size: 25px; }
  .sku-price { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   v1.7.2 · RWA 双 Tab 路径模块 + 路径详情 timeline
   ═══════════════════════════════════════════════════════════════ */

/* ── RWA Tab 切换 ── */
.rwa-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-sunk);
  padding: 4px;
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.rwa-tab {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.3;
}
.rwa-tab.active {
  background: var(--bg-white);
  color: var(--green-deep);
  font-weight: 600;
  box-shadow: var(--sh-1);
}
.rwa-tab-region {
  font-size: 13px;
  font-weight: inherit;
}
.rwa-tab-sub {
  font-size: 10px;
  color: var(--ink-hint);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.rwa-tab.active .rwa-tab-sub { color: var(--green-pale); }

/* ── 路径表 ── */
.rwa-content { display: none; }
.rwa-content.active { display: block; }

.rwa-table {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.rwa-row {
  display: block;
  padding: 14px 16px;
  position: relative;
  transition: background 0.12s;
}
.rwa-row + .rwa-row::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 0.5px;
  background: rgba(27, 67, 50, 0.06);
}
.rwa-row:active { background: var(--bg-sunk); }
.rwa-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rwa-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-pale);
  font-weight: 500;
  flex-shrink: 0;
}
.rwa-row-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.rwa-row-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.rwa-row-tag.tag-restricted {
  background: var(--am-bg);
  color: var(--am);
}
.rwa-row-tag.tag-meme {
  background: #FCE4EC;
  color: #C2185B;
}
.rwa-row-tag.tag-rwa {
  background: var(--bg-mint);
  color: var(--green-deep);
}
.rwa-row-meta {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.rwa-row-meta .mono { font-family: var(--font-mono); color: var(--green-mid); font-weight: 500; }
.rwa-row-chev {
  color: var(--ink-hint);
  flex-shrink: 0;
}
.rwa-row-fit {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.5;
}

.rwa-row.featured {
  background: linear-gradient(90deg, transparent 0%, rgba(64, 145, 108, 0.04) 100%);
}
.rwa-row.featured .rwa-row-num { color: var(--green-mid); }

/* ── 路径详情页 · Hero ── */
.path-hero {
  padding: 24px 20px 28px;
  background: linear-gradient(180deg, var(--bg-mint) 0%, var(--bg) 100%);
}
.path-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green-mid);
  margin-bottom: 8px;
}
.path-hero-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 6px;
}
.path-hero-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-white);
  color: var(--green-mid);
  font-size: 11px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
  font-weight: 500;
}

.path-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.path-hero-stat {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--sh-1);
}
.path-hero-stat-label { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: 0.05em; }
.path-hero-stat-value { font-family: var(--font-mono); font-size: 16px; color: var(--green-deep); font-weight: 600; }

/* ── 8 阶段 timeline ── */
.path-timeline {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.path-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--green-tint) 50%, var(--bg-mint) 100%);
  border-radius: 2px;
}
.stage {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
  margin-bottom: 10px;
}
.stage::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--green-mid);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 2;
}
.stage-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-pale);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.stage-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.stage-content {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}
.stage-content strong { color: var(--ink); font-weight: 500; }
.stage-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--bg-mint);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 500;
}
.stage-cost-warn {
  background: var(--am-bg);
  color: var(--am);
}
.stage-cases {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(27, 67, 50, 0.06);
  font-size: 11px;
  color: var(--ink-3);
}
.stage-cases-label { color: var(--ink-hint); margin-right: 4px; }
.stage-cases-item { color: var(--green-mid); margin-right: 8px; }

/* 阶段图标 */
.stage-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.stage-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   v1.7.3 · 首页重构 · 推荐双 CTA + 数据源一行 + 邮箱登录
   ═══════════════════════════════════════════════════════════════ */

/* 双卡片推荐(项目测评 + 个人测评) */
.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
  position: relative;
  transition: transform 0.15s;
}
.cta-card:active { transform: scale(0.99); }
.cta-card.featured {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F8F2 60%, #E0F0E5 100%);
  box-shadow: var(--sh-2);
  padding: 20px;
}
.cta-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--green-mid);
  color: #fff;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.cta-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-card.featured .cta-card-icon {
  background: var(--green-mid);
  color: #fff;
}
.cta-card-main { flex: 1; min-width: 0; }
.cta-card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.cta-card.featured .cta-card-name { color: var(--green-deep); font-size: 17px; }
.cta-card-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.cta-card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--green-mid);
  flex-shrink: 0;
}
.cta-card.featured .cta-card-price { font-size: 22px; color: var(--green-deep); }

/* 数据源一行 */
.sources-line {
  font-size: 11px;
  color: var(--ink-hint);
  line-height: 1.6;
  text-align: center;
  padding: 14px var(--pad);
}
.sources-line strong { color: var(--ink-3); font-weight: 500; }

/* 12W+ 粉丝迷你 footer 角标 */
.brand-footer {
  text-align: center;
  padding: 24px var(--pad) 16px;
  font-size: 11px;
  color: var(--ink-hint);
  line-height: 1.8;
}
.brand-footer .mono {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-weight: 500;
}

/* ═══════════════════ Auth(login / register) ═══════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 12px) 0 0;
}
.auth-hero {
  text-align: center;
  padding: 36px 24px 28px;
}
.auth-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  color: var(--green-deep);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.auth-tagline {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.auth-card {
  margin: 0 var(--pad);
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  box-shadow: var(--sh-2);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-sunk);
  padding: 4px;
  border-radius: var(--r-md);
  margin-bottom: 22px;
}
.auth-tab {
  padding: 10px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s;
}
.auth-tab.active {
  background: var(--bg-white);
  color: var(--green-deep);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

.field {
  margin-bottom: 14px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-sunk);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  border: none;
  outline: none;
  font-family: inherit;
}
.field-input:focus { background: var(--bg-mint); }
.field-input::placeholder { color: var(--ink-hint); }

.auth-tip {
  font-size: 11px;
  color: var(--ink-hint);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.auth-tip a { color: var(--green-mid); }

.auth-skip {
  text-align: center;
  margin-top: 18px;
}
.auth-skip a {
  font-size: 13px;
  color: var(--ink-3);
}

/* 登录态徽章 */
.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green-mid);
  background: var(--bg-mint);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* ═══════════════════════════════════════════════════════════════
   v1.7.4 · Dark theme + Settings switch + 关于我们
   ═══════════════════════════════════════════════════════════════ */

/* iOS 风 segmented switch(用于设置页 · 日夜 / 语言) */
.row-switch {
  display: flex;
  background: var(--bg-sunk);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 0;
}
.row-switch button {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-3);
  background: transparent;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}
.row-switch button.active {
  background: var(--bg-white);
  color: var(--green-deep);
  box-shadow: var(--sh-1);
}

/* 关于我们 · 简介卡 */
.about-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.about-intro {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-intro strong { color: var(--ink); font-weight: 500; }
.about-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.about-team-row + .about-team-row {
  border-top: 0.5px solid rgba(27, 67, 50, 0.06);
}
.about-team-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.about-team-info { flex: 1; min-width: 0; }
.about-team-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.about-team-role { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.about-contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(27, 67, 50, 0.06);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.about-contact a { color: var(--green-mid); font-family: var(--font-mono); }

/* ═══════════════════ Dark theme(用户可选) ═══════════════════ */
[data-theme="dark"] {
  --bg:        #0D1F1A;
  --bg-card:   #112822;
  --bg-white:  #143028;
  --bg-sunk:   #0A1813;
  --bg-mint:   #1B4332;
  --bg-blur:   rgba(20, 48, 40, 0.88);

  --green-deep: #B7E4C7;
  --green-mid:  #74C69D;
  --green:      #52B788;
  --green-pale: #74C69D;
  --green-tint: #95D5B2;
  --green-bg:   #1B4332;

  --ink:       #E8F5EE;
  --ink-2:     #B7CFC1;
  --ink-3:     #8FA99B;
  --ink-hint:  #6B8F74;

  --gold-bg:   #3A2F0A;
  --gold-deep: #E8C96A;
  --teal-bg:   #0D3338;
  --pur-bg:    #251F3D;
  --rd-bg:     #3D1A16;
  --am-bg:     #3A2D0A;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  --sh-3: 0 4px 16px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .cta-card.featured {
  background: linear-gradient(135deg, #143028 0%, #1B4332 100%);
}
[data-theme="dark"] .cta-card.featured::before {
  background: var(--green);
  color: var(--bg);
}
[data-theme="dark"] .cta-card.featured .cta-card-icon {
  background: var(--green);
  color: var(--bg);
}
[data-theme="dark"] .member-hero {
  background: linear-gradient(180deg, #1B4332 0%, #143028 100%);
}
[data-theme="dark"] .path-hero {
  background: linear-gradient(180deg, #1B4332 0%, var(--bg) 100%);
}
[data-theme="dark"] .rwa-row.featured {
  background: linear-gradient(90deg, transparent 0%, rgba(116, 198, 157, 0.08) 100%);
}
[data-theme="dark"] .sku-card.featured {
  background: linear-gradient(135deg, #143028 0%, #1B4332 100%);
}
[data-theme="dark"] .stage::before {
  box-shadow: 0 0 0 4px var(--bg);
}

/* 跟随系统(prefers-color-scheme · 仅在 data-theme=auto 时生效) */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg:        #0D1F1A;
    --bg-card:   #112822;
    --bg-white:  #143028;
    --bg-sunk:   #0A1813;
    --bg-mint:   #1B4332;
    --green-deep: #B7E4C7;
    --green-mid:  #74C69D;
    --ink:       #E8F5EE;
    --ink-2:     #B7CFC1;
    --ink-3:     #8FA99B;
    --ink-hint:  #6B8F74;
  }
  [data-theme="auto"] body { background: var(--bg); color: var(--ink); }
}

/* ═══════════════════════════════════════════════════════════════
   v1.7.5 · 案例库 + 合作方互联(全闭环)
   ═══════════════════════════════════════════════════════════════ */

/* ── 首页 3 大入口卡 ── */
.entry3-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.entry3-card {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
}
.entry3-card:active { transform: scale(0.97); }
.entry3-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry3-text { width: 100%; }
.entry3-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.entry3-count {
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── 横滑案例(首页钩子) ── */
.case-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--pad);
  scrollbar-width: none;
}
.case-scroll::-webkit-scrollbar { display: none; }
.case-mini {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--sh-1);
  display: block;
}
.case-mini-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--green-mid);
  background: var(--bg-mint);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 500;
  margin-bottom: 6px;
}
.case-mini-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-mini-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.case-mini-meta .mono { color: var(--green-mid); font-weight: 600; }
.case-mini-foot {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── section head(标题 + 全部按钮)── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--pad) 12px;
}

/* ── 案例列表卡片(cases.html / case-detail / partner-detail 共用)── */
.case-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
  margin-bottom: 10px;
  transition: transform 0.15s;
}
.case-card:active { transform: scale(0.99); }
.case-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.case-card-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--green-mid);
  background: var(--bg-mint);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.case-card-duration {
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 600;
}
.case-card-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.case-card-summary {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 8px;
}
.case-card-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.case-card-meta .mono strong { color: var(--green-mid); font-weight: 700; }
.case-card-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid rgba(27, 67, 50, 0.06);
}
.case-card-partners-label {
  font-size: 11px;
  color: var(--ink-hint);
  margin-right: 2px;
  align-self: center;
}

/* ── chip 横滑筛选 ── */
.chip-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 14px var(--pad) 8px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-white);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: all 0.15s;
}
.chip.active {
  background: var(--green-mid);
  color: #fff;
  box-shadow: var(--sh-2);
}

/* ── partner-list rows(case-detail 显示合作方 / partner-detail 显示案例 / 路径)── */
.partner-list {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  transition: background 0.12s;
  position: relative;
}
.partner-row + .partner-row::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 0.5px;
  background: rgba(27, 67, 50, 0.06);
}
.partner-row:active { background: var(--bg-sunk); }
.partner-row-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-row-main { flex: 1; min-width: 0; }
.partner-row-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}
.partner-row-tag {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}
.partner-row-chev {
  color: var(--ink-hint);
  flex-shrink: 0;
}



/* ═══════════════════════════════════════════════════════════════
   v1.7.5 新增组件 · 首页 3 入口卡片 + 横滑案例
   ═══════════════════════════════════════════════════════════════ */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 16px 8px 14px;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.entry-card:active {
  transform: scale(0.97);
  box-shadow: var(--sh-2);
}

.entry-card .entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.entry-card .entry-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 3px;
  line-height: 1.2;
}

.entry-card .entry-meta {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-sans);
}

.entry-card .entry-meta .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green-mid);
}

/* 横滑案例小卡片(首页用) */
.case-mini-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-1);
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease;
}
.case-mini-card:active {
  transform: scale(0.97);
}

/* 案例横滑容器 */
.case-scroll {
  scrollbar-width: none;
}
.case-scroll::-webkit-scrollbar {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════
   v1.8 · 热点(Hot)样式系统
   ═══════════════════════════════════════════════════════════════ */

/* 4 卡网格(覆盖 v1.7.5 的 3 列默认) */
.entry-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) {
  .entry-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 热点流容器 */
.hot-stream { display: flex; flex-direction: column; gap: 10px; }

/* 热点卡片 */
.hot-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.hot-card:active { transform: scale(0.99); box-shadow: var(--sh-2); }

.hot-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hot-time { color: var(--green-mid); font-weight: 500; font-size: 11px; }
.hot-stars { color: var(--gold-deep); letter-spacing: 1px; font-size: 11px; }
.hot-stars-empty { color: var(--green-pale); opacity: 0.4; }
.hot-cate {
  background: var(--bg);
  color: var(--green-mid);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
}
.hot-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.45;
  margin-bottom: 6px;
}
.hot-card-summary {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 10px;
}
.hot-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--ink-3);
}
.hot-pathtag {
  background: var(--green-bg, #E6EFEA);
  color: var(--green-mid);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
}
.hot-source {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 10px;
}

/* 热点 chips */
.hot-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hot-chips .chip { flex-shrink: 0; }

/* 空状态 */
.hot-empty {
  text-align: center;
  padding: 40px 16px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ─── 单条热点详情(hot-detail.html)─── */
.hot-detail-head { padding-bottom: 14px; border-bottom: 1px solid var(--bg); margin-bottom: 16px; }
.hot-detail-meta { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.hot-detail-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.4;
  margin: 0 0 12px;
}
.hot-detail-pathtags { display: flex; gap: 6px; flex-wrap: wrap; }
.hot-detail-summary {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 16px;
}
.hot-detail-entities {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  line-height: 1.6;
}
.hot-detail-source {
  font-size: 12px;
  color: var(--ink-3);
  padding: 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  line-height: 1.7;
}
.hot-detail-source a { color: var(--green-mid); text-decoration: none; }
.hot-detail-disclaimer {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  padding: 8px 0;
  opacity: 0.7;
}

/* ─── 白露解读卡片 ─── */
.lulu-take {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFFCE5 100%);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin: 16px 0;
  border-left: 3px solid var(--gold-deep);
}
.lulu-take-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lulu-take-icon {
  width: 24px; height: 24px;
  background: var(--gold-deep);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
}
.lulu-take-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-deep);
}
.lulu-take-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}
.lulu-take-locked { background: linear-gradient(135deg, #F5F5F5 0%, #FAFAFA 100%); border-left-color: var(--ink-3); }
.lulu-take-locked .lulu-take-icon { background: var(--ink-3); }
.lulu-take-locked .lulu-take-title { color: var(--ink-3); }
.lulu-take-blur { filter: blur(2px); user-select: none; }
.lulu-take-cta {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  background: var(--green-mid);
  color: white;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ─── 关联合作方区块 ─── */
.hot-related { margin: 18px 0; }
.related-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.related-name { font-weight: 600; color: var(--green-deep); font-size: 14px; }
.related-meta { font-size: 11px; color: var(--ink-3); }

/* ═════════════════════════════════════════════════════════════
   v1.8.1 新增样式
   ═════════════════════════════════════════════════════════════ */

/* ───── 内容 Tab 顶部三 banner ───── */
.content-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(27,67,50,.04);
  padding: 6px;
  border-radius: 14px;
}
.content-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .18s ease;
  font-size: 12px;
}
.content-tab-icon { color: currentColor; opacity: .7; }
.content-tab-name { font-size: 14px; font-weight: 600; }
.content-tab-count { font-size: 10px; color: var(--ink-hint); font-family: var(--font-mono); }
.content-tab-active {
  background: var(--bg-white);
  color: var(--green-deep);
  box-shadow: 0 2px 8px rgba(27,67,50,.08);
}
.content-tab-active .content-tab-icon { opacity: 1; }
.content-tab-active .content-tab-count { color: var(--green-mid); }

/* ───── 热点卡 · 普通/重要 二分(v1.8.4 全局禁红 + 去彩色边) ───── */
.hot-card-normal {
  background: var(--bg-white);
}
.hot-card-important {
  background: var(--bg-white);
}
.hot-tag-normal {
  display: none;  /* v1.8.4 普通无标注 */
}
.hot-tag-important {
  background: var(--green-deep);
  color: white;
  padding: 2px 8px 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.hot-tag-important::before {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.hot-card-mini {
  padding: 12px 14px !important;
  margin-bottom: 8px;
}
.hot-card-mini .hot-card-title { font-size: 14px; line-height: 1.4; }

/* ───── 案例库列表卡 ───── */
.case-row {
  display: block;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
}
.case-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.case-row-region { color: var(--green-mid); font-weight: 500; }
.case-row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.4;
  margin-bottom: 6px;
}
.case-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.case-row-amount { color: var(--green-mid); font-weight: 600; }

/* ───── 资源库 res 区域显示 ───── */
.res-region {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--ink-3);
}
.res-foot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* ───── 会员页面 plan-card ───── */
.member-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
}
.member-status-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.member-status-main { flex: 1; min-width: 0; }
.member-status-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.member-status-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.plan-card {
  background: var(--bg-white);
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.plan-card-premium {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F8F2 100%);
  border: 1px solid rgba(181,136,26,.18);
  box-shadow: 0 4px 20px rgba(27,67,50,.08);
}
.plan-card-vip {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F4EC 100%);
  border: 1.5px solid rgba(181,136,26,.32);
  box-shadow: 0 6px 24px rgba(181,136,26,.14);
}

.plan-head { margin-bottom: 14px; }
.plan-recommend {
  display: inline-block;
  background: rgba(64,145,108,.12);
  color: var(--green-mid);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.plan-recommend-gold {
  background: rgba(181,136,26,.12);
  color: #B5881A;
}
.plan-recommend-vip {
  background: linear-gradient(135deg, #B5881A, #D4A538);
  color: white;
}
.plan-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--green-deep);
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}
.plan-unit { font-size: 14px; color: var(--ink-3); }
.plan-strikethrough {
  font-size: 12px;
  color: var(--ink-hint);
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}
.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.plan-benefits li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  border-bottom: 1px solid rgba(27,67,50,.04);
}
.plan-benefits li:last-child { border-bottom: 0; }
.plan-benefits li::before {
  content: '';
  position: absolute;
  left: 4px; top: 13px;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340916C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}
.plan-cta { font-weight: 600; }
.plan-foot {
  text-align: center;
  font-size: 11px;
  color: var(--ink-hint);
  margin-top: 10px;
}
.plan-pay-flow {
  background: rgba(27,67,50,.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-pay-flow-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-size: 11px;
}
.plan-included-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(64,145,108,.08);
  color: var(--green-mid);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ───── 支付二维码弹窗 ───── */
.pay-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pay-modal-mask {
  position: absolute; inset: 0;
  background: rgba(15,23,17,.55);
  backdrop-filter: blur(4px);
}
.pay-modal-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.pay-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 22px;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
}
.pay-modal-title {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.pay-modal-amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.pay-modal-qr {
  display: flex; justify-content: center;
  margin-bottom: 12px;
}
.pay-modal-tip {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.pay-modal-status {
  font-size: 12px;
  color: var(--ink-3);
  background: rgba(27,67,50,.04);
  padding: 8px 12px;
  border-radius: 10px;
}
.btn-disabled { opacity: .5; cursor: not-allowed; }

/* ───── 顶部安全区适配(微信浏览器)───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg-primary);
}


/* ═════════════════════════════════════════════════════════════
   v1.8.3 首页 5 banner SPA · 二级功能 1 排
   ═════════════════════════════════════════════════════════════ */

/* ───── 顶部 5 banner Tab(横滑可达) ───── */
.home-banner-tabs {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg-primary);
  padding: 8px 0 4px;
  margin: 0;
  border-bottom: 0.5px solid rgba(27,67,50,.08);
}
.home-banner-tabs-inner {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-banner-tabs-inner::-webkit-scrollbar { display: none; }

.home-banner-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  border-radius: 16px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .2s ease;
  position: relative;
}
.home-banner-tab:active {
  transform: scale(0.96);
}
.home-banner-tab.active {
  color: #fff;
  font-weight: 600;
  background: var(--green-deep);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.18);
}
.home-banner-tab.active::after {
  display: none; /* v1.8.4 不要下划线 · 用整体高亮替代 */
}

/* ───── banner 内容区 ───── */
.home-banner-view {
  display: none;
  margin-top: 14px;
}
.home-banner-view.active {
  display: block;
}

/* ───── 二级功能 1 排(线性 iOS icon)───── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px 4px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  margin: 12px 0 18px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink-1);
  transition: background .15s ease;
}
.quick-action:active {
  background: rgba(27,67,50,.06);
}
.quick-action-icon {
  width: 28px; height: 28px;
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.quick-action-icon svg { width: 26px; height: 26px; }
.quick-action-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

/* ───── 大 Banner · ¥199 主推 ───── */
.hero-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: #fff;
  border-radius: 18px;
  margin: 14px 0 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(27,67,50,.16);
}
.hero-promo-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-promo-icon svg { width: 26px; height: 26px; color: #fff; }
.hero-promo-main { flex: 1; min-width: 0; }
.hero-promo-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.hero-promo-desc { font-size: 12px; opacity: .85; line-height: 1.5; }
.hero-promo-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ───── 信息流卡片(v1.8.4 全局禁红 · 无彩色边 · 深绿盾) ───── */
.feed-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feed-card:active { transform: scale(0.99); }
.feed-card.feed-card-important {
  background: var(--bg-white);
}
.feed-card.feed-card-normal {
  background: var(--bg-white);
}
.feed-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.feed-card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.feed-card-tag-important {
  background: var(--green-deep);
  color: white;
  padding: 2px 8px 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.feed-card-tag-important::before {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.feed-card-tag-normal {
  display: none; /* v1.8.4 普通无标注 */
  font-size: 11px;
  font-weight: 500;
}
.feed-card-path {
  font-size: 11px;
  color: var(--green-mid);
  font-weight: 500;
}
.feed-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.4;
  margin-bottom: 6px;
}
.feed-card-summary {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ───── 加载更多 ───── */
.feed-loadmore {
  text-align: center;
  padding: 16px;
  color: var(--ink-3);
  font-size: 13px;
}
.feed-loadmore-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-white);
  border-radius: var(--r-pill);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  box-shadow: var(--sh-1);
}

/* ───── 测评 banner SKU 卡 ───── */
.test-sku-list { display: flex; flex-direction: column; gap: 10px; }
.test-sku-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
}
.test-sku-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-mint);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.test-sku-main { flex: 1; min-width: 0; }
.test-sku-name { font-size: 15px; font-weight: 600; color: var(--green-deep); margin-bottom: 4px; }
.test-sku-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.test-sku-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-deep);
}


/* ═════════════════════════════════════════════════════════════
   v1.8.4 · 我 Tab 重构样式
   ═════════════════════════════════════════════════════════════ */

/* ───── 顶部用户信息卡(类测测) ───── */
.user-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(27,67,50,.18);
}
.user-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-hero-avatar-empty {
  background: rgba(255,255,255,.16);
}
.user-hero-main {
  flex: 1;
  min-width: 0;
}
.user-hero-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.user-hero-sub {
  font-size: 12px;
  opacity: .82;
}
.user-hero .btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 14px;
  flex-shrink: 0;
}
.user-hero .btn-primary {
  background: rgba(255,255,255,.96);
  color: var(--green-deep);
  border: 0;
  font-weight: 600;
}
.user-hero .btn-secondary {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 500;
}

/* ───── 营销 4 行 ───── */
.my-action-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(27,67,50,.06);
  border-radius: var(--r-lg);
  margin: 18px 0 16px;
  overflow: hidden;
}
.my-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.my-action:active { background: var(--bg-mint, #F0F7F1); }
.my-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-mint, #E5F0E8);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.my-action-main { flex: 1; min-width: 0; }
.my-action-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.my-action-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.my-action-meta {
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 500;
  margin-right: 4px;
  flex-shrink: 0;
}
.my-action-chev {
  color: var(--ink-3);
  flex-shrink: 0;
}

/* ───── 邀请有礼卡片 ───── */
.my-invite-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FAF1D6 0%, #F0E5C5 100%);
  border-radius: 18px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--ink-1);
  box-shadow: 0 4px 14px rgba(181,136,26,.12);
}
.my-invite-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(181,136,26,.18);
  color: #B5881A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.my-invite-main { flex: 1; min-width: 0; }
.my-invite-title {
  font-size: 15px;
  font-weight: 700;
  color: #7A5A0E;
  margin-bottom: 4px;
}
.my-invite-sub {
  font-size: 12px;
  color: #8A6E2C;
  line-height: 1.5;
}

/* ───── 设置紧凑横排 ───── */
.my-settings-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.my-setting-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 0;
  border-radius: 18px;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: transform .12s ease;
}
.my-setting-pill:active { transform: scale(0.96); }
.my-setting-pill svg { color: var(--green-deep); }

/* ───── 关于我们折叠 ───── */
.about-collapse {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.about-collapse[open] .about-summary-chev {
  transform: rotate(180deg);
}
.about-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.about-summary::-webkit-details-marker { display: none; }
.about-summary-chev {
  color: var(--ink-3);
  transition: transform .2s ease;
}
.about-collapse-body {
  padding: 4px 18px 18px;
  border-top: 0.5px solid rgba(27,67,50,.08);
}
.about-collapse-body .about-intro {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.about-collapse-body .about-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.about-collapse-body .about-team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-mint, #E5F0E8);
  color: var(--green-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-collapse-body .about-team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
}
.about-collapse-body .about-team-role {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.about-legal-list {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.about-legal-list a {
  color: var(--ink-3);
  text-decoration: none;
}
.about-legal-list a:active { color: var(--green-deep); }
.about-legal-list span {
  margin: 0 4px;
  color: var(--ink-3);
}
.about-company {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
}

/* ───── 我 Tab footer ───── */
.my-footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  padding: 18px 0 12px;
  letter-spacing: 0.02em;
}

/* ═════════════════════════════════════════════════════════════
   v1.8.4 · 全站 main 加 padding-bottom 防 Tab 遮挡
   ═════════════════════════════════════════════════════════════ */
.app {
  padding-bottom: calc(var(--tabbar-h, 64px) + var(--safe-bottom, 0px) + 24px);
}

/* ═════════════════════════════════════════════════════════════
   v1.8.4 · 邀请码功能样式(redeem.html + admin-codes.html)
   把这段 CSS 追加到 rivermap-design.css 末尾
   ═════════════════════════════════════════════════════════════ */

/* ───── redeem.html 落地页 ───── */
.redeem-brand {
  text-align: center;
  margin-bottom: 28px;
}
.redeem-brand-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.redeem-brand-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

.redeem-status {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
  font-size: 14px;
}
.redeem-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(45,106,79,.2);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: redeem-spin 0.8s linear infinite;
}
@keyframes redeem-spin {
  to { transform: rotate(360deg); }
}

/* 有效码卡 */
.redeem-card {
  position: relative;
  background: linear-gradient(135deg, #FAF1D6 0%, #F0E5C5 100%);
  border-radius: 22px;
  padding: 32px 22px 24px;
  box-shadow: 0 8px 28px rgba(181,136,26,.18);
}
.redeem-card-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green-deep);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.redeem-card-tier {
  font-size: 24px;
  font-weight: 700;
  color: #7A5A0E;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.redeem-card-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.redeem-perk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5C4408;
}
.redeem-perk-row svg {
  color: var(--green-mid);
  flex-shrink: 0;
}
.redeem-code-box {
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.redeem-code-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.redeem-code-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.redeem-card-meta {
  text-align: center;
  font-size: 12px;
  color: #8A6E2C;
  margin-bottom: 22px;
}

/* 表单 */
.redeem-form {
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  margin-top: 8px;
}
.redeem-form-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.redeem-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(27,67,50,.15);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-1);
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
  -webkit-appearance: none;
}
.redeem-form input:focus {
  border-color: var(--green-mid);
}
.redeem-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.redeem-code-row input {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  font-size: 16px;
}
.redeem-code-row .btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
}
.redeem-submit {
  margin-top: 14px;
}
.redeem-form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--green-mid);
  margin-top: 10px;
  min-height: 16px;
}
.redeem-form-tip-error {
  color: #B5881A;
}

/* 无效码卡 */
.redeem-card-invalid {
  background: #fff;
  border-radius: 22px;
  padding: 36px 24px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.redeem-invalid-icon {
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.redeem-invalid-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.redeem-invalid-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* 成功卡 */
.redeem-card-success {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-radius: 22px;
  padding: 36px 24px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 28px rgba(27,67,50,.22);
}
.redeem-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.redeem-success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.redeem-success-desc {
  font-size: 13px;
  opacity: .88;
  line-height: 1.6;
  margin-bottom: 22px;
}
.redeem-card-success .btn-primary {
  background: rgba(255,255,255,.96);
  color: var(--green-deep);
}
.redeem-card-success .btn-secondary {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}

.redeem-footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 36px;
  padding-bottom: 24px;
  letter-spacing: 0.02em;
}

/* ───── admin-codes.html 后台 ───── */
.admin-token-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  background: var(--bg-white);
  padding: 14px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.admin-token-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(27,67,50,.15);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.admin-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-form-label {
  font-size: 13px;
  color: var(--ink-2);
  width: 80px;
  flex-shrink: 0;
}
.admin-input, .admin-select {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(27,67,50,.15);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
}
.admin-form-tip {
  font-size: 11px;
  color: var(--ink-3);
  width: 100%;
  margin-left: 90px;
}

.admin-codes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--sh-1);
}
.admin-code-row-new {
  background: linear-gradient(135deg, rgba(64,145,108,.06), rgba(64,145,108,.02));
}
.admin-code-main {
  flex: 1;
  min-width: 0;
}
.admin-code-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  word-break: break-all;
}
.admin-code-meta {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}
.admin-status-unused { color: var(--green-mid); font-weight: 600; }
.admin-status-used { color: var(--ink-3); }
.admin-status-other { color: #B5881A; }

.admin-codes-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.admin-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

/* ───── v1.8.4 · 我 Tab 顶部设置 2 按钮(右对齐) ───── */
.my-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}
.my-top-actions .my-setting-pill {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(27,67,50,.06);
}
.my-top-actions .my-setting-pill svg {
  width: 14px;
  height: 14px;
}

/* ───── v1.8.4 · admin token 提示 ───── */
.admin-token-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.admin-token-tip {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
}

/* ───── v1.8.4 · 详情页固定返回按钮(case/path/partner/hot) ───── */
.detail-back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 12px) + 12px);
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(27,67,50,0.15);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.detail-back-btn:hover, .detail-back-btn:active {
  transform: scale(0.95);
  background: rgba(255,255,255,1);
}
.detail-back-btn svg {
  width: 22px;
  height: 22px;
}
/* 详情页内容区给返回按钮让位 */
body[data-detail] .app {
  padding-top: env(safe-area-inset-top, 0px);
}

/* ═══════════════════════════════════════════════════════════════
   v1.8.5 · hot.html + hot-detail.html 升级组件
   ═══════════════════════════════════════════════════════════════ */

/* ───── hot.html 时间筛选 + 二级标签 ───── */
.hot-tag-collapse {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 14px;
}
.hot-tag-summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  user-select: none;
  list-style: none;
}
.hot-tag-summary::-webkit-details-marker { display: none; }
.hot-tag-summary::before {
  content: '▸ '; transition: transform 0.2s;
  display: inline-block;
}
.hot-tag-collapse[open] .hot-tag-summary::before {
  transform: rotate(90deg);
}
.hot-tag-count {
  color: var(--green); font-weight: 700;
  margin-left: 6px;
}
.chip-num {
  background: rgba(45,106,79,.12);
  color: var(--green-deep);
  padding: 1px 6px; border-radius: 8px;
  font-size: 10px; margin-left: 4px;
}

.hot-milestone-banner {
  background: linear-gradient(135deg, #FFF3CD, #FFE9B3);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hot-milestone-icon { font-size: 24px; }
.hot-milestone-title {
  font-size: 14px; font-weight: 700; color: var(--gold-deep);
}
.hot-milestone-sub {
  font-size: 12px; color: #856404; margin-top: 2px;
}

.hot-autotag {
  display: inline-block;
  background: rgba(45,106,79,.08);
  color: var(--green-mid);
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; margin-right: 4px;
}
.hot-verified {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-deep);
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  margin-left: 6px;
}
.hot-milestone-flag {
  display: inline-block;
  background: linear-gradient(135deg, #FFF3CD, #FFE9B3);
  color: var(--gold-deep);
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
  margin-left: 6px;
}
.hot-card-milestone {
  border-left: 3px solid var(--gold) !important;
  padding-left: 13px !important;
}

/* ───── hot-detail.html 7 大字段 ───── */
.hd-section-title {
  font-size: 14px; color: var(--green-deep);
  font-weight: 700; margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hd-hero {
  background: var(--bg-card); border-radius: 14px;
  padding: 18px;
}
.hd-milestone-bar {
  background: linear-gradient(135deg, #FFF3CD, #FFE9B3);
  color: var(--gold-deep); padding: 10px 14px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.hd-tags { margin-bottom: 12px; }
.hd-pathtag {
  display: inline-block; background: var(--green-bg);
  color: var(--green-deep); padding: 3px 10px;
  border-radius: 10px; font-size: 11px; font-weight: 600;
  margin-right: 6px; margin-bottom: 4px;
}
.hd-autotag {
  display: inline-block; background: rgba(45,106,79,.08);
  color: var(--green-mid); padding: 3px 10px;
  border-radius: 10px; font-size: 11px;
  margin-right: 6px; margin-bottom: 4px;
}
.hd-title {
  font-size: 22px; font-weight: 800; color: var(--green-deep);
  line-height: 1.3; margin: 8px 0 12px;
}
.hd-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-3); margin-bottom: 14px;
}
.hd-stars { color: var(--gold); font-size: 13px; }
.hd-stars-empty { color: rgba(0,0,0,.15); }
.hd-verified {
  background: var(--green-bg); color: var(--green-deep);
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
}
.hd-date { font-weight: 500; }
.hd-source { color: var(--ink-3); }
.hd-summary {
  font-size: 14px; line-height: 1.7; color: var(--ink);
  background: var(--bg-sunk); padding: 12px 14px;
  border-radius: 10px;
}

.hd-numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.hd-number-card {
  background: var(--bg-card); padding: 14px; border-radius: 12px;
  text-align: center;
}
.hd-number-label { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.hd-number-value {
  font-size: 20px; font-weight: 800; color: var(--green-deep);
  line-height: 1.2;
}
.hd-number-context {
  font-size: 11px; color: var(--ink-2); margin-top: 4px;
}

.hd-entity-card {
  background: var(--bg-card); border-radius: 12px;
  padding: 14px; margin-bottom: 10px;
}
.hd-entity-name {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px;
}
.hd-entity-role {
  font-size: 12px; color: var(--green); font-weight: 600;
  margin-bottom: 8px;
}
.hd-entity-bg {
  font-size: 13px; line-height: 1.6; color: var(--ink);
}
.hd-entity-why {
  font-size: 12px; color: var(--green-deep);
  background: var(--green-bg); padding: 6px 10px;
  border-radius: 8px; margin-top: 8px;
}

.hd-license {
  background: var(--bg-card); border-radius: 12px; padding: 14px;
}
.hd-license-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.hd-license-row:last-child { border-bottom: none; }
.hd-license-key {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.hd-license-val {
  font-size: 13px; color: var(--ink); line-height: 1.5;
}

.hd-timeline {
  background: var(--bg-card); border-radius: 12px; padding: 16px;
}
.hd-timeline-item {
  display: flex; gap: 12px; padding-bottom: 14px;
  position: relative;
}
.hd-timeline-item:not(:last-child)::after {
  content: ''; position: absolute;
  left: 5px; top: 18px; bottom: 0;
  width: 2px; background: rgba(45,106,79,.15);
}
.hd-timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-pale); margin-top: 4px;
  flex-shrink: 0; z-index: 1;
}
.hd-timeline-current .hd-timeline-dot {
  background: var(--gold); box-shadow: 0 0 0 4px rgba(181,136,26,.2);
}
.hd-timeline-content { flex: 1; }
.hd-timeline-date {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  margin-bottom: 2px;
}
.hd-timeline-event {
  font-size: 13px; color: var(--ink); line-height: 1.5;
}
.hd-timeline-current .hd-timeline-event {
  color: var(--green-deep); font-weight: 600;
}

.hd-significance-text {
  background: var(--bg-card); border-radius: 12px;
  padding: 16px; font-size: 14px; line-height: 1.8; color: var(--ink);
}

.hd-related {
  display: grid; gap: 10px;
}
.hd-related-card {
  display: block; background: var(--bg-card);
  border-radius: 12px; padding: 14px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hd-related-card:hover, .hd-related-card:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27,67,50,.08);
}
.hd-related-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; margin-bottom: 6px;
}
.hd-related-case .hd-related-badge {
  background: var(--green-bg); color: var(--green-deep);
}
.hd-related-resource .hd-related-badge {
  background: rgba(181,136,26,.12); color: var(--gold-deep);
}
.hd-related-name {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px;
}
.hd-related-relation {
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}

.hd-recommend {
  display: grid; gap: 8px;
}
.hd-rec-card {
  display: block; background: var(--bg-card);
  border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ink);
  border-left: 3px solid var(--green-pale);
}
.hd-rec-reason {
  font-size: 11px; color: var(--green); font-weight: 600;
  margin-bottom: 4px;
}
.hd-rec-title {
  font-size: 14px; font-weight: 600; color: var(--green-deep);
  margin-bottom: 6px; line-height: 1.4;
}
.hd-rec-meta {
  font-size: 11px; color: var(--ink-3);
}
.hd-rec-stars { color: var(--gold); }

.hd-references {
  background: var(--bg-card); border-radius: 12px;
  padding: 14px;
}
.hd-ref-item {
  display: flex; gap: 10px; padding: 6px 0;
  font-size: 12px; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.hd-ref-item:last-child { border-bottom: none; }
.hd-ref-num {
  color: var(--green); font-weight: 700;
  min-width: 24px;
}
.hd-ref-item a {
  color: var(--green-deep); flex: 1;
  text-decoration: underline; text-decoration-color: rgba(45,106,79,.3);
}
.hd-ref-date { color: var(--ink-3); font-size: 11px; }

.hd-ref {
  font-size: 9px; color: var(--green); font-weight: 700;
  vertical-align: super; margin-left: 2px;
}

.hd-empty {
  text-align: center; color: var(--ink-3);
  padding: 20px; font-size: 13px;
  background: var(--bg-card); border-radius: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   v1.8.6 · 报告系统样式(预览/问卷/等待/查看)· 严肃决策版
   ═══════════════════════════════════════════════════════════════ */

/* ───── 通用 hero ───── */
.rp-hero {
  background: linear-gradient(135deg, #F0F5F1, #E8F0EB);
  border-radius: 16px; padding: 24px 20px;
  position: relative; overflow: hidden;
}
.rp-hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(181,136,26,0.08), transparent 70%);
}
.rp-hero-tag {
  display: inline-block; background: var(--green-deep); color: #fff;
  padding: 4px 12px; border-radius: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 14px;
}
.rp-hero-title {
  font-size: 26px; font-weight: 800; color: var(--green-deep);
  line-height: 1.3; margin-bottom: 10px;
}
.rp-hero-sub {
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
  margin-bottom: 18px;
}
.rp-hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 16px;
}
.rp-hero-meta-item {
  text-align: center; background: rgba(255,255,255,0.5);
  padding: 10px 4px; border-radius: 10px;
}
.rp-meta-num {
  display: block; font-size: 18px; font-weight: 800; color: var(--green-deep);
  line-height: 1.1;
}
.rp-meta-label {
  display: block; font-size: 10px; color: var(--ink-3); margin-top: 2px;
}

/* ───── section 标题 ───── */
.rp-section-title {
  font-size: 16px; color: var(--green-deep); font-weight: 700;
  margin-bottom: 14px; letter-spacing: 0.3px;
}

/* ───── 三个困境 ───── */
.rp-pain-list { display: grid; gap: 10px; }
.rp-pain-item {
  display: flex; gap: 14px; background: var(--bg-card);
  padding: 16px; border-radius: 12px;
}
.rp-pain-num {
  font-size: 22px; font-weight: 800; color: var(--green-pale);
  line-height: 1; flex-shrink: 0; min-width: 36px;
}
.rp-pain-title {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 6px; line-height: 1.4;
}
.rp-pain-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}

/* ───── 章节 TOC ───── */
.rp-toc {
  background: var(--bg-card); border-radius: 14px;
  padding: 4px 0; overflow: hidden;
}
.rp-toc-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.04);
  align-items: start;
}
.rp-toc-item:last-child { border-bottom: none; }
.rp-toc-num {
  font-size: 11px; color: var(--green); font-weight: 700;
  letter-spacing: 0.5px; padding-top: 2px;
}
.rp-toc-name {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px; display: block;
}
.rp-toc-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
  display: block;
}
.rp-toc-item > .rp-toc-name { 
  margin-bottom: 4px;
}

/* ───── 样张 ───── */
.rp-sample {
  background: #F7FAF7; border: 1px solid rgba(45,106,79,0.1);
  border-radius: 14px; padding: 18px;
  position: relative; overflow: hidden;
}
.rp-sample-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-20deg);
  font-size: 48px; font-weight: 900; color: rgba(45,106,79,0.06);
  pointer-events: none; letter-spacing: 6px;
}
.rp-sample-header { margin-bottom: 14px; }
.rp-sample-meta {
  font-size: 11px; color: var(--green); font-weight: 600;
  letter-spacing: 1px;
}
.rp-sample-title {
  font-size: 16px; font-weight: 700; color: var(--green-deep);
  margin-top: 4px;
}
.rp-sample-table {
  background: #fff; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px;
}
.rp-sample-row {
  display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr 0.8fr;
  padding: 10px 12px; font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  align-items: center;
}
.rp-sample-row:last-child { border-bottom: none; }
.rp-sample-row > div:first-child { font-weight: 600; color: var(--ink); }
.rp-sample-row-head {
  background: var(--green-bg); font-weight: 700;
  color: var(--green-deep); font-size: 11px;
}
.rp-sample-row-recommend {
  background: rgba(181,136,26,0.06);
}
.rp-sample-row-recommend > div { color: var(--green-deep); font-weight: 700; }
.rp-sample-text {
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
  background: #fff; padding: 12px 14px; border-radius: 10px;
}
.rp-sample-text strong { color: var(--green-deep); }

/* ───── 已交付方向 ───── */
.rp-customers {
  background: var(--bg-card); border-radius: 14px; padding: 4px 0;
}
.rp-customer-row {
  display: flex; gap: 12px; align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.rp-customer-row:last-child { border-bottom: none; }
.rp-customer-icon {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-top: 8px; flex-shrink: 0;
}
.rp-customer-text {
  font-size: 13px; color: var(--ink); line-height: 1.6;
}

/* ───── 交付流程 ───── */
.rp-flow {
  background: var(--bg-card); border-radius: 14px; padding: 16px;
}
.rp-flow-step {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.rp-flow-step:last-child { border-bottom: none; }
.rp-flow-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.rp-flow-title {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px;
}
.rp-flow-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
}

/* ───── 固定底部付款条 ───── */
.rp-pay-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  max-width: 480px; margin: 0 auto;
  z-index: 90;
}
.rp-pay-info { flex: 1; }
.rp-pay-price {
  font-size: 24px; font-weight: 800; color: var(--green-deep);
  line-height: 1.1;
}
.rp-pay-tip {
  font-size: 11px; color: var(--ink-3); margin-top: 3px;
}
.rp-pay-btn {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: #fff; padding: 12px 28px; border-radius: 22px;
  font-size: 14px; font-weight: 700; border: none;
  box-shadow: 0 2px 10px rgba(45,106,79,0.25);
  cursor: pointer; transition: transform 0.15s;
}
.rp-pay-btn:hover, .rp-pay-btn:active {
  transform: scale(0.97);
}
.rp-pay-btn[disabled] {
  background: rgba(0,0,0,0.15); cursor: not-allowed;
}

/* ───── 表单 ───── */
.rp-form-progress { background: var(--bg-card); padding: 14px; border-radius: 12px; }
.rp-form-progress-bar {
  height: 6px; background: rgba(45,106,79,0.1); border-radius: 3px;
  overflow: hidden; margin-bottom: 8px;
}
.rp-form-progress-fill {
  height: 100%; background: var(--green-deep);
  transition: width 0.3s ease;
}
.rp-form-progress-text {
  font-size: 12px; color: var(--ink-3);
}
.rp-form-progress-text > span:first-child {
  color: var(--green-deep); font-weight: 700;
}

.rp-form-group {
  margin-bottom: 14px;
}
.rp-form-label {
  display: block; font-size: 13px; color: var(--ink);
  font-weight: 600; margin-bottom: 6px;
}
.rp-required { color: #c0392b; margin-left: 2px; }
.rp-form-input, .rp-form-textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid rgba(45,106,79,0.15);
  border-radius: 10px; font-size: 14px; color: var(--ink);
  font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s;
}
.rp-form-input:focus, .rp-form-textarea:focus {
  outline: none; border-color: var(--green-mid);
}
.rp-form-textarea {
  resize: vertical; min-height: 60px;
}

/* ───── 等待页 ───── */
.rw-card {
  background: var(--bg-card); border-radius: 16px;
  padding: 32px 20px; text-align: center;
}
.rw-spinner { display: flex; justify-content: center; margin-bottom: 18px; }
.rw-title {
  font-size: 20px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 6px;
}
.rw-sub {
  font-size: 12px; color: var(--ink-3); margin-bottom: 20px;
}
.rw-progress-text {
  font-size: 28px; font-weight: 800; color: var(--green-deep);
  font-family: 'Space Mono', Menlo, monospace;
  letter-spacing: 1px; margin-bottom: 12px;
}
.rw-progress-bar {
  height: 8px; background: rgba(45,106,79,0.1); border-radius: 4px;
  overflow: hidden; margin-bottom: 24px;
}
.rw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-deep));
  transition: width 1s linear;
}
.rw-steps { text-align: left; display: grid; gap: 8px; }
.rw-step {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: var(--ink-3);
  transition: all 0.3s;
}
.rw-step-icon {
  font-size: 14px; color: rgba(45,106,79,0.2); flex-shrink: 0;
}
.rw-step-active {
  background: var(--green-bg); color: var(--green-deep); font-weight: 600;
}
.rw-step-active .rw-step-icon {
  color: var(--green-deep); animation: pulse 1.5s infinite;
}
.rw-step-done {
  color: var(--green); 
}
.rw-step-done .rw-step-icon {
  color: var(--green); 
}
.rw-step-done .rw-step-icon::before { content: '✓'; }
.rw-step-done .rw-step-icon { font-size: 14px; font-weight: 700; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.rw-tip-card {
  background: var(--green-bg); border-radius: 12px; padding: 14px 16px;
}
.rw-tip-title {
  font-size: 13px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px;
}
.rw-tip-desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
}
.rw-tip-arrow { color: var(--green); margin: 0 4px; }
.rw-action-btn {
  display: block; text-align: center; padding: 12px;
  background: var(--bg-card); color: var(--green-deep);
  border-radius: 10px; font-size: 13px; font-weight: 600;
  text-decoration: none;
}

/* ───── 报告查看页 ───── */
.rv-meta {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: #fff; padding: 24px 20px; border-radius: 16px;
}
.rv-meta-tag {
  display: inline-block; background: rgba(255,255,255,0.18);
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; margin-bottom: 12px;
}
.rv-meta-title {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  margin-bottom: 12px;
}
.rv-meta-info {
  display: flex; gap: 12px; font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.rv-toc {
  background: var(--bg-card); border-radius: 14px; padding: 16px;
}
.rv-toc-title {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.rv-toc-item {
  display: flex; gap: 12px; padding: 8px 0;
  text-decoration: none; color: var(--ink);
}
.rv-toc-num {
  font-family: 'Space Mono', monospace; color: var(--green-pale);
  font-weight: 700; font-size: 13px;
}
.rv-toc-name {
  font-size: 13px; color: var(--ink); flex: 1;
}

.rv-content {
  display: grid; gap: 18px;
}
.rv-chapter {
  background: var(--bg-card); border-radius: 14px; padding: 20px;
}
.rv-chapter-num {
  font-size: 11px; color: var(--green); font-weight: 700;
  letter-spacing: 1px; margin-bottom: 4px;
}
.rv-chapter-title {
  font-size: 18px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 14px; line-height: 1.4;
}
.rv-chapter-body {
  font-size: 14px; line-height: 1.8; color: var(--ink);
}
.rv-chapter-body h3 {
  font-size: 15px; font-weight: 700; color: var(--green-deep);
  margin: 14px 0 8px;
}
.rv-chapter-body p { margin-bottom: 10px; }
.rv-chapter-body ul, .rv-chapter-body ol {
  padding-left: 20px; margin-bottom: 10px;
}
.rv-chapter-body li { margin-bottom: 4px; }
.rv-chapter-body table {
  width: 100%; border-collapse: collapse;
  margin: 10px 0; font-size: 13px;
}
.rv-chapter-body th, .rv-chapter-body td {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 10px; text-align: left;
}
.rv-chapter-body th {
  background: var(--green-bg); color: var(--green-deep);
}
.rv-chapter-body strong { color: var(--green-deep); }

.rv-action-bar {
  background: rgba(255,255,255,0.96);
}
.rv-action-title {
  font-size: 13px; font-weight: 700; color: var(--green-deep);
}
.rv-action-sub {
  font-size: 11px; color: var(--ink-3); margin-top: 2px;
}
.rv-error {
  text-align: center; color: #c0392b; padding: 20px;
  background: #FFF5F5; border-radius: 12px;
}


/* ───── v1.8.6 · report-center.html SKU 卡 ───── */
.rc-sku-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
  text-decoration: none; color: var(--ink);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.rc-sku-card:hover, .rc-sku-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,67,50,0.08);
}
.rc-sku-featured {
  background: linear-gradient(135deg, #F0F5F1, #E8F0EB);
  border-color: var(--green-pale);
}
.rc-sku-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-bg); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rc-sku-main { flex: 1; min-width: 0; }
.rc-sku-tag {
  display: inline-block; background: var(--green-deep); color: #fff;
  padding: 2px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 700; margin-bottom: 4px;
}
.rc-sku-title {
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px; line-height: 1.4;
}
.rc-sku-desc {
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}
.rc-sku-price {
  font-size: 18px; font-weight: 800; color: var(--green-deep);
  flex-shrink: 0;
}

.rc-member-tip {
  display: block; background: rgba(181,136,26,0.08);
  border-radius: 12px; padding: 14px 16px; margin-top: 4px;
  text-decoration: none;
}
.rc-member-tip-title {
  font-size: 13px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 4px;
}
.rc-member-tip-desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
}
.rc-member-tip-cta {
  font-size: 11px; color: var(--green); margin-top: 6px; font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   v1.8.7 · 我Tab 沉浸式 + 会员折扣
   ═══════════════════════════════════════════════════════════════ */

/* ───── 沉浸式顶部容器 ───── */
.my-top-section {
  padding: calc(env(safe-area-inset-top, 0) + 12px) var(--pad) 4px;
  position: relative;
}

/* 顶部右上 icon · 极简(无文字 · 无背景) */
.my-top-icons {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 24px;
}
.my-icon-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s;
}
.my-icon-btn:hover, .my-icon-btn:active {
  background: rgba(45,106,79,0.06);
  color: var(--green-deep);
}

/* 用户信息平铺(无卡片) */
.my-user-flat {
  padding: 0 var(--pad) 0 0;
}
.my-flat-greeting {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.my-flat-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.my-flat-sub {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
}
.my-flat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: transform 0.15s;
}
.my-flat-cta:hover, .my-flat-cta:active {
  transform: scale(0.97);
}
.my-flat-cta-arrow {
  font-size: 14px;
  margin-left: 2px;
}
.my-flat-member-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.my-flat-member-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #B5881A, #D4AF37);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.my-flat-renew {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

/* 删除/覆盖旧的 user-hero 深色卡片样式 */
.user-hero {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ───── 会员价格条(预览页 + 报告中心) ───── */
.rp-pay-bar-discount {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
}
.rp-price-original {
  font-size: 13px; color: var(--ink-3);
  text-decoration: line-through;
}
.rp-price-discount {
  font-size: 22px; font-weight: 800; color: var(--green-deep);
  line-height: 1;
}
.rp-price-discount-tag {
  display: inline-block;
  background: linear-gradient(135deg, #B5881A, #D4AF37);
  color: #fff; padding: 1px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 700; margin-left: 4px;
  vertical-align: middle;
}
.rp-pay-tip-discount {
  font-size: 11px; color: var(--gold-deep); font-weight: 600;
}
.rp-pay-tip-savings {
  font-size: 10px; color: var(--green); margin-top: 1px;
}

/* report-center 折扣预览 */
.rc-sku-price-with-discount {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px;
}
.rc-sku-price-original {
  font-size: 12px; color: var(--ink-3); text-decoration: line-through;
}
.rc-sku-price-final {
  font-size: 18px; font-weight: 800; color: var(--green-deep);
}
.rc-sku-price-tag {
  font-size: 9px; background: var(--gold);
  color: #fff; padding: 1px 5px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.3px;
}

/* 会员升级促销 banner(预览页顶部) */
.rp-discount-banner {
  background: linear-gradient(135deg, #FFF8E7, #FFEFC2);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.rp-discount-banner-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #B5881A, #D4AF37);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.rp-discount-banner-content {
  flex: 1;
}
.rp-discount-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.rp-discount-banner-desc {
  font-size: 11px;
  color: #856404;
  line-height: 1.4;
}
.rp-discount-banner-arrow {
  color: var(--gold-deep);
  font-size: 18px;
}

/* ═══════════════════ v1.8.8 研报卡片 ═══════════════════ */
.research-card {
  display: block;
  background: #fff;
  border: 1px solid var(--g9, #e8efe8);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--ink, #1A2E1F);
  transition: border-color .2s;
}
.research-card:active { border-color: var(--green-mid, #2D6A4F); }
.research-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.research-card-date { font-size: 12px; color: var(--ink-3, #8a9c8e); font-family: var(--font-mono, 'SF Mono', Menlo, monospace); flex-shrink: 0; }
.research-card-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.research-card-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--bg-mint, #e8f0eb); color: var(--green-mid, #2D6A4F); font-size: 11px; }
.research-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--ink, #1A2E1F); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.research-card-summary { font-size: 14px; line-height: 1.6; color: var(--ink-2, #5a6e5e); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.research-card-author { font-size: 12px; color: var(--ink-3, #8a9c8e); }

/* ═══════════════════ Chat 模式切换栏 ═══════════════════ */
/* chat-mode-bar 由 chat.html 内联控制 */

/* ═══════════════════ v1.8.9 Slogan ═══════════════════ */
.page-title-v189 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink, #1A2E1F);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.page-title-sub-v189 {
  font-size: 13px;
  color: var(--ink-3, #8a9c8e);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

/* ═══ 路径 Tab · iOS 分段控件风格（一行三列+副标题） ═══ */
.paths-seg {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  background: var(--bg-sunk);
  padding: 3px;
  border-radius: 10px;
}
.paths-seg-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .18s;
}
.paths-seg-item.active {
  background: var(--bg-white);
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.paths-seg-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.paths-seg-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: .7;
  line-height: 1.2;
}
.paths-seg-item.active .paths-seg-sub {
  opacity: .85;
  color: var(--green-mid);
}

/* ═══ 路径 Banner 样式 ═══ */
.paths-hero-banner {
  margin-bottom: 16px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.paths-hero-free {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-mint);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}
.paths-hero-free-icon { flex-shrink: 0; }
.paths-hero-free-text { flex: 1; }
.paths-hero-paid {
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fdf9 0%, #edf7f0 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.rwa-row-lock {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ═══ Tab 内文字说明 ═══ */
.rwa-tab-intro-box {
  padding: 12px 14px;
  background: var(--bg-mint);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.rwa-tab-intro-box p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 4px;
}
.rwa-tab-intro-box p:last-child { margin-bottom: 0; }
.rwa-tab-intro-box strong {
  color: var(--green-deep);
  font-weight: 600;
}

/* ═══ 底部 CTA 双按钮 ═══ */
.paths-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.paths-cta-free,
.paths-cta-paid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: var(--r-md);
  text-decoration: none;
  text-align: center;
}
.paths-cta-free {
  background: var(--bg-mint);
  border: 1px solid var(--border);
}
.paths-cta-paid {
  background: var(--green-deep);
}
.paths-cta-free .paths-cta-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
}
.paths-cta-free .paths-cta-desc {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
}
.paths-cta-paid .paths-cta-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.paths-cta-paid .paths-cta-desc {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  margin-top: 3px;
}


/* ═══ 会员周期切换 ═══ */
.plan-period-seg {
  display: flex;
  gap: 0;
  background: var(--bg-sunk);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.plan-period-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.plan-period-btn.active {
  background: var(--bg-white);
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.plan-period-save {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--green-mid);
  margin-top: 2px;
}
