/* ═══════════════════════════════════════════════════════════
   Dream Memos · 样式表
   零外部依赖（不引 Tailwind CDN / Google Fonts）—— 国内访问不需翻墙、首屏更快
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0c16;
  --bg-2: #0f1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eaecf5;
  --text-2: #a9aec4;
  --text-3: #6d7288;
  --gold: #d8b98a;
  --gold-2: #b8955f;
  --ice: #8ea9e8;
  --violet: #9b8cd8;
  --ok: #6fbf8f;
  --warn: #d9a95c;
  --radius: 16px;
  --radius-lg: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须真的隐藏。
 * 踩过的坑：如果一个元素同时有自己的 display（例如 .rec-detail{display:flex}），
 * 作者样式的 display 会盖掉 hidden 属性自带的 display:none ——
 * 结果是「默认折叠」的解读详情一直展开着，页面被撑到 6000px 高，
 * 而代码里看 [hidden] 是设对了的，非常难查。
 * 这一条一次性挡住所有同类问题（日记详情、语音提示条、加载更多按钮都中过）。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ── 导航 ── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 22, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.brand-mark { color: var(--gold); font-size: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* 日记枢纽 tab（Journal / Trends）：把趋势图收进日记页后，用它在大块视图间切换 */
.hub-tabs { display: flex; gap: 6px; margin: 16px 0 22px; }
.hub-tab-btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .15s ease;
}
.hub-tab-btn:hover { color: var(--text); border-color: var(--gold); }
.hub-tab-btn.is-active { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 600; }
.hub-tab-panel[hidden] { display: none; }

/* 统一导航的 Explore 折叠菜单：纯 <details>，零 JS、移动端原生可用。
 * 桌面端 hover 即开；移动端点击展开（[open]）。菜单是看人的内容，z-index 抬高。 */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--text-2); user-select: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::marker { display: none; }
.nav-drop .caret { font-size: 10px; opacity: .7; }
.nav-drop[open] > summary, .nav-drop:hover > summary, .nav-drop:focus-within > summary { color: var(--text); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 10px; min-width: 196px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18); padding: 8px; display: none;
  flex-direction: column; gap: 2px; z-index: 60;
}
.nav-drop[open] > .nav-drop-menu,
.nav-drop:hover > .nav-drop-menu,
.nav-drop:focus-within > .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 9px 12px; border-radius: 9px; color: var(--text); white-space: nowrap; }
.nav-drop-menu a:hover { background: var(--bg-2); color: var(--gold); }

/* Explore 引导增强：首访高亮脉冲 + 箭头动效（不改折叠结构，只提升可发现性） */
.nav-drop > summary .caret { transition: transform .2s ease; }
.nav-drop[open] > summary .caret { transform: rotate(180deg); }
.nav-drop > summary:hover .caret { animation: caretBob .9s ease-in-out infinite; }
@keyframes caretBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.nav-drop > summary.hint {
  color: var(--gold);
  border-radius: 9px;
  animation: explorePulse 1.7s ease-in-out infinite;
}
.nav-drop > summary.hint .caret { opacity: 1; color: var(--gold); }
.nav-drop > summary.hint::after {
  content: "Try \2192";
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold);
}
@keyframes explorePulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 185, 138, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(216, 185, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 185, 138, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drop > summary:hover .caret { animation: none; }
  .nav-drop > summary.hint { animation: none; box-shadow: 0 0 0 2px rgba(216, 185, 138, .5); }
}

/* 语言切换器：跟导航同款胶囊样式。用 <select> 而不是两个链接 ——
 * 以后加第三门语言只需要在 HTML 里加一个 <option>，不用碰布局。 */
.lang-pick { display: inline-flex; align-items: center; }
.lang-pick select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-family: inherit;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.lang-pick select:hover { border-color: var(--gold); color: var(--gold); }
.lang-pick select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 下拉里的选项由操作系统绘制，深色底必须显式给，否则在 Windows 上是黑底黑字 */
.lang-pick option { background: #14162a; color: #eceef7; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.badge-live { border-color: rgba(111,191,143,.45); color: var(--ok); }
.badge-live .dot { background: var(--ok); box-shadow: 0 0 8px rgba(111,191,143,.8); }
.badge-demo { border-color: rgba(217,169,92,.45); color: var(--warn); }
.badge-demo .dot { background: var(--warn); }

/* ── Hero ── */
.hero { position: relative; padding: 88px 0 64px; text-align: center; }
.hero-glow {
  position: absolute; inset: -30% 0 auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(520px 300px at 22% 30%, rgba(142,169,232,.16), transparent 70%),
    radial-gradient(520px 320px at 78% 22%, rgba(155,140,216,.14), transparent 70%),
    radial-gradient(400px 260px at 50% 75%, rgba(216,185,138,.09), transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 5.2vw, 50px); letter-spacing: .02em; }
.lede { max-width: 560px; margin: 22px auto 0; color: var(--text-2); }
.micro { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* ── 输入卡 ── */
.input-card {
  max-width: 720px; margin: 40px auto 0; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
  overflow: hidden;
}
.tabs { display: flex; gap: 4px; padding: 8px 8px 0; }
.tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 0; color: var(--text-3);
  padding: 12px 10px; font-size: 14px; border-radius: 12px 12px 0 0;
  transition: color .2s, background .2s;
}
.tab:hover { color: var(--text-2); }
.tab.is-active { color: var(--gold); background: var(--surface); }
.tab-ico { font-size: 13px; }

.input-body { padding: 18px 22px 20px; }
#dreamInput {
  width: 100%; resize: vertical; min-height: 132px;
  background: rgba(0,0,0,.28); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-family: inherit; font-size: 15px; line-height: 1.8;
  outline: none; transition: border-color .2s;
}
#dreamInput::placeholder { color: var(--text-3); }
#dreamInput:focus { border-color: rgba(216,185,138,.5); }

.voice-indicator {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; font-size: 13px; color: var(--gold);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

.input-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.hint { font-size: 12.5px; color: var(--text-3); }
.input-actions { display: flex; align-items: center; gap: 14px; }
.count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 560px) {
  .input-foot { flex-direction: column; align-items: stretch; }
  .input-foot .hint { text-align: left; }
  .input-actions { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .input-actions .btn { padding-inline: 14px; white-space: nowrap; }
}

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 22px; font-size: 14.5px;
  border: 1px solid transparent; transition: transform .15s, background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #e3c79d, var(--gold-2));
  color: #21180a; font-weight: 500;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ico { font-size: 12px; }

/* ── 结果区 ── */
.result { padding: 8px 0 40px; }
.result-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px 36px 30px; position: relative; overflow: hidden;
}
.result-card::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55;
}
.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.result-head h2 { font-size: 24px; }
.meter { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.meter-bar { display: block; width: 96px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--ice), var(--gold)); transition: width .6s ease; }
.meter-text { color: var(--text-2); min-width: 34px; }

