/* =========================
   八字解读 · 样式
   ========================= */

:root {
  --bg: #f7f3ea;
  --bg-card: #fffdf8;
  --ink: #1a1f2e;
  --ink-soft: #4a4f5e;
  --ink-mute: #8a8f9c;
  --line: #e6dfd1;
  --accent: #a87842;
  --accent-deep: #8a5d2e;
  --gold: #c19a4f;
  --wx-jin:  #c9a13a;
  --wx-mu:   #3d8a4f;
  --wx-shui: #2e6fa8;
  --wx-huo:  #c0392b;
  --wx-tu:   #a37956;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.04), 0 8px 24px rgba(40, 30, 10, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent-deep); }

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(1200px 200px at 50% 0%, rgba(193, 154, 79, 0.18), transparent 70%),
    linear-gradient(180deg, #f3ecdb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  border-radius: 50%;
  font-size: 22px;
  background: rgba(255, 253, 248, 0.6);
}
.brand-name { font-size: 28px; letter-spacing: 2px; color: var(--ink); }
.hero-tagline { color: var(--ink-soft); margin-top: 12px; font-size: 15px; letter-spacing: 1px; }

/* Main */
.main { padding: 32px 20px 80px; }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.section-title {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* Form */
.form-card { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.field input[type="text"],
.field input[type="date"],
.field input[type="time"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 120, 66, 0.12);
}
.radio-group { display: flex; gap: 16px; align-items: center; padding: 8px 0; }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.mt-2 { margin-top: 8px; }
.time-wrap { display: flex; align-items: center; gap: 12px; }
.time-wrap input { flex: 1; }
[hidden] { display: none !important; }
.lunar-date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lunar-date-row input[type="number"] {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.lunar-date-row input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 120, 66, 0.12);
}

.city-wrap { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  margin-top: 4px; max-height: 220px; overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 10;
  display: none;
}
.suggest.active { display: block; }
.suggest-item { padding: 8px 12px; cursor: pointer; font-size: 14px; }
.suggest-item:hover, .suggest-item.active { background: rgba(168, 120, 66, 0.08); color: var(--accent-deep); }
.suggest-item .pinyin { color: var(--ink-mute); font-size: 12px; margin-left: 6px; }

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: var(--ink);
  color: #f7f3ea;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-primary:hover { background: #2a3142; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  padding: 10px 24px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { background: #f0e9d8; color: var(--ink); }

/* Result */
.result-section.hidden { display: none; }
.result-meta { padding: 16px 20px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 14px; color: var(--ink-soft); }
.meta-row b { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* 四柱 */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pillar {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.pillar-label { font-size: 12px; color: var(--ink-mute); letter-spacing: 2px; margin-bottom: 10px; }
.pillar-gan, .pillar-zhi {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 38px;
  line-height: 1.1;
  margin: 4px 0;
}
.pillar-tag {
  display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: rgba(0,0,0,0.04); color: var(--ink-mute); margin: 0 2px;
}
.pillar-shen { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.pillar-shen .shen-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(168,120,66,0.1); color: var(--accent-deep); margin: 1px 2px; font-size: 11px; }
.pillar-hide { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.pillar-nayin { font-size: 12px; color: var(--ink-mute); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }

.wuxing-jin  { color: var(--wx-jin); }
.wuxing-mu   { color: var(--wx-mu); }
.wuxing-shui { color: var(--wx-shui); }
.wuxing-huo  { color: var(--wx-huo); }
.wuxing-tu   { color: var(--wx-tu); }

/* 五行 */
.wuxing-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.wuxing-radar svg { width: 240px; height: 240px; }
.wuxing-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.wx-card { text-align: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.wx-card .wx-name { font-family: "Songti SC", serif; font-size: 20px; margin-bottom: 4px; }
.wx-card .wx-count { font-size: 18px; font-weight: 600; }

/* 大运 */
.start-info { color: var(--ink-soft); font-size: 13px; }
.dayun-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.dayun-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  background: #fffefa;
}
.dayun-age { font-size: 12px; color: var(--ink-mute); }
.dayun-gz { font-family: "Songti SC", serif; font-size: 20px; margin: 4px 0; }
.dayun-year { font-size: 12px; color: var(--ink-soft); }

/* 解读 */
.interpret-card h3 {
  font-family: "Songti SC", serif; font-size: 16px; letter-spacing: 1px;
  margin: 18px 0 6px; color: var(--ink);
}
.interpret-card p { margin: 0 0 10px; color: var(--ink); }
.interpret-card ul { padding-left: 20px; }
.interpret-card .profile-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 14px;
  background: rgba(168,120,66,0.05);
  border-radius: 0 6px 6px 0;
  font-family: "Songti SC", serif;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 16px;
}
.disclaimer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}

.note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* 当前大运高亮 */
.dayun-item.current {
  background: linear-gradient(180deg, #fff6e0 0%, #fffefa 100%);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(193, 154, 79, 0.25);
  position: relative;
}
.dayun-item.current::before {
  content: "当下";
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  background: var(--accent);
  color: #fffefa;
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* 历史记录 */
.modal-desc {
  font-size: 13px; color: var(--ink-soft);
  margin: -8px 0 14px;
}
.history-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 8px;
}
.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.history-item:hover { background: rgba(168,120,66,0.06); border-color: var(--accent); }
.history-main { flex: 1; min-width: 0; }
.history-name { font-weight: 500; color: var(--ink); }
.history-meta { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.history-time { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.history-delete {
  background: none; border: none;
  font-size: 18px; line-height: 1;
  color: var(--ink-mute); cursor: pointer;
  padding: 2px 8px; border-radius: 6px;
}
.history-delete:hover { color: #c0392b; background: rgba(192,57,43,0.1); }
.history-empty {
  text-align: center; color: var(--ink-mute);
  padding: 32px 0; font-size: 13px;
}

/* 流年 */
.liunian-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.liunian-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  background: #fffefa;
}
.liunian-item.current {
  background: linear-gradient(180deg, #fff6e0 0%, #fffefa 100%);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(193,154,79,0.25);
}
.liunian-year { font-size: 12px; color: var(--ink-mute); }
.liunian-gz {
  font-family: "Songti SC", serif;
  font-size: 22px;
  margin: 4px 0 6px;
}
.liunian-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.liunian-tag {
  display: inline-block; padding: 1px 6px;
  background: rgba(168,120,66,0.1); color: var(--accent-deep);
  border-radius: 4px; font-size: 11px;
  margin-right: 4px;
}

/* 合盘 */
.compat-section { margin-top: 18px; }
.compat-section .card { margin-bottom: 16px; }
.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compat-person h3 {
  font-family: "Songti SC", serif;
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  letter-spacing: 1px;
}
.compat-person .pillars { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.compat-person .pillar { padding: 10px 6px; }
.compat-person .pillar-gan, .compat-person .pillar-zhi { font-size: 28px; }
.compat-relations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.compat-rel-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffefa;
  font-size: 13px;
}
.compat-rel-card .rel-label { color: var(--ink-mute); font-size: 11px; margin-bottom: 4px; }
.compat-rel-card .rel-value {
  font-family: "Songti SC", serif;
  font-size: 15px;
  color: var(--ink);
}
.compat-rel-card.good { border-color: #3d8a4f; background: rgba(61,138,79,0.04); }
.compat-rel-card.bad  { border-color: #c0392b; background: rgba(192,57,43,0.04); }
.compat-rel-card.good .rel-value { color: #3d8a4f; }
.compat-rel-card.bad  .rel-value { color: #c0392b; }

/* Poster 分享卡片 */
.poster-off {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
}
.poster {
  width: 720px;
  background: linear-gradient(180deg, #fdf8ec 0%, #f7eed8 100%);
  padding: 56px 48px;
  font-family: "PingFang SC", "Songti SC", serif;
  color: var(--ink);
  box-sizing: border-box;
  border: 1px solid #e6dfd1;
}
.poster-header {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(168,120,66,0.3);
  margin-bottom: 32px;
}
.poster-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Songti SC", serif;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--ink-soft);
}
.poster-brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.poster-meta {
  text-align: center;
  margin-bottom: 32px;
}
.poster-name {
  font-family: "Songti SC", serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--ink);
}
.poster-birth {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 1px;
}
.poster-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.poster-pillar {
  text-align: center;
  background: rgba(255,254,250,0.7);
  border: 1px solid rgba(168,120,66,0.2);
  border-radius: 12px;
  padding: 20px 8px;
}
.poster-pillar-label {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.poster-pillar-gan, .poster-pillar-zhi {
  font-family: "Songti SC", serif;
  font-size: 44px;
  line-height: 1.15;
  margin: 4px 0;
}
.poster-pillar-shen {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.poster-wuxing {
  text-align: center;
  margin-bottom: 32px;
}
.poster-wuxing-title {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 2px; margin-bottom: 12px;
}
.poster-wuxing-bars {
  display: flex; justify-content: center; gap: 14px;
}
.poster-wuxing-bar {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 56px;
}
.poster-wuxing-bar .bar {
  width: 8px;
  background: var(--accent);
  border-radius: 4px;
  min-height: 4px;
}
.poster-wuxing-bar .name {
  font-family: "Songti SC", serif;
  font-size: 16px;
}
.poster-wuxing-bar .val {
  font-size: 11px; color: var(--ink-mute);
}
.poster-summary {
  text-align: center;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(168,120,66,0.06);
  border-radius: 12px;
  border: 1px dashed rgba(168,120,66,0.4);
}
.poster-summary .key-label { font-size: 12px; color: var(--ink-mute); letter-spacing: 1px; }
.poster-summary .key-val {
  font-family: "Songti SC", serif;
  font-size: 18px;
  margin: 4px 0 12px;
}
.poster-tagline {
  text-align: center;
  font-family: "Songti SC", serif;
  font-size: 22px;
  color: var(--accent-deep);
  letter-spacing: 2px;
  padding: 18px 0;
}
.poster-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(168,120,66,0.3);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 2px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 31, 46, 0.92);
  color: #fffefa;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--ink-mute);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255,253,248,0.4);
}
.footer a { color: var(--ink-soft); }

/* 设置按钮 + 模态框 */
.hero { position: relative; }
.settings-btn {
  position: absolute;
  top: 16px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.settings-btn:hover { background: #fff; color: var(--accent-deep); border-color: var(--accent); }
.settings-btn-2 { right: 64px; }

.modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 100;
  align-items: center; justify-content: center;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  width: min(440px, calc(100% - 40px));
  background: var(--bg-card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}
.modal-panel h3 {
  margin: 0 0 16px;
  font-family: "Songti SC", serif;
  font-size: 18px;
  letter-spacing: 2px;
}
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.modal-field select, .modal-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}
.provider-tabs {
  display: inline-flex;
  background: #f0e9d8;
  padding: 4px;
  border-radius: 10px;
  gap: 2px;
}
.provider-tab {
  position: relative;
  padding: 6px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.provider-tab input { position: absolute; opacity: 0; pointer-events: none; }
.provider-tab:has(input:checked) {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; }
.btn-icon {
  width: 38px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 14px;
}
.hint { font-size: 12px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }
.hint a { color: var(--accent-deep); }
.modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.btn-small { width: auto !important; padding: 8px 16px !important; letter-spacing: 2px !important; }

/* 解读区 AI 增强 */
.interpret-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.interpret-header .section-title { margin-bottom: 0; flex: 1; min-width: 120px; }
.interpret-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-pill {
  padding: 6px 14px;
  background: var(--ink);
  color: #f7f3ea;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
}
.btn-pill:hover { background: #2a3142; }
.btn-pill[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-pill-danger { background: #c0392b; }
.btn-pill-danger:hover { background: #a93221; }

.ai-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(168, 120, 66, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.link-btn {
  background: none; border: none; color: var(--accent-deep); cursor: pointer;
  text-decoration: underline; font-size: 13px; padding: 0; font-family: inherit;
}

/* 流式输出 */
.ai-streaming {
  white-space: pre-wrap;
  font-family: -apple-system, "PingFang SC", serif;
  line-height: 1.85;
  color: var(--ink);
}
.ai-streaming .ai-section-title {
  display: inline-block;
  font-family: "Songti SC", serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--accent-deep);
  margin: 16px 0 4px;
  padding: 2px 0;
  font-weight: 600;
}
.ai-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ai-status {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 0;
  display: flex; align-items: center; gap: 8px;
}
.ai-status.error { color: #c0392b; }
.ai-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-usage {
  font-size: 11px; color: var(--ink-mute);
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* Mobile */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wuxing-row { grid-template-columns: 1fr; }
  .wuxing-radar { display: flex; justify-content: center; }
  .wuxing-stats { grid-template-columns: repeat(5, 1fr); }
  .pillar-gan, .pillar-zhi { font-size: 30px; }
}
