/* =========================================
   皇极经世 · H5 样式系统 v2
   黑金调性 · 层级分明 · 响应式
   ========================================= */

/* ---------- Reset & Variables ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --surface2: #1c1c2e;
  --surface3: #26263a;
  --border: #2a2a44;
  --border-light: #3a3a55;
  --text: #e0e0ec;
  --text-dim: #7a7a9a;
  --text-muted: #5a5a7a;
  --accent: #d4a84b;
  --accent-bright: #f0c860;
  --accent-dim: #b8923a;
  --accent-glow: rgba(212, 168, 75, 0.15);
  --gold-gradient: linear-gradient(135deg, #d4a84b, #f0c860);
  --success: #4caf7d;
  --danger: #e05050;
  --warning: #e0a030;
  --info: #5080d0;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --max-w: 480px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --transition: all .25s ease;
}

body {
  font-family: -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 14px 40px;
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ---------- Header ---------- */
.header {
  text-align: center;
  padding: 24px 0 8px;
  position: relative;
}
.header h1 {
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 6px;
}
.subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
  letter-spacing: 2px;
}

/* 右上角设置 */
.header-actions {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  gap: 6px;
}
.header-actions button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ---------- Card Base ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.card-accent {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--surface), rgba(212,168,75,.04));
}

/* ---------- Calendar Toggle ---------- */
.cal-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cal-toggle button {
  flex: 1;
  padding: 9px;
  border: none;
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.cal-toggle button.active {
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 600;
}

/* ---------- Form ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.form-group label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.form-group textarea {
  resize: vertical;
  min-height: 60px;
}
.char-count {
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 2px;
}

/* 专业提示小字 */
.time-note {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin: -4px 0 10px;
  letter-spacing: 0.5px;
}

/* ---------- 折叠区域（深度版补充表单） ---------- */
.collapsible-card {
  background: var(--surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.collapsible-card.open {
  border-color: var(--accent-dim);
  border-style: solid;
}
.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  gap: 8px;
}
.collapsible-trigger:hover {
  color: var(--accent);
  background: var(--accent-glow);
}
.collapsible-trigger .icon {
  font-size: 16px;
  flex-shrink: 0;
}
.collapsible-trigger .arrow {
  font-size: 12px;
  transition: transform .3s;
  flex-shrink: 0;
}
.collapsible-card.open .collapsible-trigger .arrow {
  transform: rotate(180deg);
}
.collapsible-body {
  padding: 0 16px 14px;
  display: none;
}
.collapsible-card.open .collapsible-body {
  display: block;
}
.deep-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-upgrade {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a0f;
}
.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-upgrade {
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
  margin-top: 0;
}
.btn-upgrade:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  font-family: inherit;
}
.btn-link:hover {
  color: var(--accent);
}

/* ---------- Result: Info Bar ---------- */
.info-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 11.5px;
  line-height: 1.6;
}
.info-bar .item {
  display: flex;
  gap: 4px;
}
.info-bar .label {
  color: var(--text-dim);
  white-space: nowrap;
}
.info-bar .value {
  color: var(--text);
  word-break: break-all;
}
.controversy-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--warning);
  cursor: pointer;
  margin-left: 4px;
  border-bottom: 1px dashed var(--warning);
}

/* ---------- Gua Groups ---------- */
.gua-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gua-section-title .accent-dot {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}
.gua-section-title .dot-huangji { background: var(--accent); }
.gua-section-title .dot-meihua { background: var(--info); }

