/* ============================ 道法自然 · 设计系统 ============================ */
:root {
  --bg: #f4f1e9;
  --bg-2: #e9e4d9;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-line: rgba(36, 42, 38, 0.13);
  --ink: #202621;
  --ink-soft: #505a53;
  --ink-mute: #747c76;
  --gold: #a6463b;
  --gold-soft: #806c4f;
  --jade: #2f7463;
  --red: #b6433b;
  --green: #34785f;
  --radius: 8px;
  /* 系统字体栈：不依赖任何外部网络，大陆/离线均秒开 */
  --serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif CJK SC', 'Source Han Serif SC', '宋体', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Segoe UI', '微软雅黑', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
}

/* 全局容器宽度 */
.hero-content, .compute, .result, .about-inner { max-width: 1080px; margin: 0 auto; }

/* ============================ 导航 ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(244, 241, 233, 0.9);
  border-bottom: 1px solid var(--panel-line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  letter-spacing: 4px; color: var(--gold);
  display: flex; align-items: baseline; gap: 10px;
}
.brand-en { font-family: var(--sans); font-size: 11px; letter-spacing: 3px; color: var(--ink-mute); font-weight: 400; }
.nav-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; letter-spacing: 1px; transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.music-toggle {
  position: relative; flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center; color: var(--gold); background: rgba(166,70,59,.06);
  border: 1px solid rgba(166,70,59,.28); border-radius: 50%; cursor: pointer;
  font: 600 19px var(--serif); transition: color .25s, background .25s, border-color .25s;
}
.music-toggle:hover { background: rgba(217,185,120,.14); border-color: var(--gold); }
.music-toggle::after {
  content: ''; position: absolute; inset: 5px; border: 1px solid transparent; border-radius: 50%;
}
.music-toggle.is-playing { color: #10241d; background: var(--jade); border-color: var(--jade); }
.music-toggle.is-playing::after { border-color: rgba(107,192,160,.5); animation: music-pulse 1.8s ease-out infinite; }

/* ============================ Hero ============================ */
.hero {
  position: relative;
  min-height: 68vh;
  padding: 94px 0 34px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.hero-glow {
  display: none;
}
.hero-content { padding: 0 24px; animation: fadeUp 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-eyebrow {
  font-size: 13px; letter-spacing: 8px; color: var(--gold-soft);
  text-transform: uppercase; margin-bottom: 30px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(46px, 8vw, 78px); line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
}
.hero-title-sub { font-weight: 300; }
.hero-desc { margin: 28px 0 34px; color: var(--ink-soft); font-size: clamp(15px, 2vw, 19px); font-weight: 400; letter-spacing: 0; }
.hero-scroll {
  margin-top: 70px; font-size: 12px; letter-spacing: 4px; color: var(--ink-mute);
  animation: floaty 2.4s ease-in-out infinite;
}
.hero-scroll::before { content: ''; display: block; width: 1px; height: 40px; margin: 0 auto 14px; background: linear-gradient(var(--gold-soft), transparent); }

/* 按钮 */
.btn-primary {
  display: inline-block;
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 2px;
  color: #fff; text-decoration: none;
  background: var(--gold);
  padding: 15px 30px; border-radius: 6px; border: none; cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  box-shadow: 0 8px 24px rgba(96, 38, 32, 0.16);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(96, 38, 32, 0.22); }
.btn-block { width: 100%; margin-top: 12px; padding: 18px; font-size: 17px; }

/* ============================ 通用区块 ============================ */
.section-head, .block-head { text-align: center; }
.eyebrow { font-size: 12px; letter-spacing: 6px; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 16px; }
.compute { padding: 130px 24px 90px; position: relative; z-index: 1; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: 3px; margin-bottom: 14px; }
.section-head .sub { color: var(--ink-mute); font-size: 15px; font-weight: 300; }

/* 表单卡片 */
.form-card {
  margin-top: 46px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(43, 38, 30, 0.09);
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--panel-line);
  border-radius: 12px; padding: 13px 15px;
  color: var(--ink); font-size: 16px; font-family: var(--sans);
  transition: border-color .3s, box-shadow .3s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(217,185,120,0.13); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field select { cursor: pointer; }
.field select option { background: #fff; color: var(--ink); }

.gender-toggle { display: flex; gap: 10px; }
.g-btn {
  flex: 1; background: rgba(255,255,255,0.84); border: 1px solid var(--panel-line);
  color: var(--ink-soft); padding: 13px; border-radius: 12px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; letter-spacing: 1px; transition: all .3s;
}
.g-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
.form-hint { text-align: center; margin-top: 18px; font-size: 12px; color: var(--ink-mute); letter-spacing: .5px; }

/* ============================ 结果区 ============================ */
.result { padding: 40px 24px 60px; position: relative; z-index: 1; }
.result.hidden, .hidden { display: none; }
.res-block {
  margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: 34px;
  backdrop-filter: blur(16px);
  animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both;
}
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.block-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.block-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 2px; }

/* 命主概览 */
.hero-result { text-align: center; padding: 54px 34px; background: var(--panel); }
.hero-result .eyebrow { margin-bottom: 20px; }
.daymaster-title { font-family: var(--serif); font-size: clamp(34px, 6vw, 58px); font-weight: 700; letter-spacing: 4px; }
.daymaster-title span { color: var(--gold); }
.daymaster-desc { color: var(--ink-soft); margin-top: 18px; font-weight: 300; max-width: 620px; margin-left: auto; margin-right: auto; }
.quick-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.quick-tags span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--panel-line);
  padding: 8px 18px; border-radius: 100px; font-size: 13px; color: var(--ink-soft); letter-spacing: 1px;
}
.quick-tags span b { color: var(--gold); font-weight: 500; }

/* 四柱 */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  text-align: center; background: rgba(32,38,33,0.035); border: 1px solid var(--panel-line);
  border-radius: 8px; padding: 22px 12px; transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.pillar .p-label { font-size: 12px; color: var(--ink-mute); letter-spacing: 2px; }
.pillar .p-gz { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 12px 0 4px; line-height: 1.1; }
.pillar .p-god { font-size: 12px; color: var(--gold-soft); letter-spacing: 1px; }
.pillar .p-nayin { font-size: 12px; color: var(--ink-mute); margin-top: 10px; }
.pillar .p-tag { font-size: 11px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 1px; }