.result-body > * + * { margin-top: 22px; }
.r-block { background: rgba(0,0,0,.26); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.r-block h3 {
  font-size: 14px; letter-spacing: .06em; color: var(--text-2);
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-family: var(--sans); font-weight: 500;
}
.r-ico { color: var(--gold); font-size: 12px; }
.r-block p { color: var(--text); line-height: 1.9; }
.r-core { border-left: 2px solid rgba(216,185,138,.55); }
.r-core p { font-size: 16px; color: #f2f3f8; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.r-grid .r-block p { color: var(--text-2); font-size: 14.5px; }

.r-lucky {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(90deg, rgba(216,185,138,.12), rgba(155,140,216,.08));
  border: 1px solid rgba(216,185,138,.28); border-radius: var(--radius); padding: 16px 22px;
}
.lucky-orb {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; color: #21180a;
  background: radial-gradient(circle at 32% 30%, #f0dcb8, var(--gold-2));
}
.lucky-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lucky-value { font-family: var(--serif); font-size: 18px; }

.r-symbols h4 { font-size: 13px; letter-spacing: .06em; color: var(--text-2); font-family: var(--sans); font-weight: 500; margin-bottom: 12px; }
.symbol-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.symbol-item { background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
.symbol-name { font-family: var(--serif); font-size: 16px; color: var(--gold); margin-bottom: 7px; }
.symbol-line { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.symbol-line b { color: var(--text-3); font-weight: 400; margin-right: 6px; }

/* 结果页 / 日记里的符号卡片：匹配到词典时变成可点击链接 + 左侧小卦画 */
.symbol-link { display: flex; align-items: flex-start; gap: 13px; text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease; }
.symbol-link:hover { border-color: var(--gold-2); background: rgba(0,0,0,.32); }
.sym-mini-hex { flex: none; width: 40px; height: 40px; margin-top: 2px; opacity: .92; }
.sym-mini-hex svg { width: 100%; height: 100%; display: block; }
.sym-link-body { min-width: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2);
}

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-notice { margin-top: 14px; font-size: 12.5px; color: var(--warn); }
.demo-notice code { color: var(--gold); }

/* ── 通用 section ── */
.section { padding: 78px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin-top: 14px; }
.section-lede { max-width: 620px; margin-top: 14px; color: var(--text-2); }
.tag-hint { color: var(--text-3); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-no {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(216,185,138,.5); color: var(--gold); font-size: 13px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(216,185,138,.35); transform: translateY(-2px); }
.card-lead { background: linear-gradient(180deg, rgba(216,185,138,.1), rgba(255,255,255,.02)); }
.card-tag {
  display: inline-block; font-size: 11px; letter-spacing: .14em; color: var(--gold);
  border: 1px solid rgba(216,185,138,.35); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 14px; }

/* ── 梦境广场 ── */
.plaza-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 38px; }
.plaza-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.plaza-card.is-mine { border-color: rgba(216,185,138,.4); }
.plaza-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.plaza-title { font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.plaza-text { font-size: 13.5px; color: var(--text-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plaza-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.plaza-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); margin-top: auto; }
.resonate {
  display: inline-flex; align-items: center; gap: 7px; background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; color: var(--text-2); transition: all .2s;
}
.resonate:hover { border-color: var(--gold); color: var(--gold); }
.resonate.is-on { background: rgba(216,185,138,.14); border-color: rgba(216,185,138,.5); color: var(--gold); }
.plaza-empty { color: var(--text-3); font-size: 14px; padding: 30px 0; }
/* P1：卡片上的「核心隐喻」一行 —— 视觉上比正文弱，作点睛用 */
.plaza-metaphor { font-family: var(--serif); font-size: 12.5px; color: var(--text-3); -webkit-line-clamp: 2; }

/* 三种回应按钮（🌙 我懂 / ✨ 祝好梦 / 🌊 我也梦到过）。
   ⚠️ 2026-10-19：这三个按钮此前【完全没有样式】，默认渲染成灰底小方按钮 ——
   和符号页那个长得很像的「我也梦到过」是两个模样。同一个动作长得不一样，
   用户会以为它们是两个功能，所以这里对齐 .resonate 的视觉。 */
.react-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer;
  transition: all .2s;
}
.react:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.react.is-on { background: rgba(216,185,138,.14); border-color: rgba(216,185,138,.5); color: var(--gold); }
.react:disabled { opacity: .55; cursor: default; }
.react-mark { font-size: 13px; line-height: 1; }
.react b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* 「更多梦境」：首页预览 3 条之后的那条出口 */
.plaza-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ── 广场独立页 /plaza.html ──
   同一套卡片，但这里不截断正文：专门点进来就是为了把那个梦读完，
   在列表页还把正文压成 3 行，等于让人点进来看到了首页已经看过的东西。 */
.plaza-page { padding: 44px 0 80px; }
.plaza-page .plaza-text { -webkit-line-clamp: unset; display: block; overflow: visible; }
.plaza-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 26px 0 6px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.plaza-rule { font-size: 12.5px; color: var(--text-3); line-height: 1.7; max-width: 560px; }
.plaza-end { text-align: center; padding: 26px 0 0; }

/* ── FAQ ── */
.faq { margin-top: 34px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative;
  font-size: 16px; color: var(--text); font-family: var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '＋'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 15px; transition: transform .2s;
}
.faq details[open] summary::after { content: '－'; }
.faq details p { color: var(--text-2); font-size: 14.5px; padding: 0 0 20px; max-width: 640px; }

/* ── 页脚 ── */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 16px; }
.footer-note { font-size: 12.5px; color: var(--text-3); line-height: 1.9; text-align: right; }

/* ── 弹层 ── */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 5, 12, .82); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 19px; }
.modal-x { background: transparent; border: 0; color: var(--text-3); font-size: 24px; line-height: 1; padding: 0 4px; }
.modal-x:hover { color: var(--text); }
.card-stage { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
#cardCanvas { display: block; width: 100%; height: auto; }
/* 报告卡片画布与解梦卡同尺寸、同舞台，只是另一个 id（两套内容两个弹层） */
#repCardCanvas { display: block; width: 100%; height: auto; }
/* 图鉴卡（符号配对）：同理，第三块同尺寸画布 */
#codexCanvas { display: block; width: 100%; height: auto; }
.tpl-row { display: flex; gap: 8px; margin: 16px 0 18px; }
.tpl {
  flex: 1; background: transparent; border: 1px solid var(--line-2); color: var(--text-2);
  border-radius: 10px; padding: 9px 0; font-size: 13px; transition: all .2s;
}
.tpl:hover { border-color: var(--gold); color: var(--gold); }
.tpl.is-active { background: rgba(216,185,138,.14); border-color: rgba(216,185,138,.55); color: var(--gold); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(20, 22, 36, .97); border: 1px solid var(--line-2);
  color: var(--text); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; z-index: 120; box-shadow: 0 16px 40px -18px #000;
  animation: rise .28s ease;
}
.toast[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 860px) {
  /* 移动端不再把主导航整段藏掉（旧规则让手机用户找不到日记/符号/塔罗）。
     改成换行堆叠：品牌一行，链接另起一行可横滑/换行，Explore 点开即展。 */
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px 16px; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-left: 0; width: 100%; order: 3; }
  .nav-drop-menu { position: static; box-shadow: none; border: none; padding: 4px 0 0 10px; }
  .nav-drop[open] > .nav-drop-menu { display: flex; }
  .nav-right { margin-left: auto; gap: 6px; }
  .r-grid, .steps { grid-template-columns: 1fr; }
  .result-card { padding: 26px 20px 24px; }
  .result-head { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   P3：账号 + 梦境日记
   ═══════════════════════════════════════════════════════════ */

.muted { color: var(--text-3); }
.link { color: var(--gold); border-bottom: 1px solid rgba(216,185,138,.35); }
.link:hover { border-bottom-color: var(--gold); }

/* ── 导航上的账号入口 ── */
.nav-account {
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 13px; margin-right: 10px; transition: all .2s;
}
.nav-account:hover { border-color: var(--gold); color: var(--gold); }
.nav-account.is-on { border-color: rgba(216,185,138,.5); color: var(--gold); background: rgba(216,185,138,.1); }

/* ── 账号下拉（登录后）：名字 / 会员 / 积分 ──
   这些信息以前一个都没有，用户只能点进日记页再自己猜。
   用 <details> 与导航的 Explore 同款：零 JS、移动端原生、Esc 行为可靠。 */
.nav-account-wrap { position: relative; }
.nav-acc { position: relative; }
.nav-acc > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-acc > summary::-webkit-details-marker { display: none; }
.nav-acc .caret { font-size: 10px; opacity: .75; transition: transform .2s; }
.nav-acc[open] .caret { transform: rotate(180deg); }
.nav-acc-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: 268px; padding: 14px;
  background: var(--surface, #fff); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(20, 20, 30, .18);
  text-align: left;
}
.acc-id { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.acc-id b { font-family: var(--serif); font-size: 15px; color: var(--text); }
.acc-id span { font-size: 12px; color: var(--text-3); word-break: break-all; }
.acc-line { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acc-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.acc-badge.pro { color: var(--gold); border-color: rgba(216,185,138,.5); background: rgba(216,185,138,.12); }
.acc-badge.free { color: var(--text-2); border-color: var(--line-2); }
.acc-plan-text { font-size: 12px; color: var(--text-3); }
.acc-plan-text a { color: var(--gold); }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px 10px; padding: 10px 0; }
.acc-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-stats span { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.acc-stats b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
/* 数字底下那行小字：它是「这是还剩还是已用」「什么时候重置」的答案，
   没有它数字就只是一个数字。 */
.acc-stats em { font-style: normal; font-size: 10.5px; color: var(--text-3); opacity: .8; line-height: 1.35; }
/* 主数字是「还能画几张」—— 整个下拉里唯一需要一眼看清的数，其余都是解释。
   放大到 26px 并且只留一个，用户不会再去比较两个数字谁大谁小。 */
.acc-total b { font-size: 26px; color: var(--gold); letter-spacing: .5px; }
.acc-total em { white-space: normal; }
.acc-links { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.acc-links a { padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.acc-links a:hover { background: var(--bg-2); color: var(--gold); }
.acc-logout {
  width: 100%; margin-top: 8px; padding: 7px 10px; font: inherit; font-size: 13px;
  color: var(--text-2); background: transparent; border: 1px solid var(--line-2);
  border-radius: 8px; cursor: pointer;
}
.acc-logout:hover { color: #e08b8b; border-color: rgba(214,104,104,.55); }

/* ── 账号入口上的红点 ──
   数字是「有 N 件事要你处理」，不是未读数。所以最多 2，超了也没意义。
   绝对定位挂在 .nav-acc（它已经是 position:relative）右上角；
   2px 的同色描边把它从导航背景上"抠"出来，不然直接贴在字上像错位。 */
.acc-dot {
  position: absolute; top: -5px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 16px;
  text-align: center; color: #fff;
  background: #e5484d; border-radius: 999px;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

/* ── 下拉里的提醒条（快到期 / 额度用完） ──
   做成整块可点的链接而不是一行小字：提醒的价值在于"点了就能解决"，
   写成纯文本的话，用户看完还得自己去找 Pricing 在哪。 */
.acc-alerts { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 2px; }
.acc-alert {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px; border-radius: 9px;
  background: rgba(216,185,138,.10);
  border: 1px solid rgba(216,185,138,.30);
}
.acc-alert b { font-size: 12.5px; font-weight: 600; color: var(--gold); line-height: 1.35; }
.acc-alert span { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.acc-alert:hover { border-color: var(--gold); }
/* 最后 3 天：从"心里有数"变成"该动手了"。只改颜色不改字号 ——
   下拉里字号突变会让整块看起来像报错。 */
.acc-alert.urgent { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.42); }
.acc-alert.urgent b { color: #f08b8e; }

/* ── 站内公告条 ──
   宽度对齐 .wrap 的内容区（1120 - 2×24），否则横幅会比正文宽出一截。
   不进 .wrap 内部：它挂在导航之后、页面主体之前，是独立的一条。 */
.site-notice {
  max-width: 1072px; margin: 14px auto 0; padding: 11px 16px;
  font-size: 13.5px; line-height: 1.62; color: var(--text);
  background: rgba(216,185,138,.09);
  border: 1px solid rgba(216,185,138,.32);
  border-radius: 12px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .site-notice { margin: 10px 16px 0; max-width: none; font-size: 13px; }
}

.btn-block { width: 100%; }
.btn-danger {
  background: transparent; border-color: rgba(214,104,104,.55); color: #e08b8b;
}
.btn-danger:hover { background: rgba(214,104,104,.12); border-color: #e08b8b; }

/* ── 登录 / 注册 ── */
.auth { padding: 56px 0 80px; }
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 12px; }
.auth-lede { color: var(--text-2); font-size: 14.5px; }
.auth-tabs { display: flex; gap: 6px; margin: 26px 0 22px; }
.auth-tabs button {
  flex: 1; background: transparent; border: 1px solid var(--line-2); color: var(--text-3);
  border-radius: 12px; padding: 11px 0; font-size: 14px; transition: all .2s;
}
.auth-tabs button:hover { color: var(--text-2); }
.auth-tabs button.is-active { background: rgba(216,185,138,.13); border-color: rgba(216,185,138,.5); color: var(--gold); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; letter-spacing: .04em; }
.field .opt { color: var(--text-3); font-size: 11.5px; }
.field input {
  width: 100%; background: rgba(0,0,0,.28); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: 14.5px; outline: none; transition: border-color .2s;
}
.field input:focus { border-color: rgba(216,185,138,.5); }
.field input::placeholder { color: var(--text-3); }

.auth-error {
  font-size: 13px; color: #e08b8b; background: rgba(214,104,104,.1);
  border: 1px solid rgba(214,104,104,.3); border-radius: 10px;
  padding: 10px 13px; margin: 4px 0 16px;
}
.auth-error.is-ok { color: var(--ok); background: rgba(111,191,143,.1); border-color: rgba(111,191,143,.3); }
.auth-error.is-pending { color: var(--gold); background: rgba(216,185,138,.1); border-color: rgba(216,185,138,.3); }
#verificationMsg { margin-top: 16px; }
.auth-note { font-size: 12.5px; color: var(--text-2); margin-top: 18px; line-height: 1.85; }
.auth-note strong { color: var(--gold); font-weight: 500; }
.auth-hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 22px; }
.auth-sub { font-size: 16px; margin-bottom: 14px; font-family: var(--sans); font-weight: 500; color: var(--text-2); }
.account-actions { margin: 20px 0 8px; }
#accountLine { overflow-wrap: anywhere; }
.auth-back { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.auth-back a:hover { color: var(--gold); }
.danger-zone { margin-top: 18px; border: 1px solid rgba(214,104,104,.28); border-radius: 12px; padding: 14px 16px; }
.danger-zone summary { cursor: pointer; font-size: 13.5px; color: #e08b8b; }
.danger-zone p { font-size: 12.5px; color: var(--text-2); margin: 12px 0; line-height: 1.8; }
.danger-zone strong { color: #e08b8b; }

/* ── 梦境日记 ── */
.diary { padding: 44px 0 80px; }
.diary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.diary-head h1 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 12px; }

.streak-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px;
  margin: 34px 0 22px;
}
.streak-hero {
  background: linear-gradient(135deg, rgba(216,185,138,.16), rgba(155,140,216,.08));
  border: 1px solid rgba(216,185,138,.32); border-radius: var(--radius-lg);
  padding: 26px 30px; position: relative; overflow: hidden;
}
.streak-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,185,138,.22), transparent 70%);
}
.streak-num { font-family: var(--serif); font-size: 60px; line-height: 1; color: #f2e6cc; position: relative; }
.streak-num small { font-size: 20px; margin-left: 8px; color: var(--gold); }
.streak-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 12px; position: relative; }
.streak-hint { font-size: 13.5px; color: var(--text-2); margin-top: 14px; position: relative; }

.stat-col { display: grid; gap: 12px; }
.stat-mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-2);
}
.stat-mini b { font-family: var(--serif); font-size: 24px; color: var(--text); }
.stat-mini em { font-style: normal; font-size: 12.5px; color: var(--text-3); }

.heat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 34px;
}
.heat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.heat-head h3 { font-size: 15px; font-family: var(--sans); font-weight: 500; color: var(--text-2); }
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; width: max-content; }
.heatmap i { width: 13px; height: 13px; border-radius: 3px; display: block; }
.heatmap i.pad { background: transparent; }
.heatmap .lv0 { background: rgba(255,255,255,.055); }
.heatmap .lv1 { background: rgba(216,185,138,.32); }
.heatmap .lv2 { background: rgba(216,185,138,.62); }
.heatmap .lv3 { background: var(--gold); }
.heat-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--text-3); }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

.records { display: flex; flex-direction: column; gap: 26px; }
.rec-day { display: grid; grid-template-columns: 108px 1fr; gap: 18px; }
.rec-date { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.rec-date b { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.rec-weekday, .rec-count { font-size: 11.5px; color: var(--text-3); }
.rec-items { display: flex; flex-direction: column; gap: 12px; }
.rec-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .2s;
}
.rec-item:hover { border-color: rgba(216,185,138,.25); }
.rec-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.rec-time { font-variant-numeric: tabular-nums; }
.rec-chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; font-size: 11px; }
.rec-chip.warn { color: var(--warn); border-color: rgba(217,169,92,.4); }
.rec-toggle { margin-left: auto; background: transparent; border: 0; color: var(--text-3); font-size: 12px; }
.rec-toggle:hover { color: var(--gold); }
.rec-dream { margin-top: 10px; color: var(--text); line-height: 1.85; font-size: 14.5px; }
.rec-metaphor { margin-top: 8px; font-family: var(--serif); font-size: 13.5px; color: var(--text-2); }
.rec-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.rd-block h4 { font-size: 12px; letter-spacing: .08em; color: var(--text-3); font-family: var(--sans); font-weight: 500; margin-bottom: 6px; }
.rd-block p { font-size: 13.8px; color: var(--text-2); line-height: 1.85; }
.rec-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-mini {
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2);
  border-radius: 8px; padding: 6px 13px; font-size: 12.5px; transition: all .2s;
}
.btn-mini:hover { border-color: var(--gold); color: var(--gold); }
.btn-mini.danger:hover { border-color: #e08b8b; color: #e08b8b; }
.records-more { margin-top: 24px; text-align: center; }

@media (max-width: 860px) {
  .streak-grid { grid-template-columns: 1fr; }
  .rec-day { grid-template-columns: 1fr; gap: 10px; }
  .rec-date { flex-direction: row; align-items: baseline; gap: 10px; }
  .auth-card { padding: 26px 20px 24px; }
  .diary-head { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   合规页（privacy.html / terms.html）
   阅读型排版，不沿用首页那套卡片网格 —— 条款页要的是能读下去，
   行宽超过 80 个字符眼睛就会跳行。行高也放宽到 1.75。
   ═══════════════════════════════════════════════════════════ */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px;
}
.legal-updated { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.legal-lead {
  font-size: 16.5px; line-height: 1.75; color: var(--text-2);
  border-left: 2px solid var(--gold-2); padding-left: 18px; margin: 0 0 34px;
}
.legal h2 {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; line-height: 1.35;
  margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.78; color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; color: var(--gold);
}
.legal a { color: var(--ice); }

/* 表格：小屏幕上横向滚动，绝不把文字挤成竖条 */
.legal-table { overflow-x: auto; margin: 0 0 18px; }
.legal-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top; padding: 11px 14px;
  border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6;
}
.legal-table th { color: var(--text-3); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.legal-table td { color: var(--text-2); }
.legal-table td:first-child { white-space: nowrap; }

.legal-contact { margin-top: 6px; }
.contact-slot { color: var(--gold); margin-left: 6px; }
.legal-back { margin-top: 40px; font-size: 14px; }

/* CONTACT_EMAIL 没配置时的显眼提示。
   故意做得刺眼：一个安静的占位符会活到线上，刺眼的不会。 */
.todo-mark {
  display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 8px;
  background: rgba(217, 169, 92, .14); border: 1px dashed var(--warn);
  color: var(--warn); font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   符号词典页（/symbols 与 /symbol/<slug>）
   正文用阅读型排版（同合规页的思路），卡片网格只用于索引页。
   内容类页面最重要的指标是「能不能读下去」，不是「看起来丰富」。
   ═══════════════════════════════════════════════════════════ */
.sym-page { max-width: 800px; padding-top: 34px; padding-bottom: 72px; }

/* 正文是 800px，导航/页脚默认却是 1120px —— 不统一的话左侧起始线对不齐，
   看起来像排版出错。整页统一收窄到同一个宽度（正文的宽度）。 */
.sym-body .nav-inner, .sym-body .footer-inner { max-width: 800px; }

.crumb { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--ice); }
.crumb span[aria-hidden] { opacity: .5; }

.sym-head { margin-bottom: 8px; }
.sym-kicker {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 10px;
}
.sym-head h1 {
  font-family: var(--serif); font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px;
}
.sym-lede { font-size: 17px; line-height: 1.72; color: var(--text-2); margin: 0 0 10px; }
.sym-count { font-size: 13px; color: var(--text-3); margin: 14px 0 0; }
.sym-count strong { color: var(--gold); font-size: 15px; }

.sym-article section { margin-top: 34px; }
.sym-article h2, .cta-box h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  line-height: 1.35; margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--line);
}
.sym-article section:first-of-type h2 { padding-top: 0; border-top: none; }
.sym-article p { font-size: 15.5px; line-height: 1.8; color: var(--text-2); margin: 0 0 12px; }

/* 情绪变体：带标签的列表。标签固定三种强度，文字因符号而异 */
.sym-variants { list-style: none; padding: 0; margin: 0; }
.sym-variant {
  display: grid; grid-template-columns: 168px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.sym-variant:last-child { border-bottom: none; }
.sym-variant-label { font-size: 13px; color: var(--gold); line-height: 1.6; }
.sym-variant-text { font-size: 15px; line-height: 1.7; color: var(--text-2); }

.sym-questions { padding-left: 22px; margin: 0; }
.sym-questions li { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 9px; }

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; background: var(--surface);
}
.faq-item summary { cursor: pointer; font-size: 15.5px; color: var(--text); font-weight: 500; }
.faq-item[open] summary { margin-bottom: 9px; }
.faq-item p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 14px; color: var(--text-2); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px;
  background: var(--surface);
}
.chip:hover { border-color: var(--gold-2); color: var(--gold); }
.chip-all { color: var(--ice); }

