/* 知来 - 全站样式（移动优先，桌面自适应）
 * 主题：夜观天象 · 道家玄金（玄黑 / 鎏金 / 朱砂）
 * 对比度：正文 #ece5d3 on #14110c ≈ 13:1，辅文 #a89c84 ≈ 6:1，均达 WCAG AA
 */
:root {
  --gold: #c9a86a;        /* 鎏金 */
  --gold-deep: #a8863f;   /* 沉金 */
  --gold-pale: #e8d5a8;   /* 浅金（标题渐变用） */
  --cinnabar: #a8352a;    /* 朱砂 */
  --cinnabar-deep: #8c2318;
  --ink: #14110c;         /* 玄黑（暖调） */
  --ink-2: #1d1913;       /* 卡片底 */
  --ink-3: #262017;       /* 输入框/次级底 */
  --bg: #14110c;
  --card: #1d1913;
  --line: #3a3123;
  --line-soft: #2c2519;
  --black: #14110c;
  --green: #5f9e6e;
  --red: #c0392f;
  --blue: var(--gold);    /* 兼容旧引用：一律指向鎏金 */
  --blue-dark: var(--gold-deep);
  --text: #ece5d3;
  --text-sub: #a89c84;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* 页面骨架 */
.page {
  min-height: 100vh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto;
  background:
    radial-gradient(760px 420px at 50% -10%, #221b10 0%, rgba(34,27,16,0) 64%),
    var(--bg);
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  height: 52px; background: rgba(20,17,12,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-title { font-size: 1.05rem; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.back-btn {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 1.6rem; line-height: 1; color: var(--text-sub); cursor: pointer;
}
.main { flex: 1; padding: 20px 20px 110px; }

/* 底部tab */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 720px;
  display: flex; background: rgba(24,20,14,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab { flex: 1; text-align: center; text-decoration: none; color: var(--text-sub); font-size: .78rem; padding: 4px 0; }
.tab-icon { font-size: 1.25rem; margin-bottom: 2px; }
.tab.active { color: var(--gold); font-weight: 600; }

/* 首页（道家玄金：玄黑底 鎏金大字 动态星空太极背景） */
.page.naked { background: radial-gradient(900px 520px at 50% 0%, #241c0f 0%, rgba(36,28,15,0) 60%), var(--bg); }
.home-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.topbar.naked { border-bottom: none; background: transparent; backdrop-filter: none; }
.home-hero { padding: 24vh 34px 0; position: relative; z-index: 1; }
.home-hero > * { animation: rise .7s ease both; }
.home-hero > :nth-child(2) { animation-delay: .1s; }
.home-hero > :nth-child(3) { animation-delay: .2s; }
.home-hero > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* 干支纪日眉行 */
.home-date {
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: .82rem; letter-spacing: .28em; color: var(--gold-deep);
  margin-bottom: 18px;
}
.home-title {
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 2.15rem; font-weight: 700; line-height: 1.35;
  letter-spacing: .14em; margin-bottom: 10px;
  background: linear-gradient(160deg, var(--gold-pale) 10%, var(--gold) 55%, var(--gold-deep) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 长句（含英文诗行）降字号 */
.home-title.long { font-size: 1.5rem; line-height: 1.65; letter-spacing: .06em; }
.home-title-sub {
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 1.18rem; font-weight: 400; line-height: 1.6;
  letter-spacing: .12em; color: var(--text-sub); margin-bottom: 28px;
}
.home-divider { width: 34px; height: 2px; background: linear-gradient(90deg, var(--cinnabar), var(--gold)); }
.home-btns {
  display: flex; flex-direction: column; gap: 16px;
  width: 68%; max-width: 300px; margin: 9vh auto 0;
}
.home-btns .btn { border-radius: 6px; padding: 14px 0; }

/* 按钮：主=朱砂漆盒金边，次=鎏金描边 */
.btn {
  border: none; cursor: pointer; font-size: 1rem; font-family: inherit;
  padding: 13px 22px; border-radius: 4px; letter-spacing: .15em;
  transition: opacity .15s ease, transform .05s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.primary {
  background: linear-gradient(180deg, #b03a2e, var(--cinnabar-deep));
  color: #f7ecd8;
  border: 1px solid rgba(201,168,106,.4);
  box-shadow: 0 6px 20px rgba(140,35,24,.35), inset 0 1px 0 rgba(255,236,216,.12);
}
.btn.primary:hover { background: linear-gradient(180deg, #c24236, #9c2a1e); box-shadow: 0 8px 26px rgba(140,35,24,.45), inset 0 1px 0 rgba(255,236,216,.12); }
.btn.dark {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(201,168,106,.5);
}
.btn.dark:hover { background: rgba(201,168,106,.08); }
.btn.big { width: 100%; max-width: 100%; }
.btn + .btn { margin-top: 0; }

/* 表单（grid 两栏对齐，label 与控件首行基线对齐） */
.form { display: flex; flex-direction: column; gap: 4px; }
.form-row { display: grid; grid-template-columns: 5em 1fr; gap: 14px; padding: 16px 0; align-items: start; border-bottom: 1px solid var(--line-soft); }
.form-row:last-child { border-bottom: none; }
.form-label { font-size: .95rem; padding-top: 11px; color: var(--gold); letter-spacing: .04em; }
.form-ctrl { flex: 1; min-width: 0; }
.field-input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--ink-3); border-radius: 6px;
  padding: 10px 12px; font-size: .95rem; font-family: inherit; color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input::placeholder { color: #6e6552; }
.field-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.14); }
select.field-input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a89c84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
input[type="date"].field-input, input[type="time"].field-input { font-variant-numeric: tabular-nums; color-scheme: dark; }
input[type="date"].field-input::-webkit-calendar-picker-indicator, input[type="time"].field-input::-webkit-calendar-picker-indicator { opacity: .65; cursor: pointer; filter: sepia(1) saturate(2); }
/* 日期时间并排 */
.dt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.loc-col { display: flex; flex-direction: column; gap: 10px; }
.hint { font-size: .78rem; color: var(--text-sub); margin-top: 8px; }
.loc-skip { color: var(--gold); }
.loc-skip::before { content: '✦ '; font-size: .7rem; }
.hint.center { text-align: center; margin-top: 14px; }

/* 只读触发字段（滚轮选择器入口），带下拉角标 */
.ro-field { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.ro-field::placeholder { color: #6e6552; }

/* 输入方式切换（填表 / 直接对话） */
.mode-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-3); padding: 3px; margin-bottom: 20px; }
.ms-btn {
  flex: 1; padding: 9px 0; border: none; background: transparent; color: var(--text-sub);
  font-size: .88rem; letter-spacing: .08em; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: color .15s ease, background .15s ease;
}
.ms-btn.active {
  background: rgba(201,168,106,.16); color: var(--gold-pale);
  border: 1px solid rgba(201,168,106,.6);
  box-shadow: 0 2px 10px rgba(201,168,106,.12), inset 0 1px 0 rgba(255,236,216,.08);
}
.input-pane { display: none; }
.input-pane.on { display: block; }

/* 直接对话模式（输入条常驻底部） */
.chat-wrap { flex-direction: column; min-height: calc(100vh - 132px); } /* 顶栏52+页顶距20+切换条60；display 交给 input-pane 控制 */
.chat-wrap.input-pane.on { display: flex; }
.chat-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 18px; flex: 1; }
.bubble {
  max-width: 84%; padding: 11px 14px; border-radius: 12px;
  font-size: .93rem; line-height: 1.9; word-break: break-word;
}
.bubble.user {
  align-self: flex-end; border-top-right-radius: 4px; color: #f7ecd8;
  background: linear-gradient(180deg, #b03a2e, var(--cinnabar-deep));
  border: 1px solid rgba(201,168,106,.35);
}
.bubble.ai { align-self: flex-start; border-top-left-radius: 4px; background: var(--ink-3); border: 1px solid var(--line); color: var(--text); }
.bubble.ai.chat-confirm { border-color: rgba(201,168,106,.55); background: rgba(201,168,106,.06); }
.chat-confirm .btn { margin-top: 12px; }
.chat-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chat-chips .chip { padding: 6px 18px 6px 26px; }
.chat-tip { font-size: .75rem; color: #7a7057; line-height: 1.7; margin-bottom: 10px; }
.chat-bar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20,17,12,0), var(--bg) 42%);
}
.chat-img {
  width: 36px; min-height: 44px; flex-shrink: 0; padding: 0;
  border: none; border-radius: 10px; background: transparent;
  color: #8a7c5f; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s ease;
}
.chat-img:hover, .chat-img:active { color: var(--gold); }
.chat-img svg { display: block; }
.chat-input {
  flex: 1; min-height: 44px; max-height: 96px; resize: none;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-size: .95rem; font-family: inherit; outline: none; background: var(--ink-3); color: var(--text);
  line-height: 1.5;
}
.chat-input::placeholder { color: #6e6552; }
.chat-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.12); }
.chat-send {
  width: 48px; min-height: 44px; border: 1px solid rgba(201,168,106,.4); border-radius: 14px;
  background: linear-gradient(180deg, #b03a2e, var(--cinnabar-deep)); color: #f7ecd8;
  font-size: 1.05rem; cursor: pointer; flex-shrink: 0;
}
.chat-send:hover { background: linear-gradient(180deg, #c24236, #9c2a1e); }
/* 滚轮选择器（底部弹层复用 sheet） */
.wheel-mask { z-index: 60; }
.wheel-sheet { padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); }
.wheel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wheel-title { font-weight: 600; color: var(--gold-pale); letter-spacing: .1em; }
.wheel-cancel { background: none; border: none; color: var(--text-sub); font-size: .9rem; padding: 8px 12px; cursor: pointer; font-family: inherit; }
.wheel-ok { background: none; border: none; color: var(--gold); font-size: .95rem; font-weight: 700; padding: 8px 12px; cursor: pointer; font-family: inherit; }
.wheel-body { position: relative; display: flex; }
.wheel-col { flex: 1; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 80px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-item { height: 40px; line-height: 40px; text-align: center; font-size: 1.02rem; color: var(--text-sub); scroll-snap-align: center; font-variant-numeric: tabular-nums; }
.wheel-item.sel { color: var(--gold-pale); font-weight: 700; }
.wheel-band { position: absolute; left: 6px; right: 6px; top: 50%; height: 40px; transform: translateY(-50%); pointer-events: none; border-top: 1px solid rgba(201,168,106,.55); border-bottom: 1px solid rgba(201,168,106,.55); background: rgba(201,168,106,.07); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.gender-row { display: flex; gap: 12px; }
.gender-btn {
  flex: 1; min-height: 44px; padding: 10px 0; border: 1px solid var(--line); background: var(--ink-3); color: var(--text);
  border-radius: 6px; font-size: .95rem; cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.gender-btn.primary { background: rgba(201,168,106,.3); border-color: var(--gold); color: var(--gold-pale); box-shadow: inset 0 0 0 1px rgba(201,168,106,.25), 0 2px 10px rgba(201,168,106,.14); }
.form-note { text-align: center; font-size: .85rem; color: var(--text-sub); margin: 26px 0 12px; }
/* 表单确定按钮贴底（与对话输入条同款底衬）；不满一屏时也压到页底 */
.form-pane.input-pane.on { display: flex; flex-direction: column; min-height: calc(100vh - 132px); } /* 顶栏52+页顶距20+切换条60，与 chat-wrap 同口径 */
.form-pane .form-bar { margin-top: auto; }
.form-bar {
  position: sticky; bottom: 0; z-index: 10;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20,17,12,0), var(--bg) 40%);
}
.form-bar .form-err { margin: 0 0 10px; text-align: center; }
.form-err { color: #e07b6f; font-size: .85rem; margin: 10px 0; }

/* 生成中 */
.loading-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 1.5rem; font-weight: 700; margin-top: 22vh; letter-spacing: .3em; text-indent: .3em;
  color: var(--gold-pale);
}
.loading-bar { width: 132px; height: 2px; margin: 30px auto 0; background: var(--line-soft); border-radius: 2px; overflow: hidden; position: relative; }
.loading-bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 42%;
  background: var(--gold); border-radius: 2px; animation: sweep 1.7s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(340%); } }
/* 罗盘式加载环 */
.compass { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex-shrink: 0; }
.compass::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--gold); border-right-color: var(--gold);
  animation: spin 1.1s cubic-bezier(.6,.2,.4,.8) infinite;
}
.compass::after {
  content: ''; position: absolute; width: 5px; height: 5px; background: var(--cinnabar);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; display: inline-block; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quote {
  max-width: 30em; margin: 11vh auto 0; min-height: 12em; padding: 26px 10px 0; position: relative;
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 1.05rem; line-height: 2.35; color: #d8cfba;
  transition: opacity .6s ease;
}
.quote::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 1px; background: var(--gold-deep);
}
.quote p { margin-bottom: 16px; }
.quote-author { text-align: right; color: var(--text-sub); letter-spacing: .1em; font-size: .88rem; }
/* 动效偏好：减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 玄夜等待页：星点微光（整站已玄黑，此页加星幕） ---------- */
body:has(.dark-wait) { background: var(--ink); }
.page.dark-wait {
  background:
    radial-gradient(900px 480px at 50% -8%, #2a2214 0%, rgba(42,34,20,0) 62%),
    var(--ink);
}
.page.dark-wait::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(226,222,210,.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 76% 14%, rgba(226,222,210,.3), transparent 100%),
    radial-gradient(1.4px 1.4px at 62% 42%, rgba(201,168,106,.35), transparent 100%),
    radial-gradient(1.2px 1.2px at 30% 58%, rgba(226,222,210,.25), transparent 100%),
    radial-gradient(1.6px 1.6px at 86% 66%, rgba(226,222,210,.28), transparent 100%),
    radial-gradient(1.2px 1.2px at 12% 82%, rgba(201,168,106,.3), transparent 100%),
    radial-gradient(1.4px 1.4px at 52% 88%, rgba(226,222,210,.22), transparent 100%);
}
.page.dark-wait > * { position: relative; z-index: 1; }
.page.dark-wait .topbar { background: transparent; border-bottom: none; backdrop-filter: none; }

/* 追问等待卡：玄夜星幕嵌入 */
.followup.thinking {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 22px 28px;
  background:
    radial-gradient(420px 240px at 50% -20%, #2a2214 0%, rgba(42,34,20,0) 70%),
    var(--ink);
  border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  overflow: hidden; position: relative;
}
.followup.thinking .compass { width: 32px; height: 32px; }
.wait-title {
  margin-top: 18px; font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: .84rem; letter-spacing: .34em; text-indent: .34em;
  color: #b9b4a6;
}
.think-quote {
  margin-top: 24px; min-height: 8em; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: .95rem; line-height: 2.15; color: #cfcabb;
  transition: opacity .6s ease;
}
.think-quote p { margin-bottom: 10px; }
.think-quote .quote-author { text-align: center; color: #8a8272; font-size: .8rem; letter-spacing: .12em; }

/* 报告 */
.report-title {
  font-size: 1.3rem; font-weight: 700; margin: 8px 0 18px; letter-spacing: .04em;
  color: var(--gold-pale);
}
.chart-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 18px 14px; margin-bottom: 20px; }
.pillars { display: flex; gap: 6px; text-align: center; }
.pillar { flex: 1; }
.pillar-label { font-size: .72rem; color: var(--text-sub); margin-bottom: 6px; }
.pillar-gz {
  font-size: 1.3rem; font-weight: 700; letter-spacing: .08em;
  padding: 8px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-3);
}
.pillar-gz.daymaster { border-color: rgba(201,168,106,.55); color: var(--gold); background: rgba(201,168,106,.08); }
.pillar-ss { font-size: .72rem; color: var(--text-sub); margin-top: 6px; }
.pillar-hide { font-size: .72rem; color: #7a7057; margin-top: 3px; letter-spacing: .2em; }
.pillar-zss { font-size: .68rem; color: #6d6450; margin-top: 2px; letter-spacing: .12em; line-height: 1.5; }
.chart-meta { font-size: .78rem; color: var(--text-sub); margin-top: 12px; line-height: 1.7; }
/* 报告页头部详细排盘表：年月日时 × 天干/地支/藏干 */
.chart-table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; }
.chart-table th { font-size: .75rem; color: var(--text-sub); font-weight: 400; padding: 6px 2px; border-bottom: 1px solid var(--line-soft); }
.chart-table td { padding: 9px 2px; border-bottom: 1px dashed var(--line-soft); vertical-align: top; }
.chart-table tr.ct-last td { border-bottom: none; }
.ct-rowlab { width: 3.2em; font-size: .75rem; color: #877c62; text-align: left; vertical-align: middle; }
.ct-gz { font-size: 1.25rem; font-weight: 700; letter-spacing: .05em; color: var(--text); }
.ct-gz.daymaster { color: var(--gold); }
.ct-day { background: rgba(201,168,106,.06); }
.ct-hide { font-size: .72rem; color: #7a7057; line-height: 1.9; }
/* 五行配色：木绿 火红 土褐 金黄 水蓝（排盘表藏干/支神） */
.wx-mu { color: #7dc47a; }
.wx-huo { color: #e5695e; }
.wx-tu { color: #c07a4e; }
.wx-jin { color: #e8c35f; }
.wx-shui { color: #5f9fd8; }
.chart-info { margin-top: 14px; font-size: .84rem; color: var(--text-sub); line-height: 1.8; }
.ci-line { margin-bottom: 2px; }
.ci-line b, .ci-line .em { color: var(--gold); }
.ci-h { font-size: .78rem; color: #877c62; margin-top: 10px; }
.chart-info .wx-bars { margin: 8px 0 2px; }
.chart-dayun { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.dy-label { font-size: .75rem; color: var(--text-sub); padding-top: 8px; flex-shrink: 0; }
.dayun-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dayun-chip {
  flex-shrink: 0; text-align: center; border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 8px; background: var(--ink-3);
}
.dayun-chip.current { border-color: rgba(201,168,106,.55); background: rgba(201,168,106,.08); }
.dayun-chip.current .dy-gz { color: var(--gold); }
.dy-gz { font-size: .95rem; font-weight: 600; }
.dy-age { font-size: .68rem; color: var(--text-sub); margin-top: 2px; }
/* 大运/流年 双区列（问真式） */
.dyc {
  flex-shrink: 0; min-width: 52px; text-align: center;
  border: 1px solid transparent; border-radius: 4px; padding: 6px 4px 5px;
}
.dyc.clickable { cursor: pointer; }
.dyc.sel { border-color: rgba(201,168,106,.55); background: rgba(201,168,106,.08); }
.dyc-age { font-size: .72rem; color: var(--text-sub); line-height: 1.5; }
.dyc-yr { font-size: .72rem; color: var(--text-sub); line-height: 1.5; }
.dyc.cur .dyc-age, .dyc.cur .dyc-yr { color: var(--gold); font-weight: 600; }
.dyc-gz { margin-top: 4px; }
.dyc-gzr { display: flex; align-items: baseline; justify-content: center; gap: 3px; line-height: 1.45; }
.dyc-char { font-size: .85rem; font-weight: 600; }
.dyc-ss { font-size: .58rem; color: #6d6450; min-width: 1.6em; text-align: left; }

.sec { margin-bottom: 26px; }
.sec-title {
  font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; letter-spacing: .05em;
  color: var(--gold); display: flex; align-items: center; gap: 10px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.para { font-size: .95rem; line-height: 2.05; color: #ded6c2; margin-bottom: 12px; text-align: justify; }

.followup { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; margin-bottom: 14px; scroll-margin-top: 64px; }

/* ---------- 问答区：标题、编号、目录导航 ---------- */
.qa-sec .qa-sec-title { display: none; }
.qa-sec.has-fu .qa-sec-title { display: flex; }

.fu-qhead { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--line-soft); }
.fu-no { flex: none; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: #14110c; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .5px; }
.fu-q { flex: 1; font-weight: 700; font-size: 1rem; color: var(--gold-pale); line-height: 1.5; }
.fu-top { flex: none; background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--text-sub); font-size: .7rem; padding: 2px 7px; cursor: pointer; }
.fu-top:hover { color: var(--gold); border-color: var(--gold-deep); }

.fu-a .fu-h { color: var(--gold-pale); font-weight: 700; font-size: .95rem; margin: 14px 0 8px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.5; }
.fu-a .fu-h:first-child { margin-top: 2px; }
.fu-a .fu-p { font-size: .93rem; line-height: 2; color: #ded6c2; margin-bottom: 10px; text-align: justify; }
.fu-a .fu-p:last-child { margin-bottom: 0; }

.qa-toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px 14px 6px; margin-bottom: 16px; scroll-margin-top: 64px; }
.qa-toc-title { font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: 2px; padding: 10px 0 6px; border-bottom: 1px solid var(--line-soft); }
.toc-item { display: flex; align-items: baseline; gap: 10px; width: 100%; background: none; border: none; border-bottom: 1px dashed var(--line-soft); padding: 10px 2px; cursor: pointer; text-align: left; }
.toc-item:last-child { border-bottom: none; }
.toc-no { flex: none; color: var(--gold); font-weight: 700; font-size: .8rem; min-width: 1.6em; }
.toc-q { color: #cfc6b0; font-size: .88rem; line-height: 1.6; }
.toc-item:hover .toc-q, .toc-item:active .toc-q { color: var(--gold-pale); }

.followup.flash { animation: fuFlash 1.6s ease-out; }
@keyframes fuFlash {
  0% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 106, .35); }
  100% { border-color: var(--line-soft); box-shadow: 0 0 0 3px rgba(201, 168, 106, 0); }
}

/* 追问建议：符签样式 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 20px; }
.chip {
  border: 1px solid rgba(201,168,106,.4); background: rgba(201,168,106,.05); border-radius: 4px;
  padding: 8px 16px 8px 24px; font-size: .85rem; color: var(--gold); cursor: pointer; font-family: inherit;
  position: relative; transition: background .15s, border-color .15s;
}
.chip::before { content: '⌐'; position: absolute; left: 5px; top: 50%; transform: translateY(-58%) rotate(-14deg); font-size: .7rem; color: var(--gold-deep); }
.chip:hover { background: rgba(201,168,106,.14); border-color: var(--gold); }

.report-actions { display: flex; gap: 12px; margin: 10px 0 16px; }
.report-actions .btn { flex: 1; }
.ask-bar { display: flex; gap: 10px; }
.ask-input {
  flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px;
  font-size: .95rem; font-family: inherit; outline: none; background: var(--ink-3); color: var(--text);
}
.ask-input::placeholder { color: #6e6552; }
.ask-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.12); }
.ask-send {
  width: 48px; border: 1px solid rgba(201,168,106,.4); background: linear-gradient(180deg, #b03a2e, var(--cinnabar-deep)); color: #f7ecd8; border-radius: 4px;
  font-size: 1.05rem; cursor: pointer;
}
.ask-send:hover { background: linear-gradient(180deg, #c24236, #9c2a1e); }
.report-note { font-size: .75rem; color: #7a7057; margin-top: 22px; line-height: 1.8; }

.share-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }

/* 支付 */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(5,4,2,.6); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 720px; background: var(--ink-2); border: 1px solid var(--line-soft); border-bottom: none; border-radius: 14px 14px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  animation: slideup .22s ease;
}
@keyframes slideup { from { transform: translateY(40%); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-head { font-weight: 600; margin-bottom: 16px; color: var(--gold-pale); }
.pack-list { display: flex; gap: 12px; margin-bottom: 18px; }
.pack {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 16px 8px;
  text-align: center; cursor: pointer; position: relative; background: var(--ink-3);
}
.pack.selected { border-color: var(--gold); background: rgba(201,168,106,.09); box-shadow: 0 0 0 1px rgba(201,168,106,.3); }
.pack-price { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.pack-count { font-size: .8rem; color: var(--text-sub); margin-top: 4px; }
.pack-tag {
  position: absolute; top: -8px; right: -4px; background: var(--cinnabar); color: #f7ecd8;
  font-size: .65rem; padding: 2px 7px; border-radius: 999px;
}
.agreement { font-size: .75rem; color: var(--text-sub); margin-bottom: 14px; }
.agreement a { color: var(--gold); text-decoration: none; }
.pay-contact { margin: -4px 0 12px; padding: 10px 12px; border: 1px dashed rgba(201,168,106,.35); border-radius: 8px; font-size: .8rem; color: var(--text-sub); text-align: center; cursor: pointer; }
.pay-contact b { color: var(--gold); font-weight: 600; }

/* 支付结果 */
.pay-result { text-align: center; padding: 12vh 0 8vh; }
.check-ok {
  width: 72px; height: 72px; margin: 0 auto 20px; background: var(--green); color: #fff;
  border-radius: 50%; font-size: 2.2rem; line-height: 72px;
}
.check-fail { width: 72px; height: 72px; margin: 0 auto 20px; background: var(--red); color: #fff; border-radius: 50%; font-size: 2rem; line-height: 72px; }
.pay-text { font-size: 1.2rem; font-weight: 700; }
.pay-sub { font-size: .85rem; color: var(--text-sub); margin-top: 10px; }

/* 记录 / 我的 */
.record-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 16px; margin-bottom: 12px; cursor: pointer;
}
.record-item:hover { border-color: rgba(201,168,106,.45); }
.record-title { font-weight: 600; }
.record-meta { font-size: .8rem; color: var(--text-sub); margin-top: 6px; }
.empty { text-align: center; color: var(--text-sub); padding: 40px 0 24px; font-size: .92rem; }

.me-title { font-size: 1.35rem; font-weight: 700; margin: 14px 0 6px; color: var(--gold-pale); }
.me-credits { font-size: .85rem; color: var(--text-sub); margin-bottom: 24px; }
.menu { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; font-size: .95rem; cursor: pointer;
}
.menu-item + .menu-item { border-top: 1px solid var(--line-soft); }
.menu-item:hover { background: var(--ink-3); }
.arrow { color: #6e6552; font-size: 1.2rem; }
.login-block { margin: 20px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.settings-btns { margin-top: 8px; }
.settings-btns .btn { margin-bottom: 12px; }

.feedback { min-height: 160px; resize: vertical; }
.page main > .btn { margin-bottom: 12px; }

.agreement-body { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 20px; }
.agreement-body p { font-size: .9rem; line-height: 2; margin-bottom: 12px; color: #ded6c2; }

/* toast */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(38,32,20,.96); color: var(--gold-pale); font-size: .85rem;
  border: 1px solid rgba(201,168,106,.3);
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all .22s ease; z-index: 99; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 桌面端 ---------- */
@media (min-width: 880px) {
  body { background: #0d0b07; }
  .page {
    max-width: none; margin: 0; display: grid;
    grid-template-columns: 300px 1fr; min-height: 100vh;
  }
  .topbar {
    position: static; grid-column: 2; border-bottom: 1px solid var(--line-soft);
    background: var(--ink-2);
  }
  .main { grid-column: 2; padding: 36px 48px 80px; max-width: 860px; width: 100%; margin: 0 auto; }
  .tabbar {
    position: sticky; bottom: auto; left: 0; transform: none;
    top: 0; height: 100vh; width: 300px; max-width: none;
    flex-direction: column; justify-content: flex-start; padding: 46px 0;
    border-top: none; border-right: 1px solid var(--line-soft); background: var(--ink-2);
    grid-column: 1; grid-row: 1 / span 2;
  }
  .tab { text-align: left; padding: 14px 36px; font-size: 1rem; display: flex; align-items: center; gap: 12px; flex: none; }
  .tab-icon { font-size: 1.1rem; margin: 0; display: flex; align-items: center; }
  .tab.active { background: var(--ink-3); }
  .tab::after { content: ''; }
  .tab .tab-icon + div { font-size: 1rem; }
  /* 品牌区 */
  .tabbar::before {
    content: '知来';
    display: block; padding: 0 36px 30px; font-size: 1.5rem; font-weight: 700; letter-spacing: .2em;
    font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
    background: linear-gradient(160deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .home-hero { padding: 15vh 48px 0; }
  .home-title { font-size: 2.4rem; }
  .home-title-sub { font-size: 1.3rem; }
  .home-btns { max-width: 380px; margin: 8vh auto 0; }
  .report-title { font-size: 1.55rem; }
  .para { font-size: .98rem; }
  .sheet-mask { align-items: center; }
  .sheet { max-width: 480px; border-radius: 14px; border-bottom: 1px solid var(--line-soft); }
  .toast { bottom: 40px; }
  .share-cta { position: static; max-width: 860px; margin: 0 auto; }
}

/* 论断依据（保留兼容） */
.ev-item { padding: 11px 0 12px; border-top: 1px solid var(--line-soft); }
.ev-item:first-of-type { border-top: none; }
.ev-src { font-size: .76rem; color: var(--gold-deep); letter-spacing: .02em; margin-bottom: 5px; }
.ev-txt { font-size: .9rem; line-height: 1.95; color: #ded6c2; }

/* ---------- v2 新增：预计时间 / 版本切换 / 精简版 / 引导提问 / 突出追问 / 弱化分享 ---------- */
/* 预计时间行（loading 页与追问等待卡共用） */
.wait-eta { margin-top: 16px; font-size: .85rem; color: #9b8f74; letter-spacing: .05em; }
.thinking .wait-eta { margin: 8px 0 0; font-size: .78rem; color: #877c62; }

/* 版本切换 tabs */
.rep-tabs { display: flex; gap: 8px; margin: 18px 0 14px; }
.rep-tab {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--text-sub);
  font-family: inherit; font-size: .9rem; padding: 9px 0; border-radius: 6px; cursor: pointer;
  letter-spacing: .1em; transition: all .15s;
}
.rep-tab.active {
  border-color: var(--gold); color: var(--gold); background: rgba(201,168,106,.08); font-weight: 700;
}

/* 精简版 */
.brief-view { display: ''; }
.brief-one {
  background: var(--card); border: 1px solid rgba(201,168,106,.35); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 14px 16px; font-size: .95rem; line-height: 1.9; color: var(--gold-pale); margin-bottom: 16px;
}
.brief-block { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.brief-h { font-size: .88rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; margin-bottom: 10px; }
.brief-line { font-size: .88rem; line-height: 1.9; color: #d5cbb5; margin-bottom: 6px; }
.wx-bars { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.wx-row { display: flex; align-items: center; gap: 10px; }
.wx-name { flex: none; width: 44px; font-size: .82rem; color: var(--text-sub); }
.wx-track { flex: 1; height: 10px; background: var(--ink-3); border-radius: 5px; overflow: hidden; }
.wx-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 5px; min-width: 3px; }
.wx-fill.xi { background: linear-gradient(90deg, #a8352a, #c9584a); }
.wx-fill.ji { background: #4a4234; }
.wx-pct { flex: none; width: 40px; text-align: right; font-size: .78rem; color: #877c62; }
.brief-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.brief-table th { color: #877c62; font-weight: 400; font-size: .78rem; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.brief-table td { padding: 8px 4px; color: #ded6c2; border-bottom: 1px dashed var(--line-soft); letter-spacing: .06em; }
.brief-table td.daymaster { color: var(--gold); font-weight: 700; }
.brief-more {
  display: block; width: 100%; margin-top: 4px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .85rem; color: var(--gold); letter-spacing: .05em; padding: 6px 0;
}

/* 引导提问卡 */
.ask-guide { margin: 8px 0 18px; }
.ask-guide-title { font-size: 1.02rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; margin-bottom: 4px; }
.ask-guide-title::before { content: '❖ '; font-size: .8rem; color: var(--gold-deep); }
.ask-guide-sub { font-size: .8rem; color: #877c62; margin-bottom: 12px; }

/* 继续提问：贴底 + 加大加明显 */
.ask-wrap {
  position: sticky; bottom: 0; z-index: 8;
  padding: 16px 0 10px; background: linear-gradient(transparent, var(--bg) 32%);
}
.ask-wrap-title { font-size: .95rem; font-weight: 700; color: var(--gold-pale); margin-bottom: 10px; letter-spacing: .05em; }
.ask-bar { display: flex; gap: 10px; }
.ask-input {
  flex: 1; border: 1.5px solid rgba(201,168,106,.55); border-radius: 12px; padding: 15px 16px;
  font-size: 1rem; font-family: inherit; outline: none; background: var(--ink-3); color: var(--text);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.ask-input::placeholder { color: #8a7f66; }
.ask-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,106,.16); }
.ask-send { width: 56px; border: 1.5px solid rgba(201,168,106,.5); background: linear-gradient(180deg, #b03a2e, var(--cinnabar-deep)); color: #f7ecd8; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
.ask-send:hover { background: linear-gradient(180deg, #c24236, #9c2a1e); }

/* 弱化分享：文字小链接 */
.share-mini {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: .8rem; color: #877c62; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line); padding: 8px 0;
}
.share-mini:hover { color: var(--gold); }

/* 单项分享小按钮 */
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-head .sec-title { flex: 1; margin-bottom: 0; }
.sec-share {
  flex: none; border: 1px solid var(--line); background: none; border-radius: 4px;
  color: #877c62; font-size: .7rem; font-family: inherit; padding: 2px 8px; cursor: pointer;
}
.sec-share:hover { color: var(--gold); border-color: var(--gold-deep); }
.fu-share { margin-left: auto; }

/* 格局与喜用：提醒小字 */
.brief-line.sub { font-size: .8rem; color: #9b8f74; margin-top: 4px; }

/* ---------- v3：悬浮目录 / 回答底部分享 / 分享落地页标语 ---------- */
/* 右侧悬浮目录 */
.toc-fab {
  position: fixed; right: 12px; bottom: 104px; z-index: 22;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(201,168,106,.55); background: rgba(29,25,19,.94);
  color: var(--gold); font-family: inherit; font-size: .74rem; line-height: 1.25;
  letter-spacing: .1em; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.toc-fab:active { background: rgba(201,168,106,.18); }
.toc-panel {
  position: fixed; right: 12px; bottom: 158px; z-index: 22;
  width: min(72vw, 300px); max-height: 52vh; overflow-y: auto;
  background: rgba(20,17,12,.97); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px; display: none; box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.toc-panel.open { display: block; }
.toc-panel .toc-item { width: 100%; text-align: left; }

/* 分享按钮落在回答最下方 */
.fu-foot { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line-soft); text-align: right; }

/* 分享落地页标语 */
.share-slogan {
  text-align: center; font-size: .82rem; color: #9b8f74; letter-spacing: .12em;
  padding: 10px 0 2px;
}

/* 确认卡里的名字输入（可选，不填直接开始排盘） */
.confirm-name {
  display: block; width: 100%; box-sizing: border-box; margin: 12px 0;
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 11px 12px;
  background: var(--ink-3); color: var(--text); font-family: inherit; font-size: .92rem; outline: none;
}
.confirm-name::placeholder { color: #8a7f66; }
.confirm-name:focus { border-color: var(--gold); }

/* 白话版 */
.plain-note { font-size: .78rem; color: #877c62; margin-bottom: 12px; letter-spacing: .04em; }
.plain-one {
  background: var(--card); border: 1px solid rgba(201,168,106,.35); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 14px 16px; font-size: .95rem; line-height: 1.9; color: var(--gold-pale); margin-bottom: 16px;
}
.plain-block { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.plain-h { font-size: .88rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; margin-bottom: 8px; }
.plain-p { font-size: .92rem; line-height: 2; color: #ded6c2; margin: 0; }

/* 追问回答的版本切换：白话版 / 完整版 */
.fu-ver { display: flex; gap: 6px; margin: 0 0 10px; }
.fu-ver-btn {
  border: 1px solid var(--line); background: none; color: #877c62; font-family: inherit;
  font-size: .78rem; padding: 4px 12px; border-radius: 20px; cursor: pointer; letter-spacing: .05em;
}
.fu-ver-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,106,.08); font-weight: 700; }

/* ---------- v6：账号体系（登录 / 注册 / 验证码 / 账号信息） ---------- */
/* 登录页双档切换：账号密码 / 手机验证码 */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1; border: 1px solid var(--line); background: none; color: #877c62;
  font-family: inherit; font-size: .85rem; padding: 9px 0; border-radius: 22px;
  cursor: pointer; letter-spacing: .06em;
}
.auth-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,106,.08); font-weight: 700; }

/* 登录/注册表单 */
.auth-form { margin-bottom: 6px; }
.auth-form .field { margin-bottom: 12px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-link { color: var(--gold); text-decoration: none; letter-spacing: .05em; }
.auth-link:active { color: var(--gold-pale); }

/* 短信验证码输入行：输入框 + 发送按钮 */
.otp-row { display: flex; gap: 8px; align-items: stretch; }
.otp-row .field-input { flex: 1; min-width: 0; }
.otp-send {
  flex: none; border: 1px solid rgba(201,168,106,.55); background: none; color: var(--gold);
  font-family: inherit; font-size: .82rem; padding: 0 14px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; letter-spacing: .04em;
}
.otp-send:disabled { border-color: var(--line); color: #877c62; cursor: default; opacity: .7; }

/* 次数用完弹层里的说明小字 */
.login-sheet-sub { font-size: .85rem; line-height: 1.8; color: #b0a68d; margin: -2px 0 14px; }

/* 「我的」页里账号信息区的小标题 */
.me-sec-label {
  font-size: .75rem; color: #877c62; letter-spacing: .18em; margin: 18px 2px 8px;
}

/* ---------- v7：可用次数明细（获得 / 消耗流水） ---------- */
.credit-sum { font-size: .86rem; color: var(--gold); letter-spacing: .05em; margin: 2px 0 4px; }
.credit-list { max-height: 46vh; overflow-y: auto; margin: 6px 0 8px; }
.credit-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px dashed var(--line-soft);
}
.credit-item:last-child { border-bottom: none; }
.credit-main { min-width: 0; }
.credit-why { font-size: .9rem; color: #ded6c2; }
.credit-time { font-size: .74rem; color: #8a7f66; margin-top: 3px; }
.credit-d { flex: none; font-size: .95rem; font-weight: 700; }
.credit-d.plus { color: var(--gold); }
.credit-d.minus { color: #b0685e; }

/* ---------- v8：我自己 ---------- */
/* 探索记录里置顶的「我自己」角标 */
.record-badge {
  display: inline-block; margin-left: 8px; font-size: .66rem; color: var(--gold);
  border: 1px solid rgba(201,168,106,.5); border-radius: 10px; padding: 1px 8px;
  vertical-align: 2px; letter-spacing: .1em;
}
.record-item.self { border-color: rgba(201,168,106,.45); }

/* 选记录弹层里的列表 */
.self-pick-list { max-height: 46vh; overflow-y: auto; margin: 4px 0 8px; }
.self-pick-list .record-item { cursor: pointer; }

/* 我自己页 */
.self-sub { margin: -6px 0 12px; }
.self-ops { margin-top: 12px; }
.self-ops .chip { cursor: pointer; }

/* ---------- v9：我自己页改版（右上设置 + 今日四柱） ---------- */
/* 右上角设置图标 */
.gear-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 1.25rem; line-height: 1; color: var(--gold); cursor: pointer;
}
/* 今天区块 */
.self-today { margin-top: 14px; }
/* 「我自己」页：提问输入框钉在页面最下面（无底部 tab，不需要 110px 预留） */
.main.self-main { display: flex; flex-direction: column; padding-bottom: 20px; }
.main.self-main > * { width: 100%; box-sizing: border-box; }
.main.self-main .ask-wrap { margin-top: auto; }
.self-sec {
  font-size: .75rem; color: #877c62; letter-spacing: .18em; margin: 0 2px 10px;
}
.self-date {
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: .95rem; letter-spacing: .2em; color: var(--gold-deep);
  margin: 0 0 10px;
}
.self-note {
  font-size: .9rem; line-height: 1.9; color: #ded6c2;
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px 14px;
}

/* ---------- v11：回答底部 分享/复制 图标按钮 ---------- */
.fu-ico-btn {
  border: 1px solid var(--line); background: none; border-radius: 50%;
  width: 30px; height: 30px; line-height: 1; margin-left: 8px;
  color: #877c62; font-size: .95rem; font-family: inherit; cursor: pointer;
  vertical-align: middle;
}
.fu-ico-btn:first-child { margin-left: 0; }
.fu-ico-btn:active { color: var(--gold); border-color: var(--gold-deep); }