/* 五行 */
.wuxing-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.wuxing-bars { display: flex; flex-direction: column; gap: 16px; }
.wx-row { display: flex; align-items: center; gap: 14px; }
.wx-name { width: 26px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.wx-track { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.wx-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.wx-count { width: 24px; text-align: right; font-size: 14px; color: var(--ink-soft); }
.wuxing-note { color: var(--ink-soft); font-size: 14px; font-weight: 300; line-height: 1.9; }
.wuxing-note b { color: var(--gold); font-weight: 500; }

/* 今日运势 */
.today-block .date-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.date-nav button { background: rgba(255,255,255,0.06); border: 1px solid var(--panel-line); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: all .3s; }
.date-nav button:hover { background: var(--gold); color: #1a1710; }
.date-nav #day-label { font-size: 14px; color: var(--ink-soft); min-width: 130px; text-align: center; letter-spacing: 1px; }
.btn-mini { width: auto !important; padding: 0 14px; border-radius: 100px !important; font-size: 12px !important; }

.today-hero { display: flex; align-items: center; gap: 36px; margin-bottom: 30px; flex-wrap: wrap; }
.score-ring { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 8; }
.ring-fg { fill: none; stroke: url(#scoreGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); stroke: var(--gold); }
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-num span { font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--gold); line-height: 1; }
.score-num em { font-size: 13px; color: var(--ink-mute); font-style: normal; margin-top: 4px; }
.today-summary { flex: 1; min-width: 260px; }
.today-gz { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.today-gz b { color: var(--gold); }
.today-advice { color: var(--ink-soft); font-size: 15px; font-weight: 300; line-height: 1.9; }
.lucky-row { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.lucky-item { font-size: 13px; color: var(--ink-mute); }
.lucky-item b { color: var(--ink); font-weight: 500; margin-left: 4px; }
.lucky-dots { display: inline-flex; gap: 5px; vertical-align: middle; margin-left: 4px; }
.lucky-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,0.2); }

/* 维度评分 */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.dim { background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 14px; padding: 18px; text-align: center; }
.dim .d-name { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; letter-spacing: 1px; }
.dim .d-bar { height: 6px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; margin-bottom: 10px; }
.dim .d-fill { height: 100%; border-radius: 100px; width: 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.dim .d-val { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold); }

/* 宜忌 */
.yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.yiji-col { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 22px; border: 1px solid var(--panel-line); }
.yiji-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.yiji-title span { font-family: var(--serif); font-size: 26px; font-weight: 700; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.yi .yiji-title span { background: rgba(90,168,127,0.16); color: var(--green); border: 1px solid rgba(90,168,127,0.35); }
.ji .yiji-title span { background: rgba(224,101,92,0.14); color: var(--red); border: 1px solid rgba(224,101,92,0.32); }
.yiji-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.yiji-tags em { font-style: normal; background: rgba(255,255,255,0.05); border: 1px solid var(--panel-line); padding: 6px 13px; border-radius: 8px; font-size: 13px; color: var(--ink-soft); }

/* 黄历细节 */
.huangli-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hl-item { background: rgba(0,0,0,0.18); border: 1px solid var(--panel-line); border-radius: 12px; padding: 16px; }
.hl-item .hl-k { font-size: 12px; color: var(--ink-mute); letter-spacing: 1px; margin-bottom: 6px; }
.hl-item .hl-v { font-size: 14px; color: var(--ink); }

/* 大运 */
.qiyun { margin-left: auto; font-size: 13px; color: var(--ink-mute); }
.dayun-track { display: flex; gap: 12px; overflow-x: auto; max-width: 100%; padding-bottom: 10px; }
.dayun-cell {
  flex: 0 0 auto; min-width: 108px; text-align: center;
  background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 14px; padding: 18px 10px;
  transition: transform .3s, border-color .3s;
}
.dayun-cell.active { border-color: var(--gold); background: rgba(217,185,120,0.1); }
.dayun-cell:hover { transform: translateY(-3px); }
.dayun-cell .dy-age { font-size: 12px; color: var(--ink-mute); }
.dayun-cell .dy-gz { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 8px 0 4px; }
.dayun-cell .dy-god { font-size: 12px; color: var(--gold-soft); }
.dayun-cell .dy-year { font-size: 11px; color: var(--ink-mute); margin-top: 6px; }

/* 流年 */
.liunian { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ln-cell { background: rgba(0,0,0,0.2); border: 1px solid var(--panel-line); border-radius: 14px; padding: 18px; }
.ln-cell.current { border-color: var(--gold); background: rgba(217,185,120,0.09); }
.ln-cell .ln-year { font-size: 13px; color: var(--ink-mute); }
.ln-cell .ln-gz { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 6px 0; }
.ln-cell .ln-god { font-size: 12px; color: var(--gold-soft); }
.ln-cell .ln-tip { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-weight: 300; line-height: 1.6; }

.disclaimer { text-align: center; color: var(--ink-mute); font-size: 12px; font-weight: 300; margin-top: 40px; letter-spacing: .5px; padding: 0 20px; }

/* 关于 */
.about { padding: 90px 24px 70px; border-top: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 1; margin-top: 40px; }
.about-inner { text-align: center; }
.about h4 { font-family: var(--serif); font-size: 26px; letter-spacing: 3px; margin-bottom: 22px; color: var(--gold); }
.about p { color: var(--ink-soft); font-weight: 300; max-width: 660px; margin: 0 auto 16px; }
.copyright { color: var(--ink-mute) !important; font-size: 12px; letter-spacing: 2px; margin-top: 26px !important; }

/* ============================ 存档条 ============================ */
.saved-bar { position: relative; z-index: 2; max-width: 1080px; margin: -20px auto 0; padding: 0 24px; }
.saved-inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(217,185,120,0.08); border: 1px solid rgba(217,185,120,0.25);
  border-radius: 100px; padding: 12px 22px; backdrop-filter: blur(12px);
}
.saved-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px var(--jade); }
#saved-text { font-size: 14px; color: var(--ink-soft); flex: 1; min-width: 200px; }
.saved-btn { background: linear-gradient(135deg,#e8ce97,#cba35c); color: #1a1710; border: none; padding: 9px 18px; border-radius: 100px; font-size: 13px; cursor: pointer; font-weight: 500; transition: transform .2s; }
.saved-btn:hover { transform: translateY(-2px); }
.saved-btn.ghost { background: transparent; border: 1px solid var(--panel-line); color: var(--ink-soft); }

/* ============================ 操作栏 ============================ */
.res-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.save-status { font-size: 13px; color: var(--jade); letter-spacing: .5px; }
.toolbar-actions { display: flex; gap: 10px; }
.tool-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--panel-line); color: var(--ink);
  padding: 9px 16px; border-radius: 100px; font-size: 13px; cursor: pointer; transition: all .3s;
}
.tool-btn:hover { background: var(--gold); color: #1a1710; border-color: transparent; }

/* ============================ 紫微斗数方盘 ============================ */
.zw-legend { display: flex; gap: 18px; justify-content: center; margin-bottom: 18px; font-size: 12px; color: var(--ink-mute); }
.zw-legend i.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg.main { background: var(--gold); }
.lg.aus { background: var(--jade); }
.lg.ina { background: var(--red); }
.lg.neu { background: var(--ink-mute); }

.zw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  max-width: 680px; margin: 0 auto;
}
.zw-cell {
  min-height: 96px; background: rgba(0,0,0,0.28); border: 1px solid var(--panel-line);
  border-radius: 12px; padding: 9px 8px; display: flex; flex-direction: column; gap: 5px; transition: transform .3s, border-color .3s;
}
.zw-cell.empty { background: transparent; border: none; }
.zw-cell[role="button"] { cursor: pointer; }
.zw-cell[role="button"]:hover, .zw-cell[role="button"]:focus-visible { border-color: var(--jade); outline: 2px solid rgba(47,116,99,.22); outline-offset: 2px; }
.zw-cell.ming { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(217,185,120,0.18); background: rgba(217,185,120,0.07); }
.zw-cap { display: flex; align-items: baseline; justify-content: space-between; }
.zw-duty { font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--ink); }
.zw-gz { font-size: 11px; color: var(--ink-mute); }
.zw-stars { display: flex; flex-wrap: wrap; gap: 3px 5px; }
.zw-star { font-size: 12px; line-height: 1.4; letter-spacing: .5px; }
.zw-star.main { color: var(--gold); font-weight: 600; }
.zw-star.aus { color: var(--jade); }
.zw-star.ina { color: var(--red); }
.zw-star.neu { color: var(--ink-soft); }
.zw-star .hua { font-style: normal; font-size: 9px; padding: 0 2px; margin-left: 1px; border-radius: 3px; vertical-align: super; font-family: var(--sans); }
.hua-禄 { color: #1a1710; background: var(--jade); }
.hua-权 { color: #1a1710; background: var(--gold); }
.hua-科 { color: #1a1710; background: #7fb3d5; }
.hua-忌 { color: #fff; background: var(--red); }
.zw-legend .lg-hua { display: flex; align-items: center; gap: 2px; }
.zw-legend .lg-hua .hua { position: static; margin: 0; }

.zw-detail { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.zw-row { background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px; }
.zw-row-head { display: flex; align-items: baseline; gap: 8px; }
.zw-row-head b { font-family: var(--serif); font-size: 16px; color: var(--gold); }
.zw-row-gz { font-size: 12px; color: var(--ink-mute); }
.zw-row-main { font-size: 13px; color: var(--ink-soft); margin: 7px 0 4px; }
.zw-row-main b { color: var(--ink); }
.zw-otag { font-size: 11px; margin-right: 6px; }
.zw-otag.aus { color: var(--jade); } .zw-otag.ina { color: var(--red); } .zw-otag.neu { color: var(--ink-mute); }
.zw-row-desc { font-size: 12px; color: var(--ink-mute); margin-top: 6px; font-weight: 300; }

/* ============================ 择吉 ============================ */
.zeji { padding: 90px 24px 60px; position: relative; z-index: 1; }
.zeji-card { max-width: 880px; margin: 44px auto 0; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 36px; backdrop-filter: blur(16px); }
.zeji-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.zj-summary { font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; }
.zj-summary b { color: var(--gold); font-size: 18px; }
.zj-empty { background: rgba(224,101,92,0.08); border: 1px solid rgba(224,101,92,0.25); border-radius: 12px; padding: 16px; color: var(--ink-soft); font-size: 14px; }
.zj-list { display: flex; flex-direction: column; gap: 10px; }
.zj-item { display: flex; align-items: center; gap: 16px; background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 14px; padding: 14px 18px; transition: transform .25s; }
.zj-item:hover { transform: translateX(4px); }
.zj-item.top { border-color: var(--jade); background: rgba(107,192,160,0.07); }
.zj-item.good { border-color: rgba(217,185,120,0.5); }
.zj-item.ok { border-color: rgba(217,185,120,0.25); }
.zj-item.none { opacity: .55; }
.zj-date { font-size: 14px; color: var(--ink); white-space: nowrap; min-width: 92px; }
.zj-date span { font-size: 12px; color: var(--ink-mute); }
.zj-tag { font-family: var(--serif); font-weight: 700; font-size: 15px; width: 40px; text-align: center; flex-shrink: 0; }
.zj-item.top .zj-tag { color: var(--jade); } .zj-item.good .zj-tag { color: var(--gold); }
.zj-item.ok .zj-tag { color: var(--ink-soft); } .zj-item.none .zj-tag { color: var(--ink-mute); }
.zj-info { flex: 1; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.zj-gz { color: var(--ink); }
.zj-yi { font-size: 12px; } .zj-ji { font-size: 12px; color: var(--ink-mute); }
.zj-detail { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }
.zj-warn { font-size: 11px; color: var(--red); margin-top: 3px; }
.zj-score { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--gold); flex-shrink: 0; min-width: 52px; text-align: center; }
.zj-score span { font-size: 11px; color: var(--ink-mute); font-weight: 400; }

/* ============================ 返回顶部 ============================ */
#back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--panel-line);
  background: rgba(15,17,23,0.8); backdrop-filter: blur(10px); color: var(--gold);
  font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
#back-top.show { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); background: var(--gold); color: #1a1710; }

/* ============================ 分享卡片（截图用） ============================ */
.share-stage { position: fixed; left: -9999px; top: 0; }
.share-stage.active { left: -9999px; }
.sc-card {
  width: 480px; padding: 30px 28px; background: #0a0b0f; color: #f4f1ea; font-family: var(--sans);
  box-sizing: border-box; border: 1px solid rgba(217,185,120,0.3);
}
.sc-head { display: flex; justify-content: space-between; align-items: baseline; }
.sc-brand { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.sc-date { font-size: 12px; color: var(--ink-mute); }
.sc-ming { margin: 14px 0 16px; font-size: 14px; color: var(--ink-soft); }
.sc-sizhu { display: flex; gap: 10px; margin-bottom: 20px; }
.sc-pz { flex: 1; text-align: center; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); border-radius: 10px; padding: 10px 4px; }
.sc-pz span { display: block; font-size: 11px; color: var(--ink-mute); }
.sc-pz b { font-family: var(--serif); font-size: 24px; }
.sc-pz i { font-size: 11px; color: var(--gold-soft); font-style: normal; }
.sc-score { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.sc-ring { width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--c); flex-shrink: 0; }
.sc-ring span { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--c); line-height: 1; }
.sc-ring em { font-size: 10px; color: var(--ink-mute); font-style: normal; }
.sc-yi, .sc-ji { font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.sc-yi b { color: var(--green); margin-right: 6px; }
.sc-ji b { color: var(--red); margin-right: 6px; }
.sc-lucky { font-size: 11px; color: var(--ink-mute); margin-top: 8px; }
.sc-zwtitle { font-family: var(--serif); font-size: 15px; color: var(--gold); text-align: center; margin-bottom: 12px; letter-spacing: 2px; }
.sc-zw .zw-grid { max-width: 100%; gap: 3px; }
.sc-zw .zw-cell { min-height: 70px; padding: 6px 5px; border-radius: 8px; }
.sc-zw .zw-duty { font-size: 11px; } .sc-zw .zw-star { font-size: 10px; }
.sc-foot { text-align: center; font-size: 11px; color: var(--ink-mute); margin-top: 18px; letter-spacing: 1px; }

/* ============================ 历法切换 ============================ */
.cal-toggle { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.cal-label { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.seg { display: inline-flex; background: rgba(0,0,0,0.3); border: 1px solid var(--panel-line); border-radius: 100px; padding: 3px; }
.seg-btn { background: transparent; border: none; color: var(--ink-soft); padding: 7px 18px; border-radius: 100px; cursor: pointer; font-size: 13px; font-family: var(--sans); transition: all .3s; }
.seg-btn.active { background: linear-gradient(135deg,#e8ce97,#cba35c); color: #1a1710; font-weight: 500; }
.leap-chk { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.leap-chk input { accent-color: var(--gold-soft); }

/* ============================ 专业细盘 ============================ */
.pf-strength, .pf-yong, .pf-energy, .pf-grid, .pf-pillars { margin-bottom: 18px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-card { background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 16px; padding: 20px; }
.pf-card-h { font-family: var(--serif); font-size: 16px; color: var(--gold); letter-spacing: 1px; margin-bottom: 16px; }
.pf-level { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pf-badge { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #1a1710; background: linear-gradient(135deg,#e8ce97,#cba35c); padding: 4px 16px; border-radius: 10px; }
.pf-badge.lv-弱, .pf-badge.lv-偏弱 { background: linear-gradient(135deg,#c98b6a,#a85a3c); color:#fff; }
.pf-badge.lv-旺, .pf-badge.lv-偏旺 { background: linear-gradient(135deg,#7fb3d5,#4a7fa3); color:#fff; }
.pf-ratio { font-size: 14px; color: var(--ink-soft); }
.pf-bar { height: 8px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.pf-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg,var(--gold-soft),var(--gold)); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.pf-desc { font-size: 13px; color: var(--ink-soft); font-weight: 300; line-height: 1.8; }
.pf-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pf-k { font-size: 13px; color: var(--ink-mute); width: 56px; flex-shrink: 0; }
.pf-v { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-v i { font-style: normal; padding: 4px 14px; border-radius: 100px; font-size: 14px; }
.pf-v.yong i { background: rgba(107,192,160,0.16); color: var(--jade); border: 1px solid rgba(107,192,160,0.35); }
.pf-v.ji i { background: rgba(224,101,92,0.12); color: var(--red); border: 1px solid rgba(224,101,92,0.3); }
.pf-energy-bars { display: flex; flex-direction: column; gap: 12px; }
.pf-mini { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.pf-mini:last-child { border-bottom: none; }
.pf-mini span { color: var(--ink-mute); }
.pf-mini b { font-family: var(--serif); color: var(--ink); font-size: 16px; }
.pf-sha { display: flex; flex-direction: column; gap: 10px; }
.sha-item { font-size: 13px; }
.sha-item b { color: var(--gold); margin-right: 8px; }
.sha-where { color: var(--jade); margin-right: 8px; font-size: 12px; }
.sha-desc { color: var(--ink-mute); font-weight: 300; }
.pf-pillars-card { margin-top: 18px; }
.pf-table { display: flex; flex-direction: column; gap: 2px; }
.pf-tr { display: grid; grid-template-columns: 110px 1fr 150px 90px; gap: 10px; align-items: center; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.pf-tr > *, .res-block, .result, .pf-card, .pf-pillars-card { min-width: 0; }
.pf-tr:last-child { border-bottom: none; }
.pf-pillar b { font-family: var(--serif); font-size: 22px; }
.pf-pillar span { display: block; font-size: 11px; color: var(--ink-mute); }
.pf-cang { display: flex; flex-wrap: wrap; gap: 8px; }
.cang-item { display: inline-flex; align-items: baseline; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); border-radius: 8px; padding: 4px 9px; }
.cang-item.ben { border-color: rgba(217,185,120,0.4); }
.cang-item.ben .cang-stem { font-weight: 700; }
.cang-stem { font-style: normal; font-family: var(--serif); font-size: 15px; }
.cang-item em { font-style: normal; font-size: 11px; color: var(--ink-soft); }
.pf-xing { color: var(--ink-soft); }
.pf-xing b { color: var(--gold-soft); margin-left: 2px; }
.pf-nayin { color: var(--ink-mute); font-size: 12px; }
.pf-foot { font-size: 12px; color: var(--ink-mute); margin-top: 14px; font-weight: 300; }

/* ============================ 分享面板 ============================ */
.share-wrap { position: relative; }
.share-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; background: #14161d; border: 1px solid var(--panel-line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 160px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.share-pop.hidden { display: none; }
.share-pop button { background: transparent; border: none; color: var(--ink); text-align: left; padding: 11px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; font-family: var(--sans); transition: background .2s; }
.share-pop button:hover { background: rgba(255,255,255,0.06); }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: rgba(20,22,29,0.95); border: 1px solid var(--gold-soft); color: var(--ink); padding: 13px 24px; border-radius: 100px; font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; backdrop-filter: blur(10px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(8px); opacity: 1; } }

/* 响应式 */
.br-pc { display: inline; }
@media (max-width: 820px) {
  .nav-links { gap: 18px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .wuxing-wrap { grid-template-columns: 1fr; gap: 22px; }
  .dims { grid-template-columns: repeat(2, 1fr); }
  .yiji { grid-template-columns: 1fr; }
  .huangli-grid { grid-template-columns: repeat(2, 1fr); }
  .br-pc { display: none; }
  .res-block { padding: 24px; }
  .today-hero { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .huangli-grid { grid-template-columns: 1fr; }
  .pillar .p-gz { font-size: 34px; }
  .date-nav { width: 100%; margin-top: 10px; }
}

/* ============================ 八字合婚 ============================ */
.hehun-card {
  margin-top: 46px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hehun { padding: 90px 24px 60px; position: relative; z-index: 1; }
.hehun-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 30px;
}
.hehun-person { background: rgba(0,0,0,0.18); border: 1px solid var(--panel-line); border-radius: 16px; padding: 24px; }
.hehun-person h4 { font-family: var(--serif); font-size: 18px; color: var(--gold); margin-bottom: 18px; letter-spacing: 2px; font-weight: 600; }
.hehun-person .form-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 0; }
.hh-g-btn {
  flex: 1; background: rgba(0,0,0,0.25); border: 1px solid var(--panel-line);
  color: var(--ink-soft); padding: 11px; border-radius: 12px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 1px; transition: all .3s;
}
.hh-g-btn.active { background: linear-gradient(135deg, rgba(232,206,151,0.9), rgba(203,163,92,0.9)); color: #1a1710; border-color: transparent; font-weight: 500; }

.hehun-result { margin-top: 34px; }
.hh-score-wrap { display: flex; align-items: center; gap: 34px; padding: 26px; background: rgba(0,0,0,0.2); border: 1px solid var(--panel-line); border-radius: 18px; }
.hh-ring { position: relative; width: 132px; height: 132px; flex: none; }
.hh-ring svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.hh-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 9; }
.hh-ring .ring-fg { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.hh-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hh-num span { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.hh-num em { font-style: normal; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.hh-verdict { font-family: var(--serif); font-size: 24px; color: var(--ink); letter-spacing: 2px; font-weight: 600; }
.hh-verdict-sub { font-size: 14px; color: var(--ink-mute); margin-top: 8px; font-weight: 300; }

.hh-factors { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hh-factor { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,0.18); border: 1px solid var(--panel-line); }
.hh-factor .hf-name { font-size: 14px; color: var(--ink-soft); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.hh-factor .hf-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.hh-factor.good .hf-name::before { background: var(--jade); }
.hh-factor.bad .hf-name::before { background: var(--red); }
.hh-factor.flat .hf-name::before { background: var(--ink-mute); }
.hh-factor .hf-detail { font-size: 14px; color: var(--ink); }
.hh-factor.good .hf-detail { color: var(--jade); }
.hh-factor.bad .hf-detail { color: var(--red); }

/* ============================ 结果区「详解」触发按钮 ============================ */
.res-block, .hehun, .block-head, .section-head { position: relative; }
.dm-trigger {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  background: rgba(255,255,255,0.06); border: 1px solid var(--panel-line);
  color: var(--gold-soft); padding: 6px 14px; border-radius: 100px;
  font-size: 12px; letter-spacing: 1px; cursor: pointer; font-family: var(--sans);
  transition: all .3s;
}
.dm-trigger:hover { background: var(--gold); color: #1a1710; border-color: transparent; }
/* 为有右侧内容的区块标题留出按钮空间 */
.qiyun { margin-right: 104px; }
.today-block .date-nav { margin-right: 104px; }

/* ============================ 快捷导航（结果内跳转） ============================ */
.quick-nav { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ============================ 详解弹层 ============================ */
.detail-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.detail-modal.hidden { display: none; }
.dm-backdrop { position: absolute; inset: 0; background: rgba(5,6,9,0.72); backdrop-filter: blur(6px); }
.dm-panel {
  position: relative; width: 100%; max-width: 720px; max-height: 86vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: 32px 34px; box-shadow: 0 40px 100px rgba(0,0,0,0.6); animation: fadeUp .4s ease both;
}
.dm-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--panel-line); background: rgba(255,255,255,0.05); color: var(--ink-soft);
  font-size: 20px; line-height: 1; cursor: pointer; transition: all .3s;
}
.dm-close:hover { background: var(--gold); color: #1a1710; }
.dm-head { border-bottom: 1px solid var(--panel-line); padding-bottom: 16px; margin-bottom: 22px; }
.dm-kicker { font-size: 11px; letter-spacing: 4px; color: var(--gold-soft); text-transform: uppercase; }
.dm-title { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 2px; margin-top: 8px; }
.dm-sec { margin-bottom: 24px; }
.dm-sec h4 { font-family: var(--serif); font-size: 17px; color: var(--gold); letter-spacing: 1px; margin-bottom: 12px; }
.dm-sec p { color: var(--ink-soft); font-size: 14px; font-weight: 300; line-height: 1.95; }
.dm-sec p b { color: var(--ink); font-weight: 500; }
.dm-ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0; }
.dm-ul li { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.8; padding-left: 18px; position: relative; }
.dm-ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }
.dm-ul li b { color: var(--ink); font-weight: 500; }
.dm-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 10px; }
.dm-pillar { text-align: center; background: rgba(0,0,0,0.22); border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px 8px; }
.dm-p-label { font-size: 11px; color: var(--ink-mute); letter-spacing: 2px; }
.dm-p-gz { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 6px 0 3px; }
.dm-p-god { font-size: 12px; color: var(--gold-soft); }
.dm-p-sub { font-size: 11px; color: var(--ink-mute); margin-top: 6px; }
.dm-p-nayin { font-size: 11px; color: var(--ink-mute); margin-top: 4px; }
.dm-zw-list { display: flex; flex-direction: column; gap: 8px; }
.dm-zw-row { display: flex; align-items: baseline; gap: 12px; background: rgba(0,0,0,0.18); border: 1px solid var(--panel-line); border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.dm-zw-row > b { font-family: var(--serif); color: var(--gold); min-width: 48px; }
.dm-zw-gz { color: var(--ink-mute); font-size: 12px; }
.dm-zw-main { color: var(--ink); }
.dm-empty { color: var(--ink-mute); font-size: 14px; text-align: center; padding: 30px 0; }

/* ============================ AI 深度解读 ============================ */
.ai-insight {
  margin: 30px -34px -32px;
  padding: 26px 34px 30px;
  border-top: 1px solid rgba(104, 190, 185, 0.28);
  background: rgba(36, 92, 92, 0.13);
}
.ai-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.ai-intro > div { min-width: 0; }
.ai-label { color: #83d4cb; font-size: 10px; letter-spacing: 2px; }
.ai-intro h4 { margin-top: 7px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.ai-intro p { margin-top: 7px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.ai-generate {
  flex: 0 0 auto; min-height: 42px; padding: 0 18px; border: 1px solid rgba(131,212,203,.52);
  border-radius: 8px; background: #276d69; color: #f4fffd; cursor: pointer;
  font: 500 13px var(--sans); transition: background .25s, border-color .25s, opacity .25s;
}
.ai-generate:hover { background: #31827d; border-color: #a5e5de; }
.ai-generate:disabled { cursor: wait; opacity: .58; }
.ai-privacy { margin-top: 10px; color: var(--ink-mute); font-size: 11px; line-height: 1.6; }
.ai-output { display: none; }
.ai-output.loading, .ai-output.error, .ai-output.ready { display: block; margin-top: 20px; }
.ai-output.loading, .ai-output.error {
  padding: 14px 16px; border-left: 3px solid #83d4cb; background: rgba(0,0,0,.17);
  color: var(--ink-soft); font-size: 13px; line-height: 1.7;
}
.ai-output.error { border-left-color: var(--red); color: #f0b3ae; }
.ai-result-head { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid rgba(131,212,203,.18); }
.ai-result-head b { color: #a5e5de; font-size: 13px; }
.ai-result-head em { margin-left: auto; color: var(--ink-mute); font-size: 10px; font-style: normal; }
.ai-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #61c5b9; box-shadow: 0 0 10px rgba(97,197,185,.7); }
.ai-result-section { margin-top: 18px; }
.ai-result-section h5 { color: var(--gold-soft); font: 500 14px var(--serif); margin-bottom: 8px; }
.ai-result-section p, .ai-result-list li { color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.ai-result-list { list-style: none; display: grid; gap: 7px; }
.ai-result-list li { position: relative; padding-left: 15px; }
.ai-result-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #83d4cb; }
.ai-caveat { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: var(--ink-mute); font-size: 11px; line-height: 1.7; }
.ai-result-meta { margin-top: 10px; color: var(--ink-mute); font-size: 10px; text-align: right; }

@media (max-width: 560px) {
  .dm-panel { padding: 26px 20px; }
  .dm-pillars { grid-template-columns: repeat(2, 1fr); }
  .qiyun { margin-right: 0; }
  .today-block .date-nav { margin-right: 0; }
  .dm-trigger { top: 12px; right: 12px; padding: 5px 11px; font-size: 11px; }
  .ai-insight { margin: 26px -20px -26px; padding: 22px 20px 24px; }
  .ai-intro { align-items: stretch; flex-direction: column; gap: 14px; }
  .ai-generate { width: 100%; }
  .ai-result-head { align-items: flex-start; flex-wrap: wrap; }
  .ai-result-head em { width: 100%; margin-left: 15px; }
}

/* ============================ 梅花易数与奇门遁甲 ============================ */
.divination-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  position: relative;
  z-index: 1;
}
.divination-card {
  margin-top: 44px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.36);
}
.method-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 430px;
  margin: 0 auto 28px;
  padding: 4px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
}
.method-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  min-height: 44px;
  border-radius: 8px;
  font: 14px var(--sans);
  cursor: pointer;
}
.method-btn.active { background: var(--gold); color: #1a1710; font-weight: 600; }
.divination-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-bottom: 22px; }
.field-wide { grid-row: span 2; }
.number-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qimen-form-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.divination-result { margin-top: 34px; scroll-margin-top: 86px; }
.reading-summary {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--panel-line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
}
.reading-summary.good { border-left-color: var(--jade); }
.reading-summary.bad { border-left-color: var(--red); }
.reading-mark {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border: 1px solid rgba(217,185,120,0.45);
  color: var(--gold);
  font: 700 28px var(--serif);
  border-radius: 50%;
}
.reading-summary.good .reading-mark { color: var(--jade); border-color: rgba(107,192,160,0.5); }
.reading-summary.bad .reading-mark { color: var(--red); border-color: rgba(224,101,92,0.5); }
.reading-summary p { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.reading-summary h3 { font: 600 22px var(--serif); margin: 4px 0 6px; }
.reading-summary span { color: var(--ink-mute); font-size: 12px; }
.reading-warning { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(217,185,120,0.25); border-radius: 8px; color: var(--ink-soft); font-size: 12px; }
.gua-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.gua-card { background: rgba(0,0,0,0.2); border: 1px solid var(--panel-line); border-radius: 12px; padding: 20px; text-align: center; min-width: 0; }
.gua-label { color: var(--ink-mute); font-size: 11px; letter-spacing: 2px; }
.gua-name { color: var(--gold); font: 600 21px var(--serif); margin: 8px 0 14px; }
.gua-lines { width: 142px; margin: 0 auto; display: grid; gap: 6px; }
.gua-line { height: 11px; display: grid; grid-template-columns: 18px 1fr 1fr 24px; gap: 7px; align-items: center; }
.gua-line .line-no { color: var(--ink-mute); font-size: 9px; text-align: right; }
.gua-line i { display: block; height: 7px; background: var(--ink-soft); }
.gua-line.yang i:first-of-type { grid-column: 2 / 4; }
.gua-line.yang i:nth-of-type(2) { display: none; }
.gua-line.moving i { background: var(--gold); box-shadow: 0 0 10px rgba(217,185,120,.28); }
.gua-line b { color: var(--gold); font-size: 10px; font-weight: 500; }
.gua-meta { margin-top: 14px; color: var(--ink-soft); font-size: 12px; }
.gua-nature { color: var(--ink-mute); font-size: 12px; margin-top: 3px; }
.body-use-grid { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 14px; align-items: stretch; margin-top: 18px; }
.body-use-item { display: flex; flex-direction: column; padding: 18px; background: rgba(0,0,0,0.2); border: 1px solid var(--panel-line); border-radius: 10px; text-align: center; }
.body-use-item span, .body-use-item em { color: var(--ink-mute); font-size: 12px; font-style: normal; }
.body-use-item b { margin: 7px 0; color: var(--ink); font: 600 20px var(--serif); }
.body-use-arrow { display: grid; place-items: center; color: var(--gold); border: 1px dashed rgba(217,185,120,0.35); border-radius: 10px; font: 600 16px var(--serif); }
.phase-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.phase-item { padding: 14px; border-radius: 10px; background: rgba(0,0,0,0.18); border-top: 2px solid var(--ink-mute); }
.phase-item.good { border-top-color: var(--jade); }
.phase-item.bad { border-top-color: var(--red); }
.phase-item span { display: block; color: var(--ink-mute); font-size: 11px; }
.phase-item b { display: block; color: var(--ink); font-size: 14px; margin: 4px 0; }
.phase-item p { color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.detail-action {
  width: 100%; min-height: 48px; margin-top: 18px;
  color: var(--gold); background: rgba(217,185,120,0.07);
  border: 1px solid rgba(217,185,120,0.35); border-radius: 8px;
  font: 500 14px var(--sans); cursor: pointer;
}
.detail-action:hover { background: rgba(217,185,120,0.14); }
.kb-source { margin-top: 16px; padding: 14px 16px; border-top: 1px solid var(--panel-line); color: var(--ink-mute); font-size: 11px; }
.kb-source b { color: var(--gold-soft); margin-right: 10px; }
.kb-source span { color: var(--ink-soft); }
.kb-source p { margin-top: 4px; line-height: 1.6; }
.qimen-keyfacts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.qimen-keyfacts > div { padding: 12px 14px; background: rgba(0,0,0,0.18); border: 1px solid var(--panel-line); border-radius: 8px; min-width: 0; }
.qimen-keyfacts span { display: block; color: var(--ink-mute); font-size: 11px; }
.qimen-keyfacts b { display: block; color: var(--ink); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.qimen-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 5px; background: rgba(217,185,120,0.14); border: 1px solid rgba(217,185,120,0.35); border-radius: 10px; }
.qimen-palace {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 172px; padding: 13px;
  text-align: left; color: var(--ink); background: #12141a; border: 1px solid var(--panel-line); border-radius: 6px;
  font-family: var(--sans); cursor: pointer; overflow: hidden;
}
.qimen-palace.good { border-color: rgba(107,192,160,.36); }
.qimen-palace.bad { border-color: rgba(224,101,92,.34); }
.qimen-palace:hover { border-color: var(--gold); }
.palace-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.palace-head b { color: var(--gold); font: 600 17px var(--serif); }
.palace-head em { color: var(--ink-mute); font-size: 10px; font-style: normal; }
.palace-badges { min-height: 23px; display: flex; gap: 4px; margin: 5px 0; flex-wrap: wrap; }
.palace-badges i { padding: 1px 5px; color: var(--ink-soft); border: 1px solid var(--panel-line); border-radius: 4px; font-size: 9px; font-style: normal; }
.palace-badges i.key { color: #15120c; background: var(--gold); border-color: var(--gold); }
.palace-main { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.palace-main strong { min-width: 0; padding: 6px 2px; text-align: center; color: var(--ink-soft); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.palace-stems { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.palace-stems em { color: var(--ink-mute); font-size: 10px; font-style: normal; }
.palace-luck { position: absolute; right: 9px; bottom: 7px; color: var(--ink-mute); font-size: 10px; }
.qimen-palace.good .palace-luck { color: var(--jade); }
.qimen-palace.bad .palace-luck { color: var(--red); }
.rule-reading { margin-top: 16px; padding: 16px; background: rgba(0,0,0,.18); border-left: 3px solid var(--gold); }
.rule-reading span { color: var(--gold); font-size: 12px; }
.rule-reading p { color: var(--ink-soft); font-size: 13px; margin-top: 5px; line-height: 1.8; }

/* ============================ 塔罗与雷诺曼 ============================ */
.oracle-section { border-top: 1px solid rgba(255,255,255,.04); }
.tarot-section .eyebrow { color: #cf8c9f; }
.lenormand-section .eyebrow { color: #78b9ad; }
.oracle-workspace { overflow: hidden; }
.oracle-form-grid { grid-template-columns: minmax(0,1fr) 300px; }
.oracle-summary {
  display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 20px;
  padding: 22px; background: rgba(0,0,0,.22); border: 1px solid var(--panel-line); border-radius: 12px;
}
.oracle-summary.tarot { border-left: 4px solid #b96f88; }
.oracle-summary.lenormand { border-left: 4px solid #5ca99b; }
.oracle-sigil {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%;
  color: var(--gold); border: 1px solid rgba(217,185,120,.42); font: 600 28px var(--serif);
}
.oracle-summary p { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.oracle-summary h3 { margin: 4px 0; font: 600 22px var(--serif); }
.oracle-summary span { color: var(--ink-mute); font-size: 12px; }
.oracle-spread {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(148px,182px)); justify-content: center;
  align-items: start; gap: 24px 18px; margin-top: 28px;
}
.oracle-card-wrap {
  min-width: 0; width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0;
  text-align: center; font-family: var(--sans); cursor: pointer;
}
.oracle-position {
  display: block; min-height: 27px; margin-bottom: 8px; color: var(--gold-soft); font-size: 12px;
}
.oracle-card {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d;
  animation: oracle-reveal .8s cubic-bezier(.2,.7,.2,1) calc(var(--card-index) * 180ms) both;
}
.oracle-card-face, .oracle-card-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; backface-visibility: hidden; border: 1px solid rgba(217,185,120,.45); border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0,0,0,.42);
}
.oracle-card-face::before, .oracle-card-face::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 1px; background: rgba(217,185,120,.35);
}
.oracle-card-face::before { top: 38px; }
.oracle-card-face::after { bottom: 38px; }
.oracle-card.tarot .oracle-card-face { background: #17151c; }
.oracle-card.lenormand .oracle-card-face { background: #101d1d; border-color: rgba(92,169,155,.55); }
.oracle-card-back {
  transform: rotateY(180deg); gap: 14px; color: var(--gold); background: #12131a;
  border: 2px solid rgba(217,185,120,.5); box-shadow: inset 0 0 0 7px #12131a, inset 0 0 0 8px rgba(217,185,120,.28), 0 16px 38px rgba(0,0,0,.42);
}
.oracle-card-back i { width: 44%; height: 1px; background: rgba(217,185,120,.42); }
.oracle-card-back b { font-size: 11px; font-weight: 500; color: var(--gold-soft); }
.oracle-number { position: absolute; top: 10px; left: 12px; color: var(--gold-soft); font: 600 12px var(--serif); }
.oracle-symbol { color: var(--gold); font: 500 clamp(34px,7vw,54px) var(--serif); transition: transform .3s; }
.oracle-card-wrap.reversed .oracle-symbol { transform: rotate(180deg); }
.oracle-card-face strong { margin-top: 12px; color: var(--ink); font: 600 18px var(--serif); }
.oracle-card-face em { margin-top: 3px; color: var(--ink-mute); font-size: 9px; font-style: normal; }
.oracle-card-face small { position: absolute; bottom: 11px; color: var(--ink-soft); font-size: 9px; }
.oracle-keyword {
  display: block; margin-top: 12px; min-height: 68px; color: var(--ink-soft); font-size: 11px;
  line-height: 1.65; overflow-wrap: anywhere;
}
.oracle-card-wrap:hover .oracle-card-face { border-color: var(--gold); }
.lenormand-section .oracle-card-wrap:hover .oracle-card-face { border-color: var(--jade); }
.oracle-thread { margin-top: 24px; padding: 16px; color: var(--ink-soft); background: rgba(0,0,0,.18); border-left: 3px solid var(--gold); }
.oracle-thread span { color: var(--gold); font-size: 12px; }
.oracle-thread p { margin-top: 5px; font-size: 13px; line-height: 1.8; }

@keyframes oracle-reveal {
  0% { transform: translateY(14px) rotateY(180deg); opacity: .35; }
  100% { transform: translateY(0) rotateY(0); opacity: 1; }
}
@keyframes music-pulse {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 820px) {
  .nav-links { max-width: calc(100vw - 250px); overflow-x: auto; gap: 16px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; }
  .divination-form-grid, .qimen-form-grid, .oracle-form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-row: auto; }
  .gua-grid { grid-template-columns: 1fr; }
  .body-use-grid { grid-template-columns: 1fr; }
  .body-use-arrow { min-height: 48px; }
  .phase-list { grid-template-columns: 1fr 1fr; }
  .qimen-keyfacts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 13px 16px; }
  .brand { font-size: 18px; letter-spacing: 2px; }
  .brand-en { display: none; }
  .nav-actions { gap: 8px; }
  .nav-links { max-width: calc(100vw - 160px); gap: 13px; }
  .nav-links a { font-size: 12px; }
  .music-toggle { flex-basis: 36px; width: 36px; height: 36px; font-size: 17px; }
  .divination-section, .hehun { padding-left: 16px; padding-right: 16px; }
  .divination-card { padding: 20px; }
  .number-pair { grid-template-columns: 1fr; }
  .reading-summary { grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 18px 14px; }
  .reading-mark { width: 58px; height: 58px; font-size: 22px; }
  .reading-summary h3 { font-size: 18px; }
  .phase-list { grid-template-columns: 1fr; }
  .qimen-keyfacts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .qimen-board { gap: 3px; padding: 3px; }
  .qimen-palace { min-height: 150px; padding: 8px 6px; }
  .palace-head b { font-size: 14px; }
  .palace-head em { font-size: 8px; }
  .palace-main { gap: 2px; }
  .palace-main strong { font-size: 10px; padding: 5px 1px; }
  .palace-stems { gap: 3px; }
  .palace-stems em { font-size: 9px; }
  .hehun-card { padding: 24px; }
  .hehun-person { min-width: 0; padding: 18px; }
  .hehun-person .form-grid { grid-template-columns: 1fr; }
  .hh-score-wrap { flex-direction: column; text-align: center; }
  .hh-factors { grid-template-columns: 1fr; }
  .pf-tr { grid-template-columns: 82px minmax(0,1fr); gap: 8px; align-items: start; }
  .pf-xing, .pf-nayin { grid-column: 2; overflow-wrap: anywhere; }
  .oracle-summary { grid-template-columns: 58px minmax(0,1fr); gap: 13px; padding: 16px 13px; }
  .oracle-sigil { width: 52px; height: 52px; font-size: 22px; }
  .oracle-summary h3 { font-size: 18px; }
  .oracle-spread { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }
  .oracle-position { font-size: 11px; }
  .oracle-card-face strong { font-size: 15px; }
  .oracle-symbol { font-size: 36px; }
  .oracle-keyword { min-height: 0; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .oracle-card { animation: none; }
  .music-toggle.is-playing::after { animation: none; }
}

/* ============================ 现代洞察版 ============================ */
.hero-trust { margin-top: 18px; color: var(--jade); font-size: 13px; font-weight: 600; }
.hero-method { margin-top: 26px; color: var(--ink-mute); font-size: 12px; }

.outcome-preview {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 72px 24px 88px;
  border-top: 1px solid var(--panel-line);
}
.compact-head h2 { font-size: clamp(28px,4vw,40px); }
.outcome-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.outcome-grid article {
  min-height: 164px; padding: 22px; background: rgba(255,255,255,.7); border: 1px solid var(--panel-line); border-radius: 8px;
}
.outcome-grid article > span { color: var(--gold); font-size: 11px; font-weight: 700; }
.outcome-grid h3 { margin-top: 22px; font: 600 18px var(--serif); }
.outcome-grid p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }

.form-step { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; }
.form-step:not(:first-child) { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--panel-line); }
.form-step > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 12px; font-weight: 700; }
.form-step b, .form-step small { display: block; }
.form-step b { font-size: 15px; }
.form-step small { margin-top: 1px; color: var(--ink-mute); font-size: 11px; }
.form-control-row { padding: 14px 16px; background: rgba(32,38,33,.035); border: 1px solid var(--panel-line); border-radius: 8px; }
.seg { background: rgba(32,38,33,.055); }
.seg-btn.active, .time-mode-btn.active { background: var(--ink); color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.choice-btn {
  min-height: 74px; padding: 14px; text-align: left; color: var(--ink-soft); background: rgba(255,255,255,.76);
  border: 1px solid var(--panel-line); border-radius: 8px; cursor: pointer; font-family: var(--sans);
}
.choice-btn b, .choice-btn span { display: block; }
.choice-btn b { color: var(--ink); font-size: 14px; }
.choice-btn span { margin-top: 4px; font-size: 11px; }
.choice-btn.active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(166,70,59,.045); }
.time-grid { grid-template-columns: 1fr 1fr 1.5fr; align-items: end; }
.time-status { min-height: 50px; display: flex; align-items: center; padding: 12px 14px; color: var(--ink-mute); background: rgba(32,38,33,.035); border-left: 3px solid var(--jade); font-size: 12px; }
.time-grid.is-disabled { opacity: .45; }
.unknown-time-note, .unknown-result-note, .module-unavailable {
  padding: 16px 18px; color: var(--ink-soft); background: rgba(166,70,59,.055); border: 1px solid rgba(166,70,59,.22); border-radius: 8px; font-size: 13px;
}
.unknown-result-note { margin-bottom: 20px; }
.module-unavailable { text-align: center; }
.module-unavailable b { color: var(--gold); }
.module-unavailable p { margin-top: 5px; }
.identity-grid { grid-template-columns: minmax(0,2fr) minmax(240px,1fr); }
.field-meta { display: block; color: var(--ink-mute); font-size: 11px; line-height: 1.5; }
.field-meta.valid { color: var(--jade); }
.field-meta.error { color: var(--red); }
.advanced-settings { margin: 22px 0; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.advanced-settings summary { min-height: 48px; display: flex; align-items: center; color: var(--ink-soft); cursor: pointer; font-size: 13px; }
.advanced-settings.is-disabled { opacity: .45; pointer-events: none; }
.advanced-body { padding: 0 0 20px; }
.correction-seg { width: fit-content; margin-top: 8px; }
.time-mode-btn { min-height: 38px; padding: 0 16px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 100px; cursor: pointer; }
.form-error { margin: 14px 0 2px; padding: 12px 14px; color: var(--red); background: rgba(182,67,59,.055); border-left: 3px solid var(--red); font-size: 13px; }

.core-summary { padding: 36px; }
.result, #res-core, .compute, .zeji, .hehun, .divination-section { scroll-margin-top: 84px; }
.core-intro { max-width: 720px; }
.core-intro h2 { font: 600 clamp(26px,4vw,38px) var(--serif); }
.core-intro > p:last-child { margin-top: 8px; color: var(--ink-soft); }
.core-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 30px; }
.core-card {
  grid-column: span 2; min-height: 174px; padding: 20px; background: rgba(32,38,33,.035); border-top: 3px solid var(--gold); border-radius: 4px;
}
.core-card:nth-child(4), .core-card:nth-child(5) { grid-column: span 3; }
.core-card > span { color: var(--gold-soft); font-size: 11px; }
.core-card h3 { margin-top: 15px; color: var(--ink); font: 600 18px var(--serif); overflow-wrap: anywhere; }
.core-card p { margin-top: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.birth-meta { margin-top: 8px; color: var(--ink-mute); font-size: 12px; }
.pillar-unavailable { display: flex; flex-direction: column; justify-content: center; opacity: .72; }
.pillar-unavailable .p-gz { color: var(--ink-mute); font-size: 22px; }

.professional-details { margin: 0 0 26px; }
.professional-details > summary {
  min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; cursor: pointer;
}
.professional-details > summary span { font: 600 17px var(--serif); }
.professional-details > summary small { color: var(--ink-mute); text-align: right; }
.professional-details[open] > summary { margin-bottom: 18px; border-color: var(--gold); }
.professional-body { display: block; }
.professional-body .res-block:last-child { margin-bottom: 0; }

.decision-hero { align-items: stretch; }
.daily-level { flex: 0 0 180px; display: flex; flex-direction: column; justify-content: center; padding: 22px; background: var(--ink); color: #fff; border-radius: 8px; text-align: left; }
.daily-level span { color: #c8d3cb; font-size: 11px; }
.daily-level strong { margin-top: 10px; font: 600 25px var(--serif); }
.daily-level small { margin-top: 8px; color: #aeb9b1; line-height: 1.5; }
.daily-focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.daily-focus-grid > div { min-height: 122px; padding: 16px; text-align: left; background: rgba(32,38,33,.035); border: 1px solid var(--panel-line); border-radius: 8px; }
.daily-focus-grid span { display: block; color: var(--gold-soft); font-size: 11px; }
.daily-focus-grid b { display: block; margin-top: 9px; font-size: 13px; line-height: 1.65; font-weight: 600; }
.dims { grid-template-columns: repeat(5,minmax(0,1fr)); }
.dim { background: rgba(32,38,33,.035); border-radius: 8px; }
.dim .d-bar { background: rgba(32,38,33,.08); }
.dim .d-fill, .pf-bar-fill { background: var(--gold); }
.cultural-details { margin-top: 22px; border-top: 1px solid var(--panel-line); }
.cultural-details summary { padding: 18px 0; color: var(--ink-soft); cursor: pointer; font-size: 13px; }
.cultural-details .yiji { margin-top: 4px; }

.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; }
.footer-links a { color: var(--ink-mute); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* 浅色数据界面覆盖 */
.dim, .yiji-col, .hl-item, .dayun-cell, .ln-cell, .pf-card, .zw-cell, .zw-row, .zj-item,
.hehun-person, .hh-score-wrap, .hh-factor, .reading-summary, .gua-card, .body-use-item,
.phase-item, .qimen-keyfacts > div, .oracle-summary, .oracle-thread, .rule-reading,
.dm-pillar, .dm-zw-row { background: rgba(32,38,33,.035); }
.method-switch, .seg { background: rgba(32,38,33,.055); }
.hehun-card, .zeji-card, .divination-card { box-shadow: 0 24px 60px rgba(43,38,30,.08); }
.hh-g-btn { background: rgba(255,255,255,.8); }
.hh-g-btn.active, .method-btn.active { background: var(--ink); color: #fff; }
.qimen-palace { background: #fff; }
.palace-main strong { background: rgba(32,38,33,.045); }
.share-pop { background: #fff; box-shadow: 0 18px 40px rgba(43,38,30,.15); }
.share-pop button:hover { background: rgba(32,38,33,.05); }
.toast { background: rgba(32,38,33,.94); color: #fff; }
.dm-panel { box-shadow: 0 30px 80px rgba(25,30,26,.22); }
.dm-backdrop { background: rgba(23,28,24,.56); }
.ai-output.loading, .ai-output.error { background: rgba(32,38,33,.05); }
.ai-output.error { color: var(--red); }
.oracle-card-face strong { color: #f4f1ea; }
.oracle-card-face small, .oracle-card-face em { color: #a7aaa5; }

.sc-card { background: #f4f1e9; color: #202621; border-color: rgba(36,42,38,.18); }
.sc-date, .sc-ming, .sc-foot { color: #687169; }
.sc-core { display: grid; gap: 8px; margin: 18px 0; }
.sc-core > div { padding: 14px; background: rgba(255,255,255,.66); border-left: 3px solid #a6463b; }
.sc-core span { display: block; color: #806c4f; font-size: 10px; }
.sc-core b { display: block; margin-top: 4px; color: #202621; font-family: var(--serif); }
.sc-core p { margin-top: 4px; color: #505a53; font-size: 11px; line-height: 1.55; }
.sc-decision { padding: 16px; background: #202621; color: #f4f1e9; }
.sc-decision > span { color: #d7b6a7; font-weight: 600; }
.sc-decision p { margin-top: 8px; color: #d7ddd8; font-size: 11px; }
.sc-decision b { color: #fff; margin-right: 8px; }

/* 独立隐私页 */
.brand-link, .policy-back { text-decoration: none; }
.policy-back { color: var(--ink-soft); font-size: 13px; }
.policy-main { max-width: 820px; margin: 0 auto; padding: 138px 24px 100px; }
.policy-header { padding-bottom: 34px; border-bottom: 1px solid var(--panel-line); }
.policy-header h1 { font: 700 clamp(36px,6vw,60px) var(--serif); letter-spacing: 0; }
.policy-header > p:last-child { margin-top: 12px; color: var(--ink-mute); }
.policy-lead { margin: 30px 0; padding: 22px; background: rgba(47,116,99,.08); border-left: 4px solid var(--jade); }
.policy-lead p { margin-top: 7px; color: var(--ink-soft); }
.policy-section { padding: 30px 0; border-bottom: 1px solid var(--panel-line); }
.policy-section h2 { font: 600 24px var(--serif); }
.policy-section h3 { margin-top: 22px; font-size: 15px; }
.policy-section p { margin-top: 8px; color: var(--ink-soft); line-height: 1.9; }
.policy-section a { color: var(--gold); }
.policy-update { display: grid; grid-template-columns: 110px 1fr; gap: 18px; margin-top: 16px; }
.policy-update time { color: var(--gold); font-weight: 600; }
.policy-update p { margin-top: 0; }

/* 会员、支付与正式条款 */
.commercial-page { min-height: 100vh; }
.commercial-home-link { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.commercial-home-link:hover { color: var(--gold); }
.commercial-main, .terms-main { position: relative; z-index: 1; width: min(1120px,100%); margin: 0 auto; padding: 128px 24px 84px; }
.commercial-header { max-width: 760px; padding-bottom: 32px; }
.commercial-header h1, .terms-header h1 { font: 700 46px/1.2 var(--serif); letter-spacing: 0; }
.commercial-header > p:last-child, .terms-header > p:last-child { margin-top: 13px; color: var(--ink-soft); }
.billing-status-band { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.billing-status-band > div > span { color: var(--gold-soft); font-size: 10px; letter-spacing: 2px; }
.billing-status-band h2 { margin-top: 4px; font: 650 25px var(--serif); }
.billing-status-band p { margin-top: 4px; color: var(--ink-mute); font-size: 13px; }
.billing-status-band.is-pro h2 { color: var(--jade); }
.billing-status-band button, .billing-recovery button, .pricing-plan button {
  min-height: 46px; padding: 0 18px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 6px; cursor: pointer; font: 650 13px var(--sans);
}
.billing-status-band button:hover, .billing-recovery button:hover, .pricing-plan button:hover { color: #fff; background: var(--gold); border-color: var(--gold); }
.billing-status-band button:disabled, .billing-recovery button:disabled, .pricing-plan button:disabled { color: var(--ink-mute); background: transparent; border-color: var(--panel-line); cursor: not-allowed; }
.billing-notice { margin-top: 16px; padding: 13px 15px; color: var(--ink-soft); background: rgba(32,38,33,.045); border-left: 3px solid var(--gold-soft); font-size: 13px; }
.billing-notice:empty { display: none; }
.billing-notice.success { color: var(--green); border-left-color: var(--green); }
.billing-notice.error { color: var(--red); border-left-color: var(--red); }
.billing-notice.warning { color: var(--gold-soft); }
.billing-merchant-state { margin-top: 16px; padding: 12px 15px; color: var(--gold-soft); background: rgba(166,70,59,.055); border: 1px solid rgba(166,70,59,.2); border-radius: 6px; font-size: 12px; }
.billing-merchant-state.is-ready { color: var(--green); background: rgba(52,120,95,.06); border-color: rgba(52,120,95,.24); }
.pricing-purchase { padding: 52px 0 42px; }
.pricing-purchase-head { display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: end; gap: 44px; }
.pricing-purchase-head h2, .billing-recovery h2, .commercial-boundary h2 { font: 650 28px/1.35 var(--serif); }
.billing-email-field, .billing-recovery-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.billing-email-field input, .billing-recovery-form input {
  width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--panel-line); border-radius: 6px; outline: none; font: 15px var(--sans);
}
.billing-email-field input:focus, .billing-recovery-form input:focus { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(166,70,59,.08); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.pricing-plan { min-width: 0; min-height: 388px; display: grid; grid-template-rows: auto 1fr auto; padding: 25px; background: rgba(255,255,255,.5); border: 1px solid var(--panel-line); border-radius: 8px; }
.pricing-plan.is-pro { border-top: 3px solid var(--jade); }
.pricing-plan.featured { background: rgba(47,116,99,.06); }
.pricing-plan-head span, .pricing-plan-head strong, .pricing-plan-head small { display: block; }
.pricing-plan-head span { color: var(--gold-soft); font-size: 10px; letter-spacing: 2px; }
.pricing-plan-head strong { margin-top: 12px; font: 700 36px var(--serif); }
.pricing-plan-head small { min-height: 21px; margin-top: 3px; color: var(--ink-mute); font-size: 11px; }
.pricing-plan ul { margin: 24px 0 26px 18px; color: var(--ink-soft); font-size: 13px; }
.pricing-plan li + li { margin-top: 11px; }
.pricing-plan button { width: 100%; }
.pricing-current { align-self: end; min-height: 46px; display: grid; place-items: center; color: var(--ink-mute); border: 1px solid var(--panel-line); border-radius: 6px; font-size: 12px; }
.billing-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--panel-line); }
.billing-methods legend { padding-right: 14px; color: var(--ink-soft); font-size: 12px; }
.billing-method { min-width: 0; min-height: 68px; display: grid; grid-template-columns: 18px 38px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px 14px; background: rgba(255,255,255,.42); border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; }
.billing-method:has(input:checked) { border-color: var(--jade); box-shadow: 0 0 0 2px rgba(47,116,99,.08); }
.billing-method input { width: 17px; height: 17px; accent-color: var(--jade); }
.billing-method-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #1677ff; border-radius: 6px; font: 700 17px var(--sans); }
.billing-method.is-wechat .billing-method-mark { background: #07c160; }
.billing-method strong, .billing-method small { display: block; }
.billing-method strong { color: var(--ink); font-size: 13px; }
.billing-method small { margin-top: 3px; color: var(--ink-mute); font-size: 10px; }
.billing-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.billing-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; accent-color: var(--jade); }
.billing-legal-links { display: flex; gap: 18px; margin: 10px 0 0 28px; }
.billing-legal-links a, .terms-main a, .commercial-footer a { color: var(--gold); font-size: 12px; }
.billing-recovery { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 52px; padding: 42px 0; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.billing-recovery[hidden] { display: none; }
.billing-recovery > div:first-child > p:last-child { margin-top: 10px; color: var(--ink-soft); font-size: 13px; }
.billing-recovery-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 9px; }
.billing-recovery-form button { align-self: end; }
.commercial-boundary { max-width: 790px; padding-top: 40px; }
.commercial-boundary p { margin-top: 10px; color: var(--ink-soft); }
.commercial-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 24px; color: var(--ink-mute); border-top: 1px solid var(--panel-line); font-size: 12px; }

/* 手机账户 */
.auth-main { position: relative; z-index: 1; width: min(620px,100%); min-height: calc(100vh - 90px); margin: 0 auto; padding: 128px 24px 72px; }
.auth-header { padding-bottom: 28px; }
.auth-header h1 { margin-top: 8px; font: 700 42px/1.2 var(--serif); }
.auth-header > p:last-child { max-width: 540px; margin-top: 12px; color: var(--ink-soft); }
.auth-panel { border-top: 1px solid var(--panel-line); }
.auth-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--panel-line); }
.auth-tabs button { min-width: 0; min-height: 54px; padding: 0 8px; color: var(--ink-mute); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: 650 13px var(--sans); }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--gold); }
.auth-notice { margin-top: 18px; padding: 12px 14px; color: var(--ink-soft); background: rgba(32,38,33,.045); border-left: 3px solid var(--gold-soft); font-size: 13px; }
.auth-notice:empty { display: none; }
.auth-notice.success { color: var(--green); border-left-color: var(--green); }
.auth-notice.error { color: var(--red); border-left-color: var(--red); }
.auth-form { display: grid; gap: 18px; padding: 28px 0 8px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.auth-form label > small { color: var(--ink-mute); font-size: 10px; }
.auth-form input { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--panel-line); border-radius: 6px; outline: none; font: 15px var(--sans); }
.auth-form input:focus { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(166,70,59,.08); }
.auth-phone-input { display: grid; grid-template-columns: 58px minmax(0,1fr); }
.auth-phone-input b { min-height: 50px; display: grid; place-items: center; color: var(--ink-soft); background: rgba(32,38,33,.045); border: 1px solid var(--panel-line); border-right: 0; border-radius: 6px 0 0 6px; font-size: 13px; }
.auth-phone-input input { border-radius: 0 6px 6px 0; }
.auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) 132px; gap: 9px; }
.auth-code-row button, .auth-primary, .auth-account-actions button, .auth-account-actions a { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; font: 650 13px var(--sans); text-decoration: none; }
.auth-code-row button { color: var(--ink); background: transparent; }
.auth-primary { width: 100%; color: #fff; background: var(--ink); border-color: var(--ink); }
.auth-code-row button:hover, .auth-primary:hover { color: #fff; background: var(--gold); border-color: var(--gold); }
.auth-form button:disabled, .auth-form input:disabled { cursor: wait; opacity: .6; }
.auth-terms { margin-top: 20px; color: var(--ink-mute); font-size: 11px; text-align: center; }
.auth-terms a { color: var(--gold); }
.auth-account-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.auth-account-summary[hidden], .auth-panel[hidden] { display: none; }
.auth-account-summary > div:first-child { display: grid; gap: 4px; }
.auth-account-summary span { color: var(--gold-soft); font-size: 10px; letter-spacing: 2px; }
.auth-account-summary strong { font: 650 24px var(--serif); }
.auth-account-summary small { color: var(--ink-mute); }
.auth-account-actions { display: flex; gap: 9px; }
.auth-account-actions a { color: #fff; background: var(--ink); border-color: var(--ink); }
.auth-account-actions button { color: var(--ink-soft); background: transparent; }
.ai-access-required { display: grid; gap: 8px; }
.ai-access-required > b { color: var(--ink); font: 650 18px var(--serif); }
.ai-access-required > p { color: var(--ink-soft); }
.ai-access-actions { margin-top: 4px; }
.ai-access-actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; color: #fff; background: var(--ink); border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 650; }
html[data-theme="classic"] .ai-access-actions a { color: #1a1710; background: var(--gold); }

.terms-main { max-width: 900px; }
.terms-header { padding-bottom: 32px; border-bottom: 1px solid var(--panel-line); }
.terms-summary { margin: 28px 0 6px; padding: 20px; background: rgba(166,70,59,.055); border-left: 4px solid var(--gold); }
.terms-summary strong { color: var(--gold-soft); font-size: 10px; letter-spacing: 2px; }
.terms-summary p { margin-top: 7px; color: var(--ink-soft); }
.terms-section { display: grid; grid-template-columns: 245px minmax(0,1fr); column-gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--panel-line); }
.terms-section h2 { grid-row: 1 / span 4; font: 650 19px/1.55 var(--serif); }
.terms-section p { grid-column: 2; color: var(--ink-soft); line-height: 1.9; }
.terms-section p + p { margin-top: 12px; }
.terms-links { display: flex; gap: 12px; padding-top: 32px; }
.terms-links a { min-height: 44px; display: grid; place-items: center; padding: 0 16px; color: var(--ink); border: 1px solid var(--panel-line); border-radius: 6px; text-decoration: none; }
.terms-links a:hover { color: #fff; background: var(--gold); border-color: var(--gold); }

html[data-theme="classic"] .pricing-plan,
html[data-theme="classic"] .billing-method,
html[data-theme="classic"] .billing-email-field input,
html[data-theme="classic"] .billing-recovery-form input { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .auth-form input,
html[data-theme="classic"] .auth-phone-input b,
html[data-theme="classic"] .auth-notice { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .auth-primary,
html[data-theme="classic"] .auth-account-actions a { color: #1a1710; background: var(--gold); border-color: var(--gold); }
html[data-theme="classic"] .pricing-plan.featured { background: rgba(107,192,160,.07); }
html[data-theme="classic"] .billing-notice { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .billing-status-band button,
html[data-theme="classic"] .billing-recovery button,
html[data-theme="classic"] .pricing-plan button { color: #1a1710; background: var(--gold); border-color: var(--gold); }
html[data-theme="classic"] .billing-status-band button:disabled,
html[data-theme="classic"] .billing-recovery button:disabled,
html[data-theme="classic"] .pricing-plan button:disabled { color: var(--ink-mute); background: transparent; border-color: var(--panel-line); }

@media (max-width: 820px) {
  .pricing-purchase-head { grid-template-columns: 1fr; gap: 22px; }
  .billing-email-field { max-width: 520px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .billing-methods { grid-template-columns: 1fr; }
  .pricing-plan { min-height: 0; }
  .billing-recovery { grid-template-columns: 1fr; gap: 24px; }
  .terms-section { grid-template-columns: 1fr; gap: 12px; }
  .terms-section h2, .terms-section p { grid-column: 1; grid-row: auto; }
  .outcome-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-card, .core-card:nth-child(4), .core-card:nth-child(5) { grid-column: span 1; }
  .core-card:last-child { grid-column: 1 / -1; }
  .daily-level { flex-basis: 100%; }
  .daily-focus-grid { grid-template-columns: 1fr; }
  .dims { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .commercial-main, .terms-main { padding: 104px 16px 56px; }
  .auth-main { padding: 104px 16px 52px; }
  .auth-header h1 { font-size: 34px; }
  .auth-code-row { grid-template-columns: minmax(0,1fr) 116px; }
  .auth-account-summary { align-items: flex-start; flex-direction: column; }
  .auth-account-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .commercial-header h1, .terms-header h1 { font-size: 34px; }
  .billing-status-band { align-items: flex-start; flex-direction: column; }
  .billing-status-band button { width: 100%; }
  .pricing-purchase { padding-top: 40px; }
  .pricing-plan { padding: 21px 18px; }
  .billing-recovery-form { grid-template-columns: 1fr; }
  .billing-recovery-form button { width: 100%; }
  .commercial-footer { flex-direction: column; }
  .terms-links { display: grid; grid-template-columns: 1fr; }
  #back-top { display: none; }
  .hero { min-height: 70vh; padding: 92px 0 28px; }
  .hero-title { font-size: 46px; }
  .hero-method { margin-top: 30px; }
  .outcome-preview { padding: 56px 16px 68px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-grid article { min-height: 0; }
  .form-card { padding: 24px 18px; }
  .choice-grid, .time-grid, .identity-grid { grid-template-columns: 1fr; }
  .choice-btn { min-height: 64px; }
  .core-summary { padding: 24px 18px; }
  .core-grid { grid-template-columns: 1fr; }
  .core-card, .core-card:nth-child(4), .core-card:nth-child(5), .core-card:last-child { grid-column: 1; min-height: 0; }
  .professional-details > summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; }
  .professional-details > summary small { text-align: left; }
  .dims { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dims .dim:last-child { grid-column: 1 / -1; }
  .policy-update { grid-template-columns: 1fr; gap: 0; }
}

/* ============================ 个人工作台 ============================ */
.insight-workspace {
  position: relative; z-index: 2; max-width: 1180px; margin: 54px auto 40px; padding: 0 28px;
  scroll-margin-top: 82px;
}
.workspace-head {
  display: flex; align-items: end; justify-content: space-between; gap: 28px;
  padding: 30px 0 24px; border-top: 1px solid var(--panel-line);
}
.workspace-head h2 { font: 600 clamp(28px,4vw,42px) var(--serif); }
.workspace-head > div:first-child > p:last-child { margin-top: 6px; color: var(--ink-mute); font-size: 13px; }

.workspace-tabs {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line);
}
.workspace-tab { min-height: 52px; color: var(--ink-soft); background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font: 500 13px var(--sans); }
.workspace-tab:hover { color: var(--gold); }
.workspace-tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }
.workspace-panel { padding: 34px 0 18px; }
.workspace-band { padding: 36px 0; border-top: 1px solid var(--panel-line); }
.workspace-panel > .workspace-band:first-child { border-top: 0; padding-top: 0; }
.workspace-band-head { max-width: 780px; margin-bottom: 24px; }
.workspace-band-head > span { color: var(--gold-soft); font-size: 11px; letter-spacing: 3px; }
.workspace-band-head h3 { margin-top: 7px; font: 600 clamp(22px,3vw,31px) var(--serif); }
.workspace-band-head p { margin-top: 7px; color: var(--ink-mute); font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 36px; }
.dashboard-card { min-height: 230px; padding: 24px; background: rgba(255,255,255,.72); border: 1px solid var(--panel-line); border-radius: 8px; }
.dashboard-card.dashboard-today { color: #f6f4ee; background: #253c35; border-color: #253c35; }
.dashboard-card > span { color: var(--gold-soft); font-size: 11px; }
.dashboard-card.dashboard-today > span { color: #b7d4c8; }
.dashboard-card h3 { margin-top: 25px; font: 600 21px var(--serif); line-height: 1.5; }
.dashboard-card p { margin-top: 12px; color: var(--ink-soft); font-size: 13px; }
.dashboard-card small { display: block; margin-top: 18px; color: var(--ink-mute); font-size: 11px; }
.dashboard-card.dashboard-today p, .dashboard-card.dashboard-today small { color: #d8e2dd; }

.cross-sources { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--panel-line); border-left: 1px solid var(--panel-line); }
.cross-sources > div { min-height: 112px; padding: 18px; background: rgba(255,255,255,.48); border-right: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.cross-sources span, .cross-sources b { display: block; }
.cross-sources span { color: var(--gold-soft); font-size: 11px; }
.cross-sources b { margin-top: 9px; font-size: 13px; line-height: 1.65; }
.cross-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 26px; }
.cross-findings > div { padding-left: 18px; border-left: 3px solid var(--jade); }
.cross-findings > div:last-child { border-left-color: var(--gold); }
.cross-findings b { font: 600 17px var(--serif); }
.cross-findings ul { margin: 10px 0 0 18px; color: var(--ink-soft); font-size: 13px; }
.cross-findings li + li { margin-top: 7px; }

.life-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.life-topic-card { padding: 25px; background: rgba(255,255,255,.7); border: 1px solid var(--panel-line); border-radius: 8px; }
.life-topic-card > span { color: var(--gold-soft); font-size: 11px; }
.life-topic-card h3 { margin-top: 10px; font: 600 22px var(--serif); }
.life-topic-card dl { margin-top: 20px; }
.life-topic-card dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--panel-line); }
.life-topic-card dt { color: var(--gold); font-size: 11px; font-weight: 700; }
.life-topic-card dd { color: var(--ink-soft); font-size: 12px; }
.ai-question-band { margin-top: 40px; }

.astrology-band { padding-top: 0; }
.astrology-result { border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.astrology-signature { display: grid; grid-template-columns: minmax(260px,1.25fr) minmax(360px,1fr); align-items: stretch; }
.astrology-identity { min-width: 0; display: flex; align-items: center; gap: 22px; padding: 28px 0; }
.astrology-identity > span { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font-size: 39px; }
.astrology-identity small { color: var(--gold-soft); font-size: 10px; letter-spacing: 2px; }
.astrology-identity h4 { margin-top: 5px; font: 600 31px var(--serif); }
.astrology-identity p { margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
.astrology-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-left: 1px solid var(--panel-line); }
.astrology-meta > div { min-width: 0; display: grid; align-content: center; padding: 20px; border-left: 1px solid var(--panel-line); }
.astrology-meta > div:first-child { border-left: 0; }
.astrology-meta dt { color: var(--ink-mute); font-size: 10px; }
.astrology-meta dd { margin-top: 8px; overflow-wrap: anywhere; font: 600 15px/1.45 var(--serif); }
.astrology-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 22px 0; }
.astrology-insights article { min-height: 128px; padding: 20px; background: rgba(255,255,255,.56); border-left: 3px solid var(--jade); }
.astrology-insights article:nth-child(2n) { border-left-color: var(--gold); }
.astrology-insights span { color: var(--gold-soft); font-size: 10px; }
.astrology-insights p { margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.astrology-scope { padding: 0 0 20px; color: var(--ink-mute); font-size: 10px; line-height: 1.7; }

.integrated-report-band { margin-top: 40px; }
.ai-report-insight { margin: 0; padding: 0; background: transparent; border-top: 0; }
.ai-report-source-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--panel-line); }
.ai-report-source-title b { font: 600 15px var(--serif); }
.ai-report-source-title span { color: var(--ink-mute); font-size: 11px; }
.ai-report-sources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-left: 1px solid var(--panel-line); }
.ai-source-chip { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 22px 1fr; align-content: center; column-gap: 7px; padding: 10px 13px; background: rgba(255,255,255,.45); border-right: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.ai-source-chip i { grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; display: grid; place-items: center; color: var(--jade); border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-style: normal; }
.ai-source-chip b { overflow-wrap: anywhere; font-size: 11px; }
.ai-source-chip em { color: var(--jade); font-size: 9px; font-style: normal; }
.ai-source-chip.missing { opacity: .62; }
.ai-source-chip.missing i, .ai-source-chip.missing em { color: var(--ink-mute); }
.ai-report-intro { margin-top: 22px; padding: 24px; background: rgba(36,92,92,.11); border-left: 3px solid #3c918a; }
.ai-report-output.ready { margin-top: 0; padding: 24px; background: rgba(36,92,92,.08); border-left: 3px solid #3c918a; }
.ai-report-output.loading, .ai-report-output.error { margin-top: 12px; }

.life-timeline-list { position: relative; display: grid; gap: 0; }
.timeline-stage { position: relative; display: grid; grid-template-columns: 34px 180px minmax(0,1fr); column-gap: 18px; padding: 0 0 30px; }
.timeline-marker { position: relative; grid-row: 1 / span 3; }
.timeline-marker::after { content: ''; position: absolute; left: 10px; top: 22px; bottom: -8px; width: 1px; background: var(--panel-line); }
.timeline-stage:last-child .timeline-marker::after { display: none; }
.timeline-marker span { position: relative; z-index: 1; display: block; width: 21px; height: 21px; margin-top: 4px; background: var(--bg); border: 2px solid var(--ink-mute); border-radius: 50%; }
.timeline-stage.current .timeline-marker span { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(166,70,59,.12); }
.timeline-stage-head span, .timeline-stage-head b, .timeline-stage-head em { display: block; }
.timeline-stage-head span { color: var(--gold-soft); font-size: 11px; }
.timeline-stage-head b { margin-top: 4px; font: 600 17px var(--serif); }
.timeline-stage-head em { margin-top: 3px; color: var(--ink-mute); font-style: normal; font-size: 11px; }
.timeline-stage > h3 { font: 600 22px var(--serif); }
.timeline-stage-grid { grid-column: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; margin-top: 12px; }
.timeline-stage-grid p { color: var(--ink-soft); font-size: 12px; }
.timeline-stage-grid b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 11px; }
.timeline-action { grid-column: 3; margin-top: 13px; padding: 12px 14px; color: var(--ink); background: rgba(47,116,99,.08); border-left: 3px solid var(--jade); font-size: 12px; }
.timeline-stage.past { opacity: .68; }

.year-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.year-card { min-height: 218px; padding: 20px; background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; }
.year-card.current { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.year-card span { color: var(--gold); font-size: 11px; }
.year-card h3 { margin-top: 12px; font: 600 18px var(--serif); }
.year-card > b { display: block; margin-top: 13px; font-size: 12px; }
.year-card p { margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.year-card small { display: block; margin-top: 10px; color: var(--ink-mute); font-size: 10px; }
.month-window-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.month-window { min-height: 205px; padding: 21px; background: rgba(255,255,255,.64); border-top: 3px solid var(--jade); border-radius: 4px; }
.month-window.high { border-top-color: var(--gold); }
.month-window.careful { border-top-color: var(--ink-mute); }
.month-window span { color: var(--gold-soft); font-size: 11px; }
.month-window h3 { margin-top: 10px; font: 600 19px var(--serif); }
.month-window > b { display: block; margin-top: 8px; font-size: 12px; }
.month-window p, .month-window small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }

.calendar-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.calendar-toolbar span { color: var(--gold-soft); font-size: 11px; letter-spacing: 3px; }
.calendar-toolbar h3 { margin-top: 4px; font: 600 30px var(--serif); }
.calendar-toolbar > div:last-child { display: flex; gap: 6px; }
.calendar-toolbar button { min-width: 44px; height: 44px; color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; }
.calendar-week, .rhythm-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-week { margin-top: 24px; border-bottom: 1px solid var(--panel-line); }
.calendar-week span { padding: 8px; color: var(--ink-mute); text-align: center; font-size: 11px; }
.calendar-blank, .calendar-day { min-height: 92px; }
.calendar-day { position: relative; display: grid; align-content: space-between; padding: 10px; color: var(--ink); background: rgba(255,255,255,.46); border: 0; border-right: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); cursor: pointer; text-align: left; }
.calendar-day:nth-child(7n+1) { border-left: 1px solid var(--panel-line); }
.calendar-day > span { font-size: 13px; }
.calendar-day > b { color: var(--ink-mute); font: 500 18px var(--serif); }
.calendar-day > i { position: absolute; right: 9px; bottom: 10px; width: 5px; height: 5px; background: var(--ink-mute); border-radius: 50%; }
.calendar-day.high > i { background: var(--jade); }
.calendar-day.careful > i { background: var(--gold); }
.calendar-day.clash::after { content: '冲'; position: absolute; top: 9px; right: 8px; color: var(--gold); font-size: 9px; }
.calendar-day.has-event { box-shadow: inset 0 -3px 0 #55759a; }
.calendar-day.selected { z-index: 1; box-shadow: inset 0 0 0 2px var(--gold); background: rgba(166,70,59,.06); }
.calendar-detail { min-height: 138px; margin-top: 22px; padding: 22px; color: #eef3f0; background: #253c35; border-radius: 8px; }
.calendar-detail span { color: #b7d4c8; font-size: 11px; }
.calendar-detail h3 { margin-top: 9px; font: 600 20px var(--serif); }
.calendar-detail p { margin-top: 7px; color: #d8e2dd; font-size: 12px; }
.calendar-detail small { display: block; margin-top: 12px; color: #aabbb4; }
.calendar-actions { display: grid; grid-template-columns: 170px minmax(220px,1fr) auto auto; align-items: end; gap: 10px; margin-top: 22px; }
.calendar-actions button, .profile-editor button, .share-controls button, .sync-actions button, .backup-actions button, .backup-actions label {
  min-height: 46px; padding: 0 16px; color: #fff; background: var(--ink); border: 0; border-radius: 6px; cursor: pointer; font: 500 12px var(--sans); display: inline-flex; align-items: center; justify-content: center;
}
.calendar-events { display: grid; gap: 7px; margin-top: 18px; }
.calendar-event { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 14px; background: rgba(255,255,255,.52); border-left: 3px solid #55759a; }
.calendar-event span { color: var(--ink-mute); font-size: 11px; }
.calendar-event b { font-size: 13px; }
.calendar-event button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 20px; }

.tool-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.tool-form-grid .field-wide { grid-column: span 2; }
.trait-options { grid-column: span 2; padding: 13px; border: 1px solid var(--panel-line); border-radius: 6px; }
.trait-options legend { padding: 0 6px; color: var(--ink-soft); font-size: 12px; }
.trait-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-right: 14px; color: var(--ink-soft); font-size: 12px; }
.decision-tool > .btn-primary { min-height: 46px; font-size: 13px; box-shadow: none; }
.rectify-result { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.speculative-note { grid-column: 1 / -1; padding: 13px; color: var(--gold); background: rgba(166,70,59,.06); border-left: 3px solid var(--gold); font-size: 12px; }
.rectify-result article, .backtest-result article { position: relative; padding: 20px; background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; }
.rectify-result span, .backtest-result span { color: var(--gold-soft); font-size: 11px; }
.rectify-result h3, .backtest-result h3 { margin-top: 7px; font: 600 18px var(--serif); }
.rectify-result article > b { display: block; margin-top: 7px; color: var(--jade); font-size: 12px; }
.rectify-result p, .backtest-result p { margin-top: 9px; color: var(--ink-soft); font-size: 12px; }
.rectify-result article > button { min-height: 42px; margin-top: 15px; padding: 0 13px; color: var(--gold); background: transparent; border: 1px solid var(--gold); border-radius: 6px; cursor: pointer; }

.option-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.option-input { padding: 20px; background: rgba(255,255,255,.56); border: 1px solid var(--panel-line); border-radius: 8px; }
.option-input > input { width: 100%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid var(--panel-line); border-radius: 6px; font: 600 16px var(--serif); }
.option-input label { display: grid; grid-template-columns: 90px 30px 1fr; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink-soft); font-size: 12px; }
.option-input output { color: var(--gold); font-weight: 700; }
.option-input input[type="range"] { width: 100%; accent-color: var(--gold); }
.comparison-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.comparison-result article { padding: 20px; background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; }
.comparison-result article > span { color: var(--gold); font-size: 12px; }
.comparison-result h3 { font: 600 20px var(--serif); }
.comparison-result article > div { display: grid; grid-template-columns: 72px 1fr 32px; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; }
.comparison-result article i { height: 6px; overflow: hidden; background: rgba(32,38,33,.09); border-radius: 4px; }
.comparison-result article em { display: block; height: 100%; background: var(--jade); }
.comparison-summary, .comparison-result > small { grid-column: 1 / -1; }
.comparison-summary { padding: 16px; color: var(--ink); background: rgba(47,116,99,.08); border-left: 3px solid var(--jade); }
.comparison-result > small { color: var(--ink-mute); }
.backtest-result { display: grid; gap: 9px; margin-top: 20px; }
.backtest-result article > small { display: block; margin-top: 8px; color: var(--ink-mute); }
.backtest-result article > button { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; color: var(--red); background: transparent; border: 0; cursor: pointer; font-size: 19px; }

.profile-editor { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(150px,.5fr) minmax(220px,1.2fr) auto; align-items: end; gap: 10px; }
.profile-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.profile-library-card { min-height: 210px; padding: 20px; background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; }
.profile-library-card.active { border-color: var(--jade); box-shadow: inset 0 3px 0 var(--jade); }
.profile-library-card > span { color: var(--gold-soft); font-size: 11px; }
.profile-library-card h3 { margin-top: 8px; font: 600 20px var(--serif); }
.profile-library-card p { margin-top: 9px; color: var(--ink-soft); font-size: 12px; }
.profile-library-card small { display: block; min-height: 38px; margin-top: 10px; color: var(--ink-mute); }
.profile-library-card > div { display: flex; gap: 7px; margin-top: 14px; }
.profile-library-card button, .share-record button, .share-record a { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; border: 1px solid var(--panel-line); border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 11px; }
.danger-link { color: var(--red) !important; background: transparent !important; border-color: rgba(182,67,59,.32) !important; }
.empty-state { padding: 20px; color: var(--ink-mute); background: rgba(32,38,33,.03); font-size: 12px; }

.share-controls { display: flex; align-items: end; gap: 10px; }
.share-controls label { color: var(--ink-soft); font-size: 12px; }
.share-controls select { min-height: 46px; padding: 0 12px; background: #fff; border: 1px solid var(--panel-line); border-radius: 6px; }
.share-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.share-preview:empty { display: none; }
.share-preview > span { grid-column: 1 / -1; color: var(--jade); font-size: 11px; }
.share-preview > div { padding: 15px; background: rgba(255,255,255,.58); border-left: 3px solid var(--gold); }
.share-preview b { font-size: 12px; }
.share-preview p, .share-preview small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.share-records { display: grid; gap: 7px; margin-top: 18px; }
.share-record { display: grid; grid-template-columns: 100px auto auto auto 1fr; align-items: center; gap: 7px; padding: 9px; background: rgba(255,255,255,.52); }
.share-record > span { font-weight: 700; color: var(--gold); }
.share-record > small { color: var(--ink-mute); text-align: right; }

.sync-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sync-actions, .backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sync-actions button { background: var(--ink); }
.sync-status { margin-top: 15px; padding: 13px; color: var(--jade); background: rgba(47,116,99,.07); border-left: 3px solid var(--jade); font-size: 12px; }
.sync-status.error { color: var(--red); background: rgba(182,67,59,.06); border-left-color: var(--red); }
.backup-actions input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.relationship-graph { margin-top: 22px; }
.relationship-graph:empty { display: none; }
.relationship-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.relationship-summary > div { padding: 20px; background: rgba(255,255,255,.64); border-left: 3px solid var(--jade); }
.relationship-summary > div:last-child { border-left-color: var(--gold); }
.relationship-summary span, .relationship-summary b { display: block; }
.relationship-summary span { color: var(--gold-soft); font-size: 11px; }
.relationship-summary b { margin-top: 7px; font: 600 20px var(--serif); }
.relationship-summary p { margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.relationship-dimensions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.relationship-dimensions article { min-height: 230px; padding: 17px; background: rgba(32,38,33,.035); border: 1px solid var(--panel-line); border-radius: 8px; }
.relationship-dimensions span { color: var(--gold-soft); font-size: 11px; }
.relationship-dimensions article > b { display: block; margin-top: 8px; font: 600 25px var(--serif); }
.relationship-dimensions article > i { display: block; height: 6px; margin-top: 8px; overflow: hidden; background: rgba(32,38,33,.09); border-radius: 4px; }
.relationship-dimensions article > i em { display: block; height: 100%; background: var(--jade); }
.relationship-dimensions strong { display: block; margin-top: 8px; font-size: 12px; }
.relationship-dimensions p, .relationship-dimensions small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 10px; }
.relationship-context { margin-top: 12px; color: var(--ink-mute); font-size: 11px; }
.hh-overview-modern { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 20px; background: rgba(255,255,255,.62); border-left: 3px solid var(--gold); }
.hh-overview-modern span { display: block; color: var(--gold-soft); font-size: 11px; }
.hh-overview-modern > div:first-child b { display: block; margin-top: 4px; color: var(--gold); font: 600 36px var(--serif); }
.hh-overview-modern h3 { margin-top: 4px; font: 600 21px var(--serif); }
.hh-overview-modern p { margin-top: 5px; color: var(--ink-soft); font-size: 12px; }
.zj-modern { margin-top: 6px; color: var(--ink-soft); font-size: 11px; }
.zj-modern b { display: inline-block; min-width: 72px; margin-right: 7px; color: var(--ink); }

.compute-loader { margin-top: 14px; padding: 16px; background: rgba(47,116,99,.065); border: 1px solid rgba(47,116,99,.18); border-radius: 8px; }
.compute-loader > div { display: flex; align-items: center; gap: 10px; }
.compute-loader > div > span { width: 16px; height: 16px; border: 2px solid rgba(47,116,99,.25); border-top-color: var(--jade); border-radius: 50%; animation: workspace-spin .8s linear infinite; }
.compute-loader b { color: var(--jade); font-size: 13px; }
.compute-loader ol { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-top: 13px; list-style: none; }
.compute-loader li { padding-top: 8px; color: var(--ink-mute); border-top: 2px solid var(--panel-line); font-size: 9px; text-align: center; }
.compute-loader li.active { color: var(--jade); border-top-color: var(--jade); }
.compute-loader li.done { color: var(--ink-soft); border-top-color: rgba(47,116,99,.45); }

.mobile-workspace-nav { display: none; }
.ai-question-form { display: grid; gap: 12px; }
.ai-question-form textarea { width: 100%; min-height: 110px; resize: vertical; padding: 14px; color: var(--ink); background: rgba(255,255,255,.75); border: 1px solid var(--panel-line); border-radius: 8px; font: 14px/1.7 var(--sans); }
.ai-question-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-question-suggestions button { min-height: 40px; padding: 0 13px; color: var(--ink-soft); background: rgba(255,255,255,.6); border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; }
.ai-question-submit { min-height: 48px; justify-self: start; padding: 0 20px; color: #fff; background: var(--gold); border: 0; border-radius: 6px; cursor: pointer; }

/* 匿名分享页 */
.shared-main { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 130px 24px 90px; }
.shared-header { padding-bottom: 28px; border-bottom: 1px solid var(--panel-line); }
.shared-header h1 { font: 600 clamp(34px,6vw,58px) var(--serif); }
.shared-header > p:last-child { max-width: 680px; margin-top: 12px; color: var(--ink-mute); }
.shared-loading, .shared-error { margin-top: 32px; padding: 28px; background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; }
.shared-error h2 { font: 600 25px var(--serif); }
.shared-error p { margin-top: 8px; color: var(--ink-soft); }
.shared-error a { display: inline-block; margin-top: 18px; color: var(--gold); }
.shared-code { margin: 28px 0 14px; color: var(--jade); font-size: 11px; }
.shared-core { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.shared-core article { min-height: 176px; padding: 21px; background: rgba(255,255,255,.68); border-top: 3px solid var(--gold); border-radius: 4px; }
.shared-core span { color: var(--gold-soft); font-size: 11px; }
.shared-core h2 { margin-top: 13px; font: 600 21px var(--serif); }
.shared-core p { margin-top: 9px; color: var(--ink-soft); font-size: 12px; }
.shared-today { margin-top: 12px; padding: 24px; color: #eef3f0; background: #253c35; border-radius: 8px; }
.shared-today span { color: #b7d4c8; font-size: 11px; }
.shared-today h2 { margin-top: 9px; font: 600 23px var(--serif); }
.shared-today p, .shared-today small { display: block; margin-top: 8px; color: #d8e2dd; }
.shared-boundary { margin-top: 18px; color: var(--ink-mute); font-size: 11px; }

/* 独立知识路由 */
.guide-main { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 132px 24px 90px; }
.guide-hero { padding-bottom: 38px; border-bottom: 1px solid var(--panel-line); }
.guide-hero h1 { max-width: 760px; font: 600 clamp(38px,7vw,68px)/1.2 var(--serif); }
.guide-hero > p:last-of-type { max-width: 720px; margin-top: 18px; color: var(--ink-soft); font-size: 16px; }
.guide-hero .btn-primary { margin-top: 25px; }
.guide-section { display: grid; grid-template-columns: 210px 1fr; gap: 38px; padding: 38px 0; border-bottom: 1px solid var(--panel-line); }
.guide-section h2 { font: 600 24px var(--serif); }
.guide-section > div { color: var(--ink-soft); }
.guide-section p + p, .guide-section ul { margin-top: 13px; }
.guide-section ul { margin-left: 20px; }
.guide-section li + li { margin-top: 7px; }
.guide-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.guide-links a { min-height: 92px; padding: 18px; color: var(--ink); background: rgba(255,255,255,.62); border: 1px solid var(--panel-line); border-radius: 8px; text-decoration: none; }
.guide-links b, .guide-links span { display: block; }
.guide-links span { margin-top: 5px; color: var(--ink-mute); font-size: 12px; }

@keyframes workspace-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .workspace-tabs { grid-template-columns: repeat(3,1fr); }
  .dashboard-grid, .month-window-grid, .profile-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-card:last-child { grid-column: 1 / -1; }
  .cross-sources { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .year-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .relationship-dimensions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tool-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-editor { grid-template-columns: 1fr 1fr; }
  .profile-editor .field-wide { grid-column: 1 / -1; }
  .calendar-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body:has(.mobile-workspace-nav:not(.hidden)) { padding-bottom: 76px; }
  .insight-workspace { margin-top: 34px; padding: 0 16px; }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .workspace-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .workspace-tabs::-webkit-scrollbar { display: none; }
  .workspace-tab { flex: 0 0 108px; }
  .workspace-panel { padding-top: 24px; }
  .dayun-track { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .dayun-cell { min-width: 0; }
  .dashboard-grid, .life-topic-grid, .month-window-grid, .year-card-grid, .profile-library-grid, .rectify-result, .option-compare-grid, .comparison-result, .relationship-summary { grid-template-columns: 1fr; }
  .dashboard-card, .dashboard-card:last-child { grid-column: 1; min-height: 0; }
  .cross-sources { grid-template-columns: 1fr; }
  .cross-findings { grid-template-columns: 1fr; gap: 18px; }
  .astrology-signature { grid-template-columns: 1fr; }
  .astrology-meta { border-top: 1px solid var(--panel-line); border-left: 0; }
  .astrology-insights { grid-template-columns: 1fr; }
  .astrology-insights article { min-height: 0; }
  .ai-report-sources { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-report-source-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ai-report-intro { align-items: stretch; flex-direction: column; padding: 20px; }
  .ai-report-generate { width: 100%; }
  .life-topic-card dl > div { grid-template-columns: 66px 1fr; }
  .timeline-stage { grid-template-columns: 28px minmax(0,1fr); column-gap: 10px; }
  .timeline-stage-head { grid-column: 2; }
  .timeline-stage > h3, .timeline-stage-grid, .timeline-action { grid-column: 2; }
  .timeline-stage > h3 { margin-top: 9px; }
  .timeline-stage-grid { grid-template-columns: 1fr; }
  .year-card { min-height: 0; }
  .calendar-blank, .calendar-day { min-height: 68px; }
  .calendar-day { padding: 7px; }
  .calendar-day > b { font-size: 14px; }
  .calendar-actions, .profile-editor, .sync-form { grid-template-columns: 1fr; }
  .tool-form-grid { grid-template-columns: 1fr; }
  .tool-form-grid .field-wide, .trait-options { grid-column: 1; }
  .option-input label { grid-template-columns: 80px 24px 1fr; }
  .comparison-summary, .comparison-result > small { grid-column: 1; }
  .relationship-dimensions { grid-template-columns: 1fr 1fr; }
  .relationship-dimensions article { min-height: 0; }
  .share-preview { grid-template-columns: 1fr; }
  .share-preview > span { grid-column: 1; }
  .share-record { grid-template-columns: 84px 1fr 1fr; }
  .share-record > small { grid-column: 1 / -1; text-align: left; }
  .compute-loader ol { grid-template-columns: 1fr; }
  .compute-loader li { padding: 5px 0 5px 10px; border-top: 0; border-left: 2px solid var(--panel-line); text-align: left; }
  .compute-loader li.active, .compute-loader li.done { border-left-color: var(--jade); }
  .mobile-workspace-nav {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr);
    min-height: 68px; padding-bottom: env(safe-area-inset-bottom); background: rgba(248,246,240,.96); border-top: 1px solid var(--panel-line); backdrop-filter: blur(16px);
  }
  .mobile-workspace-nav.hidden { display: none; }
  .mobile-workspace-nav button { min-width: 0; min-height: 62px; display: grid; place-content: center; gap: 1px; color: var(--ink-mute); background: transparent; border: 0; cursor: pointer; font-size: 10px; }
  .mobile-workspace-nav button span { width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
  .mobile-workspace-nav button.active { color: var(--gold); font-weight: 700; }
  .guide-section { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 430px) {
  .astrology-identity { gap: 14px; padding: 22px 0; }
  .astrology-identity > span { flex-basis: 62px; width: 62px; height: 62px; font-size: 32px; }
  .astrology-identity h4 { font-size: 26px; }
  .astrology-meta { grid-template-columns: 1fr; }
  .astrology-meta > div { min-height: 62px; border-top: 1px solid var(--panel-line); border-left: 0; }
  .astrology-meta > div:first-child { border-top: 0; }
  .ai-report-sources { grid-template-columns: 1fr; }
  .relationship-dimensions { grid-template-columns: 1fr; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar > div:last-child { width: 100%; }
  .calendar-toolbar button { flex: 1; }
  .calendar-week span { padding: 6px 2px; }
  .calendar-blank, .calendar-day { min-height: 60px; }
  .calendar-day > b { font-size: 12px; }
  .calendar-day.clash::after { top: 6px; right: 5px; }
  .share-controls { align-items: stretch; flex-direction: column; }
  .sync-actions, .backup-actions { display: grid; grid-template-columns: 1fr; }
  .hh-overview-modern, .shared-core { grid-template-columns: 1fr; }
  .guide-links { grid-template-columns: 1fr; }
}

/* ============================ 每日首页与界面偏好 ============================ */
.preference-controls { display: flex; align-items: center; gap: 7px; }
.preference-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--panel-line); border-radius: 50%; cursor: pointer;
  font: 700 12px var(--sans); transition: color .2s, border-color .2s, background .2s;
}
.preference-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(166,70,59,.05); }
.theme-toggle { font-size: 18px; font-weight: 400; }
.profile-library-card { position: relative; }
.profile-active-label { position: absolute; top: 16px; right: 16px; color: var(--jade); font-size: 9px; font-style: normal; letter-spacing: 1px; }
.profile-library-card button:disabled { opacity: .58; cursor: default; }

body.has-active-profile .hero,
body.has-active-profile .outcome-preview,
body.has-active-profile .saved-bar { display: none; }

.daily-home {
  position: relative; z-index: 2; min-height: calc(100vh - 72px); padding: 116px 24px 58px;
  background: var(--bg-2); border-bottom: 1px solid var(--panel-line);
}
.daily-home-inner { width: min(1180px,100%); margin: 0 auto; }
.daily-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--panel-line); }
.daily-home-head .eyebrow { margin-bottom: 8px; }
.daily-home-head h1 { font: 700 clamp(32px,5vw,54px) var(--serif); letter-spacing: 0; line-height: 1.2; }
.daily-home-head > div:first-child > p:last-child { margin-top: 8px; color: var(--ink-mute); font-size: 13px; }
.daily-home-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.daily-home-actions button {
  min-height: 42px; padding: 0 15px; color: var(--ink); background: transparent;
  border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; font: 600 12px var(--sans);
}
.daily-home-actions button:hover, .daily-home-actions button:first-child { color: #fff; background: var(--ink); border-color: var(--ink); }

.daily-home-datebar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px auto; align-items: center; gap: 10px; padding: 20px 0; }
.daily-home-datebar > button { width: 44px; height: 44px; color: var(--ink); background: rgba(255,255,255,.55); border: 1px solid var(--panel-line); border-radius: 6px; cursor: pointer; font-size: 20px; }
.daily-home-datebar > button:hover { color: #fff; background: var(--gold); border-color: var(--gold); }
.daily-home-datebar > div { min-width: 0; text-align: center; }
.daily-home-datebar b, .daily-home-datebar span { display: block; }
.daily-home-datebar b { font: 600 19px var(--serif); }
.daily-home-datebar span { margin-top: 2px; color: var(--ink-mute); font-size: 12px; }
.daily-home-datebar .daily-home-today { width: auto; padding: 0 15px; font-size: 12px; }

.daily-home-overview { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }
.daily-almanac, .daily-reading { min-width: 0; padding: 28px; }
.daily-almanac { border-right: 1px solid var(--panel-line); }
.daily-almanac-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.daily-almanac-title span { color: var(--gold-soft); font-size: 11px; letter-spacing: 3px; }
.daily-almanac-title strong { color: var(--gold); font: 700 31px var(--serif); }
.daily-pillar-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: 26px; background: var(--panel-line); border: 1px solid var(--panel-line); }
.daily-pillar-grid > div { min-height: 88px; padding: 14px 10px; text-align: center; background: rgba(255,255,255,.56); }
.daily-pillar-grid span, .daily-pillar-grid b { display: block; }
.daily-pillar-grid span { color: var(--ink-mute); font-size: 10px; }
.daily-pillar-grid b { margin-top: 9px; font: 700 20px var(--serif); }
.daily-reading { display: grid; grid-template-columns: 126px minmax(0,1fr); align-items: center; gap: 26px; }
.daily-score { width: 126px; height: 126px; display: grid; place-content: center; text-align: center; border: 8px solid rgba(47,116,99,.14); outline: 1px solid var(--jade); border-radius: 50%; }
.daily-score span { color: var(--jade); font: 700 45px var(--serif); line-height: 1; }
.daily-score small { margin-top: 5px; color: var(--ink-mute); font-size: 10px; }
.daily-reading-label { color: var(--gold-soft); font-size: 11px; letter-spacing: 2px; }
.daily-reading h2 { margin-top: 7px; font: 700 29px var(--serif); }
.daily-reading p { margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

.daily-home-focus { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr); gap: 10px; padding: 22px 0; }
.daily-home-focus > article { min-height: 142px; padding: 20px; background: rgba(255,255,255,.55); border: 1px solid var(--panel-line); border-radius: 8px; }
.daily-home-focus > article > span { color: var(--gold-soft); font-size: 11px; }
.daily-home-focus > article > b { display: block; margin-top: 16px; font: 600 16px var(--serif); line-height: 1.75; }
.daily-home-dimensions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.daily-home-dimensions > div { min-width: 0; display: grid; align-content: center; text-align: center; }
.daily-home-dimensions span { color: var(--ink-mute); font-size: 10px; overflow-wrap: anywhere; }
.daily-home-dimensions b { margin-top: 7px; color: var(--gold); font: 700 19px var(--serif); }
.daily-home-dimensions i { height: 3px; margin-top: 8px; background: rgba(32,38,33,.09); overflow: hidden; }
.daily-home-dimensions em { display: block; height: 100%; background: var(--jade); }

.daily-home-almanac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.daily-yiji { min-height: 118px; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--panel-line); border-radius: 8px; }
.daily-yiji > div:first-child { text-align: center; }
.daily-yiji > div:first-child span { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; font: 700 22px var(--serif); }
.daily-yiji > div:first-child b { display: block; margin-top: 6px; color: var(--ink-mute); font-size: 10px; }
.daily-yi > div:first-child span { color: var(--green); border: 1px solid var(--green); }
.daily-ji > div:first-child span { color: var(--red); border: 1px solid var(--red); }
.daily-yiji > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.daily-yiji em { padding: 5px 9px; color: var(--ink-soft); background: rgba(255,255,255,.55); border: 1px solid var(--panel-line); border-radius: 4px; font-size: 11px; font-style: normal; }

/* 經典黑金主題，保留初始版本的氣質與對比度。 */
html[data-theme="classic"] {
  color-scheme: dark;
  --bg: #0a0b0f;
  --bg-2: #0f1117;
  --panel: rgba(255,255,255,.04);
  --panel-line: rgba(255,255,255,.1);
  --ink: #f4f1ea;
  --ink-soft: #b9b6ae;
  --ink-mute: #807d75;
  --gold: #d9b978;
  --gold-soft: #c9a15a;
  --jade: #6bc0a0;
  --red: #e0655c;
  --green: #5aa87f;
}
html[data-theme="classic"] body { background: var(--bg); }
html[data-theme="classic"] #stars { opacity: 1; }
html[data-theme="classic"] .nav { background: rgba(10,11,15,.82); border-bottom-color: rgba(255,255,255,.07); }
html[data-theme="classic"] .preference-toggle { background: rgba(217,185,120,.05); }
html[data-theme="classic"] .hero { min-height: 100vh; padding-top: 84px; }
html[data-theme="classic"] .hero-glow { display: block; position: absolute; top: 42%; left: 50%; width: 780px; height: 780px; transform: translate(-50%,-50%); background: radial-gradient(circle,rgba(217,185,120,.13),rgba(217,185,120,.04) 40%,transparent 70%); filter: blur(20px); z-index: -1; }
html[data-theme="classic"] .hero-title { color: var(--gold); background: linear-gradient(180deg,#fbf6ea,#d9b978); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="classic"] .btn-primary { color: #1a1710; background: linear-gradient(135deg,#e8ce97,#cba35c); box-shadow: 0 8px 30px rgba(217,185,120,.24); }
html[data-theme="classic"] .btn-primary:hover { box-shadow: 0 14px 44px rgba(217,185,120,.38); }
html[data-theme="classic"] .form-card,
html[data-theme="classic"] .hehun-card,
html[data-theme="classic"] .zeji-card,
html[data-theme="classic"] .divination-card { background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
html[data-theme="classic"] .field input,
html[data-theme="classic"] .field select,
html[data-theme="classic"] .field textarea,
html[data-theme="classic"] .g-btn,
html[data-theme="classic"] .hh-g-btn,
html[data-theme="classic"] .choice-btn { color: var(--ink); background: rgba(0,0,0,.28); }
html[data-theme="classic"] .field select option { color: var(--ink); background: #14161d; }
html[data-theme="classic"] .g-btn.active,
html[data-theme="classic"] .hh-g-btn.active,
html[data-theme="classic"] .method-btn.active,
html[data-theme="classic"] .seg-btn.active,
html[data-theme="classic"] .time-mode-btn.active { color: #1a1710; background: linear-gradient(135deg,#e8ce97,#cba35c); border-color: transparent; }
html[data-theme="classic"] .outcome-grid article,
html[data-theme="classic"] .professional-details > summary,
html[data-theme="classic"] .dashboard-card,
html[data-theme="classic"] .cross-sources > div,
html[data-theme="classic"] .life-topic-card,
html[data-theme="classic"] .astrology-insights article,
html[data-theme="classic"] .ai-source-chip,
html[data-theme="classic"] .year-card,
html[data-theme="classic"] .month-window,
html[data-theme="classic"] .calendar-toolbar button,
html[data-theme="classic"] .calendar-day,
html[data-theme="classic"] .calendar-event,
html[data-theme="classic"] .profile-library-card,
html[data-theme="classic"] .rectify-result article,
html[data-theme="classic"] .backtest-result article,
html[data-theme="classic"] .option-input,
html[data-theme="classic"] .daily-home-focus > article,
html[data-theme="classic"] .daily-pillar-grid > div,
html[data-theme="classic"] .daily-yiji,
html[data-theme="classic"] .daily-yiji em { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .core-card,
html[data-theme="classic"] .form-control-row,
html[data-theme="classic"] .time-status,
html[data-theme="classic"] .daily-focus-grid > div,
html[data-theme="classic"] .dim,
html[data-theme="classic"] .yiji-col,
html[data-theme="classic"] .hl-item,
html[data-theme="classic"] .dayun-cell,
html[data-theme="classic"] .ln-cell,
html[data-theme="classic"] .pf-card,
html[data-theme="classic"] .zw-cell,
html[data-theme="classic"] .zw-row,
html[data-theme="classic"] .zj-item,
html[data-theme="classic"] .hehun-person,
html[data-theme="classic"] .hh-score-wrap,
html[data-theme="classic"] .hh-factor,
html[data-theme="classic"] .reading-summary,
html[data-theme="classic"] .gua-card,
html[data-theme="classic"] .body-use-item,
html[data-theme="classic"] .phase-item,
html[data-theme="classic"] .qimen-keyfacts > div,
html[data-theme="classic"] .oracle-summary,
html[data-theme="classic"] .oracle-thread,
html[data-theme="classic"] .rule-reading,
html[data-theme="classic"] .dm-pillar,
html[data-theme="classic"] .dm-zw-row { background: rgba(0,0,0,.22); }
html[data-theme="classic"] .qimen-palace { background: #12141a; }
html[data-theme="classic"] .palace-main strong { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .share-pop { background: #14161d; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
html[data-theme="classic"] .toast { color: var(--ink); background: rgba(20,22,29,.96); }
html[data-theme="classic"] .dm-panel { box-shadow: 0 40px 100px rgba(0,0,0,.6); }

/* ============================ 报告图片与微信分享 ============================ */
.report-share-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line);
}
.report-share-label { color: var(--ink-mute); font-size: 11px; }
.report-share-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: rgba(255,255,255,.58);
  color: var(--ink);
  font: 600 12px var(--sans);
  cursor: pointer;
}
.report-share-actions button:hover { border-color: var(--gold); background: rgba(255,255,255,.86); }
.report-share-actions button[data-report-wechat] { border-color: rgba(39,109,105,.44); color: var(--jade); }
.report-share-actions i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(32,38,33,.06); font: 700 13px var(--sans); font-style: normal; }
.report-share-actions.is-busy { opacity: .55; }
.report-share-actions.is-busy button { cursor: wait; }

.support-mail-button {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 88;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: rgba(244,240,231,.94);
  box-shadow: 0 10px 28px rgba(34,38,35,.13);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.support-mail-button span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--sans); }
.support-mail-button b { font-size: 11px; }
.support-mail-button:hover { border-color: var(--gold); }

.report-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 310;
  max-width: min(88vw, 520px);
  padding: 12px 18px;
  border-radius: 6px;
  background: rgba(32,38,33,.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s, transform .2s;
}
.report-share-toast.show { opacity: 1; transform: translate(-50%, 0); }

.report-export-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  z-index: -1;
  width: 760px;
  padding: 20px;
  background: #f4f0e7;
  pointer-events: none;
}
.report-export-card {
  width: 720px;
  box-sizing: border-box;
  padding: 40px;
  background: #f4f0e7;
  color: #202621;
  font-family: var(--sans);
  border: 1px solid rgba(36,42,38,.2);
}
.report-export-header { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid rgba(36,42,38,.18); }
.report-export-header > div:first-child b { display: block; color: #a6463b; font: 700 22px var(--serif); letter-spacing: 0; }
.report-export-header > div:first-child span { display: block; margin-top: 4px; color: #806c4f; font-size: 10px; letter-spacing: 2px; }
.report-export-header > div:last-child > span { color: #806c4f; font-size: 9px; letter-spacing: 1.5px; }
.report-export-header h1 { margin-top: 5px; color: #202621; font: 700 25px var(--serif); letter-spacing: 0; }
.report-export-content { width: 100%; margin: 28px 0 0 !important; max-width: none !important; max-height: none !important; overflow: visible !important; transform: none !important; }
.report-export-content::before, .report-export-content::after { display: none !important; }
.report-export-content .ai-output.ready { display: block; }
.report-export-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(36,42,38,.18); }
.report-export-footer p { color: #687169; font-size: 10px; line-height: 1.6; }
.report-export-footer p + p { margin-top: 4px; }

.report-export-stage[data-theme="classic"] { background: #0a0b0f; }
.report-export-stage[data-theme="classic"] .report-export-card { background: #0a0b0f; color: #f4f1ea; border-color: rgba(217,185,120,.32); }
.report-export-stage[data-theme="classic"] .report-export-header { border-color: rgba(217,185,120,.26); }
.report-export-stage[data-theme="classic"] .report-export-header > div:first-child b,
.report-export-stage[data-theme="classic"] .report-export-header h1 { color: #e2c988; }
.report-export-stage[data-theme="classic"] .report-export-header > div:first-child span,
.report-export-stage[data-theme="classic"] .report-export-header > div:last-child > span { color: #9a8863; }
.report-export-stage[data-theme="classic"] .report-export-footer { border-color: rgba(217,185,120,.22); }
.report-export-stage[data-theme="classic"] .report-export-footer p { color: #a49f93; }

body.report-preview-open { overflow: hidden; }
.report-share-preview { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; }
.report-share-preview.hidden { display: none; }
.report-preview-backdrop { position: absolute; inset: 0; background: rgba(20,24,21,.72); backdrop-filter: blur(7px); }
.report-preview-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: var(--panel-solid, #f4f0e7);
  box-shadow: 0 28px 80px rgba(10,13,11,.34);
}
.report-preview-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.report-preview-panel > header span { color: var(--gold); font-size: 9px; letter-spacing: 2px; }
.report-preview-panel > header h2 { margin-top: 4px; font: 700 20px var(--serif); }
.report-preview-panel > header button { width: 38px; height: 38px; border: 1px solid var(--panel-line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; }
.report-preview-hint, .report-preview-privacy { margin-top: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.report-preview-image { min-height: 180px; margin-top: 14px; overflow: auto; border: 1px solid var(--panel-line); background: rgba(32,38,33,.04); }
.report-preview-image img { display: block; width: 100%; height: auto; }
.report-preview-privacy { color: var(--ink-mute); font-size: 10px; }
.report-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.report-preview-actions a, .report-preview-actions button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--panel-line); border-radius: 6px; background: var(--ink); color: #fff; font: 600 12px var(--sans); text-decoration: none; cursor: pointer; }
.report-preview-actions button { background: #276d69; }
.report-preview-actions i { font-style: normal; font-size: 16px; }

html[data-theme="classic"] .report-share-actions button { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .report-share-actions button:hover { background: rgba(255,255,255,.08); }
html[data-theme="classic"] .support-mail-button { background: rgba(15,17,23,.94); box-shadow: 0 12px 32px rgba(0,0,0,.34); }
html[data-theme="classic"] .support-mail-button span { background: var(--gold); color: #15130e; }
html[data-theme="classic"] .report-preview-panel { background: #111319; }

@media (max-width: 620px) {
  .report-share-actions { grid-template-columns: 1fr 1fr; }
  .report-share-label { grid-column: 1 / -1; }
  .report-share-actions button { width: 100%; padding: 0 8px; }
  .support-mail-button { right: 14px; bottom: 78px; padding-right: 9px; }
  .support-mail-button b { display: none; }
  .report-preview-panel { padding: 17px; max-height: calc(100vh - 20px); }
  .report-preview-image { max-height: 58vh; }
  .report-preview-actions { grid-template-columns: 1fr; }
}
html[data-theme="classic"] .daily-home { background: #0d0f14; }
html[data-theme="classic"] .daily-home-datebar > button { background: rgba(255,255,255,.04); }
html[data-theme="classic"] .daily-home-actions button:first-child { color: #1a1710; background: var(--gold); border-color: var(--gold); }
html[data-theme="classic"] .daily-home-dimensions i { background: rgba(255,255,255,.09); }
html[data-theme="classic"] .mobile-workspace-nav { background: rgba(10,11,15,.96); }

@media (max-width: 900px) {
  .nav-links { gap: 16px; }
  .daily-home-overview { grid-template-columns: 1fr; }
  .daily-almanac { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .daily-home-focus { grid-template-columns: 1fr 1fr; }
  .daily-home-dimensions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav-inner { padding: 12px 14px; }
  .nav-actions { gap: 7px; }
  .preference-controls { gap: 5px; }
  .preference-toggle, .music-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .daily-home { min-height: 0; padding: 94px 16px 38px; }
  .daily-home-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .daily-home-actions { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  .daily-home-actions button { min-width: 0; padding: 0 7px; }
  .daily-home-datebar { grid-template-columns: 40px minmax(0,1fr) 40px; }
  .daily-home-datebar > button { width: 40px; height: 40px; }
  .daily-home-datebar .daily-home-today { grid-column: 1 / -1; width: 100%; }
  .daily-almanac, .daily-reading { padding: 22px 16px; }
  .daily-pillar-grid { grid-template-columns: repeat(2,1fr); }
  .daily-reading { grid-template-columns: 94px minmax(0,1fr); gap: 18px; }
  .daily-score { width: 94px; height: 94px; border-width: 6px; }
  .daily-score span { font-size: 34px; }
  .daily-reading h2 { font-size: 24px; }
  .daily-home-focus { grid-template-columns: 1fr; }
  .daily-home-dimensions { grid-column: 1; grid-template-columns: repeat(5,1fr); }
  .daily-home-almanac-row { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand { font-size: 18px; letter-spacing: 2px; }
  .brand-en { display: none; }
  .daily-home-actions { grid-template-columns: 1fr; }
  .daily-home-focus > article { min-height: 0; }
  .daily-home-dimensions { grid-template-columns: repeat(3,1fr); }
  .daily-yiji { grid-template-columns: 58px minmax(0,1fr); padding: 16px 12px; }
}
