/* =========================================================
   水镜先生 AI · Neo-Celestial 东方星象科技视觉系统
   ========================================================= */
:root {
  --bg: #070B14;
  --bg-elevated: #0D1424;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-solid: #111A2E;
  --surface-alt: rgba(30, 41, 66, 0.55);
  --ink: #E6EDF7;
  --ink-muted: #8B9BB4;
  --border: rgba(125, 211, 252, 0.14);
  --border-strong: rgba(125, 211, 252, 0.28);

  --cyan: #38BDF8;
  --cyan-bright: #22D3EE;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --gold: #E5B96B;
  --gold-soft: rgba(229, 185, 107, 0.14);
  --vermilion: #F06449;
  --vermilion-soft: rgba(240, 100, 73, 0.16);
  --jade: #34D399;
  --jade-soft: rgba(52, 211, 153, 0.14);

  /* 五行霓虹色 */
  --wx-wood: #34D399;
  --wx-fire: #FB7185;
  --wx-earth: #E5B96B;
  --wx-metal: #CBD5E1;
  --wx-water: #38BDF8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 24px rgba(56, 189, 248, 0.22);

  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* ==================== 科技星象动态背景 ==================== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, rgba(26, 48, 86, 0.55) 0%, transparent 45%),
              radial-gradient(circle at 84% 78%, rgba(74, 52, 24, 0.26) 0%, transparent 45%),
              linear-gradient(180deg, #070B14 0%, #0A1020 100%);
}

.cosmic-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
}

.astrolabe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(229, 185, 107, 0.14);
}

.ring-1 {
  width: 680px;
  height: 680px;
  top: -220px;
  right: -180px;
  animation: spinSlow 90s linear infinite;
}

.ring-2 {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -140px;
  border-color: rgba(56, 189, 248, 0.12);
  animation: spinSlow 65s linear infinite reverse;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cosmic-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}

.glow-cyan {
  width: 380px;
  height: 380px;
  top: 10%;
  left: -100px;
  background: rgba(56, 189, 248, 0.32);
}

.glow-gold {
  width: 340px;
  height: 340px;
  bottom: 8%;
  right: -80px;
  background: rgba(229, 185, 107, 0.25);
}