/* 皇极组 — 金色系 */
.gua-grid-huangji {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.gua-grid-huangji .gua-card-main {
  grid-column: 1 / -1;
}

/* 梅花组 — 蓝色系 */
.gua-grid-meihua {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* 卦象卡片 */
.gua-card {
  background: var(--surface2);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.gua-card-huangji {
  border-color: rgba(212,168,75,.15);
}
.gua-card-huangji:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(212,168,75,.1);
}
.gua-card-meihua {
  border-color: rgba(80,128,208,.15);
}
.gua-card-meihua:hover {
  border-color: var(--info);
  box-shadow: 0 0 12px rgba(80,128,208,.1);
}
.gua-card-main {
  padding: 14px 10px;
}
.gua-card-main .gua-symbol {
  font-size: 38px;
}

.gua-symbol {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.gua-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.gua-card-meihua .gua-name {
  color: var(--info);
}
.gua-level {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}
.gua-line {
  font-size: 9px;
  color: var(--accent-dim);
  margin-top: 2px;
}
.gua-card-meihua .gua-line {
  color: #6080b0;
}
.tiyong-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.tiyong-label .ti { color: var(--success); }
.tiyong-label .yong { color: var(--warning); }

/* 折叠展开 */
.expand-link {
  text-align: center;
  padding: 6px 0 2px;
}
.expand-link button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.expand-link button:hover {
  color: var(--accent);
}
.extended-gua-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.extended-gua-grid .gua-card {
  padding: 8px 4px;
  opacity: .75;
}
.extended-gua-grid .gua-symbol { font-size: 24px; }
.extended-gua-grid .gua-name { font-size: 12px; }

/* ---------- Interpretation ---------- */
.interpretation {
  margin-top: 6px;
}
.interp-section {
  margin-bottom: 14px;
}
.interp-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.interp-section h4 .badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 400;
}
.badge-huangji { background: rgba(212,168,75,.15); color: var(--accent); }
.badge-meihua { background: rgba(80,128,208,.15); color: var(--info); }
.badge-advice { background: rgba(76,175,125,.15); color: var(--success); }

.reading-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.reading-text p { margin-bottom: 6px; }
.reading-text strong { color: var(--accent-bright); }
.reading-text em { color: var(--text-dim); font-style: italic; }
.reading-text ul, .reading-text ol {
  padding-left: 18px;
  margin-bottom: 6px;
}
.reading-text h4 {
  color: var(--accent);
  margin: 10px 0 4px;
  font-size: 13px;
}

/* ---------- Upgrade Card ---------- */
.upgrade-card {
  background: linear-gradient(135deg, rgba(212,168,75,.08), rgba(212,168,75,.02));
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.upgrade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
}
.upgrade-card h3 {
  font-size: 15px;
  color: var(--accent-bright);
  margin-bottom: 8px;
  line-height: 1.4;
}
.upgrade-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.upgrade-card li {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upgrade-card li .check { color: var(--success); font-weight: 700; }

/* ---------- 底部区 ---------- */
.bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.bottom-actions .row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bottom-actions .row button {
  flex: 1;
  margin-top: 0;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .25s ease;
}
.modal-sheet {
  width: 100%;
  max-width: var(--max-w);
  max-height: 88vh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 18px 28px;
  overflow-y: auto;
  animation: slideUp .3s ease;
}
.modal-sheet h2 {
  font-size: 17px;
  text-align: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

.modal-sheet .auto-badge {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 6px;
  background: var(--surface2);
  border-radius: 6px;
}

/* ---------- 深度版结果模块 ---------- */
.deep-module {
  margin-bottom: 14px;
}
.deep-module .module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.deep-module .module-header .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.deep-module .module-header h3 {
  font-size: 14px;
  font-weight: 600;
}
.deep-module .module-header .tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--surface3);
  color: var(--text-dim);
  margin-left: auto;
}
.deep-module .module-body {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text);
}

/* 四柱卡片 */
.sizhu-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.sizhu-card {
  background: var(--surface2);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid var(--border);
}
.sizhu-card .pillar-label {
  font-size: 9px;
  color: var(--text-muted);
}
.sizhu-card .pillar-ganzhi {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin: 2px 0;
}

/* 终极结论卡片 */
.conclusion-card {
  background: linear-gradient(135deg, rgba(212,168,75,.1), rgba(212,168,75,.03));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 14px 0;
  box-shadow: 0 0 24px rgba(212,168,75,.08);
}
.conclusion-card h3 {
  font-size: 15px;
  color: var(--accent-bright);
  text-align: center;
  margin-bottom: 10px;
}
.conclusion-card li {
  font-size: 12.5px;
  color: var(--text);
  padding: 4px 0;
  line-height: 1.6;
}

/* ---------- 干支流派对比面板 ---------- */
.controversy-panel {
  background: var(--surface);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 8px 0;
}
.controversy-panel h4 {
  font-size: 13px;
  color: var(--warning);
  margin-bottom: 8px;
}
.controversy-panel .version-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.controversy-panel .version-col {
  padding: 8px;
  background: var(--surface2);
  border-radius: 6px;
  text-align: center;
}
.controversy-panel .version-col .vname {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.controversy-panel .version-col .vganzhi {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Loading / Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  width: 100%;
}
.skeleton-line:last-child { width: 65%; }
.skeleton-gua {
  height: 80px;
  border-radius: 8px;
}
.skeleton-block {
  height: 120px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ---------- 流式输出光标 ---------- */
.typing-cursor::after {
  content: '▍';
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

/* ---------- 历史记录 ---------- */
.history-list {
  margin-top: 8px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface2);
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.history-item:hover {
  background: var(--surface3);
}
.history-item .h-question {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item .h-time {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
}
.history-item .h-type {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface3);
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 6px;
}

/* ---------- 评分弹窗 ---------- */
.rating-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 12px 0;
}
.rating-stars button {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.rating-stars button.active { color: var(--accent-bright); }
.rating-stars button:hover { transform: scale(1.2); }

/* ---------- 分享图 ---------- */
.share-preview {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  padding: 20px;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* 合规声明（原版小字风格） */
.disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 12px 0;
  line-height: 1.5;
  opacity: .65;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .gua-grid-meihua {
    grid-template-columns: 1fr 1fr;
  }
  .gua-grid-meihua .gua-card:last-child {
    grid-column: 1 / -1;
  }
  .sizhu-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-bar {
    font-size: 10.5px;
  }
}

/* =========================================
   三档产品版 · 附加样式
   ========================================= */

/* ---------- 档位选择 ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.tier-card.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,168,75,.12), var(--surface));
  box-shadow: var(--shadow-glow);
}
.tier-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tier-price { font-size: 16px; font-weight: 700; color: var(--accent-bright); margin: 2px 0; }
.tier-card.active .tier-price { color: var(--accent-bright); }
.tier-desc { font-size: 10px; color: var(--text-dim); line-height: 1.5; }

.dev-badge {
  text-align: center;
  font-size: 10px;
  color: var(--warning);
  background: rgba(224,160,48,.08);
  border: 1px dashed rgba(224,160,48,.35);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 10px;
}

/* ---------- 分类选择 ---------- */
.cat-hint { font-size: 10px; color: var(--text-dim); font-weight: 400; margin-left: 6px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.cat-chip .cat-icon { font-size: 18px; }
.cat-chip .cat-name { font-size: 11px; color: var(--text-dim); }
.cat-chip.selected {
  border-color: var(--accent);
  background: rgba(212,168,75,.12);
}
.cat-chip.selected .cat-name { color: var(--accent-bright); font-weight: 600; }
.cat-chip.disabled { opacity: .4; cursor: not-allowed; }

.birth-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 10px 0 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ---------- 结果：速算 ---------- */
.quick-reading {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  padding: 4px 2px;
}
.annual-gua-line {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
.gua-sym-inline { font-size: 18px; vertical-align: middle; margin-left: 2px; }

/* ---------- 结果：分类卡片 ---------- */
.cat-result-card { margin-top: 12px; }
.cat-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cat-result-header .cat-icon { font-size: 18px; }
.cat-result-header .cat-name { font-size: 15px; font-weight: 700; color: var(--accent); }
.cat-result-header .cat-gong {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface3);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ---------- 结果：十年 ---------- */
.decade-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.decade-row {
  display: grid;
  grid-template-columns: 64px 64px 1fr;
  gap: 8px;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.decade-row.row-good { border-left-color: var(--success); }
.decade-row.row-mid { border-left-color: var(--warning); }
.decade-row.row-low { border-left-color: var(--danger); }

.decade-yearnum { font-size: 14px; font-weight: 700; color: var(--text); }
.decade-ganzhi { font-size: 10px; color: var(--text-dim); }

.decade-gua { cursor: pointer; text-align: center; }
.decade-gua .gua-sym-inline { font-size: 20px; display: block; }
.decade-gua-name { font-size: 11px; color: var(--accent); }

.decade-annotation { font-size: 12px; color: var(--text); line-height: 1.6; }
.decade-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  margin-right: 4px;
  vertical-align: 1px;
}
.decade-tag.tag-上吉, .decade-tag.tag-中吉 { background: rgba(76,175,125,.15); color: var(--success); }
.decade-tag.tag-平 { background: rgba(224,160,48,.15); color: var(--warning); }
.decade-tag.tag-中下, .decade-tag.tag-下 { background: rgba(224,80,80,.15); color: var(--danger); }

.decade-overall {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  background: rgba(212,168,75,.06);
  border: 1px solid rgba(212,168,75,.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.decade-overall strong { color: var(--accent); }

/* ---------- 升级按钮 ---------- */
.btn-upgrade-2 {
  margin-top: 8px;
  background: var(--surface3);
  border-color: var(--border-light);
  color: var(--text);
}
.btn-upgrade-2:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ---------- 八字模块 ---------- */
.dot-bazi { background: var(--info); }

/* =========================================
   首页介绍 + 付费项目介绍（升级引导）样式
   ========================================= */

/* ---------- 皇极经世介绍 ---------- */
.intro-card {
  border: 1px solid rgba(212,168,75,.25);
  background: linear-gradient(180deg, rgba(212,168,75,.07), var(--surface));
}
.intro-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.intro-text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 10px;
}
.intro-text b { color: var(--accent-bright); }
.intro-text-sm {
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-dim);
  margin-top: 10px;
}
.intro-text-sm b { color: var(--accent); }

/* 元会运世链条 */
.yuanhui-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  margin: 10px 0 2px;
}
.yh-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.yh-num { font-size: 15px; font-weight: 700; color: var(--accent-bright); }
.yh-label { font-size: 12px; color: var(--text); }
.yh-detail { font-size: 9px; color: var(--text-muted); }
.yh-arrow { color: var(--accent-dim); font-size: 10px; }

.intro-more {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text);
}
.intro-more ul { margin: 4px 0 4px 16px; }
.intro-more b { color: var(--accent); }

/* 速算表单标题 */
.quick-form-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 付费项目介绍（结果页底部） ---------- */
.paid-intro {
  margin-top: 14px;
  border: 1px solid rgba(212,168,75,.3);
}
.paid-intro-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 6px;
}
.paid-intro-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.paid-intro-desc b { color: var(--accent); }

.paid-tier-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.paid-tier-card:last-child { margin-bottom: 0; }
.paid-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.paid-tier-name { font-size: 15px; font-weight: 700; color: var(--text); }
.paid-tier-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-bright);
}
.paid-tier-list {
  list-style: none;
  margin: 0 0 10px;
}
.paid-tier-list li {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
}

/* ---------- 升级弹窗内介绍 ---------- */
.upgrade-intro {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-dim);
  background: rgba(212,168,75,.06);
  border: 1px solid rgba(212,168,75,.18);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.upgrade-intro b { color: var(--accent); }

/* ---------- 公历/农历换算提示行 ---------- */
.conversion-line {
  font-size: 11px;
  color: var(--accent-dim);
  background: rgba(212,168,75,.07);
  border: 1px dashed rgba(212,168,75,.25);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ---------- 交运备注 ---------- */
.qiYun-note {
  font-size: 11px;
  color: var(--info);
  background: rgba(80,128,208,.08);
  border: 1px dashed rgba(80,128,208,.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ---------- 换运年 / 流年宫 ---------- */
.decade-row.row-change { border-left-color: var(--accent); background: rgba(212,168,75,.07); }
.decade-tag.tag-change {
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: 2px;
}
.decade-gong {
  display: block;
  font-size: 10px;
  color: var(--accent-dim);
  margin-bottom: 2px;
}

/* ---------- 紫微方盘（传统十二宫 · 暗金） ---------- */
.dot-ziwei { background: var(--success); }
.zw-pan-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-dim);
  margin-left: 6px;
  letter-spacing: 0.5px;
}
.zw-pan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 5px;
  max-width: 430px;
  margin: 0 auto;
}
.zw-pan-cell {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 6px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
}
.zw-pan-cell-nian { min-height: 70px; }
.zw-pan-cell.zw-ming {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(212,168,75,.16), rgba(212,168,75,.05));
  box-shadow: inset 0 0 8px rgba(212,168,75,.14);
}
.zw-pan-cell.zw-shen { border-left: 2px solid var(--warning); }
.zw-pan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.zw-pan-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.zw-ming .zw-pan-name { color: var(--accent-bright); }
.zw-shen-tag {
  display: inline-block;
  margin-left: 3px;
  font-size: 7px;
  line-height: 1;
  padding: 1px 2px;
  border-radius: 2px;
  color: #0a0a0f;
  background: var(--warning);
  vertical-align: 1px;
  font-weight: 700;
}
.zw-pan-zhi {
  font-size: 9px;
  color: var(--accent-dim);
  font-family: 'KaiTi', 'STKaiti', 'KaiTi_GB2312', serif;
  letter-spacing: 1px;
}
.zw-pan-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  line-height: 1.4;
}
.zw-star { font-size: 10px; white-space: nowrap; }
.zw-star-main { color: var(--accent-bright); font-weight: 600; }
.zw-star-sub { color: var(--text-dim); }
.zw-star-empty { color: var(--text-muted); }
.zw-pan-sihua {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}
.sihua-badge {
  font-size: 8px;
  line-height: 1;
  padding: 1.5px 3px;
  border-radius: 3px;
  color: #0a0a0f;
  font-weight: 700;
}
.sihua-lu { background: var(--success); }
.sihua-quan { background: #b388ff; }
.sihua-ke { background: var(--info); }
.sihua-ji { background: var(--danger); }
/* 四化分层徽标：大限（金色描边+限）、流年（青色描边+流） */
.sihua-layer-dx { outline: 1px solid rgba(240, 200, 96, 0.65); outline-offset: 0px; }
.sihua-layer-nian { outline: 1px solid rgba(80, 160, 255, 0.7); outline-offset: 0px; }
.sihua-layer-tag {
  font-style: normal;
  font-size: 7px;
  margin-left: 1px;
  opacity: 0.85;
}
/* ---------- 分享卡：应期方位段 ---------- */
.share-yq-sec .share-yq-line {
  font-size: 20px;
  line-height: 1.8;
  color: #e8d9b0;
}

/* ---------- 三档滑块 ---------- */
.tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.tier-tab {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.tier-tab.on {
  color: #0a0a0f;
  background: var(--gold-gradient);
  border-color: transparent;
}
.tier-swipe-hint {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.tier-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.tier-track {
  display: flex;
  width: 100%;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.tier-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 1px;
  box-sizing: border-box;
}
.tier-card { margin-bottom: 0; }
.tier-arrow {
  position: absolute;
  top: 14px;
  z-index: 3;
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  font-size: 18px;
  color: var(--accent-dim);
  background: rgba(10,10,15,.62);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.tier-arrow:active { color: var(--accent-bright); }
.tier-arrow-l { left: 8px; }
.tier-arrow-r { right: 8px; }
.tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 1px;
}
.tier-badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  color: #0a0a0f;
  background: var(--gold-gradient);
  font-weight: 700;
  white-space: nowrap;
}
.tier-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.75;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.tier-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 4px;
}
.tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(212,168,75,.28);
  cursor: pointer;
  transition: all .2s;
}
.tier-dot.on { background: var(--accent-bright); transform: scale(1.25); }