.cta-box {
  margin-top: 44px; padding: 26px 26px 24px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.cta-box h2 { border-top: none; padding-top: 0; }
.cta-box p { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px !important; }
.btn-primary, .btn-ghost {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 11px 24px; font-size: 15px;
}
.btn-primary { background: var(--gold); color: #17130c; font-weight: 600; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text-2); }

.sym-disclaimer { margin-top: 28px; font-size: 13px; color: var(--text-3); }
.sym-fine { font-size: 13.5px; line-height: 1.8; color: var(--text-3); margin-top: 30px; }

/* 索引页网格 */
.symbols-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin: 28px 0 0;
}
.sym-card {
  display: flex; flex-direction: column; gap: 7px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  background: var(--surface);
}
.sym-card:hover { border-color: var(--gold-2); }
.sym-card-name { font-family: var(--serif); font-size: 18px; color: var(--text); }
.sym-card-desc {
  font-size: 13px; line-height: 1.6; color: var(--text-3);
  /* 卡片描述统一截到三行，否则长短不一会把网格撑得东倒西歪 */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 卦象（lib/hexagrams.js，代码画的矢量卦画）──
   金色爻线 + 淡金外环，全站统一。颜色只在这里定义一次 ——
   想换画风就改这两个值，22 张（以后 64 张）跟着一起变。 */
.hex-lines rect { fill: var(--gold); }
.hex-ring { fill: none; stroke: var(--gold-2); stroke-width: 1.4; opacity: .4; }

/* 符号页首屏的卦象徽记 */
.sym-hex {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  margin: 24px 0 0; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.sym-hex-fig svg { display: block; width: 96px; height: 96px; }
.sym-hex-kicker {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 6px !important;
}
.sym-hex-name { font-family: var(--serif); font-size: 19px; color: var(--text); margin: 0 0 4px !important; }
.sym-hex-glyph { color: var(--gold); margin-right: 8px; }
.sym-hex-pinyin { font-family: var(--sans); font-size: 13px; color: var(--text-3); margin-left: 10px; letter-spacing: .02em; }
.sym-hex-seq { font-size: 12.5px; color: var(--text-3); margin: 0 0 10px !important; }
.sym-hex-basis { font-size: 14.5px !important; line-height: 1.75 !important; color: var(--text-2); margin: 0 0 8px !important; }
.sym-hex-note { font-size: 12.5px !important; line-height: 1.6; color: var(--text-3); margin: 0 !important; }

/* 索引卡片名字左边的小卦画 */
.sym-card-top { display: flex; align-items: center; gap: 10px; }
.sym-card-hex { flex: none; width: 26px; height: 26px; display: inline-flex; }
.sym-card-hex svg { width: 100%; height: 100%; opacity: .9; }

@media (max-width: 720px) {
  .sym-hex { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 18px; }
  .sym-hex-fig svg { width: 72px; height: 72px; }
}

/* ── 首页的两个入口卡（符号词典 / 摇一卦）──
   这两个页面原先只有知道 URL 的人才进得去 —— 做完等于没做。
   入口就放在 hero 输入框下方，第一屏之内，不用任何人去找。
   2026-10-15 加第三张（符号配对）：排列从两列改成三列 —— 三张卡放进两列网格
   会变成「2 + 1」，第三张孤零零占半行，看起来像排版坏了。
   所以宁可在 700px 以下直接塌成一列，也不要一个半行。 */
/* ── 首页的 Pro 工具入口（追问 / 梦境生图 / 深度报告）──
   这三条是【付费功能的入口】，金色描边 + 右上角徽标，
   "这一步要付钱"在点之前就成立。
   为什么不能靠"用户自己去找"：生图原来只长在解梦结果的操作行里，
   不解梦就永远看不见。看不见的功能等于不存在。
   ⚠️ 窄屏塌一列的教训（原 .hero-entries 注释）：三张卡在 700px 以下
   如果保持多列会变成「2 + 1」，第三张孤零零占半行，看起来像排版坏了。
   所以宁可直接塌成一列，也不要一个半行。 */
.hero-pro {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; max-width: 720px; margin: 12px auto 0; text-align: left;
}
.pro-tool {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 15px; border-radius: var(--radius);
  border: 1px solid rgba(216, 185, 138, .30);
  background: linear-gradient(180deg, rgba(216, 185, 138, .09), rgba(216, 185, 138, .02));
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.pro-tool:hover {
  border-color: rgba(216, 185, 138, .62); transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(216, 185, 138, .14), rgba(216, 185, 138, .04));
}
.pro-tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pro-tool-ico {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 16px; line-height: 1; color: var(--gold);
  border-radius: 10px; background: rgba(216, 185, 138, .10);
  border: 1px solid rgba(216, 185, 138, .22);
}
.pro-tool-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pro-tool-text b { font-family: var(--serif); font-size: 15px; font-weight: 400; color: var(--text); }
.pro-tool-text span { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.pro-tool-tag {
  flex: none; margin-left: auto; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); border: 1px solid rgba(216, 185, 138, .4);
  background: rgba(216, 185, 138, .07); white-space: nowrap;
}
.pro-tool-tag.is-pro {
  color: #1a1608; border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
/* 已经是 Pro 的人，徽标不再是"要付费"，而是"你还剩多少" —— 由 app.js 换文案。
   颜色跟着降一档，免得一直在喊。 */
.pro-tool.is-owned .pro-tool-tag {
  color: var(--text-3); border-color: var(--line); background: transparent;
}
.pro-tool.is-owned .pro-tool-tag.is-pro { color: var(--gold); border-color: rgba(216, 185, 138, .4); background: transparent; }

/* ── 解读结果页的「本梦之卦」── */
.dream-hex {
  display: grid; grid-template-columns: 104px 1fr; gap: 22px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 185, 138, .22);
  background:
    radial-gradient(120% 150% at 0% 50%, rgba(216, 185, 138, .10), transparent 62%),
    linear-gradient(180deg, var(--surface-2), transparent);
}
.dream-hex-art svg { display: block; width: 104px; height: 104px; }
.dream-hex-kicker {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 6px !important;
}
.dream-hex-title {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--text); margin: 0 0 6px !important;
}
.dream-hex-no { font-family: var(--sans); font-size: 12.5px; color: var(--text-3); letter-spacing: .02em; }
.dream-hex-reading {
  font-size: 14.5px !important; line-height: 1.8 !important;
  color: var(--text-2); margin: 0 0 12px !important;
}
.dream-hex-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(216, 185, 138, .3); padding-bottom: 1px;
}
.dream-hex-link:hover { color: var(--gold-2); border-color: var(--gold-2); }

@media (max-width: 720px) {
  .dream-hex { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 18px; }
  .dream-hex-art svg { width: 72px; height: 72px; }
  .dream-hex-title { font-size: 19px; }
}
@media (max-width: 640px) {
  /* 三张付费入口卡窄屏塌成一列（理由见上面 .hero-pro 的注释：宁要一列不要 2+1 半行） */
  .hero-pro { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sym-variant { grid-template-columns: 1fr; gap: 4px; }
  .sym-variant-label { color: var(--gold-2); }
}

/* ═══════════════════════════════════════════════════════════
   塔罗牌面页（/cards 索引 + /card/<slug>）
   与符号词典页同属 SEO 资产，共用 .sym-page / .crumb / .faq /
   .chips / .cta-box 那套骨架；这里只补牌自己的两块：
   索引的牌格（.cards-grid）与单张牌的正逆位对照（.card-meanings）。
   牌面是固定 150:263 的竖图，按下留位可避免 78 张图加载时网格跳动。
   ═══════════════════════════════════════════════════════════ */

/* 索引页：78 张牌的网格。窄屏两列，宽屏自动增列。 */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin: 28px 0 0;
}
.card-tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px;
  background: var(--surface);
}
.card-tile:hover { border-color: var(--gold-2); }
.card-tile-img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  aspect-ratio: 150 / 263; object-fit: cover; background: var(--bg-2);
}
.card-tile-name { font-family: var(--serif); font-size: 15px; color: var(--text); }
.card-tile-desc {
  font-size: 12px; line-height: 1.55; color: var(--text-3);
  /* 截到三行，否则长短不一会把网格撑得东倒西歪（同 .sym-card-desc） */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 单张牌面页 */
.card-article section { margin-top: 34px; }
.card-article h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  line-height: 1.35; margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--line);
}
.card-article section:first-of-type h2 { padding-top: 0; border-top: none; }
.card-article p { font-size: 15.5px; line-height: 1.8; color: var(--text-2); margin: 0 0 12px; }
/* CTA 块自带无边框标题 —— 别被上面那条通用 h2 规则又画出线来 */
.card-article .cta-box h2 { border-top: none; padding-top: 0; }