/* ==================== 基础排版 ==================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

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

.hidden {
  display: none !important;
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(229, 185, 107, 0.26));
  border: 1px solid rgba(229, 185, 107, 0.55);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(229, 185, 107, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.2;
}

.ai-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.brand-sub {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: #F8FAFC;
  background: rgba(56, 189, 248, 0.08);
}

.nav-btn.active {
  color: #070B14;
  background: linear-gradient(135deg, var(--cyan) 0%, #7DD3FC 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

/* ==================== Today Ticker ==================== */
.today-ticker {
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  flex-shrink: 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.ticker-date {
  color: var(--ink);
  font-weight: 500;
}

.ticker-meta {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ==================== Main & Sections ==================== */
.main-content {
  padding-top: 32px;
  padding-bottom: 100px;
  min-height: calc(100vh - 200px);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.28s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.section-head h1 {
  font-size: 28px;
  line-height: 1.25;
}

.section-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ==================== Cards & UI Controls ==================== */
.card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(125, 211, 252, 0.24);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.card-header-row h2 {
  font-size: 19px;
}

.muted-note {
  font-size: 13px;
  color: var(--ink-muted);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-cyan {
  background: var(--cyan-soft);
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(229, 185, 107, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0EA5E9 100%);
  color: #070B14;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ai {
  background: linear-gradient(135deg, rgba(229, 185, 107, 0.18), rgba(56, 189, 248, 0.18));
  border: 1px solid rgba(229, 185, 107, 0.45);
  color: var(--gold);
  font-weight: 500;
}

.btn-ai:hover {
  background: linear-gradient(135deg, rgba(229, 185, 107, 0.28), rgba(56, 189, 248, 0.26));
  box-shadow: 0 0 18px rgba(229, 185, 107, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.5);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.input-field, .input-date {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 20, 0.72);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-sm {
  padding: 7px 10px;
  font-size: 12.5px;
}

.input-date {
  width: auto;
  padding: 6px 10px;
}

.input-field:focus, .input-date:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.segmented-control {
  display: inline-flex;
  background: rgba(7, 11, 20, 0.7);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.seg-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--cyan-bright);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

/* ==================== 1. Almanac ==================== */
.date-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.almanac-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.almanac-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(165deg, rgba(20, 32, 58, 0.85) 0%, rgba(11, 18, 34, 0.9) 100%);
  border-top: 2px solid var(--gold);
}

.almanac-hero-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.almanac-day-num {
  font-family: var(--font-serif);
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #FFF7E6 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0;
}

.almanac-gregorian {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.almanac-lunar {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 6px;
}

.almanac-ganzhi {
  font-size: 13.5px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.almanac-zodiac-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  width: 100%;
  justify-content: center;
}

.almanac-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yiji-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.yiji-label {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.yi-label {
  background: var(--jade-soft);
  color: var(--jade);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ji-label {
  background: var(--vermilion-soft);
  color: var(--vermilion);
  border: 1px solid rgba(240, 100, 73, 0.35);
}

.yiji-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.yiji-tag {
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.meta-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mini-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.mini-value {
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--gold);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.hour-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  text-align: center;
  background: rgba(7, 11, 20, 0.45);
  position: relative;
  transition: all 0.2s;
}

.hour-cell.is-now {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: var(--glow-cyan);
}

.hour-now-tag {
  position: absolute;
  top: -8px;
  right: 6px;
  background: var(--cyan);
  color: #070B14;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.hour-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}

.hour-range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin: 2px 0 6px;
}

.hour-luck {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.hour-luck.ji {
  background: var(--jade-soft);
  color: var(--jade);
}

.hour-luck.xiong {
  background: rgba(148, 163, 184, 0.14);
  color: var(--ink-muted);
}

/* ==================== 2. Bazi & Ziwei ==================== */
.form-card {
  margin-bottom: 20px;
}

.bazi-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr auto;
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.bazi-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pillar-box {
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}

.pillar-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.pillar-chars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gz-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
}

.wx-木 { color: var(--wx-wood); border-color: rgba(52, 211, 153, 0.45); box-shadow: inset 0 0 12px rgba(52, 211, 153, 0.12); }
.wx-火 { color: var(--wx-fire); border-color: rgba(251, 113, 133, 0.45); box-shadow: inset 0 0 12px rgba(251, 113, 133, 0.12); }
.wx-土 { color: var(--wx-earth); border-color: rgba(229, 185, 107, 0.45); box-shadow: inset 0 0 12px rgba(229, 185, 107, 0.12); }
.wx-金 { color: var(--wx-metal); border-color: rgba(203, 213, 225, 0.45); box-shadow: inset 0 0 12px rgba(203, 213, 225, 0.12); }
.wx-水 { color: var(--wx-water); border-color: rgba(56, 189, 248, 0.45); box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.12); }

.pillar-wuxing {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wuxing-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.wx-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.wx-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.wx-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
  box-shadow: 0 0 10px currentColor;
}

.analysis-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

.ziwei-card {
  background: linear-gradient(155deg, rgba(22, 34, 62, 0.82) 0%, rgba(14, 21, 38, 0.88) 100%);
}

.ziwei-star-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  margin: 4px 0 8px;
}

.ziwei-keywords {
  font-size: 13.5px;
  color: var(--cyan);
  font-weight: 500;
}

.daymaster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tip-box {
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.tip-box strong {
  display: block;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 6px;
}

.tip-box p {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
}

/* ==================== 3. Horoscope ==================== */
.zodiac-selector {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.zodiac-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.zodiac-btn:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.zodiac-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(229, 185, 107, 0.16));
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.zodiac-btn .z-glyph {
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold);
}

.zodiac-btn .z-name {
  font-size: 13.5px;
  font-weight: 600;
}

.zodiac-btn .z-dates {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.horo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.horo-sign-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.horo-glyph {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(229, 185, 107, 0.45);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.horo-lucky-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucky-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--ink);
}

.lucky-pill strong {
  color: var(--cyan-bright);
}

.horo-quote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: #F8FAFC;
}

.horo-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.score-box {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.score-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.score-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.score-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 999px;
}

.horo-advice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ==================== 4. Compatibility ==================== */
.compat-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.compat-heart {
  font-size: 22px;
  color: var(--gold);
  padding-bottom: 8px;
  text-align: center;
}

.compat-result {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
}

.compat-score-ring {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  border: 4px solid var(--cyan);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(7, 11, 20, 0.7));
  box-shadow: var(--glow-cyan);
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 38px;
  margin: 0 auto;
}

.compat-score-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--cyan-bright);
  line-height: 1;
}

.compat-score-unit {
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: 3px;
}

.compat-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.compat-summary {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
}

.compat-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ==================== 5. Divination ==================== */
.div-panel {
  display: none;
}

.div-panel.active {
  display: block;
}

.oracle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(19, 31, 56, 0.8) 0%, rgba(10, 16, 30, 0.88) 100%);
}