/* ---------- 参数引导（标题 / 说明 / 补充） ---------- */
.param-title {
  margin: 12px 0 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
}
.param-req, .param-opt {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: 1px;
}
.param-req { color: #0a0a0f; background: var(--accent-dim); }
.param-opt { color: var(--text-dim); border: 1px solid var(--border); }
.param-hint {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}
.param-hint b { color: var(--accent-dim); font-weight: 600; }
.param-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 4px 0 2px;
}
.param-sub b { color: var(--accent-dim); }

/* ---------- 结果页统一底部 ---------- */
.result-foot {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(212,168,75,.22);
  background: linear-gradient(135deg, rgba(212,168,75,.09), rgba(255,255,255,.015));
  text-align: center;
}
.foot-tip {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 10px;
}
.foot-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-foot {
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all .2s;
}
.btn-foot-home {
  color: var(--text-dim);
  background: var(--surface2);
}
.btn-foot-home:active { color: var(--accent-bright); }
.btn-foot-tip {
  color: #0a0a0f;
  background: var(--gold-gradient);
  border-color: transparent;
}
.foot-sub {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.saved-file-tip {
  margin-top: 10px;
  padding: 7px 9px;
  font-size: 10.5px;
  color: var(--accent-dim);
  background: rgba(212,168,75,.07);
  border: 1px dashed rgba(212,168,75,.3);
  border-radius: 8px;
  word-break: break-all;
}

/* ---------- 全免费额度条 ---------- */
.free-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,168,75,.3);
  background: linear-gradient(135deg, rgba(212,168,75,.14), rgba(212,168,75,.03));
  text-align: center;
}
.free-banner-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: .5px;
}
.free-banner-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
}
.free-banner-sub b {
  color: var(--accent-bright);
  font-size: 14px;
  margin: 0 1px;
}
.free-banner-sub b.quota-out { color: #e57373; }
.free-banner-note {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-muted);
}