.card-head { margin-bottom: 8px; }
.card-eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 10px;
}
.card-head h1 {
  font-family: var(--serif); font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px;
}
.card-lede { font-size: 17px; line-height: 1.72; color: var(--text-2); margin: 0 0 10px; }

.card-hero { margin: 24px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card-hero img {
  width: 300px; max-width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.card-hero figcaption {
  font-size: 12.5px; line-height: 1.6; color: var(--text-3);
  text-align: center; max-width: 420px;
}

/* 正位 / 逆位：牌面页最该一眼看到的对照。桌面并排，窄屏堆成一栏。 */
.card-meanings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-meaning {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  background: var(--surface);
}
.card-meaning h2 {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  margin: 0 0 10px; padding: 0; border: none; color: var(--gold);
}
.card-meaning p { font-size: 15px; line-height: 1.78; color: var(--text-2); margin: 0; }

/* 变体与自省问题：排版同符号页，读起来是一段连续的文字而非仪表盘 */
.card-variants { list-style: none; padding: 0; margin: 0; }
.card-variant {
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.7; color: var(--text-2);
}
.card-variant:last-child { border-bottom: none; }
.card-questions { padding-left: 22px; margin: 0; }
.card-questions li { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 9px; }

@media (max-width: 720px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .card-meanings { grid-template-columns: 1fr; }
}

/* 每日塔罗页通往牌面页的内链 —— 抽到的牌要能点进它自己的参考页，
   否则那 78 个页面在站内没有入口，只能靠搜索引擎找得到。 */
.tarot-browse { margin: 14px 0 0; font-size: 14px; }
.tarot-browse a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(216,185,138,.3); }
.tarot-browse a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.tarot-readmore { margin: 6px 0 0; font-size: 14px; }
.tarot-readmore a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(142,169,232,.3); }
.tarot-readmore a:hover { border-color: var(--ice); }

/* ═══════════════════════════════════════════════════════════
   剩余额度（首页）
   免费层必须看得见 —— 用户不知道自己有多少额度时，「升级」无从谈起。
   平时只是一行小字；快用完时才变成提醒。一直用大字喊「只剩 29 次」
   会把正常用户也弄得紧张，而紧张不是留存的理由。
   ═══════════════════════════════════════════════════════════ */
.quota-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}
.quota-note.is-low { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   广场回应（三种固定类型）
   刻意都不是「否定性」的：所以「没人回应」和「被讨厌」是两件事。
   也不想做成点赞数排行榜那种东西 —— 那会把写梦的人分等级。
   ═══════════════════════════════════════════════════════════ */
.react-row { display: flex; align-items: center; gap: 6px; }
.react {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; color: var(--text-2);
  font-family: inherit; cursor: pointer; transition: all .18s;
}
.react:hover { border-color: var(--gold); color: var(--gold); }
.react.is-on { background: rgba(216,185,138,.14); border-color: rgba(216,185,138,.5); color: var(--gold); }
.react:disabled { opacity: .55; cursor: default; }
.react .react-mark { font-size: 13px; line-height: 1; }
.react b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* 未回应时把数字压暗：不要让「还没人回应」看起来和「有 12 个人」一样重 */
.react[aria-pressed="false"] b { color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════
   符号页的「我也梦到过」
   整个站里唯一一个免注册、免写内容、又不需要暴露自己的社交动作。
   放在首屏之内 —— 从搜索引擎落地的人第一眼就该看到它能参与。
   ═══════════════════════════════════════════════════════════ */
.resonate-box {
  margin: 26px 0 8px; padding: 20px 22px 18px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--gold-2);
  border-radius: var(--radius); background: var(--surface);
}
.resonate-box h2 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  margin: 0 0 8px; padding: 0; border: none;
}
.resonate-count { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0 0 14px; }
.resonate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 20px; font-size: 14.5px; color: var(--text-2);
  font-family: inherit; cursor: pointer; transition: all .18s;
}
.resonate-btn:hover { border-color: var(--gold); color: var(--gold); }
.resonate-btn.is-on { background: rgba(216,185,138,.16); border-color: rgba(216,185,138,.55); color: var(--gold); }
.resonate-btn:disabled { opacity: .6; cursor: default; }
.resonate-mark { font-size: 15px; line-height: 1; }
.resonate-note { font-size: 12.5px; line-height: 1.65; color: var(--text-3); margin: 12px 0 0; }

/* 索引页卡片上的共鸣数 + 站内脉冲 */
.sym-card-count { font-size: 12px; color: var(--gold-2); }
.sym-pulse { font-size: 13px; color: var(--text-3); margin: 10px 0 0; }

/* ═══════════════════════════════════════════════════════════
   跨梦洞察（日记页）
   这块是唯一值得收费的东西的地基 —— 单次解梦免费就能做，
   用户自己做不到的是「把 60 个梦摆在一起看」。
   所以它要读起来像一段观察，而不是一张仪表盘。
   ═══════════════════════════════════════════════════════════ */
.diary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.diary-head .btn { flex: 0 0 auto; }

.insights { margin: 34px 0 0; }
.ins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ins-head h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.ins-head .muted { font-size: 12.5px; color: var(--text-3); }
.ins-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ins-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.ins-card.is-wide { grid-column: 1 / -1; }
.ins-card h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 14px;
}
.ins-text { font-size: 14px; line-height: 1.75; color: var(--text-2); margin: 0; }
.ins-progress { font-size: 13px; color: var(--gold-2); margin: 12px 0 0; font-variant-numeric: tabular-nums; }