.oracle-prompt {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 14px 0 18px;
}

.qian-cylinder {
  position: relative;
  width: 92px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.qian-cylinder.shaking {
  animation: shakeCylinder 0.55s ease-in-out;
}

@keyframes shakeCylinder {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg) translateY(-4px); }
  40% { transform: rotate(10deg) translateY(-6px); }
  60% { transform: rotate(-9deg) translateY(-3px); }
  80% { transform: rotate(7deg); }
}

.qian-sticks {
  display: flex;
  gap: 5px;
  margin-bottom: -10px;
  z-index: 1;
}

.qian-sticks span {
  width: 7px;
  height: 44px;
  background: linear-gradient(180deg, #F3D299 0%, #B88B4A 100%);
  border-radius: 3px 3px 0 0;
  border-top: 6px solid var(--cyan);
}

.qian-sticks span:nth-child(2) { height: 52px; transform: rotate(-5deg); }
.qian-sticks span:nth-child(3) { height: 56px; }
.qian-sticks span:nth-child(4) { height: 50px; transform: rotate(5deg); }

.qian-body {
  width: 82px;
  height: 92px;
  background: linear-gradient(135deg, #172542 0%, #0B1325 100%);
  border-radius: 8px 8px 14px 14px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 24px rgba(229, 185, 107, 0.22);
}

.qian-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.qian-title {
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 14px;
}

.qian-poem {
  margin: 0 0 20px;
  padding: 18px 22px;
  background: var(--surface-alt);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.9;
  color: #F8FAFC;
  white-space: pre-line;
}

.qian-explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Tarot */
.tarot-deck {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tarot-card-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.tarot-card-btn:hover {
  transform: translateY(-8px);
}

.tarot-card-btn.selected {
  transform: translateY(-10px) scale(1.04);
}

.tarot-card-back {
  width: 112px;
  height: 176px;
  border-radius: 12px;
  background: linear-gradient(145deg, #13203B 0%, #091020 100%);
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-md), inset 0 0 0 6px rgba(56, 189, 248, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
}

.tarot-star {
  font-size: 30px;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.tarot-back-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.tarot-reveal-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}

.tarot-face {
  width: 160px;
  min-height: 236px;
  border-radius: 14px;
  background: linear-gradient(180deg, #13203B 0%, #091020 100%);
  border: 1.5px solid var(--gold);
  color: #FFFDF9;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.2);
}

.tarot-face.reversed .tarot-symbol {
  transform: rotate(180deg);
}

.tarot-roman {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.tarot-symbol {
  font-size: 52px;
  line-height: 1;
  color: var(--cyan-bright);
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  transition: transform 0.3s ease;
}

.tarot-name-cn {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #FFFDF9;
}

.tarot-name-en {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

/* ==================== 悬浮 AI Agent（水镜先生） ==================== */
.agent-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(229, 185, 107, 0.55);
  background: rgba(11, 18, 34, 0.9);
  backdrop-filter: blur(14px);
  color: #F8FAFC;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agent-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(229, 185, 107, 0.38);
}

.agent-fab-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.agent-fab-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.agent-drawer {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 410px;
  max-width: calc(100vw - 24px);
  height: 620px;
  max-height: calc(100vh - 44px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(10, 16, 30, 0.94);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72), 0 0 36px rgba(56, 189, 248, 0.16);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
}

.agent-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(22, 34, 62, 0.9), rgba(11, 18, 34, 0.9));
  border-bottom: 1px solid var(--border);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar-lg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(229, 185, 107, 0.35);
}

.agent-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-title-row strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #F8FAFC;
}

.agent-status-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.agent-context-line {
  display: block;
  font-size: 11.5px;
  color: var(--gold);
  margin-top: 2px;
}

.agent-header-btns {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

/* 设置区（形象切换 + API配置） */
.agent-settings {
  padding: 14px 16px;
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.avatar-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--ink-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-opt img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-opt.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(229, 185, 107, 0.14);
}

.settings-actions {
  display: flex;
  gap: 8px;
}

/* 对话区 */
.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-row.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-line;
}

.msg-row.ai .msg-bubble {
  background: rgba(30, 41, 66, 0.72);
  border: 1px solid var(--border);
  color: var(--ink);
  border-top-left-radius: 4px;
}

.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #F8FAFC;
  border-top-right-radius: 4px;
}

.agent-quick-prompts {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.agent-quick-prompts::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(30, 41, 66, 0.6);
  color: var(--cyan-bright);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-chip:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.16);
}

.agent-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.85);
}