/* ---------- 速断结构化断词（结论/窗口/方位/建议） ---------- */
.qb-conclusion {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
  line-height: 1.7;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: linear-gradient(160deg, rgba(212,168,75,.14), rgba(212,168,75,.04));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qb-grid {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qb-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
}
.qb-lbl {
  flex: 0 0 52px;
  color: var(--accent-dim);
  font-weight: 600;
  letter-spacing: 1px;
}
.qb-val { flex: 1; color: var(--text-dim); }

/* ---------- 应期与方位（确定性锚点） ---------- */
.yq-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(80,160,255,.06);
  border: 1px dashed rgba(80,160,255,.3);
  border-radius: var(--radius-sm);
}
.yq-row {
  display: flex;
  gap: 8px;
  font-size: 10.5px;
  line-height: 1.8;
}
.yq-lbl {
  flex: 0 0 44px;
  color: var(--info);
  font-weight: 600;
}
.yq-val { flex: 1; color: var(--text-dim); }
.yq-val b { color: var(--accent-bright); }
.yq-tip {
  margin-top: 4px;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- 飞星盘（飞宫四化 · 折叠卡） ---------- */
.dot-feixing { background: #b388ff; }
.fx-title { cursor: pointer; user-select: none; }
.fx-toggle {
  float: right;
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-dim);
  letter-spacing: 0;
}
.fx-note {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 2px 0 6px;
}
.fx-cur {
  font-size: 11px;
  color: var(--accent-dim);
  line-height: 1.6;
  margin: 0 0 6px;
  padding: 5px 8px;
  background: rgba(212,168,75,.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.fx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 6px;
  font-size: 9px;
  color: var(--text-muted);
}
.fx-legend .sihua-badge { margin-right: 3px; }
.fx-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fx-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: 3px 6px;
  align-items: center;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.fx-row:last-child { border-bottom: none; }
.fx-row:nth-child(odd) { background: rgba(255,255,255,.015); }
.fx-row-on {
  background: rgba(179,136,255,.12) !important;
  box-shadow: inset 2px 0 0 #b388ff;
}
.fx-gong {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.fx-gong-name { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text); }
.fx-gong-gz {
  font-style: normal;
  font-size: 9px;
  color: var(--accent-dim);
  font-family: 'KaiTi', 'STKaiti', 'KaiTi_GB2312', serif;
  letter-spacing: 1px;
}
.fx-item {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.fx-star { font-style: normal; color: var(--text-dim); }
.fx-arrow { font-style: normal; color: var(--text-muted); font-size: 9px; }
.fx-to { font-style: normal; color: var(--accent-bright); }
.fx-to-self { color: var(--warning); }
.fx-empty { font-style: normal; color: var(--text-muted); }
.fx-detail {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(179,136,255,.07);
  border: 1px dashed rgba(179,136,255,.35);
  border-radius: var(--radius-sm);
}
.fx-detail-title {
  font-size: 11px;
  font-weight: 600;
  color: #b388ff;
  margin-bottom: 5px;
}
.fx-in-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.9;
}
.fx-in-text { flex: 1; }
.fx-self-tag {
  font-style: normal;
  margin-left: 4px;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 2px;
  color: #0a0a0f;
  background: var(--warning);
  font-weight: 700;
}
.fx-in-empty { font-size: 10px; color: var(--text-muted); }
.fx-tip {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 6px 0 0;
}

.zw-pan-daxian {
  margin-top: auto;
  padding-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.zw-daxian-age { font-size: 9px; color: var(--accent-dim); font-weight: 600; }
.zw-daxian-unit { font-size: 7px; color: var(--text-muted); }
.zw-pan-flag {
  margin-top: auto;
  font-size: 8px;
  color: var(--warning);
  letter-spacing: 1px;
}
.zw-pan-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: rgba(212,168,75,.05);
  border: 1px dashed rgba(212,168,75,.35);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.zw-center-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.zw-center-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 10px;
}
.zw-center-item .lbl { color: var(--text-dim); flex-shrink: 0; }
.zw-center-item .val { color: var(--text); font-weight: 600; text-align: right; }
.zw-center-stars .val {
  font-size: 9px;
  font-weight: 400;
  color: var(--accent-dim);
  line-height: 1.5;
}

.cat-gong-zw {
  background: rgba(80,128,208,.15);
  color: var(--info);
}

/* =========================================
   起始页 · 邵雍世界观（星空落底页）
   ========================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 25%, #16222e 0%, #0a0f18 45%, #050608 75%);
  overflow: hidden;
}
.starfield {
  position: absolute;
  inset: 0;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.12; }
  to { opacity: 1; }
}

.splash-content {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 400px;
  width: 100%;
}
.splash-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(212,168,75,.25);
  margin-bottom: 6px;
}
.splash-sub {
  font-size: 12px;
  color: var(--accent-dim);
  letter-spacing: 5px;
  margin-bottom: 30px;
}

.splash-yyws {
  border: 1px solid rgba(212,168,75,.25);
  border-radius: var(--radius);
  background: rgba(10,15,24,.5);
  padding: 12px 10px;
  margin-bottom: 22px;
}
.yyws-row {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1.9;
}
.yyws-num {
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 2px;
}

.splash-poem {
  margin-bottom: 22px;
}
.poem-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.splash-poem p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 2.1;
  letter-spacing: 1px;
}

.splash-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 30px;
}

.splash-enter {
  display: inline-block;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  border: none;
  border-radius: 30px;
  padding: 13px 42px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(212,168,75,.35);
  transition: var(--transition);
}
.splash-enter:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(212,168,75,.5); }

.splash-foot {
  margin-top: 18px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: .6;
}

/* ==================== 捐赠 / 手机号 / 找回复盘（2026-08-17） ==================== */
.contact-label { display: flex; flex-direction: column; gap: 2px; }
.contact-hint { font-size: 10px; color: var(--text-muted); font-weight: 400; }

/* 收款码（微信 / 支付宝个人码） */
.donate-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 6px;
}
.donate-qr-item {
  border: 1px solid rgba(212,168,75,.28);
  border-radius: 12px;
  padding: 8px 8px 6px;
  background: rgba(212,168,75,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.donate-qr-img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  display: block;
}
.donate-qr-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}
.qr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.qr-dot-wx { background: #07c160; }
.qr-dot-ali { background: #1677ff; }
.donate-qr-tip {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 旧占位样式（保留兼容，暂未使用） */
.donate-qr-placeholder {
  border: 1px dashed rgba(212,168,75,.4);
  border-radius: 12px;
  padding: 26px 12px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
  background: rgba(212,168,75,.04);
}

.donate-card {
  background: linear-gradient(135deg, rgba(212,168,75,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(212,168,75,.18);
}
.donate-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--accent-bright); }
.donate-card .btn-upgrade { margin-top: 4px; }

/* 神煞/空亡展示 */
.ss-note { font-size: 9px; color: var(--text-muted); }

/* ==================== 速断三位数起卦 + 卦象展示 + 保存弹窗（2026-08-18） ==================== */
.gua-num-tag {
  font-size: 10px;
  color: var(--accent-bright);
  border: 1px solid rgba(212,168,75,.35);
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.meihua-gua-show {
  padding: 6px 2px;
}
.meihua-gua-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.meihua-symbol {
  font-size: 56px;
  line-height: 1;
  color: var(--accent-bright);
  text-shadow: 0 0 18px rgba(240,200,96,.35);
}
.meihua-gua-name b {
  font-size: 18px;
  color: var(--accent-bright);
}
.meihua-gua-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.meihua-chain {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}
.meihua-chain b { color: var(--accent-dim); }
.meihua-tiyong {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.meihua-tiyong b { color: #e8e0cc; }
.meihua-relation {
  margin-left: 8px;
  color: var(--success);
  font-size: 11px;
}

/* ==================== 分享图卡片（html2canvas 截图 · 暗金卡片式） ==================== */
.share-card {
  display: none;
  position: fixed;
  left: -9999px;
  top: 0;
  width: 420px;
  background: linear-gradient(160deg, #0d0d16 0%, #14142a 50%, #0a0a0f 100%);
  border: 2px solid rgba(212,168,75,.55);
  border-radius: 18px;
  padding: 22px 20px 18px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}

.share-head {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212,168,75,.3);
}
.share-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #f0c860;
  text-shadow: 0 0 20px rgba(240,200,96,.35);
}
.share-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(212,168,75,.8);
  letter-spacing: 2px;
}

.share-section {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.share-sec-label {
  font-size: 11px;
  color: rgba(212,168,75,.85);
  letter-spacing: 3px;
  margin-bottom: 6px;
  font-weight: 600;
}
.share-question {
  font-size: 15px;
  color: #e8e0cc;
  line-height: 1.6;
  font-weight: 600;
}
.share-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.share-meta-item {
  font-size: 11px;
  color: rgba(232,224,204,.65);
}

.share-gua-sec { background: linear-gradient(135deg, rgba(212,168,75,.08), rgba(255,255,255,.02)); }
.share-gua-row { display: flex; align-items: center; gap: 14px; }
.share-gua-symbol {
  font-size: 60px;
  line-height: 1;
  color: #f0c860;
  text-shadow: 0 0 20px rgba(240,200,96,.4);
}
.share-gua-info { flex: 1; }
.share-gua-name {
  font-size: 18px;
  font-weight: 700;
  color: #f0c860;
}
.share-gua-parts {
  font-size: 11px;
  color: rgba(232,224,204,.7);
  font-weight: 400;
  margin-left: 6px;
}
.share-gua-chain {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(232,224,204,.7);
}
.share-gua-tiyong {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(232,224,204,.75);
}
.share-gua-tiyong em {
  font-style: normal;
  color: #4caf7d;
  margin-left: 6px;
}

.share-reading {
  font-size: 13px;
  color: #e8e0cc;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
}

.share-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,168,75,.3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.share-qr {
  width: 110px;
  height: 110px;
  background: #f0e8d4;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-foot-text { flex: 1; }
.share-site {
  font-size: 14px;
  font-weight: 700;
  color: #f0c860;
}
.share-url {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(212,168,75,.8);
  word-break: break-all;
}
.share-disclaimer {
  margin-top: 5px;
  font-size: 10px;
  color: rgba(232,224,204,.5);
  line-height: 1.5;
}

/* 找回复盘弹窗：找回按钮（缩小版） */
.btn-lookup-go {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  min-width: 68px;
}