.ins-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ins-row {
  display: grid; grid-template-columns: minmax(64px, 34%) 1fr auto;
  align-items: center; gap: 10px; text-decoration: none; color: inherit;
}
a.ins-row:hover .ins-name { color: var(--ice); }
.ins-name {
  font-size: 13.5px; color: var(--text-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ins-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.ins-n { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.ins-mood { margin: 0 0 14px; display: flex; align-items: baseline; gap: 6px; }
.ins-mood b { font-family: var(--serif); font-size: 30px; color: var(--text); line-height: 1; }
.ins-of { font-size: 13px; color: var(--text-3); }
.ins-trend { font-size: 12px; font-style: normal; margin-left: auto; color: var(--text-3); }
.ins-trend.is-up { color: var(--up-lite, var(--gold)); }
.ins-trend.is-down { color: var(--ice); }
.ins-fine { font-size: 12.5px; line-height: 1.7; color: var(--text-3); margin: 14px 0 0; }

@media (max-width: 720px) {
  .ins-row { grid-template-columns: minmax(56px, 40%) 1fr auto; }
  .diary-head .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   摇一卦（/cast.html）
   规则在 cast-core.js，这里只负责让它看起来值得摇一次。
   ═══════════════════════════════════════════════════════════ */

.cast-head { padding: 56px 0 6px; text-align: center; }
.cast-head h1 { font-size: clamp(28px, 4.6vw, 42px); }
.cast-head .lede { max-width: 640px; margin: 14px auto 0; }

.cast-panel {
  margin: 30px 0 0; padding: 30px 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

/* ── 爻盘：第 6 爻在最上、第 1 爻在最下 ── */
.cast-lines { display: flex; flex-direction: column; gap: 11px; max-width: 420px; margin: 0 auto; }
.cast-row { display: flex; align-items: center; gap: 12px; height: 14px; }
.cast-pos { flex: none; width: 12px; font-size: 11px; color: var(--text-3); text-align: right; }
.cast-bars { flex: 1; display: flex; gap: 16px; }
.cast-bar {
  flex: 1; height: 12px; border-radius: 6px; background: var(--gold);
  transition: background .25s ease;
}
.cast-row.is-empty .cast-bar { background: none; border: 1px dashed var(--line-2); }
/* 变爻用冰蓝标出来 —— 它是「本卦为什么还有下一卦」的全部原因，不能只靠文字说 */
.cast-row.is-changing .cast-bar { background: var(--ice); }
.cast-mark { flex: none; width: 12px; font-size: 11px; line-height: 1; color: var(--ice); }

/* ── 铜钱 ── */
.cast-coins { display: flex; justify-content: center; gap: 14px; margin: 28px 0 0; }
.coin {
  width: 46px; height: 46px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .04);
  transition: background .25s ease, border-color .25s ease;
}
.coin::after { content: ''; width: 13px; height: 13px; border-radius: 50%; }
.coin.is-yang { border-color: rgba(216, 185, 138, .65); background: rgba(216, 185, 138, .14); }
.coin.is-yang::after { background: var(--gold); }
.coin.is-yin::after { border: 1.5px solid var(--text-3); }
.cast-coins.is-tossing .coin { animation: coin-toss .34s ease-in-out; }
.cast-coins.is-tossing .coin:nth-child(2) { animation-delay: .06s; }
.cast-coins.is-tossing .coin:nth-child(3) { animation-delay: .12s; }
@keyframes coin-toss {
  0% { transform: translateY(0) rotate(0deg); opacity: .35; }
  55% { transform: translateY(-15px) rotate(190deg); }
  100% { transform: translateY(0) rotate(360deg); opacity: 1; }
}

.cast-sum {
  margin: 16px 0 0; text-align: center;
  font-size: 13.5px; color: var(--gold); letter-spacing: .01em;
}
.cast-progress { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.cast-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cast-rule {
  max-width: 580px; margin: 24px auto 0;
  font-size: 12.5px; line-height: 1.8; color: var(--text-3); text-align: center;
}
.cast-rule em { color: var(--text-2); font-style: normal; }

/* ── 结果：本卦 + 变卦 ── */
.cast-result { margin: 40px 0 0; }
.cast-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cast-fig {
  padding: 22px 22px 20px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.cast-fig-art { display: block; margin: 8px 0 12px; }
.cast-fig-art svg { display: block; width: 106px; height: 106px; margin: 0 auto; }
.cast-fig-role {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 4px !important;
}
.cast-fig-name { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--text); margin: 0 0 4px !important; }
.cast-fig-no { font-size: 12.5px; color: var(--text-3); margin: 0 0 12px !important; }
.cast-fig-reading { font-size: 14px !important; line-height: 1.8 !important; color: var(--text-2); text-align: left; margin: 0 !important; }
.cast-fig-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13.5px; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(216, 185, 138, .3); padding-bottom: 1px;
}
.cast-fig-link:hover { color: var(--gold-2); border-color: var(--gold-2); }
.cast-changing-note { margin: 18px 0 0; text-align: center; font-size: 13px; line-height: 1.7; color: var(--ice); }
.cast-note {
  margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.85; color: var(--text-3);
}

/* ════════════════════════════════════════════════════════════════
   付费层（P10）：套餐徽标 / 定价页 / 锁定态 / 生图 / 深度报告

   一条贯穿全部的设计原则：【付费入口要克制，付费信息要清楚】。
   克制 —— 不做全屏弹窗、不做倒计时、不做"仅剩 2 席"。
          这个站的用户是刚醒的人，他来这里不是为了被推销。
   清楚 —— 免费给什么、收费收什么，逐条列出来，不藏在折叠里。
          「不骗人」在付费产品里不是道德问题，是留存问题：
          用户一旦发现被藏了什么，之后看到任何一句话都会先怀疑一次。
   ════════════════════════════════════════════════════════════════ */

/* ── 套餐徽标（导航右上角）──
   必须随时可见：用户不知道自己在哪一档时，"升级"这件事无从谈起。 */
.plan-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px; color: var(--text-2);
  white-space: nowrap;
}
.plan-badge:hover { border-color: var(--gold); color: var(--gold); }
.plan-badge.is-pro {
  border-color: rgba(216, 185, 138, .55);
  color: var(--gold);
  background: linear-gradient(180deg, rgba(216, 185, 138, .14), rgba(216, 185, 138, .05));
}
.nav-links a.is-current { color: var(--gold); }

/* ── 通用小件 ── */
.pro-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #1a1608; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 600; white-space: nowrap;
}
.ai-chip {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ice); border: 1px solid rgba(142, 169, 232, .35);
  background: rgba(142, 169, 232, .08); white-space: nowrap;
}
.section-tight { padding-top: 8px; padding-bottom: 8px; }
.hero-slim { padding-bottom: 8px; }

/* ── 免费承诺块 ── */
.promise {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid rgba(216, 185, 138, .28);
  background: linear-gradient(180deg, rgba(216, 185, 138, .08), rgba(216, 185, 138, .02));
}
.promise-mark { font-size: 26px; color: var(--gold); line-height: 1; }
.promise h2 { font-size: 19px; margin-bottom: 6px; }
.promise p { color: var(--text-2); font-size: 14px; line-height: 1.8; }

/* ── 两档卡片 ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan-card {
  position: relative; padding: 28px 26px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.plan-card.is-pro {
  border-color: rgba(216, 185, 138, .45);
  background: linear-gradient(180deg, rgba(216, 185, 138, .07), rgba(255, 255, 255, .02));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.plan-chip {
  position: absolute; top: -11px; left: 26px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #1a1608; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 600;
}
.plan-name { font-size: 20px; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.plan-price b { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--text); }
.plan-price span { color: var(--text-3); font-size: 13px; }
.plan-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.75; min-height: 3.4em; }
.plan-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.plan-list .tick { color: var(--ok); font-size: 13px; margin-top: 3px; }
.plan-list b { display: block; font-weight: 500; }
.plan-sub { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.7; margin-top: 2px; }
.plan-tag {
  display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; color: var(--gold); border: 1px solid rgba(216, 185, 138, .35);
}
.plan-foot { margin-top: auto; }
.plan-btn { width: 100%; justify-content: center; }
.plan-fine { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ── 首页上的迷你对照 ── */
.mini-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.mini-plan {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.mini-plan.is-pro { border-color: rgba(216, 185, 138, .4); background: linear-gradient(180deg, rgba(216, 185, 138, .06), rgba(255, 255, 255, .02)); }
.mini-plan-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mini-plan-h b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.mini-plan-h span { font-size: 13px; color: var(--text-3); }
.mini-plan ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-plan li { font-size: 13.5px; color: var(--text-2); padding-left: 18px; position: relative; }
.mini-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-size: 12px; }
.mini-plan li.mini-inherit { color: var(--text-3); font-style: italic; }
.mini-plan li.mini-inherit::before { content: '·'; color: var(--text-3); }

/* ── 逐项对照表 ── */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.compare thead th:nth-child(2), .compare thead th:nth-child(3) { text-align: center; width: 110px; }
.compare tbody th { font-weight: 400; color: var(--text-2); }
.compare td { text-align: center; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); font-size: 15px; }
.compare .no { color: var(--text-3); }
.compare .val { font-size: 13px; color: var(--gold); }