.agent-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}

.agent-input:focus {
  border-color: var(--cyan);
}

/* ==================== Footer ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.85);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer strong {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .almanac-grid,
  .two-col-grid,
  .compat-result,
  .tarot-reveal-layout {
    grid-template-columns: 1fr;
  }

  .meta-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bazi-form,
  .compat-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .compat-heart {
    display: none;
  }

  .zodiac-selector {
    grid-template-columns: repeat(4, 1fr);
  }

  .horo-scores {
    grid-template-columns: repeat(2, 1fr);
  }

  .daymaster-grid,
  .horo-advice-grid,
  .compat-tips,
  .qian-explain-grid {
    grid-template-columns: 1fr;
  }

  .tarot-face {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .main-nav {
    width: 100%;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bazi-form,
  .compat-inputs {
    grid-template-columns: 1fr;
  }

  .zodiac-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .agent-fab {
    right: 16px;
    bottom: 16px;
  }

  .agent-drawer {
    right: 12px;
    bottom: 12px;
    height: 78vh;
  }
}


/* =========================================================
   水镜运见 2.0 新增融合模块样式
   ========================================================= */

/* 全局档案条 */
.profile-strip-wrap {
  padding-top: 14px;
}

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(229, 185, 107, 0.25);
}

.profile-strip-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-summary-text {
  font-size: 13.5px;
  color: var(--ink);
}

.profile-editor {
  margin-top: 12px;
  border-color: rgba(56, 189, 248, 0.35);
}

