/* ============================================================
   QMDJ 奇门登 · 设计系统
   深墨底 + 哑金 / 米金 + 朱砂印章 · 东方玄学质感
   ============================================================ */
:root{
  --ink-0:#0b1119;   /* 页面最深底 */
  --ink-1:#101a27;   /* 屏底 */
  --ink-2:#152130;   /* 卡片 */
  --ink-3:#1c2a3c;   /* 浮起 */
  --gold:#b3966a;    /* 哑金 · 主点缀 */
  --gold-2:#d8ba85;  /* 亮金 · 标题高光 */
  --cream:#efe3c6;   /* 米金 · 次级文字/柔光 */
  --cinnabar:#a8473d;/* 朱砂 · 印章 */
  --text:#eae3d3;    /* 主文字 · 暖纸白 */
  --text-2:#a39b8b;  /* 次文字 */
  --text-3:#6d675c;  /* 弱文字 */
  --line:rgba(179,150,106,.16);
  --line-2:rgba(179,150,106,.34);
  --ease:cubic-bezier(.22,1,.36,1);
  --serif:"Noto Serif SC",serif;
  --brush:"Ma Shan Zheng",cursive;
  --sans:-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  background:#06090e;
  font-family:var(--sans);
  color:var(--text);
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
/* 桌面端：两侧暗场，中间 H5 栏 */
#app{
  position:relative;
  max-width:480px;
  margin:0 auto;
  min-height:100dvh;
  background:var(--ink-0);
  box-shadow:0 0 80px rgba(0,0,0,.7);
  overflow-x:hidden;
}
@media (min-width:520px){
  body{background:radial-gradient(1200px 800px at 50% -10%,#101826 0%,#06090e 60%)}
  #app{border-left:1px solid #182233;border-right:1px solid #182233}
}

i[data-lucide]{width:1.15em;height:1.15em;display:inline-flex}
svg.lucide{width:1.15em;height:1.15em;flex:none}
.cta svg.lucide{width:19px;height:19px}
.icon-btn svg.lucide{width:19px;height:19px}
.skill-card .s-icon svg.lucide{width:21px;height:21px}
.gender-btn svg.lucide{width:18px;height:18px}
.fold-head svg.lucide{width:16px;height:16px}
.advice-group .a-label svg.lucide{width:14px;height:14px}
.privacy-note svg.lucide{width:13px;height:13px}
.send-btn svg.lucide{width:19px;height:19px}
.wx-btn svg.lucide{width:20px;height:20px}
.coming-item svg.lucide{width:18px;height:18px}

/* ============ 屏切换 ============ */
.screen{display:none;min-height:100dvh;animation:screen-in .55s var(--ease)}
.screen.is-active{display:block}
@keyframes screen-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ============ 顶栏 ============ */
.topbar{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;
  background:linear-gradient(to bottom,rgba(11,17,25,.92),rgba(11,17,25,.72) 70%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.topbar-solid{background:rgba(11,17,25,.92);border-bottom:1px solid var(--line)}
.topbar-title{font-family:var(--serif);font-weight:600;letter-spacing:.3em;font-size:15px;color:var(--cream)}
.topbar-spacer{width:38px}
.topbar-actions{display:flex;gap:4px}
.icon-btn{
  width:38px;height:38px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:none;border:1px solid transparent;color:var(--text-2);
  cursor:pointer;transition:all .3s var(--ease);
}
.icon-btn:active{border-color:var(--line-2);color:var(--gold-2);transform:scale(.94)}

/* ============ 品牌 ============ */
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{
  width:30px;height:30px;border-radius:7px;
  background:var(--cinnabar);color:#f4e9da;
  font-family:var(--brush);font-size:19px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 2px 10px rgba(168,71,61,.4);
  transform:rotate(-3deg);
}
.brand-name{font-family:var(--serif);font-weight:700;letter-spacing:.28em;font-size:14px;color:var(--text)}
.brand-name em{font-style:normal;font-family:var(--brush);font-size:15px;color:var(--gold);margin-left:8px;letter-spacing:.1em}

/* ============ 落地页 Hero ============ */
.hero{position:relative;min-height:92dvh;margin-top:-66px;display:flex;flex-direction:column}
.hero-bg{
  position:absolute;inset:0;
  background:url("../assets/hero.png") center 30%/cover no-repeat;
}
.hero-veil{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,
    rgba(11,17,25,.42) 0%, rgba(11,17,25,.10) 30%,
    rgba(11,17,25,.28) 62%, rgba(11,17,25,.86) 88%, var(--ink-0) 100%);
}
.hero-inner{
  position:relative;z-index:2;flex:1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:110px 28px 90px;
}
.hero-eyebrow{
  font-size:12px;letter-spacing:.5em;text-indent:.5em;color:var(--cream);
  border:1px solid var(--line-2);border-radius:999px;padding:7px 18px;
  margin-bottom:34px;background:rgba(11,17,25,.35);backdrop-filter:blur(4px);
}
.hero-title{
  font-family:var(--brush);font-weight:400;
  font-size:clamp(72px,22vw,104px);line-height:1.05;
  color:#f3e9d2;letter-spacing:.08em;
  text-shadow:0 4px 40px rgba(0,0,0,.6),0 0 90px rgba(216,186,133,.18);
}
.hero-slogan{
  margin-top:18px;font-family:var(--serif);font-weight:600;
  font-size:19px;letter-spacing:.34em;color:var(--gold-2);
  display:flex;align-items:center;gap:12px;
}
.dot-sep{width:4px;height:4px;border-radius:50%;background:var(--gold);display:inline-block}
.hero-sub{margin-top:20px;font-size:13.5px;color:rgba(233,227,211,.72);line-height:2}
.cta{
  margin-top:38px;
  display:inline-flex;align-items:center;gap:10px;
  padding:16px 44px;border:none;border-radius:999px;cursor:pointer;
  font-family:var(--serif);font-weight:700;font-size:17px;letter-spacing:.22em;
  white-space:nowrap;
  color:#171207;background:linear-gradient(135deg,var(--gold-2) 0%,var(--gold) 55%,#9a7c52 100%);
  box-shadow:0 8px 30px rgba(179,150,106,.28),0 1px 0 rgba(255,255,255,.35) inset;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.cta:active{transform:scale(.96)}
.cta i{width:19px;height:19px}
.hero-hint{margin-top:16px;font-size:12px;letter-spacing:.24em;color:var(--text-3)}

/* 旋转印章徽标 */
.seal-badge{
  position:absolute;z-index:3;right:22px;bottom:120px;
  width:92px;height:92px;
}
.seal-rotor{width:100%;height:100%;animation:spin 26s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.seal-ring-text{fill:var(--gold);font-size:11.5px;letter-spacing:2.5px;font-family:var(--serif)}
.seal-core{
  position:absolute;inset:0;margin:auto;width:38px;height:38px;
  background:var(--cinnabar);border-radius:8px;transform:rotate(-4deg);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 1px rgba(255,255,255,.14) inset,0 3px 14px rgba(168,71,61,.5);
}
.seal-core span{font-family:var(--brush);font-size:23px;color:#f4e9da}

/* ============ 通用小节 ============ */
.section{padding:44px 22px 8px;border-top:1px solid var(--line)}
.section-plain{border-top:none;padding-top:34px}
.section-title{
  font-family:var(--serif);font-weight:700;font-size:21px;letter-spacing:.14em;
  color:var(--text);display:flex;align-items:center;gap:12px;
}
.title-mark{width:22px;height:1px;background:var(--gold);display:inline-block}
.section-desc{margin-top:10px;font-size:13px;color:var(--text-2)}

/* ============ 技能卡片 ============ */
.skill-grid{
  margin-top:22px;
  display:grid;grid-template-columns:1fr 1fr;gap:12px;
}
.skill-card{
  position:relative;padding:20px 18px 18px;border-radius:16px;
  background:linear-gradient(160deg,var(--ink-2),var(--ink-1));
  border:1px solid var(--line);
  transition:transform .4s var(--ease),border-color .4s var(--ease);
  cursor:pointer;text-align:left;color:var(--text);
}
.skill-card:active{transform:scale(.97)}
.skill-card .s-icon{
  width:42px;height:42px;border-radius:12px;
  border:1px solid var(--line-2);
  display:flex;align-items:center;justify-content:center;
  color:var(--gold);margin-bottom:14px;
}
.skill-card .s-icon i{width:21px;height:21px}
.skill-card h4{font-family:var(--serif);font-size:17px;font-weight:700;letter-spacing:.1em}
.skill-card p{margin-top:5px;font-size:12px;color:var(--text-2);line-height:1.6}
.skill-card.is-live{
  border-color:var(--line-2);
  background:linear-gradient(160deg,#1d2c3f,#131f2d);
  box-shadow:0 10px 34px rgba(0,0,0,.4),0 0 0 1px rgba(216,186,133,.06) inset;
}
.skill-card.is-live .s-icon{
  background:linear-gradient(135deg,rgba(216,186,133,.2),rgba(179,150,106,.06));
  color:var(--gold-2);
}
.s-tag{
  position:absolute;top:14px;right:14px;
  font-size:10px;letter-spacing:.12em;padding:3px 9px;border-radius:999px;
  border:1px solid var(--line);color:var(--text-3);
}
.s-tag.live{border-color:rgba(216,186,133,.5);color:var(--gold-2)}
.skill-card.is-soon{opacity:.55}
.skill-card.is-soon .s-icon{color:var(--text-3);border-color:var(--line)}

/* ============ 流程 ============ */
.flow-list{list-style:none;margin-top:22px}
.flow-list li{display:flex;gap:16px;padding:16px 0;border-bottom:1px dashed var(--line)}
.flow-list li:last-child{border-bottom:none}
.flow-no{
  flex:none;width:34px;height:34px;border-radius:50%;
  border:1px solid var(--line-2);color:var(--gold);
  font-family:var(--serif);font-size:14px;
  display:flex;align-items:center;justify-content:center;
}
.flow-list b{font-family:var(--serif);font-size:15.5px;letter-spacing:.06em;color:var(--text)}
.flow-list p{font-size:12.5px;color:var(--text-2);margin-top:2px}

/* ============ 落地页页脚 ============ */
.site-footer{
  margin-top:40px;padding:38px 26px 46px;text-align:center;
  border-top:1px solid var(--line);
  background:linear-gradient(to bottom,var(--ink-0),#080d14);
}
.footer-seal{
  display:inline-block;font-family:var(--brush);font-size:17px;color:#f4e9da;
  background:var(--cinnabar);border-radius:6px;padding:4px 10px;
  transform:rotate(-3deg);margin-bottom:18px;opacity:.92;
}
.footer-note{font-size:11.5px;color:var(--text-3);line-height:1.9;max-width:340px;margin:0 auto 6px}
.footer-copy{margin-top:16px;font-size:11px;letter-spacing:.22em;color:#4d4a42}

/* ============ 表单页 ============ */
.form-body{padding:10px 20px 60px}
.form-lead{
  font-family:var(--serif);font-size:15px;color:var(--text-2);
  line-height:2;padding:8px 4px 20px;
}
.f-card{
  background:linear-gradient(165deg,var(--ink-2),var(--ink-1));
  border:1px solid var(--line);border-radius:18px;
  padding:20px 18px;margin-bottom:16px;
}
.f-card-head{display:flex;align-items:baseline;gap:12px;margin-bottom:16px}
.f-no{
  font-family:var(--serif);font-size:13px;color:var(--gold);
  border:1px solid var(--line-2);border-radius:50%;
  width:26px;height:26px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  transform:translateY(4px);
}
.f-card h3{font-family:var(--serif);font-size:17px;font-weight:700;letter-spacing:.08em}
.f-card h3 small{font-size:11.5px;font-weight:400;color:var(--text-3);margin-left:8px;letter-spacing:.05em}

.date-row{display:flex;gap:10px}
.select-wrap{
  flex:1;display:flex;align-items:center;gap:4px;
  background:var(--ink-0);border:1px solid var(--line-2);border-radius:12px;
  padding:0 12px;height:54px;
}
.select-wrap select{
  flex:1;min-width:0;background:none;border:none;outline:none;
  color:var(--text);font-size:18px;font-family:var(--serif);font-weight:600;
  appearance:none;-webkit-appearance:none;text-align:center;
}
.select-wrap span{color:var(--text-3);font-size:13px;flex:none}
.select-wrap:focus-within{border-color:var(--gold)}

.hour-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.hour-chip{
  padding:11px 4px;border-radius:11px;cursor:pointer;
  background:var(--ink-0);border:1px solid var(--line);color:var(--text-2);
  font-size:13px;text-align:center;transition:all .3s var(--ease);
}
.hour-chip b{display:block;font-family:var(--serif);font-size:15px;color:var(--text);letter-spacing:.05em}
.hour-chip small{font-size:10.5px;color:var(--text-3)}
.hour-chip.on{border-color:var(--gold);background:rgba(179,150,106,.12)}
.hour-chip.on b{color:var(--gold-2)}
.f-tip{margin-top:12px;font-size:12px;color:var(--text-3);line-height:1.7;display:flex;gap:6px}
.f-tip::before{content:"";flex:none;width:3px;height:3px;border-radius:50%;background:var(--gold);margin-top:8px}

.gender-row{display:flex;gap:12px}
.gender-btn{
  flex:1;height:54px;border-radius:12px;cursor:pointer;
  background:var(--ink-0);border:1px solid var(--line);color:var(--text-2);
  font-size:16px;font-family:var(--serif);font-weight:600;letter-spacing:.2em;text-indent:.2em;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:all .3s var(--ease);
}
.gender-btn i{width:18px;height:18px}
.gender-btn.on{border-color:var(--gold);color:var(--gold-2);background:rgba(179,150,106,.12)}

.topic-row{display:flex;flex-wrap:wrap;gap:9px}
.topic-chip{
  padding:9px 18px;border-radius:999px;cursor:pointer;
  background:var(--ink-0);border:1px solid var(--line);color:var(--text-2);
  font-size:13.5px;letter-spacing:.06em;transition:all .3s var(--ease);
}
.topic-chip.on{border-color:var(--gold);color:var(--gold-2);background:rgba(179,150,106,.12)}

.f-error{margin-top:10px;font-size:12.5px;color:var(--cinnabar-2,#c05a4a);display:none}
.f-error.show{display:block}

.cta-block{width:100%;justify-content:center;margin-top:26px}
.privacy-note{
  margin-top:14px;text-align:center;font-size:12px;color:var(--text-3);
  display:flex;align-items:center;justify-content:center;gap:6px;
}
.privacy-note i{width:13px;height:13px}

/* ============ 生成中 ============ */
.loading-body{
  min-height:100dvh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:40px 30px;
  background:radial-gradient(600px 600px at 50% 42%,#14202f 0%,var(--ink-0) 70%);
}
.compass{width:min(72vw,300px);aspect-ratio:1;position:relative}
.compass svg{width:100%;height:100%;overflow:visible}
.ring-outer{animation:spin 40s linear infinite;transform-origin:center}
.ring-mid{animation:spin-rev 28s linear infinite;transform-origin:center}
@keyframes spin-rev{to{transform:rotate(-360deg)}}
.compass-text{fill:var(--gold);font-family:var(--serif)}
.compass-text.dim{fill:rgba(179,150,106,.45)}
.compass-line{stroke:rgba(179,150,106,.35);fill:none}
.compass-line.dim{stroke:rgba(179,150,106,.14)}
.loading-step{
  margin-top:40px;font-family:var(--brush);font-size:34px;color:var(--gold-2);
  letter-spacing:.2em;text-indent:.2em;min-height:48px;
  animation:step-pulse 2.4s ease-in-out infinite;
}
@keyframes step-pulse{0%,100%{opacity:1}50%{opacity:.55}}
.loading-sub{margin-top:8px;font-size:13px;color:var(--text-2);letter-spacing:.1em;min-height:22px}
.progress{width:min(56vw,220px);height:2px;background:rgba(179,150,106,.15);border-radius:2px;margin-top:30px;overflow:hidden}
.progress-bar{height:100%;width:0%;background:linear-gradient(90deg,var(--gold),var(--gold-2));transition:width .6s var(--ease)}
.loading-timeout{margin-top:18px;font-size:12px;color:var(--cream);opacity:.8}

/* ============ 报告页 ============ */
.report-body{padding:18px 20px 0}

/* 智者开场条 */
.sage-strip{
  display:flex;align-items:center;gap:14px;
  padding:16px;border-radius:16px;
  background:linear-gradient(150deg,#1a2839,#121d2b);
  border:1px solid var(--line);margin-bottom:22px;
}
.sage-avatar{
  width:52px;height:52px;border-radius:50%;flex:none;
  background:url("../assets/sage.png") center 22%/cover no-repeat;
  border:1.5px solid var(--gold);box-shadow:0 0 0 3px rgba(179,150,106,.14);
}
.sage-strip b{font-family:var(--brush);font-size:19px;color:var(--gold-2);font-weight:400;letter-spacing:.08em}
.sage-strip p{font-size:12.5px;color:var(--text-2);margin-top:2px}

/* 区块标题 */
.r-sec{margin-bottom:26px}
.r-sec-title{
  font-family:var(--serif);font-weight:700;font-size:18px;letter-spacing:.14em;
  color:var(--text);display:flex;align-items:center;gap:10px;margin-bottom:14px;
}
.r-sec-title::before{content:"";width:16px;height:1px;background:var(--gold)}

/* 命盘卡 */
.chart-card{
  border:1px solid var(--line-2);border-radius:18px;overflow:hidden;
  background:linear-gradient(170deg,#182636 0%,#101b29 100%);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}
.chart-meta{
  display:flex;flex-wrap:wrap;gap:6px 18px;
  padding:14px 16px;border-bottom:1px solid var(--line);
  font-size:12px;color:var(--text-2);
}
.chart-meta b{color:var(--cream);font-weight:500}
.pillar-table{display:grid;grid-template-columns:56px repeat(4,1fr)}
.pillar-table>div{
  padding:10px 4px;text-align:center;
  border-bottom:1px solid var(--line);
  font-size:12px;color:var(--text-2);
}
.pillar-table .row-head{color:var(--text-3);font-size:11px;letter-spacing:.1em;display:flex;align-items:center;justify-content:center}
.pillar-table .p-label{font-family:var(--serif);font-weight:700;color:var(--gold-2);font-size:13px;letter-spacing:.15em}
.pillar-table .gz{font-family:var(--serif);font-weight:700;font-size:24px;color:var(--text)}
.pillar-table .gz.day-master{color:var(--gold-2)}
.pillar-table .ss{color:var(--text-3);font-size:10.5px}
.pillar-table .wx{font-size:11.5px}
.wx-mu{color:#8fb08a}.wx-huo{color:#d08a6e}.wx-tu{color:#c8a56b}.wx-jin{color:#d6c896}.wx-shui{color:#8aa4c0}
.pillar-table>div:nth-last-child(-n+5){border-bottom:none}

/* 折叠专业数据 */
.fold{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--ink-1)}
.fold-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:15px 16px;background:none;border:none;cursor:pointer;color:var(--text);
  font-family:var(--serif);font-size:14.5px;font-weight:600;letter-spacing:.12em;
}
.fold-head .fh-left{display:flex;align-items:center;gap:10px;color:var(--cream)}
.fold-head i{width:16px;height:16px;color:var(--text-3);transition:transform .45s var(--ease)}
.fold.open .fold-head i{transform:rotate(180deg);color:var(--gold)}
.fold-body{
  display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--ease);
}
.fold.open .fold-body{grid-template-rows:1fr}
.fold-inner{overflow:hidden;min-height:0}
.fold-content{padding:4px 16px 18px;border-top:1px dashed var(--line)}

.kv-row{display:flex;gap:12px;padding:11px 0;border-bottom:1px dashed var(--line);font-size:13px}
.kv-row:last-child{border-bottom:none}
.kv-row .k{flex:none;width:64px;color:var(--text-3);letter-spacing:.1em}
.kv-row .v{color:var(--text);line-height:1.7}
.kv-row .v b{color:var(--gold-2);font-family:var(--serif)}
.score-track{height:5px;border-radius:3px;background:rgba(179,150,106,.14);margin-top:8px;overflow:hidden}
.score-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--gold),var(--gold-2))}
.tag-mini{
  display:inline-block;padding:2px 10px;margin:2px 6px 2px 0;border-radius:999px;
  font-size:11.5px;border:1px solid var(--line-2);color:var(--cream);
}
.tag-mini.ji{border-color:rgba(192,90,74,.5);color:#d69a90}
.dayun-flow{display:flex;gap:8px;overflow-x:auto;padding:6px 0 4px;scrollbar-width:none}
.dayun-flow::-webkit-scrollbar{display:none}
.dayun-item{
  flex:none;text-align:center;padding:8px 12px;border-radius:10px;
  border:1px solid var(--line);font-size:11px;color:var(--text-3);
}
.dayun-item b{display:block;font-family:var(--serif);font-size:16px;color:var(--text);letter-spacing:.05em}
.dayun-item.now{border-color:var(--gold);background:rgba(179,150,106,.1)}
.dayun-item.now b{color:var(--gold-2)}
.knowledge-item{
  padding:10px 12px;margin-top:8px;border-left:2px solid var(--gold);
  background:rgba(179,150,106,.06);border-radius:0 8px 8px 0;
  font-size:12px;color:var(--text-2);line-height:1.8;
}
.knowledge-item small{display:block;margin-top:4px;color:var(--text-3)}

/* Markdown 解读 */
.md-body{font-size:15px;line-height:2;color:var(--text)}
.md-body h2{
  font-family:var(--serif);font-size:17.5px;font-weight:700;color:var(--gold-2);
  letter-spacing:.1em;margin:26px 0 10px;display:flex;align-items:center;gap:10px;
}
.md-body h2::before{content:"";width:14px;height:1px;background:var(--gold)}
.md-body h3{font-family:var(--serif);font-size:15.5px;color:var(--cream);margin:18px 0 6px}
.md-body p{margin:10px 0}
.md-body strong{color:var(--gold-2);font-weight:600}
.md-body ul{padding-left:0;margin:10px 0;list-style:none}
.md-body li{padding-left:18px;position:relative;margin:6px 0}
.md-body li::before{content:"";position:absolute;left:2px;top:13px;width:5px;height:5px;border-radius:50%;background:var(--gold);opacity:.7}
.md-body blockquote{
  margin:14px 0;padding:12px 16px;border-left:2px solid var(--gold);
  background:rgba(179,150,106,.06);border-radius:0 10px 10px 0;
  color:var(--cream);font-family:var(--serif);
}

/* 趋避建议 */
.advice-group{margin-bottom:14px}
.advice-group .a-label{
  font-size:12px;color:var(--text-3);letter-spacing:.18em;margin-bottom:8px;
  display:flex;align-items:center;gap:8px;
}
.advice-group .a-label i{width:14px;height:14px;color:var(--gold)}
.advice-tags{display:flex;flex-wrap:wrap;gap:8px}
.advice-tag{
  padding:7px 15px;border-radius:999px;font-size:13px;
  border:1px solid var(--line-2);color:var(--cream);
  background:rgba(179,150,106,.07);
}
.advice-tag.avoid{border-color:rgba(192,90,74,.45);color:#d8a49c;background:rgba(168,71,61,.07)}

/* ============ 追问区 ============ */
.chat{padding:6px 20px 24px}
.chat-divider{
  display:flex;align-items:center;gap:14px;margin:20px 0 18px;
  color:var(--text-2);font-family:var(--serif);font-size:14px;letter-spacing:.24em;
}
.chat-divider::before,.chat-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.chat-msgs{display:flex;flex-direction:column;gap:14px}
.msg{max-width:88%;padding:12px 15px;border-radius:14px;font-size:14px;line-height:1.9;animation:msg-in .45s var(--ease)}
@keyframes msg-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.msg-user{
  align-self:flex-end;
  background:linear-gradient(140deg,#2a3a50,#1d2c3f);
  border:1px solid rgba(179,150,106,.22);border-bottom-right-radius:4px;
}
.msg-ai{
  align-self:flex-start;
  background:var(--ink-2);border:1px solid var(--line);border-bottom-left-radius:4px;
}
.msg-ai .md-body{font-size:14px}
.msg-ai .md-body p{margin:6px 0}
.msg-who{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:11px;color:var(--text-3)}
.msg-who .mini-ava{
  width:18px;height:18px;border-radius:50%;
  background:url("../assets/sage.png") center 22%/cover no-repeat;border:1px solid var(--gold);
}
.typing{display:inline-flex;gap:4px;padding:4px 0}
.typing span{width:5px;height:5px;border-radius:50%;background:var(--gold);animation:tp 1.2s infinite}
.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}
@keyframes tp{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}

.chat-chips{display:flex;gap:8px;overflow-x:auto;padding:16px 0 12px;scrollbar-width:none}
.chat-chips::-webkit-scrollbar{display:none}
.q-chip{
  flex:none;padding:8px 15px;border-radius:999px;cursor:pointer;
  border:1px dashed var(--line-2);background:none;color:var(--text-2);font-size:12.5px;
  transition:all .3s var(--ease);
}
.q-chip:active{border-color:var(--gold);color:var(--gold-2)}
.chat-inputbar{
  position:sticky;bottom:0;display:flex;gap:10px;align-items:center;
  padding:10px 0 calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,var(--ink-0) 70%,transparent);
}
.chat-inputbar input{
  flex:1;height:48px;border-radius:999px;border:1px solid var(--line-2);
  background:var(--ink-2);color:var(--text);padding:0 20px;font-size:14.5px;outline:none;
  transition:border-color .3s;
}
.chat-inputbar input:focus{border-color:var(--gold)}
.chat-inputbar input::placeholder{color:var(--text-3)}
.send-btn{
  flex:none;width:48px;height:48px;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#171207;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(179,150,106,.3);
  transition:transform .3s var(--ease);
}
.send-btn:active{transform:scale(.92)}
.send-btn i{width:19px;height:19px}
.send-btn:disabled{opacity:.5}

.report-footer{
  padding:26px 24px 44px;border-top:1px solid var(--line);
  font-size:11px;color:var(--text-3);line-height:1.9;text-align:center;
}
.report-footer p{max-width:360px;margin:0 auto 8px}

/* ============ 底部弹层（预留功能） ============ */
.sheet-mask{position:fixed;inset:0;z-index:80;background:rgba(4,7,11,.66);backdrop-filter:blur(3px);animation:fade-in .3s}
@keyframes fade-in{from{opacity:0}}
.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  max-width:480px;margin:0 auto;
  background:var(--ink-2);border-radius:22px 22px 0 0;
  border-top:1px solid var(--line-2);
  padding:10px 24px calc(30px + env(safe-area-inset-bottom));
  animation:sheet-up .45s var(--ease);
  max-height:82dvh;overflow-y:auto;
}
@keyframes sheet-up{from{transform:translateY(60%);opacity:.4}to{transform:none;opacity:1}}
.sheet-grab{width:40px;height:4px;border-radius:2px;background:rgba(179,150,106,.3);margin:6px auto 18px}
.sheet h3{font-family:var(--serif);font-size:19px;letter-spacing:.14em;color:var(--text);margin-bottom:6px}
.sheet .sheet-sub{font-size:12.5px;color:var(--text-2);margin-bottom:20px}
.wx-btn{
  width:100%;height:52px;border-radius:12px;border:none;cursor:pointer;
  background:#2b5d3f;color:#e8f0e6;font-size:15.5px;letter-spacing:.1em;
  display:flex;align-items:center;justify-content:center;gap:10px;
}
.wx-btn i{width:20px;height:20px}
.sheet-note{margin-top:14px;font-size:11.5px;color:var(--text-3);text-align:center;line-height:1.8}
.coming-item{
  display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px dashed var(--line);
  color:var(--text-2);font-size:14px;
}
.coming-item i{width:18px;height:18px;color:var(--gold)}
.coming-item .ci-badge{margin-left:auto;font-size:10.5px;border:1px solid var(--line);border-radius:999px;padding:2px 10px;color:var(--text-3)}

/* 分享海报 */
.poster{
  border-radius:16px;overflow:hidden;border:1px solid var(--line-2);
  background:#0d1420;position:relative;
}
.poster-hero{height:180px;background:url("../assets/hero.png") center 72%/cover no-repeat;position:relative}
.poster-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 30%,#0d1420)}
.poster-body{padding:0 20px 22px;margin-top:-30px;position:relative}
.poster-body .p-seal{
  display:inline-block;font-family:var(--brush);background:var(--cinnabar);color:#f4e9da;
  border-radius:6px;padding:3px 9px;transform:rotate(-3deg);margin-bottom:10px;
}
.poster-body h4{font-family:var(--serif);font-size:17px;color:var(--cream);letter-spacing:.1em}
.poster-body p{font-size:12px;color:var(--text-2);margin-top:8px;line-height:1.9}
.poster-foot{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line);display:flex;justify-content:space-between;font-size:10.5px;color:var(--text-3)}

/* Toast */
.toast{
  position:fixed;left:50%;bottom:110px;transform:translateX(-50%);
  z-index:120;background:#22314a;border:1px solid var(--line-2);color:var(--cream);
  font-size:13px;padding:10px 22px;border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);animation:msg-in .35s var(--ease);
  max-width:84%;text-align:center;
}