/* ── 积分卡 ── */
.credit-card {
  display: flex; gap: 22px; align-items: center;
  margin-top: 22px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.credit-figure { text-align: center; min-width: 92px; }
.credit-figure b { display: block; font-family: var(--serif); font-size: 36px; color: var(--gold); line-height: 1.1; }
.credit-figure span { font-size: 12px; color: var(--text-3); }
.credit-body { flex: 1; }
.credit-body h3 { font-size: 16px; margin-bottom: 8px; }
.credit-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.credit-body li { font-size: 13px; color: var(--text-2); padding-left: 16px; position: relative; }
.credit-body li::before { content: '·'; position: absolute; left: 4px; color: var(--gold-2); }

.note-card {
  margin-top: 8px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.note-card h2 { font-size: 17px; margin-bottom: 8px; }
.note-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.8; }

/* ── 「下一步」卡片（首页 / 日记页的付费入口）── */
.next-step {
  margin-top: 22px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .2s ease;
}
.next-step:not(.is-locked) { border-color: var(--line); background: linear-gradient(180deg, rgba(216,185,138,.06), rgba(255,255,255,.015)); }
.next-step.is-locked { border-color: rgba(216, 185, 138, .3); }
.next-step-head { display: flex; gap: 16px; align-items: flex-start; }
.next-step-ico { font-size: 22px; color: var(--gold); line-height: 1.2; }
.next-step-head h3, .next-step-head h4 { font-size: 18px; margin-bottom: 8px; }
.next-step-head p { color: var(--text-2); font-size: 14px; line-height: 1.8; }
.next-step-head .pro-chip { margin-left: auto; }
.next-step-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── 生图结果 ── */
.dream-image { display: flex; gap: 20px; margin-top: 22px; align-items: flex-start; }
.dream-image-stage {
  width: 300px; height: 300px; flex: none;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  display: flex; align-items: center; justify-content: center;
}
.dream-image-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dream-image-side { flex: 1; min-width: 0; }
.dream-image-status { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.dream-image-note { font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.dream-image-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
/* 生成中：呼吸而不是转圈。转圈会让人一直盯着看，呼吸让人觉得"它在工作"。 */
.image-skeleton {
  width: 100%; height: 100%;
  background: linear-gradient(110deg, rgba(255,255,255,.03) 30%, rgba(216,185,138,.12) 50%, rgba(255,255,255,.03) 70%);
  background-size: 220% 100%;
  animation: imgSweep 1.9s ease-in-out infinite;
}
@keyframes imgSweep { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* ── 日记页：记录内联的生图结果 ──
   与首页是同一套视觉，区别只在宽度不能再撑满（记录卡里有缩进）。
   骨架块在首页靠父容器给尺寸，这里必须自己给 —— 否则它是个 0 高度的空条，
   用户看到的就是"点了没反应"。 */
.rec-image {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.rec-image .image-skeleton,
.rec-image .dream-image-img {
  width: 240px; height: 240px; flex: none;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.rec-image .dream-image-status { flex: 1; min-width: 160px; margin: 0; }
.rec-image .image-failed { flex: 1; }
@media (max-width: 640px) {
  .rec-image .image-skeleton,
  .rec-image .dream-image-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* ── 生图面板（点击入口后【原地】打开，不把人带到别处）──
   这个面板就是"使用入口"本身：写梦、生成、看图、下载全在这里完成。
   付费的拦截在按下生成之后，不在打开面板之前。 */
.img-panel { max-width: 560px; }
.img-lede { font-size: 13.5px; line-height: 1.8; color: var(--text-2); margin: 0 0 16px; }
.img-label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.img-panel textarea {
  width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.7;
}
.img-panel textarea:focus { outline: none; border-color: rgba(216, 185, 138, .5); }
.img-stage { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; }
.img-stage-box {
  width: 220px; height: 220px; flex: none; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  display: flex; align-items: center; justify-content: center;
}
.img-status { font-size: 13.5px; color: var(--text); margin: 0; }
.img-status-wrap { flex: 1; min-width: 150px; }
.img-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.img-cost { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; }
.img-cost .btn { padding: 6px 12px; font-size: 12.5px; }
.img-foot { font-size: 12px; color: var(--text-3); line-height: 1.7; margin: 12px 0 0; }

/* ── 我的图（日记页 Images tab）──
   图库是"生成完之后去哪找"的答案。视觉上必须和生图面板里的那张图一致，
   否则用户会怀疑这是不是另一份东西。 */
.gal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 6px;
}
.gal-card {
  margin: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.gal-shot {
  display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, .28);
}
.gal-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gal-shot:hover img { transform: scale(1.03); }
.gal-shot-fail { display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--text-3); }
.gal-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 0; }
.gal-date { font-size: 12px; color: var(--text-3); }
.gal-tag { font-size: 11.5px; color: var(--gold); letter-spacing: .01em; }
.gal-tag.is-bad { color: #d98b8b; }
.gal-actions { display: flex; gap: 8px; padding: 10px 12px 12px; margin-top: auto; }
.gal-actions .btn { padding: 6px 10px; font-size: 12.5px; }
/* 删除要点两次：第一次只改字并染红，3 秒不动自己复原 */
.gal-del.is-armed { color: #e08b8b; border-color: rgba(224, 139, 139, .5); }
.gal-note { font-size: 12.5px; color: var(--text-3); line-height: 1.8; margin: 14px 0 0; }
.img-kept { margin: 12px 0 0; font-size: 12.5px; }
.img-kept a { color: var(--gold); text-decoration: none; }
.img-kept a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.gal-more-wrap { margin-top: 18px; text-align: center; }

/* ── 页内跳转（日记页）──
   原来这里是三个小药丸页签，深色底上几乎看不出来，内容等于被藏起来。
   现在换成三张有边框的卡片：一眼能看到「这页上有哪几样东西」。 */
.jump-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.jump-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.jump-card:hover {
  border-color: var(--gold); background: rgba(216, 185, 138, .06); transform: translateY(-1px);
}
.jump-ico { color: var(--gold); font-size: 15px; line-height: 1; }
.jump-card b { font-size: 14.5px; font-weight: 600; }
.jump-card em { font-style: normal; font-size: 12px; color: var(--text-3); }
@media (max-width: 560px) { .jump-bar { grid-template-columns: 1fr; gap: 8px; } }

/* ── 直接展开的区块（我的图 / 情绪趋势）──
   不再藏在页签后面：每块自带标题、说明与一条分隔线，滚下去就是内容本身。 */
.hub-block { margin: 36px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hub-block-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.hub-block-head h2 { font-size: 22px; margin: 2px 0 8px; }
.hub-block-head .section-lede { margin: 0; }
.hub-block-link { flex: none; font-size: 13px; color: var(--gold); text-decoration: none; white-space: nowrap; padding-top: 4px; }
.hub-block-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .hub-block-head { flex-direction: column; gap: 8px; }
}
/* 锚点跳转别被吸顶导航压住标题 */
#images, #trendBlock, #records { scroll-margin-top: 92px; }
/* 空着按生成时抖一下：静默返回会让用户以为按钮坏了 */
.btn.is-nudge { animation: btnNudge .34s ease-in-out 2; }
@keyframes btnNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}
@media (max-width: 640px) {
  .img-stage-box { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}


.image-failed { padding: 24px; text-align: center; font-size: 13px; color: #e08b8b; }

/* ── 升级弹层 ── */
.upgrade-panel { max-width: 560px; }
.up-body { padding: 4px 0 12px; }
.up-lede { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.up-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.up-list li { font-size: 13.5px; color: var(--text-2); padding-left: 20px; position: relative; }
.up-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 5px; }
.up-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-col { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.up-col.is-pro { border-color: rgba(216, 185, 138, .38); background: rgba(216, 185, 138, .05); }
.up-col-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.up-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.up-col li { font-size: 12.5px; color: var(--text-2); }

/* ── 深度报告 ── */
.reports { margin-top: 34px; }
.report-builder {
  margin-top: 16px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.report-ranges { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.range-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
}
.range-chip:hover { border-color: var(--gold); color: var(--gold); }
.range-chip.is-on { border-color: var(--gold-2); color: #1a1608; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.report-custom { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.report-custom label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-3); }
.report-custom input {
  padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .25); color: var(--text); font-family: inherit; font-size: 13.5px;
}
.report-custom input:focus { outline: none; border-color: var(--gold-2); }
.report-custom.is-pick label { display: none; }
.report-quota { margin-top: 12px; font-size: 12.5px; color: var(--text-3); min-height: 1.4em; }

/* 手选梦（P3）：一列可勾的梦，日期在左、首句在右。
   不放符号、不放情绪分 —— 选梦时人认的是"哪个梦"，不是它的指标。 */
.report-pick { margin-top: 16px; }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pick-hint { font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.pick-count { flex: 0 0 auto; font-size: 12px; color: var(--gold-2); }
.pick-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto; padding-right: 4px;
}
.pick-row {
  display: grid; grid-template-columns: 16px 74px 1fr; align-items: baseline; gap: 10px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .015);
}
.pick-row:hover { border-color: var(--gold-2); }
.pick-row:has(input:checked) { border-color: var(--gold); background: rgba(216, 185, 138, .07); }
.pick-row input { accent-color: var(--gold-2); margin: 0; }
.pick-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pick-text { font-size: 13px; line-height: 1.55; color: var(--text-2); }

.report-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
/* ★ 列表条目必须「一眼看出是报告」：暗底暗卡曾糊成一片（老板实测分不出来）。
 *   左侧金色竖条 + 提亮底 + 徽标，三层区分。 */
.rep-item {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px 18px 13px; border-radius: 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--gold-2);
  background: linear-gradient(180deg, rgba(216, 185, 138, .06), rgba(255, 255, 255, .03));
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.rep-item:hover { border-color: var(--gold-2); border-left-color: var(--gold); background: rgba(216, 185, 138, .1); }
.rep-item.is-on { border-color: var(--gold); border-left-color: var(--gold); background: rgba(216, 185, 138, .12); }
.rep-item-badge {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 500;
}
.rep-item-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.rep-item-meta { font-size: 12px; color: var(--text-3); }
.rep-empty { font-size: 13.5px; color: var(--text-3); margin-top: 14px; }

.report-view {
  margin-top: 22px; padding: 26px 28px;
  border: 1px solid rgba(216, 185, 138, .3); border-top: 3px solid var(--gold-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(216, 185, 138, .08), rgba(255, 255, 255, .025));
}
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.rep-period { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.rep-head h3 { font-size: 26px; line-height: 1.4; }
.rep-block { margin-bottom: 20px; }
.rep-block h4 {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 500; margin-bottom: 8px; font-family: var(--sans);
}
.rep-block p { font-size: 14.5px; line-height: 1.9; color: var(--text-2); }
.rep-core p { font-size: 16px; color: var(--text); font-family: var(--serif); line-height: 1.85; }
.rep-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.rep-list li { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.rep-list b { color: var(--text); font-weight: 500; }
.rep-shift { color: var(--ice); font-size: 13px; }
.rep-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* 三行摘要：先把结论说完，全文再折起来。
   报告 1500 字，打开就看到一大片正文的结果是没人读第二段。 */
.rep-sum { border-left: 2px solid var(--gold-2); padding: 2px 0 2px 16px; margin: 0 0 20px; }
.rep-sum h4 {
  font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 500; margin-bottom: 10px; font-family: var(--sans);
}
.rep-sum-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.rep-sum-list li { font-size: 15.5px; line-height: 1.8; color: var(--text); font-family: var(--serif); }
.rep-sum-list li::marker { color: var(--gold-2); font-size: 12.5px; }

.rep-more-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px 16px; margin: 0 0 20px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, .02); color: var(--text-2);
  font-family: inherit; font-size: 13.5px; text-align: left;
}
.rep-more-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.rep-more-label::after { content: '▾'; margin-left: 7px; font-size: 10.5px; opacity: .8; }
.rep-more-btn.is-open .rep-more-label::after { content: '▴'; }
.rep-more-meta { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.rep-more-btn.is-open .rep-more-meta { display: none; }

/* 证据面板：报告里那些数字的出处。
   刻意放在正文【之前】、不折叠 —— 它是这份报告和"免费的一段解读"之间的分界线，
   把依据藏到页面底部，等于把它的卖点一起藏起来。 */
.rep-ev { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; background: rgba(255, 255, 255, .02); }
.rep-ev h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.rep-ev-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rep-ev-list li { font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.rep-ev-list b { color: var(--text); font-weight: 500; }
.ev-sample { color: var(--text-3); font-size: 12.5px; }
.ev-refs { color: var(--text-3); font-size: 11.5px; margin-left: 8px; letter-spacing: .02em; }
.ev-note { font-size: 11.5px; color: var(--text-3); line-height: 1.7; margin-top: 13px; }
.ev-warn { font-size: 12.5px; color: var(--gold-2); line-height: 1.7; margin-top: 10px; }

/* ── 跨期对比块 ──
   和证据面板同一种卡片语言（同一份报告里的两块数据，样式不该打架），
   但用金色左边线区分：这块说的是"跟你上次读到的比"，不是"这份站在什么数据上"。
   ③ 不堆第二张图 —— 趋势图在日记页已经有一张了，报告里再来一张曲线，
      用户会以为是同一张图渲染了两次。 */
.rep-cmp { border: 1px solid var(--line); border-left: 2px solid var(--gold-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; background: rgba(216, 185, 138, .045); }
.rep-cmp h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.rep-cmp-base { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.rep-cmp-lead { font-size: 15px; line-height: 1.8; color: var(--text); font-family: var(--serif); margin-bottom: 14px; }
.rep-cmp-rows { margin: 0 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rep-cmp-rows li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cmp-k { flex: 0 0 84px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cmp-v { font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.cmp-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cmp-v b { font-weight: 500; margin-left: 6px; }
.cmp-lighter { color: var(--ice); }
.cmp-heavier { color: var(--warn); }
.cmp-steady { color: var(--text-3); font-weight: 400 !important; }
.rep-cmp-notes { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.rep-cmp-notes li { font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.rep-cmp-notes b { color: var(--text); font-weight: 500; }
.cmp-ans-note { display: block; margin-top: 2px; color: var(--text-2); }
.rep-cmp-ans { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.rep-cmp-ans h5 { font-size: 12px; letter-spacing: .05em; color: var(--gold-2); margin-bottom: 8px; font-weight: 500; }
.rep-cmp-ans-none { font-size: 12.5px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.rep-cmp-hint { color: var(--text-3); font-size: 12px; }
.rep-follow { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.rep-follow h4 { font-size: 15px; margin-bottom: 6px; }
.rep-follow-note { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.rep-turns { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; margin-bottom: 12px; }
.rep-turn { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.8; }
.rep-turn.is-me { background: rgba(142, 169, 232, .09); border: 1px solid rgba(142, 169, 232, .2); }
.rep-turn.is-ai { background: rgba(216, 185, 138, .07); border: 1px solid rgba(216, 185, 138, .22); color: var(--text-2); }
.rep-turn.is-pending { opacity: .55; }
.rep-turn.is-err { background: rgba(224, 139, 139, .09); border: 1px solid rgba(224, 139, 139, .28); color: #e08b8b; }
.rep-turn-who { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.rep-ask-row { display: flex; gap: 10px; }
.rep-ask-row input {
  flex: 1; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25);
  color: var(--text); font-family: inherit; font-size: 14px;
}
.rep-ask-row input:focus { outline: none; border-color: var(--gold-2); }
.rep-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rep-fine { font-size: 12px; color: var(--text-3); line-height: 1.7; }
/* 分享/导出行：紧贴「三句话说清」下面 —— 读完之后想转发，是这一刻的念头；
   放到页面最底部（追问后面），要走完一屏才找得到。 */
.rep-share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 4px; }
.rep-share-row .btn { font-size: 13.5px; padding: 9px 16px; }
.rep-share-row .rep-share-card { border-color: rgba(216, 185, 138, .45); color: var(--gold-2); }
.rep-share-row .rep-share-card:hover { border-color: var(--gold); color: var(--gold); }
.rep-share-row .rep-share-hint { font-size: 11.5px; color: var(--text-3); }

/* 梦级追问面板（"问这条梦"）：复用 .rep-turn 气泡样式，这里只负责容器与输入行 */
.rec-ask { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.rec-ask h4 { font-size: 15px; margin-bottom: 6px; }
.rec-ask-note { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.rec-ask .rec-turns { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.rec-ask-row { display: flex; gap: 10px; }
.rec-ask-row input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13.5px;
}
.rec-ask-row input:focus { outline: none; border-color: var(--gold-2); }
.rec-ask-fine { font-size: 11.5px; color: var(--text-3); margin: 10px 0 0; line-height: 1.7; }

/* ── 窄屏 ── */
@media (max-width: 760px) {
  .plans, .mini-plans, .up-compare { grid-template-columns: 1fr; }
  .credit-card { flex-direction: column; text-align: center; align-items: center; }
  .credit-body li { text-align: left; }
  .dream-image { flex-direction: column; }
  .dream-image-stage { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .report-custom { flex-direction: column; align-items: stretch; }
  .report-view { padding: 20px 18px; }
  .next-step-head { flex-wrap: wrap; }
  .next-step-head .pro-chip { margin-left: 0; }
  .trend-summary { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 92px 1fr 28px; gap: 8px; }
  .bar-name { font-size: 12.5px; }
}

/* ══════════════════ 趋势页（免费 · 数据可视化）══════════════════ */
.trends-empty { padding: 52px 0 64px; }
/* 加载中 / 失败态：一个居中的人话状态，取代原来的「一片空白」。
   加载失败时用户能自己重试 —— 静默空白最伤（分不清没数据还是坏了）。 */
.trends-state { padding: 46px 0; text-align: center; }
.state-line { color: var(--text-3); font-size: 14px; margin: 0 0 16px; line-height: 1.6; }
.trends-state .btn { margin-top: 2px; }
.empty-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px 30px;
}
.empty-ico { font-size: 40px; display: block; margin-bottom: 14px; }
.empty-card h3 { font-size: 19px; margin: 0 0 8px; }
.empty-card p { color: var(--text-3); margin: 0 0 22px; font-size: 14px; line-height: 1.6; }

.trend-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 6px 0 26px; }
.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.sum-val { font-size: 23px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.sum-val em { font-size: 11px; font-style: normal; color: var(--text-3); margin-left: 3px; }
.sum-label { font-size: 11.5px; color: var(--text-3); margin-top: 6px; letter-spacing: .02em; }

.trend-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 22px; }
.trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.trend-head h3 { font-size: 16px; margin: 0; }
.trend-head .muted { font-size: 12.5px; }
.chart-wrap { width: 100%; position: relative; }
.line-chart { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.trend-foot { font-size: 12px; color: var(--text-3); margin: 12px 2px 0; line-height: 1.6; }

/* 折线点的悬浮卡：鼠标悬停 / 手指点一下 / 键盘 Tab 都能看到「哪天 · 多少分」。
   自绘而不是靠 SVG 的 <title>（那个要等一秒、样式跟不了深色主题、靠边还会被裁）。 */
.chart-tip {
  position: absolute; z-index: 6; pointer-events: none;
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: #171b24; border: 1px solid var(--line-2, #333a49);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  font-size: 12px; line-height: 1.2; white-space: nowrap;
}
.chart-tip b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip i { font-style: normal; color: var(--text-1, #e6e7ea); font-variant-numeric: tabular-nums; }
.chart-tip em { font-style: normal; color: var(--text-3); font-size: 11px; }
.pt-hit { cursor: pointer; }
.pt-hit:focus-visible { outline: none; stroke: var(--gold-2); stroke-width: 2; }
.lg-val { font-style: normal; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lg-val:empty { display: none; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 2px 0; font-size: 12px; color: var(--text-3); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .sw.dash { height: 0; border-top: 2px dashed; background: none !important; }
#monthBlock[hidden] { display: none; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: 12px; }
.bar-name { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 11px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 6px; }
.bar-count { font-size: 12.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }

/* 常见主题：一行 chip。放在符号条下面当补充，不再单起一张「同款条形图」的卡。 */
.theme-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.theme-cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.theme-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.theme-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 12.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}
.theme-chip i { font-style: normal; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ═════════════════════════════════════════════════════════
   每日塔罗牌（/tarot.html）
   纯 CSS 3D 翻牌：初始牌背，翻开露出牌面；逆位时牌面旋转 180°。
   不依赖任何图片框架或字体；牌面图来自 /deck/*（公有领域 1909 原版）。
   ═════════════════════════════════════════════════════════ */
.tarot-head, .game-head { padding: 54px 0 4px; text-align: center; }
.tarot-head h1, .game-head h1 { font-size: clamp(28px, 4.6vw, 42px); }
.tarot-head .lede, .game-head .lede { max-width: 620px; margin: 14px auto 0; }

.tarot-stage { padding: 8px 0 8px; text-align: center; }

.tarot-mode {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 16px;
}

.tarot-card {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 300 / 527;
  margin: 0 auto;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}
.tarot-card:focus-visible { box-shadow: 0 0 0 3px var(--gold-2); border-radius: 16px; }

.tarot-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2,.7,.2,1);
}
.tarot-inner.is-flipped { transform: rotateY(180deg); }

.tarot-face, .tarot-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.tarot-back {
  transform: rotateY(0deg);
  display: grid; place-items: center; gap: 10px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216,185,138,.16), transparent 60%),
    linear-gradient(160deg, #14182b, #0c0f1c);
  color: var(--gold);
}
.tarot-back-art { width: 46%; color: var(--gold); opacity: .85; }
.tarot-back-mark { font-size: 30px; line-height: 1; color: var(--gold); opacity: .9; }
.tarot-face { transform: rotateY(180deg); background: #0c0f1c; }
.tarot-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tarot-inner.is-rev .tarot-face img { transform: rotate(180deg); }

.tarot-date { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }

.tarot-meta { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0 4px; }
.tarot-orient {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  color: var(--gold); border: 1px solid var(--gold-2); background: rgba(216,185,138,.08);
}
.tarot-orient.is-rev { color: var(--violet); border-color: var(--violet); background: rgba(155,140,216,.1); }
.tarot-arcana { font-size: 13px; color: var(--text-3); }

.tarot-name { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 4vw, 30px); margin: 4px 0 18px; }

.tarot-meaning {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  text-align: left; margin: 0 auto; max-width: 680px;
}
.tarot-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .25s, background .25s;
}
.tarot-panel.is-active { border-color: var(--gold-2); background: rgba(216,185,138,.07); }
.tarot-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tarot-panel h3 .r-ico { color: var(--gold); font-size: 14px; }
.tarot-panel.is-active h3 .r-ico { color: var(--gold); }
.tarot-panel p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-2); }

.tarot-traditional { margin: 14px auto 0; max-width: 680px; text-align: center; font-size: 12px; color: var(--text-3); }

.tarot-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.tarot-note, .match-note {
  max-width: 640px; margin: 30px auto 0; text-align: center;
  font-size: 13px; line-height: 1.85; color: var(--text-2);
}
.tarot-offline { text-align: center; color: var(--warn); margin-top: 18px; }

@media (max-width: 560px) {
  .tarot-meaning { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════
   三张牌阵（/spread.html）
   翻牌机制【复用】每日塔罗那套 .tarot-inner / .tarot-face / .tarot-back ——
   同一副牌、同一种手感，没有第二套实现会走样。
   三张牌【始终排成一行】：它们是一条线，竖着堆起来就把意思拆散了。
   ═════════════════════════════════════════════════════════ */
.spread-panel {
  margin: 30px 0 0; padding: 30px 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

.spread-ask { max-width: 560px; margin: 0 auto; text-align: left; }
.spread-ask-label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
.spread-q {
  width: 100%; min-height: 62px; resize: vertical;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.6;
}
.spread-q::placeholder { color: var(--text-3); }
.spread-q:focus { outline: none; border-color: var(--gold-2); }
.spread-ask-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

.spread-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; max-width: 620px; margin: 26px auto 0;
  align-items: start;
}
.spread-slot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.spread-slot-label {
  margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); line-height: 1.4;
}
.spread-slot-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.spread-slot-empty {
  width: 100%; aspect-ratio: 300 / 527;
  display: grid; place-items: center;
  border: 1px dashed var(--line-2); border-radius: 14px;
  color: var(--gold);
  background: linear-gradient(160deg, rgba(255,255,255,.025), transparent);
}
.spread-slot-art { width: 54%; opacity: .55; }

/* 翻牌容器：与 .tarot-card 同一个做法，只是宽度跟随栅格 */
.spread-card { position: relative; width: 100%; aspect-ratio: 300 / 527; perspective: 1000px; }
.spread-card .tarot-back-mark { font-size: 18px; }
.spread-card .tarot-face, .spread-card .tarot-back { border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.42); }

.spread-slot-name { margin: 4px 0 0; font-family: var(--serif); font-size: 15px; color: var(--text); line-height: 1.35; }
.spread-slot-orient {
  margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.spread-slot-orient.is-rev { color: var(--violet); }
.spread-slot-link { font-size: 12px; color: var(--ice); border-bottom: 1px solid rgba(142,169,232,.3); }
.spread-slot-link:hover { border-color: var(--ice); }

.spread-actions {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.spread-mode {
  margin: 18px 0 0; text-align: center;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.spread-offline { margin-top: 18px; text-align: center; color: var(--warn); }

/* ── AI 解读结果 ── */
.spread-reading {
  margin: 34px 0 0; padding: 28px 26px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
/* AI 披露：合规硬要求，也和页脚那条同一口径 —— 这里必须显眼，不能只靠页脚 */
.spread-ai {
  margin: 0 0 20px; padding-left: 12px;
  border-left: 2px solid var(--line-2);
  font-size: 12.5px; line-height: 1.75; color: var(--text-3);
}
.spread-reading-title { margin: 0 0 12px; font-size: clamp(20px, 3.4vw, 26px); }
.spread-opening { margin: 0; font-size: 16px; line-height: 1.85; color: var(--text); }

.spread-parts { display: grid; gap: 14px; margin: 22px 0 0; }
.spread-part {
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.spread-part-pos {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 0 0 7px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.spread-part-hint { font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--text-3); font-weight: 400; }
.spread-part-card { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin: 0 0 10px; }
.spread-part-name { font-family: var(--serif); font-size: 17px; color: var(--text); }
.spread-part-orient {
  padding: 2px 9px; border-radius: 999px; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-2); background: rgba(216,185,138,.08);
}
.spread-part-orient.is-rev { color: var(--violet); border-color: var(--violet); background: rgba(155,140,216,.1); }
.spread-part-reading { margin: 0 0 10px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.spread-part-link { font-size: 12.5px; color: var(--ice); border-bottom: 1px solid rgba(142,169,232,.3); }
.spread-part-link:hover { border-color: var(--ice); }

.spread-block { margin: 22px 0 0; }
.spread-block h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.spread-block p { font-size: 15px; line-height: 1.85; color: var(--text-2); }

.spread-quota { margin: 20px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
.spread-deeper { margin: 20px 0 0; text-align: center; font-size: 13px; line-height: 1.8; color: var(--text-3); }
.spread-deeper a { color: var(--gold); border-bottom: 1px solid rgba(216,185,138,.3); }
.spread-deeper a:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* 手机上三张牌仍然一行 —— 但字号要真的缩下去，不然「Challenge」会折成两行 */
@media (max-width: 560px) {
  .spread-panel { padding: 24px 16px 20px; }
  .spread-cards { gap: 8px; }
  .spread-slot-label { font-size: 10.5px; letter-spacing: .04em; }
  .spread-slot-name { font-size: 13px; }
  .spread-slot-orient { font-size: 10px; }
  .spread-slot-hint { font-size: 10.5px; }
  .spread-slot-link { font-size: 11px; }
  .spread-reading { padding: 22px 16px 18px; }
}

/* ═════════════════════════════════════════════════════════
   符号配对（/match.html）
   翻牌机制【复用】每日塔罗 / 三张牌阵那套 .tarot-inner / .tarot-face / .tarot-back ——
   同一个站里不该有第二种翻牌手感，也就不该有第二处会走样。
   牌面 = 该符号的卦画（miniHexSvg，与词典页同一份画法，颜色走全局 .hex-lines）+ 符号名。
   ═════════════════════════════════════════════════════════ */
.match-panel {
  margin: 30px 0 0; padding: 26px 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

/* 三档难度 */
.match-levels { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.match-level {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line-2); background: var(--surface);
}
.match-level:hover { border-color: var(--gold-2); color: var(--gold); }
.match-level.is-on { color: #17130c; background: var(--gold); border-color: transparent; font-weight: 600; }

.match-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
  margin: 0 0 18px; font-size: 12.5px; color: var(--text-3);
}
.match-stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 图鉴进度 + 牌背选择。两样都只是本机记录（localStorage），服务器上没有对应字段。
   放在统计行与牌盘之间 —— 打的过程中进度条就在走，这才是「再来一局」的理由。 */
.match-progress {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 18px; margin: 0 0 16px;
}
.match-codex { display: flex; align-items: center; gap: 9px; }
.match-codex-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.match-codex-label b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.match-codex-bar {
  display: block; width: 88px; height: 4px; border-radius: 999px;
  background: var(--line-2); overflow: hidden;
}
.match-codex-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.match-codex-bar.is-full i { background: var(--gold); box-shadow: 0 0 8px rgba(216, 185, 138, .65); }

/* 图鉴卡入口：跟在进度条后面的一颗小按钮，不是主 CTA ——
   它的机会在「集齐」那一刻，平时只要让人知道存在。 */
.match-codex-card {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.6; color: var(--text-3);
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
}
.match-codex-card:hover { color: var(--gold); border-color: var(--gold-2); }
.match-codex-card[hidden] { display: none !important; }

/* 金边按钮（不是主 CTA，但要和金线一致）—— 目前给「存下完整图鉴」用 */
.btn-gold {
  background: transparent;
  border: 1px solid rgba(216, 185, 138, .55);
  color: var(--gold);
}
.btn-gold:hover { background: rgba(216, 185, 138, .1); border-color: var(--gold); }

/* 未解锁的牌背 disabled 但【不隐藏】：看得见「还有两档没开」才是奖励，
   藏起来等于没做这个功能。 */
.match-backs { display: flex; align-items: center; gap: 6px; }
.match-back-pick {
  width: 30px; height: 30px; padding: 0; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1; color: var(--gold-2);
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #14182b, #0c0f1c);
  cursor: pointer;
}
.match-back-pick:hover:not(:disabled) { border-color: var(--gold-2); color: var(--gold); }
.match-back-pick.is-on {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 1px rgba(216, 185, 138, .3);
}
/* 未解锁：虚线描边 + 压暗到能看见字形（不是压到看不见）——
   要让人看出「这里还有两档」，才谈得上想解锁。 */
.match-back-pick.is-locked { opacity: .4; cursor: not-allowed; border-style: dashed; }

/* 列数由 match.js 按屏幕宽度写进 data-cols（窄屏降一档）：
   22 对 = 44 张，手机上排六列会小到连卦画都分不出来。
   这里【不】再用媒体查询覆盖列数 —— 两个地方各算一次列数，
   迟早会出现「JS 以为是 6 列、CSS 画成 4 列」这种没人能一眼看出的错。 */
.match-board { display: grid; gap: 10px; max-width: 660px; margin: 0 auto; }
.match-board[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.match-board[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.match-card {
  position: relative; padding: 0; border: 0; background: none;
  aspect-ratio: 3 / 4; perspective: 900px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.match-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.match-card.is-miss { animation: matchMiss .34s ease; }
/* 摇一下用的是【外层按钮】的 transform，不是 .tarot-inner：
   内层的 transform 已经被翻牌的 rotateY(180deg) 占住了，抢过来会把牌面翻回去。 */
@keyframes matchMiss {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.match-card .tarot-face, .match-card .tarot-back { border-radius: 11px; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.match-card .tarot-back-mark { font-size: 20px; }

/* 三种牌背：三个记号都画在 DOM 里，显示哪一个由 .match-board[data-back] 决定 ——
   换牌背因此只是改一个属性，不用重画牌盘（重画会把翻开的牌翻回背面）。
   只改背景与记号，翻牌手感仍是同一套 .tarot-inner。 */
.match-card .tarot-back-mark .bm { font-style: normal; display: none; }
.match-board[data-back="moon"] .bm-moon,
.match-board[data-back="star"] .bm-star,
.match-board[data-back="hex"] .bm-hex,
.match-board:not([data-back]) .bm-moon { display: inline; }

.match-board[data-back="star"] .tarot-back {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 185, 138, .14), transparent 60%),
    radial-gradient(circle, rgba(216, 185, 138, .42) 1px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(160deg, #161a2e, #0b0e1a);
}
.match-board[data-back="hex"] .tarot-back {
  /* 六道爻线【只画中间一条】而不是铺满整张牌：
     铺满时 44 张牌会连成一片横条纹，字和牌面全被吃掉（实测过）。
     42px / 7px = 正好 6 道，宽度收到 46% 才像一卦。 */
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 185, 138, .14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(216, 185, 138, .55) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #171a2e, #0c0f1c);
  background-size: 100% 100%, 46% 42px, 100% 100%;
  background-position: 0 0, center, 0 0;
  background-repeat: no-repeat;
}
/* 这一档的「记号」就是那六道线本身，再叠一个 ☰ 是重复 */
.match-board[data-back="hex"] .bm-hex { display: none; }

/* 这一档打过完美局 → 按钮上挂一颗星。三档各一颗，最多三颗，
   不另开一块记分板（统计行已经四项，再加就挤了）。 */
.match-level.is-perfect::after { content: '★'; margin-left: 6px; font-size: 10px; color: var(--gold); }
.match-level.is-on.is-perfect::after { color: #17130c; }
.match-card.is-done { cursor: default; }
.match-card.is-done .tarot-face {
  border-color: rgba(216, 185, 138, .5);
  box-shadow: 0 0 0 1px rgba(216, 185, 138, .25), 0 10px 24px rgba(0, 0, 0, .45);
}

.match-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 4px;
}
.match-face svg { display: block; width: 80%; height: auto; aspect-ratio: 1; }
.match-name {
  max-width: 100%; font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--text-2);
  /* 最长的名字是「Being chased」—— 两行以内必须放得下；再长就截断，不许撑破牌面 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.match-card.is-done .match-name { color: var(--gold); }

.match-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.match-offline { margin: 18px 0 0; text-align: center; color: var(--warn); }
.match-online-note { margin: 0 0 16px; color: var(--text-2); font-size: 12.5px; text-align: center; }
.match-feedback { margin: 14px 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.match-feedback:empty { display: none; }
.match-feedback.is-error { color: #e08b8b; }
.match-invite, .match-publish { border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; margin: 18px 0; }
.match-invite h2 { font-size: 22px; margin-bottom: 12px; }
.match-invite .btn { margin-top: 16px; }
.match-publish { text-align: left; }
.match-publish label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
.match-publish input { width: 100%; min-width: 0; padding: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; font: inherit; }
.match-publish input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.match-publish .auth-note { margin-top: 10px; }
#copyChallenge { margin-top: 14px; }
.match-ranking { padding-top: 40px; padding-bottom: 30px; scroll-margin-top: 80px; }
.match-ranking h2 { margin-bottom: 12px; }
.match-ranking .match-levels { margin-top: 20px; }
.match-table-wrap { overflow-x: auto; margin: 16px 0; }
.match-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.match-table th, .match-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.match-table th { color: var(--text-2); font-weight: 500; }
.match-table td:nth-child(2) { overflow-wrap: anywhere; max-width: 180px; }
.match-table td:nth-child(3), .match-table td:nth-child(4) { white-space: nowrap; }
@media (max-width: 480px) {
  .match-invite, .match-publish { padding: 16px; }
  .match-table th, .match-table td { padding: 10px 5px; font-size: 12px; }
}

/* 读屏播报位：视觉上没有，但【不能】用 display:none —— 那连读屏也一起藏了 */
.match-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 通关面板 ── */
.match-done {
  margin: 30px 0 0; padding: 28px 26px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.match-done-eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 8px;
}
.match-done-score { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4vw, 32px); margin: 0 0 6px; }
.match-done-best { font-size: 13px; color: var(--gold); margin: 0; }

/* 通关徽记：完美局 / 新符号 / 解锁。空的时候整块不占位（:empty）。 */
.match-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.match-badges:empty { display: none; }
.match-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
}
.match-badge.is-gold {
  color: var(--gold); border-color: rgba(216, 185, 138, .45);
  background: rgba(216, 185, 138, .08);
}
/* 完美局：整个通关面板换一档边框与底色，让「这次不一样」一眼看得出来，
   不必靠读那行字。 */
.match-done.is-perfect {
  border-color: rgba(216, 185, 138, .55);
  background: linear-gradient(180deg, rgba(216, 185, 138, .07), transparent);
  box-shadow: 0 0 0 1px rgba(216, 185, 138, .16), 0 18px 50px rgba(0, 0, 0, .3);
}
.match-done-syms { margin: 24px 0 0; }
.match-done-syms h3 {
  margin: 0 0 6px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.match-done-hint { margin: 0 0 14px; font-size: 12.5px; color: var(--text-3); }
.match-done .chips { justify-content: center; }

@media (max-width: 560px) {
  .match-panel { padding: 20px 14px 18px; }
  .match-board { gap: 7px; }
  .match-card .tarot-back-mark { font-size: 15px; }
  .match-name { font-size: 9.5px; }
  .match-done { padding: 22px 16px 20px; }
  .match-progress { gap: 8px 12px; }
  .match-codex-bar { width: 64px; }
  .match-back-pick { width: 27px; height: 27px; font-size: 12.5px; }
}


/* ── 导出菜单（文档 / JSON 两种形态共用一个入口按钮） ── */
.export-wrap { position: relative; }
.export-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 220px; padding: 6px;
  background: var(--surface-2, var(--surface)); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column;
}
.export-menu button {
  font: inherit; font-size: 13.5px; color: var(--text); text-align: left;
  background: none; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer;
}
.export-menu button:hover { background: rgba(255, 255, 255, .06); }

/* ── 巧合墙（每条梦下方：这个符号还有多少匿名梦者也遇见）── */
.rec-coincide {
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid rgba(216, 185, 138, .35); border-left: 3px solid var(--gold);
  border-radius: 10px; background: rgba(216, 185, 138, .06);
}
.coincide-lead { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); }
.coincide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.coincide-chip {
  font-size: 13px; color: var(--text); text-decoration: none;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2, var(--surface));
}
.coincide-chip:hover { border-color: var(--gold); color: var(--gold); }
.coincide-chip b { color: var(--gold); font-weight: 600; margin-left: 2px; }

/* ── 周巧合脉冲卡（广场顶部）── */
.coincidence-card {
  margin: 0 0 26px; padding: 22px 24px;
  border: 1px solid rgba(216, 185, 138, .35); border-radius: 16px;
  background: linear-gradient(180deg, rgba(216, 185, 138, .10), rgba(216, 185, 138, .03));
}
.coincidence-title { font-size: 19px; margin: 4px 0 14px; font-weight: 600; }
.coincidence-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.coincidence-chip {
  font-size: 14px; color: var(--text); text-decoration: none;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(216, 185, 138, .4); background: rgba(216, 185, 138, .08);
}
.coincidence-chip:hover { border-color: var(--gold); color: var(--gold); }
.coincidence-chip b { color: var(--gold); font-weight: 600; margin-left: 3px; }
.coincidence-foot { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); }

/* ── 升级弹层里的购买区（价格由服务端下发，这里只管排布） ── */
.up-plans { margin: 2px 0 18px; }
.up-plans-head { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.up-plans-list { display: flex; flex-direction: column; gap: 8px; }
.up-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 15px; font: inherit; text-align: left; cursor: pointer;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.up-plan:hover:not(.is-off) { border-color: var(--gold); }
.up-plan.is-off { opacity: .45; cursor: not-allowed; }
.up-plan-name { font-size: 14px; }
.up-plan-price { font-weight: 600; color: var(--gold); white-space: nowrap; }
.up-plan-off { font-size: 11.5px; color: var(--text-3); }
.up-plan-fine { margin: 9px 0 0; font-size: 11.5px; color: var(--text-3); }

/* ── 模型披露清单（/ai.html）──
 * 用清单而不是表格：手机上一张 3 列表格会被挤成竖排单字，
 * 而这两个值（label / 型号）本来就是「一对」的关系，flex 换行最稳。 */
.models-list { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.models-list li {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
}
.models-list li span { flex: 1 1 220px; color: var(--text-2); font-size: 14px; }
.models-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; color: var(--gold); letter-spacing: 0.2px;
}

/* ── 定价页：一次性购买 · 不自动续费 ──
 * 这条必须比 .plan-fine 更显眼：一个写着「$9.99 / month」的页面，
 * 用户在找的是"会不会每月扣我钱"，把答案藏在 12px 灰字里等于没回答。 */
.plan-once {
  margin: 10px 0 0; padding: 7px 10px; border-radius: 9px;
  background: rgba(216, 185, 138, 0.09); border: 1px solid rgba(216, 185, 138, 0.22);
  font-size: 12.5px; line-height: 1.45; color: var(--gold); text-align: center;
}
