/* ============ 星穹问卜 · 科幻暗夜主题 ============ */
:root {
  --bg: #050816;
  --bg-soft: #0a0e27;
  --panel: rgba(15, 24, 48, 0.72);
  --panel-solid: #0f1830;
  --line: rgba(56, 88, 160, 0.35);
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --pink: #f472b6;
  --violet: #c084fc;
  --gold: #fbbf24;
  --text: #e2e8f0;
  --text-dim: #94a3c4;
  --text-faint: #5b6b8f;
  --grad-cy: linear-gradient(135deg, #22d3ee, #818cf8);
  --grad-pk: linear-gradient(135deg, #f472b6, #c084fc);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---------- 星空背景 ---------- */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.22; z-index: 0; pointer-events: none; animation: nebulaDrift 26s ease-in-out infinite alternate; }
.nebula-a { width: 55vw; height: 55vw; left: -18vw; top: -14vw; background: radial-gradient(circle, #3730a3, transparent 70%); }
.nebula-b { width: 48vw; height: 48vw; right: -16vw; bottom: 8vh; background: radial-gradient(circle, #155e75, transparent 70%); animation-delay: -12s; }
@keyframes nebulaDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 4vh) scale(1.15); }
}

/* ---------- 科幻地平线网格（synthwave）---------- */
.horizon {
  position: fixed; left: 50%; bottom: 0; width: 140vw; height: 34vh;
  transform: translateX(-50%); z-index: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(34, 211, 238, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(129, 140, 248, 0.22) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.13) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent);
  mask-image: linear-gradient(to top, black 55%, transparent);
  transform-origin: 50% 100%;
  animation: horizonScroll 7s linear infinite;
  opacity: 0.8;
}
/* 网格向上滚动（透视感） */
@keyframes horizonScroll {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 -44px; }
}
/* 地平线光条 */
.horizon::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 38%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.8), rgba(192, 132, 252, 0.8), transparent);
  filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.6));
}
/* 扫描线（CRT 感，极淡） */
.scanlines {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(140, 180, 255, 0.35) 2px 3px);
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  .horizon, .nebula, .orbit, .planet { animation: none !important; }
}

/* ---------- 布局 ---------- */
.topbar { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 18px 20px 8px; display: flex; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--grad-cy); color: #04121a;
  font-size: 20px; font-weight: 900; box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 12px rgba(34, 211, 238, 0.35); } 50% { box-shadow: 0 0 26px rgba(129, 140, 248, 0.65); } }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-size: 19px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-sub { font-size: 10px; letter-spacing: 4px; color: var(--text-faint); }

#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 8px 20px 96px; }

.view { display: none; animation: viewIn 0.4s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.view-head { margin: 14px 0 20px; }
.view-head h2 { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.view-head p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 16px; backdrop-filter: blur(8px); }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #a5f3fc; }

.hidden { display: none !important; }
.mt16 { margin-top: 16px; }

/* ---------- 首页 hero ---------- */
.hero { text-align: center; padding: 26px 0 30px; }
.orbit-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(99, 132, 220, 0.35); animation: spin 14s linear infinite; }
.orbit-2 { inset: 26px; animation-duration: 9s; animation-direction: reverse; border-color: rgba(192, 132, 252, 0.4); }
.planet { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.planet-small { width: 7px; height: 7px; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.core-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.8)); }
.hero-title { font-size: 30px; font-weight: 900; line-height: 1.4; letter-spacing: 3px;
  background: linear-gradient(110deg, #e0f2fe 20%, #c4b5fd 40%, #fbcfe8 55%, #a5f3fc 70%, #e0f2fe 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: titleFlow 5.5s ease-in-out infinite; }
@keyframes titleFlow { 0% { background-position: 0% 0; } 100% { background-position: -220% 0; } }
.hero-sub { color: var(--text-dim); font-size: 14px; letter-spacing: 4px; margin: 10px 0 22px; }
.btn-hero { min-width: 210px; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.module-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 18px 16px; border-radius: var(--radius); cursor: pointer; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-family: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: cardBreath 4s ease-in-out infinite;
}
@keyframes cardBreath {
  0%, 100% { box-shadow: 0 0 10px rgba(56, 88, 160, 0.12); }
  50% { box-shadow: 0 0 22px rgba(56, 88, 160, 0.28); }
}
/* 卡片交错呼吸节奏 */
.module-card:nth-child(2) { animation-delay: -1s; }
.module-card:nth-child(3) { animation-delay: -2s; }
.module-card:nth-child(4) { animation-delay: -3s; }
/* 卡片顶部能量线 */
.module-card::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.55), transparent);
  opacity: 0.6; transition: opacity 0.3s, left 0.3s, right 0.3s;
}
.module-card:hover::before { opacity: 1; left: 2%; right: 2%; }
.module-card:active { transform: scale(0.97); }
.module-card:hover { transform: translateY(-4px); }
.mc-icon { font-size: 30px; filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.5)); }
.mc-name { font-size: 17px; font-weight: 800; }
.mc-desc { font-size: 12px; color: var(--text-dim); }
.mc-tarot { border-color: rgba(34, 211, 238, 0.4); } .mc-tarot:hover { box-shadow: 0 8px 26px rgba(34, 211, 238, 0.18); }
.mc-bazi { border-color: rgba(129, 140, 248, 0.4); } .mc-bazi:hover { box-shadow: 0 8px 26px rgba(129, 140, 248, 0.18); }
.mc-yinyuan { border-color: rgba(244, 114, 182, 0.4); } .mc-yinyuan:hover { box-shadow: 0 8px 26px rgba(244, 114, 182, 0.18); }
.mc-daily { border-color: rgba(192, 132, 252, 0.4); } .mc-daily:hover { box-shadow: 0 8px 26px rgba(192, 132, 252, 0.18); }