.profile-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-editor-head strong {
  display: block;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 3px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

/* 个人今日五维运势卡片 */
.personal-fortune-card {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(19, 32, 58, 0.86) 0%, rgba(11, 18, 34, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.pf-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pf-score-ring {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 4px solid var(--cyan);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(7, 11, 20, 0.8));
  box-shadow: var(--glow-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pf-score-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--cyan-bright);
  line-height: 1;
}

.pf-score-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.pf-summary {
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.pf-dims-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pf-dim-item {
  background: rgba(7, 11, 20, 0.52);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.pf-dim-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 7px;
}

.pf-dim-top strong {
  font-family: var(--font-mono);
}

.pf-dim-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.pf-dim-fill {
  height: 100%;
  border-radius: 999px;
}

/* 流年与大运 */
.liunian-grid,
.dayun-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cycle-card {
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cycle-card.is-current {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(229, 185, 107, 0.14), rgba(15, 23, 42, 0.85));
  box-shadow: 0 0 20px rgba(229, 185, 107, 0.16);
}

.cycle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cycle-year {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}

.cycle-gz {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
}

.cycle-score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan-bright);
}

.cycle-tip {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* 趋势曲线 + 星座榜 */
.trend-card {
  margin-bottom: 20px;
}

.trend-chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 6px 0;
}

.trend-svg {
  width: 100%;
  min-width: 640px;
  height: 210px;
  display: block;
}

.trend-node-btn {
  cursor: pointer;
}

.trend-detail-strip {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-alt);
  border-left: 3px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}

.trends-zodiac-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: start;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.45);
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.rank-item:hover,
.rank-item.active {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.14);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

.rank-num.top3 {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(229, 185, 107, 0.4);
}

.rank-score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan-bright);
}

/* 塔罗 1张/3张牌阵 */
.tarot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tarot-spread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.tarot-spread-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.tarot-spread-card .tarot-face {
  width: 146px;
  min-height: 210px;
}

/* 复盘对账 */
.review-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

.review-compare-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.review-big-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}

.review-big-num.cyan { color: var(--cyan-bright); }
.review-big-num.gold { color: var(--gold); }

.review-vs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.range-slider {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.5);
  color: var(--ink-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.mood-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.review-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}

.checkin-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.checkin-item {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.5);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.checkin-scores {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan-bright);
}

.checkin-note {
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .personal-fortune-card,
  .trends-zodiac-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .pf-dims-grid,
  .liunian-grid,
  .dayun-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .profile-form-grid,
  .review-stats-row,
  .liunian-grid,
  .dayun-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== 每日五行穿衣指南 ==================== */
.wardrobe-card {
  margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(16, 26, 48, 0.84) 0%, rgba(10, 16, 30, 0.9) 100%);
  border: 1px solid rgba(229, 185, 107, 0.24);
}

.wardrobe-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wardrobe-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.52);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wardrobe-row:hover {
  border-color: rgba(125, 211, 252, 0.3);
  transform: translateX(2px);
}

.wardrobe-swatch {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.wardrobe-swatch svg {
  width: 32px;
  height: 32px;
}

.wardrobe-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.ward-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ward-badge-best { background: rgba(52, 211, 153, 0.18); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.4); }
.ward-badge-good { background: rgba(229, 185, 107, 0.18); color: #E5B96B; border: 1px solid rgba(229, 185, 107, 0.4); }
.ward-badge-mid  { background: rgba(56, 189, 248, 0.16); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.35); }
.ward-badge-weak { background: rgba(251, 113, 133, 0.16); color: #FB7185; border: 1px solid rgba(251, 113, 133, 0.35); }
.ward-badge-avoid { background: rgba(148, 163, 184, 0.16); color: #94A3B8; border: 1px solid rgba(148, 163, 184, 0.35); }

.wardrobe-colors {
  font-size: 14.5px;
  font-weight: 600;
  color: #F8FAFC;
}

.wardrobe-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.wardrobe-zodiac-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wz-box {
  background: rgba(7, 11, 20, 0.48);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-label {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.wz-vals {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wz-vals.best { color: #34D399; }
.wz-vals.sec { color: #E5B96B; }
.wz-vals.caution { color: #FB7185; }

@media (max-width: 720px) {
  .wardrobe-zodiac-bar {
    grid-template-columns: 1fr;
  }
}