.footnote { text-align: center; color: var(--text-faint); font-size: 11.5px; margin-top: 26px; }

/* ---------- 按钮 ---------- */
.btn {
  font-family: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: 1px;
  border-radius: 12px; border: none; cursor: pointer; padding: 13px 22px; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--grad-cy); color: #04121a; box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 26px rgba(34, 211, 238, 0.5); }
/* 按钮扫光 */
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 36%;
  left: -50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 3.2s ease-in-out infinite;
}
@keyframes btnSheen {
  0% { left: -50%; }
  55%, 100% { left: 130%; }
}
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text-dim); }
.btn-block { display: block; width: 100%; }

/* ---------- 表单 ---------- */
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-row > label { font-size: 13.5px; color: var(--text-dim); letter-spacing: 1px; }
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--text);
  background: rgba(7, 12, 30, 0.75); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--panel-solid); color: var(--text); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.textarea { resize: none; }

.seg { display: flex; background: rgba(7, 12, 30, 0.75); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg-btn { flex: 1; font-family: inherit; font-size: 14.5px; padding: 8px 0; border: none; border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer; transition: all 0.2s; }
.seg-btn.active { background: var(--grad-cy); color: #04121a; font-weight: 700; }

.lunar-picks { display: flex; gap: 8px; }

/* ---------- 塔罗 ---------- */
.spread-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spread-card {
  position: relative; font-family: inherit; text-align: left; cursor: pointer;
  background: rgba(7, 12, 30, 0.6); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px 13px 40px; color: var(--text); transition: all 0.2s;
}
.spread-card::before { content: "✧"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 15px; transition: color 0.2s; }
.spread-card.active { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 16px rgba(34, 211, 238, 0.15); }
.spread-card.active::before { color: var(--cyan); }
.spread-name { display: block; font-size: 15px; font-weight: 700; }
.spread-count { display: block; font-size: 11.5px; color: var(--text-faint); }

.card-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 14px; }
.tarot-card {
  width: 84px; height: 132px; border-radius: 10px; cursor: pointer; position: relative;
  perspective: 700px; animation: cardDeal 0.5s ease backwards;
  transition: transform 0.3s ease;
}
.tarot-card:hover { transform: translateY(-6px) scale(1.04); z-index: 2; }
/* 未翻开的牌背悬浮光 */
.tarot-card:not(.flipped)::after {
  content: ''; position: absolute; inset: -6px; border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.28), transparent 70%);
  opacity: 0; transition: opacity 0.3s; animation: cardAura 2.6s ease-in-out infinite;
  pointer-events: none;
}
.tarot-card:not(.flipped):hover::after { opacity: 1; }
@keyframes cardAura {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes cardDeal { from { opacity: 0; transform: translateY(-26px) scale(0.85); } to { opacity: 1; transform: none; } }
.tarot-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1); }
.tarot-card.flipped .tarot-inner { transform: rotateY(180deg); }
.tarot-face, .tarot-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tarot-back {
  background: linear-gradient(150deg, #101a3f, #1b1445);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: inset 0 0 18px rgba(56, 88, 160, 0.35);
  color: var(--indigo); font-size: 30px;
}
.tarot-back::after { content: "✦"; text-shadow: 0 0 14px rgba(129, 140, 248, 0.9); }
.tarot-card.shuffling { animation: shuffle 0.55s ease; }
@keyframes shuffle { 0% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-14px) rotate(-4deg); } 50% { transform: translateX(12px) rotate(4deg); } 75% { transform: translateX(-7px) rotate(-2deg); } 100% { transform: translateX(0) rotate(0); } }
.tarot-face {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, #16213f, #0c1229);
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
  padding: 6px 4px; gap: 4px;
}
.tf-glyph { font-size: 26px; }
.tf-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.3; }
.tf-ori { font-size: 10.5px; padding: 1px 8px; border-radius: 99px; }
.tf-ori.up { color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.5); }
.tf-ori.rev { color: #f0abfc; border: 1px solid rgba(192, 132, 252, 0.5); }
.tf-pos { position: absolute; bottom: -22px; font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ---------- AI 解读结果 ---------- */
.ai-result {
  background: rgba(7, 12, 30, 0.7); border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius); padding: 18px 16px; font-size: 15.5px; line-height: 1.85;
  position: relative; animation: aiGlow 3.5s ease-in-out infinite;
}
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.08); }
  50% { box-shadow: 0 0 26px rgba(99, 102, 241, 0.22); }
}
.ai-result h4 { font-size: 16.5px; color: #a5f3fc; margin: 14px 0 6px; padding-left: 10px; border-left: 3px solid var(--cyan); }
.ai-result h4:first-child { margin-top: 0; }
.ai-result p { margin-bottom: 10px; color: #cdd7ec; }
.ai-result .cursor { display: inline-block; width: 8px; color: var(--cyan); animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-result .ai-loading { color: var(--text-dim); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ai-result .ai-loading::before { content: "✦"; color: var(--cyan); animation: spin 1.6s linear infinite; display: inline-block; }
.ai-result .ai-error { color: #fda4af; font-size: 14px; }
.ai-result strong { color: #e9f4ff; }

/* ---------- 八字 ---------- */
.bazi-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pillar { background: rgba(7, 12, 30, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; text-align: center; position: relative; overflow: hidden; }
/* 四柱能量流光（自下而上） */
.pillar::before {
  content: ''; position: absolute; left: 15%; right: 15%; bottom: -100%; height: 100%;
  background: linear-gradient(to top, rgba(34, 211, 238, 0.22), transparent);
  animation: pillarFlow 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pillarFlow {
  0% { bottom: -100%; opacity: 0; }
  40% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}
.pillar:nth-child(2)::before { animation-delay: -0.9s; }
.pillar:nth-child(3)::before { animation-delay: -1.8s; }
.pillar:nth-child(4)::before { animation-delay: -2.7s; }
.pillar-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.pillar-gan, .pillar-zhi { font-size: 22px; font-weight: 800; margin: 3px 0; }
.pillar-hidden { font-size: 10.5px; color: var(--text-faint); }
.wx-jin { color: #fde68a; text-shadow: 0 0 10px rgba(253, 230, 138, 0.5); }
.wx-mu { color: #86efac; text-shadow: 0 0 10px rgba(134, 239, 172, 0.5); }
.wx-shui { color: #7dd3fc; text-shadow: 0 0 10px rgba(125, 211, 252, 0.5); }
.wx-huo { color: #fca5a5; text-shadow: 0 0 10px rgba(252, 165, 165, 0.5); }
.wx-tu { color: #d6b98c; text-shadow: 0 0 10px rgba(214, 185, 140, 0.5); }

.bazi-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.meta-chip { font-size: 12.5px; color: var(--text-dim); background: rgba(7, 12, 30, 0.6); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.meta-chip b { color: #a5f3fc; font-weight: 600; }

.wuxing-box { margin: 14px 0; }
.wx-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.wx-name { width: 42px; font-size: 14px; flex-shrink: 0; }
.wx-bar-wrap { flex: 1; height: 10px; background: rgba(7, 12, 30, 0.8); border-radius: 99px; overflow: hidden; }
.wx-bar { height: 100%; border-radius: 99px; transition: width 1s ease; }
.wx-num { width: 20px; text-align: right; font-size: 13px; color: var(--text-dim); }

.dayun-list { margin-top: 10px; }
.dayun-item { display: flex; justify-content: space-between; padding: 7px 4px; font-size: 13.5px; border-bottom: 1px dashed rgba(56, 88, 160, 0.25); }
.dayun-item .dy-age { color: var(--text-faint); }

/* ---------- 姻缘 ---------- */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mode-card {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 8px; cursor: pointer; transition: all 0.2s;
}
.mode-card.active { border-color: var(--pink); color: #fde7f3; background: rgba(244, 114, 182, 0.1); box-shadow: 0 0 16px rgba(244, 114, 182, 0.15); }
.mode-icon { font-size: 19px; }
.yy-panel { animation: viewIn 0.3s ease; }

.stick-box { text-align: center; padding: 18px 0 6px; }
.stick-level { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; border-radius: 99px; padding: 4px 18px; margin-bottom: 12px; }
.sl-shangshang { color: #04121a; background: linear-gradient(120deg, #fbbf24, #f59e0b); box-shadow: 0 0 18px rgba(251, 191, 36, 0.4); }
.sl-shang { color: #f5e9ff; background: rgba(192, 132, 252, 0.18); border: 1px solid rgba(192, 132, 252, 0.6); }
.sl-zhong { color: #bae6fd; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.5); }
.sl-xia { color: #cbd5e1; background: rgba(100, 116, 139, 0.16); border: 1px solid rgba(100, 116, 139, 0.55); }
.stick-num { font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.stick-title { font-size: 20px; font-weight: 800; color: #fde7f3; margin-bottom: 10px; letter-spacing: 2px; }
.stick-poem { font-size: 16.5px; line-height: 2.1; color: #e2d9f5; white-space: pre-line; text-shadow: 0 0 12px rgba(192, 132, 252, 0.3); }
.stick-jie { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.stick-box.shaking, #yy-stick-box.shaking { animation: shake 0.12s linear 8; }
@keyframes shake { 0% { transform: rotate(0); } 25% { transform: rotate(2.5deg); } 50% { transform: rotate(-2deg); } 75% { transform: rotate(1.2deg); } 100% { transform: rotate(0); } }

.zodiac-verdict { text-align: center; padding: 6px 0 2px; }
.zv-emoji { font-size: 40px; }
.zv-text { font-size: 21px; font-weight: 800; margin: 8px 0 10px; }
.zv-detail { font-size: 14.5px; color: var(--text-dim); }

.person-form { background: rgba(7, 12, 30, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.person-form h4 { font-size: 14.5px; color: #f0abfc; margin-bottom: 10px; }

.hehun-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.hh-vs { font-size: 18px; font-weight: 900; color: var(--pink); text-shadow: 0 0 12px rgba(244, 114, 182, 0.5); }
.hh-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hh-pillar { text-align: center; font-size: 15px; font-weight: 700; background: rgba(7, 12, 30, 0.6); border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; }
.hh-person-label { text-align: center; font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }

/* ---------- 每日运势 ---------- */
.daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.daily-card { border-radius: 14px; padding: 16px 12px; text-align: center; min-height: 158px; }
.daily-stick { background: rgba(37, 20, 54, 0.55); border: 1px solid rgba(192, 132, 252, 0.45); }
.daily-tarot { background: rgba(9, 32, 47, 0.55); border: 1px solid rgba(34, 211, 238, 0.45); }
.dc-label { font-size: 12px; letter-spacing: 3px; color: var(--text-faint); margin-bottom: 8px; }
.dc-main { font-size: 19px; font-weight: 800; margin: 6px 0; }
.dc-sub { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.dc-glyph { font-size: 30px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  max-width: 560px; margin: 0 auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 22, 0.88); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit; font-size: 11px; color: var(--text-faint); background: none; border: none; cursor: pointer; padding: 4px 0; transition: color 0.2s; }
.tab-icon { font-size: 21px; transition: transform 0.25s; filter: grayscale(0.5) opacity(0.75); }
.tab.active { color: #67e8f9; }
.tab.active .tab-icon { transform: translateY(-2px) scale(1.12); filter: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(15, 24, 48, 0.95); border: 1px solid var(--cyan); color: #a5f3fc;
  font-size: 14px; padding: 10px 22px; border-radius: 99px; opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 99; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 桌面端 ---------- */
@media (min-width: 640px) {
  #app { padding-top: 16px; }
  .hero { padding-top: 40px; }
  .module-grid { grid-template-columns: repeat(4, 1fr); }
  .spread-grid { grid-template-columns: repeat(3, 1fr); }
  .tarot-card { width: 96px; height: 150px; }
}
