/* ===================== 基础变量 ===================== */
:root {
  --bg-0: #070b24;
  --bg-1: #0d1136;
  --bg-2: #1a1147;
  --gold: #f5d76e;
  --gold-soft: #e8c06a;
  --blue: #6ec3f4;
  --violet: #8a7dff;
  --purple: #b07dff;
  --text: #eef2ff;
  --muted: #a7adda;
  --line: rgba(180, 190, 255, 0.14);
  --glass: rgba(28, 30, 70, 0.45);
  --glass-strong: rgba(30, 32, 78, 0.72);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 75% -10%, #2a1a5e 0%, transparent 55%),
              radial-gradient(1000px 700px at 5% 20%, #15235e 0%, transparent 50%),
              linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===================== 星空背景 ===================== */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.nebula {
  position: fixed; border-radius: 50%; filter: blur(80px);
  opacity: 0.35; z-index: 0; pointer-events: none; animation: float 18s ease-in-out infinite;
}
.nebula-1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, #6d52ff, transparent 65%); }
.nebula-2 { width: 460px; height: 460px; bottom: 5%; left: -120px; background: radial-gradient(circle, #2b7fff, transparent 65%); animation-delay: -6s; }
.nebula-3 { width: 380px; height: 380px; top: 40%; left: 55%; background: radial-gradient(circle, #b07dff, transparent 65%); animation-delay: -11s; }

@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.08); } }

/* ===================== 通用 ===================== */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 110px 32px; }

.section-head { text-align: center; margin-bottom: 56px; }
.kicker { color: var(--gold); letter-spacing: 4px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.section-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  background: linear-gradient(120deg, #fff 20%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

.grad-text {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  background: linear-gradient(110deg, var(--gold) 0%, #fff 50%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* ===================== 按钮 ===================== */
.btn {
  font-family: inherit; cursor: pointer; border: none; border-radius: 999px;
  padding: 11px 24px; font-size: 15px; font-weight: 500; color: var(--text);
  transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #2a1c05; font-weight: 700; box-shadow: 0 8px 26px rgba(245, 215, 110, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 34px rgba(245, 215, 110, 0.5); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-outline { background: transparent; border: 1px solid rgba(138,125,255,0.55); color: var(--text); }
.btn-outline:hover { background: rgba(138,125,255,0.16); border-color: var(--violet); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-mini { padding: 8px 16px; font-size: 13px; background: rgba(138,125,255,0.18); border: 1px solid var(--line); }
.btn-mini:hover { background: rgba(138,125,255,0.32); }

/* ===================== 视图切换 ===================== */
.view { display: none; }
.view.active { display: block; animation: viewIn .45s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== 导航 ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(9, 12, 38, 0.78); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--gold); font-size: 22px; filter: drop-shadow(0 0 8px rgba(245,215,110,.6)); }
.brand-text { font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-weight: 700; font-size: 20px; letter-spacing: 2px; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10px; letter-spacing: 4px; color: var(--muted); font-weight: 400; margin-top: 3px; }

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; position: relative; transition: color .25s; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* 下拉菜单 */
.nav-dropdown { position: relative; }
.dropdown-trigger .caret { font-size: 11px; transition: transform .25s; display: inline-block; }
.nav-dropdown:hover .dropdown-trigger .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  margin-top: 14px; min-width: 140px; padding: 8px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .25s;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown-menu a { display: block; padding: 11px 16px; border-radius: 9px; color: var(--text); font-size: 14px; transition: background .2s; }
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: rgba(245,215,110,0.14); color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ===================== Hero ===================== */
.hero {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  min-height: 100vh; padding: 140px 32px 80px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
}
.hero-eyebrow { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 22px; }
.hero-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 700;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.22; margin-bottom: 22px;
}
.hero-desc { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; align-items: center; gap: 26px; }
.hero-stats > div:not(.divider) { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 30px; color: var(--gold); line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 13px; margin-top: 6px; }
.hero-stats .divider { width: 1px; height: 38px; background: var(--line); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-orb { position: relative; width: 380px; height: 380px; }
.hero-orb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 14%; border-radius: 50%;
  border: 2px solid rgba(245,215,110,0.4);
  box-shadow: 0 0 60px rgba(138,125,255,0.5), inset 0 0 40px rgba(0,0,0,0.4);
  position: relative; z-index: 2;
}
.orb-ring {
  position: absolute; inset: -26px; border-radius: 50%;
  border: 1px dashed rgba(245,215,110,0.45); animation: spin 26s linear infinite;
}
.orb-ring::before, .orb-ring::after { content: "✦"; position: absolute; color: var(--gold); font-size: 18px; filter: drop-shadow(0 0 6px var(--gold)); }
.orb-ring::before { top: -10px; left: 50%; }
.orb-ring::after { bottom: -10px; left: 50%; }
.orb-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(138,125,255,0.4), transparent 65%); filter: blur(20px); z-index: 1; animation: pulse 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: 2px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--gold); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 20px; } }

/* ===================== 每日运势 ===================== */
.zodiac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 44px; }
.zodiac-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all .25s; text-align: center;
}
.zodiac-item:hover { transform: translateY(-4px); background: rgba(138,125,255,0.12); border-color: rgba(138,125,255,0.4); }
.zodiac-item.active { background: linear-gradient(135deg, rgba(245,215,110,0.22), rgba(138,125,255,0.18)); border-color: var(--gold); box-shadow: 0 8px 26px rgba(245,215,110,0.18); }
.zodiac-item .glyph { font-size: 28px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(245,215,110,.4)); }
.zodiac-item .zn { font-size: 14px; font-weight: 500; }
.zodiac-item .zd { font-size: 11px; color: var(--muted); }

.fortune-card { border-radius: var(--radius); padding: 34px; max-width: 860px; margin: 0 auto; }
.fortune-card-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.fortune-sign { font-size: 52px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,215,110,.5)); }
.fortune-card-head h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 24px; }
.fortune-card-head p { color: var(--muted); font-size: 14px; }
.fortune-score { margin-left: auto; text-align: right; }
.fortune-score span { color: var(--gold); font-size: 22px; letter-spacing: 2px; display: block; }
.fortune-score small { color: var(--muted); font-size: 12px; }
.fortune-text { color: #d6dbff; font-size: 16px; line-height: 1.9; margin-bottom: 24px; }
.fortune-meta { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.fortune-meta > div { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 6px; }
.fortune-meta span { color: var(--muted); font-size: 13px; }
.fortune-meta strong { color: var(--gold); font-size: 17px; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }

/* ===================== RPG ===================== */
.rpg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rpg-card { border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.rpg-card:hover { transform: translateY(-8px); box-shadow: 0 28px 70px rgba(138,125,255,0.3); }
.rpg-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.rpg-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rpg-card:hover .rpg-cover img { transform: scale(1.08); }
.rpg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,38,0.95) 0%, transparent 55%); }
.rpg-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(245,215,110,0.92); color: #2a1c05; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.rpg-body { padding: 18px 20px 22px; }
.rpg-body h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 18px; margin-bottom: 8px; }
.rpg-body p { color: var(--muted); font-size: 13.5px; line-height: 1.7; min-height: 70px; }
.rpg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.rpg-foot .ep { color: var(--blue); font-size: 12px; letter-spacing: 1px; }
.rpg-more { text-align: center; margin-top: 44px; }

/* ===================== 合盘匹配 ===================== */
.match-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: stretch; }
.match-form { border-radius: var(--radius); padding: 34px; }
.match-form h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 21px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .25s, background .25s;
}
.field input:focus { outline: none; border-color: var(--gold); background: rgba(245,215,110,0.06); }
.field input::placeholder { color: rgba(167,173,218,0.55); }
.picker-wrap {
  position: relative;
}
.picker-input {
  cursor: pointer;
  letter-spacing: 0.3px;
  padding-right: 74px;
}
.picker-wrap .picker-input {
  margin-bottom: 0;
}
.picker-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 52px;
  height: 30px;
  border: 1px solid rgba(245,215,110,0.22);
  border-radius: 9px;
  background: rgba(245,215,110,0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.picker-trigger:hover {
  background: rgba(245,215,110,0.16);
  border-color: rgba(245,215,110,0.38);
}
.picker-trigger:focus-visible {
  outline: 2px solid rgba(245,215,110,0.55);
  outline-offset: 2px;
}
.picker-input[type="date"], .picker-input[type="time"] { color-scheme: dark; }
.flatpickr-input[readonly] { cursor: pointer; }
.picker-wrap.picker-open { z-index: 40; }
.picker-wrap.picker-open .picker-input {
  border-color: var(--gold);
  background: rgba(245,215,110,0.06);
}
.picker-wrap.picker-open .picker-trigger {
  background: rgba(245,215,110,0.18);
  border-color: rgba(245,215,110,0.42);
}
.picker-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 45;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(245,215,110,0.18);
  background: rgba(17, 20, 58, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.picker-popover[hidden] {
  display: none !important;
}
.picker-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}
.picker-time-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.picker-time-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.picker-time-colon {
  align-self: center;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  padding-bottom: 8px;
}
.picker-time-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(180,190,255,0.16);
  border-radius: 12px;
  background: rgba(24, 29, 84, 0.98);
  color: var(--text);
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  color-scheme: dark;
  cursor: pointer;
}
.picker-time-select:hover,
.picker-time-select:focus {
  border-color: rgba(245,215,110,0.38);
  background: rgba(36, 42, 104, 0.98);
}
.picker-time-select:focus-visible {
  outline: 2px solid rgba(245,215,110,0.35);
  outline-offset: 1px;
}
.picker-time-select option {
  background: rgba(17, 20, 58, 0.98);
  color: var(--text);
}

.flatpickr-calendar {

  background: rgba(17, 20, 58, 0.98);
  border: 1px solid rgba(245,215,110,0.18);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  width: 338px;
}
.flatpickr-calendar.open { z-index: 3000; }
.flatpickr-months, .flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-time { background: transparent; }
.flatpickr-months {
  height: 58px;
  align-items: center;
}
.flatpickr-months .flatpickr-month {
  height: 58px;
}
.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  left: 44px;
  right: 44px;
  padding: 10px 0 0;
  height: 58px;
}
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .picker-year-select,
.flatpickr-current-month input.cur-year {
  color: var(--text);
  fill: var(--text);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .picker-year-select,
.flatpickr-current-month input.cur-year {
  height: 38px;
  border: 1px solid rgba(180,190,255,0.16);
  border-radius: 10px;
  background: rgba(24, 29, 84, 0.98);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color-scheme: dark;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .picker-year-select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  min-width: 78px;
  padding: 0 10px;
}
.flatpickr-current-month .picker-year-select {
  min-width: 96px;
  padding: 0 10px;
}
.flatpickr-current-month .numInputWrapper {
  display: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option,
.flatpickr-current-month .picker-year-select option {
  background: rgba(17, 20, 58, 0.98);
  color: var(--text);
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .picker-year-select:hover,
.flatpickr-current-month .picker-year-select:focus {
  background: rgba(36, 42, 104, 0.98);
}
.flatpickr-current-month .flatpickr-monthDropdown-months:focus-visible,
.flatpickr-current-month .picker-year-select:focus-visible {
  outline: 2px solid rgba(245,215,110,0.35);
  outline-offset: 1px;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  top: 8px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(138,125,255,0.16);
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--gold); }
.flatpickr-weekdays { background: rgba(255,255,255,0.03); }
span.flatpickr-weekday {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  line-height: 36px;
}
.flatpickr-days,
.dayContainer {
  width: 322px;
  min-width: 322px;
  max-width: 322px;
}
.flatpickr-day {
  color: var(--text);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  line-height: 42px;
  font-size: 17px;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(138,125,255,0.2);
  border-color: transparent;
}
.flatpickr-day.today {
  border-color: rgba(245,215,110,0.9);
  color: var(--gold);
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  border-color: transparent;
  color: #2a1c05;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(167,173,218,0.28);
}



.form-tip { color: var(--muted); font-size: 12px; margin-top: 14px; text-align: center; }


.match-result { border-radius: var(--radius); padding: 34px; display: flex; gap: 30px; align-items: center; }
.match-chart { flex-shrink: 0; position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.chart-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(245,215,110,0.4); animation: spin 30s linear infinite; }
.chart-ring::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 1px solid rgba(138,125,255,0.4); }
.chart-core { text-align: center; display: flex; flex-direction: column; align-items: center; }
.chart-sun { font-size: 30px; color: var(--gold); }
.chart-core strong { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 20px; margin: 4px 0; }
.chart-core small { color: var(--muted); font-size: 12px; }
.match-list { flex: 1; }
.match-list h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 18px; margin-bottom: 16px; }
.match-person { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background .25s; }
.match-person:hover { background: rgba(138,125,255,0.12); }
.mp-avatar { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--line); flex-shrink: 0; }
.mp-info { flex: 1; display: flex; flex-direction: column; }
.mp-info strong { font-size: 15px; }
.mp-info span { color: var(--muted); font-size: 12px; }
.mp-score { color: var(--gold); font-weight: 700; font-size: 18px; text-align: right; display: flex; flex-direction: column; }
.mp-score small { color: var(--muted); font-size: 11px; font-weight: 400; }
.match-list .btn-block { margin-top: 16px; }

/* ===================== 社区 ===================== */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { border-radius: var(--radius); padding: 24px; transition: transform .3s; }
.post:hover { transform: translateY(-6px); }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-avatar { width: 42px; height: 42px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--line); }
.post-head strong { font-size: 15px; display: block; }
.post-head span { color: var(--muted); font-size: 12px; }
.post-badge { margin-left: auto; color: var(--gold); font-size: 12px; background: rgba(245,215,110,0.12); padding: 4px 10px; border-radius: 999px; }
.post p { color: #d6dbff; font-size: 14.5px; line-height: 1.8; margin-bottom: 16px; }
.post-foot { display: flex; gap: 20px; color: var(--muted); font-size: 13px; }
.post-foot span { cursor: pointer; transition: color .25s; }
.post-foot span:hover { color: var(--gold); }

/* ===================== 页脚 ===================== */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 40px; padding: 60px 32px 30px; background: rgba(7,10,30,0.5); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 280px; }
.footer-brand strong { font-family: "Cinzel", "Trajan Pro", Georgia, serif; letter-spacing: 1px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 15px; margin-bottom: 16px; color: var(--gold); }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .25s; }
.footer-cols a:hover { color: var(--text); }
.copyright { text-align: center; color: var(--muted); font-size: 13px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ===================== 注册/登录弹窗 ===================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(5,7,24,0.78);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  width: 860px; max-width: 100%; border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.auth-close { position: absolute; top: 16px; right: 18px; z-index: 5; background: rgba(0,0,0,0.3); border: 1px solid var(--line); color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px; transition: background .25s; }
.auth-close:hover { background: rgba(245,215,110,0.25); }
.auth-visual { position: relative; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,17,54,0.92), rgba(13,17,54,0.2)); }
.auth-visual-text { position: absolute; bottom: 30px; left: 28px; right: 28px; z-index: 2; }
.auth-visual-text h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 22px; margin-bottom: 8px; }
.auth-visual-text p { color: var(--muted); font-size: 14px; }
.auth-form { padding: 38px 36px; }
.auth-tabs { display: flex; gap: 8px; background: rgba(255,255,255,0.04); padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.auth-tab { flex: 1; background: none; border: none; color: var(--muted); padding: 10px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all .25s; }
.auth-tab.active { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: #2a1c05; font-weight: 700; }
.auth-title { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 22px; margin-bottom: 22px; }
.phone-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.04); overflow: hidden; transition: border-color .25s; }
.phone-input:focus-within { border-color: var(--gold); }
.phone-prefix { padding: 0 14px; color: var(--muted); border-right: 1px solid var(--line); font-size: 15px; }
.phone-input input { flex: 1; border: none; background: none; padding: 13px 14px; color: var(--text); font-size: 15px; font-family: inherit; }
.phone-input input:focus { outline: none; }
.code-input { display: flex; gap: 10px; }
.code-input input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); font-size: 15px; font-family: inherit; }
.code-input input:focus { outline: none; border-color: var(--gold); }
.btn-code { flex-shrink: 0; padding: 0 16px; font-size: 14px; }
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.agree { display: flex; align-items: center; gap: 9px; margin: 18px 0 22px; color: var(--muted); font-size: 13px; cursor: pointer; }
.agree input { accent-color: var(--gold); width: 16px; height: 16px; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.auth-provider strong { color: var(--blue); }
.provider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* ===================== Toast ===================== */
.toast {
  position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-80px);
  z-index: 2000; background: var(--glass-strong); border: 1px solid var(--gold);
  color: var(--text); padding: 13px 26px; border-radius: 999px; font-size: 14px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow); opacity: 0; transition: all .4s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===================== 星盘测算页 ===================== */
.xp-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.xp-form { border-radius: var(--radius); padding: 34px; }
.xp-form h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 21px; margin-bottom: 20px; }
.hint-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 22px;
  border-radius: 12px; background: rgba(245,215,110,0.1); border: 1px solid rgba(245,215,110,0.3);
  color: #f3e3b0; font-size: 13.5px;
}
.hint-box .hint-icon { color: var(--gold); font-size: 18px; }
.hint-box strong { color: var(--gold); }
.xp-form select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text); font-family: inherit; font-size: 15px;
  color-scheme: dark; cursor: pointer;
}
.xp-form select:focus { outline: none; border-color: var(--gold); }
/* 原生下拉弹出列表：深色背景，避免浅色文字看不清 */
.xp-form select option {
  background-color: #14163a;
  color: #eef2ff;
  padding: 8px 12px;
}
.xp-form select option:checked,
.xp-form select option:hover {
  background-color: #2a2b66;
  color: var(--gold);
}
.region-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.region-selects select { width: 100%; min-width: 0; }
.region-selects select:disabled { opacity: 0.45; cursor: not-allowed; }
.lunar-line {
  display: flex; align-items: center; gap: 10px; margin: -8px 0 18px;
  padding: 10px 14px; border-radius: 10px; background: rgba(138,125,255,0.1);
  border: 1px solid rgba(138,125,255,0.28); font-size: 14px; color: #d6dbff;
}
.lunar-tag { background: var(--violet); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 6px; flex-shrink: 0; }
#lunarText { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; letter-spacing: 1px; }

/* 结果区 */
.xp-result { border-radius: var(--radius); padding: 34px; min-height: 420px; }
.xp-empty { height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); gap: 18px; }
.xp-empty-orb { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: var(--gold); border: 1px dashed rgba(245,215,110,0.4); animation: pulse 4s ease-in-out infinite; }
.xp-empty p { font-size: 15px; line-height: 1.8; }

.xp-head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.xp-head .big-sign { font-size: 50px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,215,110,.5)); }
.xp-head h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 22px; }
.xp-head .xp-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.xp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.xp-cell { padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.xp-cell .xc-glyph { font-size: 30px; color: var(--gold); width: 40px; text-align: center; }
.xp-cell .xc-label { color: var(--muted); font-size: 12px; }
.xp-cell .xc-value { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 18px; }
.xp-cell .xc-deg { color: var(--blue); font-size: 12px; margin-left: 6px; }

.xp-section-title { font-size: 14px; color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.xp-section-title::before { content: "✦"; }

/* 圆形星盘轮 */
.chart-wheel { display: flex; justify-content: center; margin: 4px 0 26px; }
.wheel-svg { width: 100%; max-width: 440px; height: auto; transform-origin: 50% 50%; animation: wheelIn 0.9s cubic-bezier(.22,.9,.3,1); }
@keyframes wheelIn { from { transform: rotate(-26deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
.w-ring { fill: none; stroke: rgba(245,215,110,0.32); stroke-width: 1; }
.w-ring-soft { fill: none; stroke: rgba(180,190,255,0.2); stroke-width: 1; }
.w-core-disk { fill: rgba(13,17,54,0.6); stroke: rgba(245,215,110,0.4); stroke-width: 1.3; }
.w-spoke { stroke: rgba(180,190,255,0.22); stroke-width: 1; }
.w-sector { fill: rgba(138,125,255,0.05); stroke: none; cursor: pointer; transition: fill .2s; }
.w-sector.alt { fill: rgba(110,195,244,0.13); }
.w-sector:hover { fill: rgba(245,215,110,0.22); }
.w-sector.sel { fill: rgba(245,215,110,0.42); }
.w-zodiac-even { fill: rgba(138,125,255,0.12); stroke: none; }
.w-zsign { fill: var(--gold); font-size: 17px; }
.w-zname { fill: #cdc6ff; font-size: 10px; }
.w-roman { fill: var(--gold); font-size: 14px; font-family: "Cinzel", "Trajan Pro", Georgia, serif; letter-spacing: .5px; }
.w-sign { fill: #cdc6ff; font-size: 20px; }
.w-axis { stroke: rgba(245,215,110,0.7); stroke-width: 1.4; stroke-dasharray: 3 3; }
.w-axis-label { fill: var(--gold); font-size: 11px; font-family: "Cinzel", "Trajan Pro", Georgia, serif; letter-spacing: 1px; }
.w-planet-tick { stroke: rgba(255,255,255,0.45); stroke-width: 1; }
.w-planet { fill: #fff; font-size: 17px; }
.w-core-sym { fill: var(--gold); font-size: 36px; }
.w-core-text { fill: var(--text); font-size: 14px; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }
.w-core-sub { fill: var(--muted); font-size: 11px; }

/* 解读瀑布流 */
.reading-waterfall { column-count: 2; column-gap: 14px; }
.reading-card { break-inside: avoid; margin-bottom: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s; cursor: pointer; }
.reading-card:hover { transform: translateY(-3px); border-color: rgba(138,125,255,0.45); }
.reading-card.pulse { border-color: var(--gold); animation: cardPulse 1.1s ease; }
@keyframes cardPulse { 0% { box-shadow: 0 0 0 0 rgba(245,215,110,0.55); } 100% { box-shadow: 0 0 0 14px rgba(245,215,110,0); } }
.rc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rc-roman { font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 17px; color: var(--gold); width: 40px; height: 40px; flex-shrink: 0; border: 1px solid rgba(245,215,110,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rc-title strong { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; display: block; }
.rc-title .rc-sign { color: #cdc6ff; font-size: 12px; }
.rc-area { display: inline-block; background: rgba(138,125,255,0.18); color: #cdc6ff; font-size: 11px; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.rc-text { color: #d6dbff; font-size: 13.5px; line-height: 1.85; }

/* 综合解读面板 */
.xp-analysis { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.an-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.an-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.an-item .an-icon { font-size: 24px; color: var(--gold); width: 34px; text-align: center; flex-shrink: 0; }
.an-item .an-head { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.an-item .an-head strong { color: var(--text); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; margin-right: 6px; }
.an-item .an-head .an-tag { background: rgba(138,125,255,0.2); color: #cdc6ff; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-left: 4px; }
.an-item .an-text { font-size: 13.5px; color: #d6dbff; line-height: 1.8; }
.an-summary { padding: 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(245,215,110,0.12), rgba(138,125,255,0.12)); border: 1px solid rgba(245,215,110,0.3); font-size: 14px; line-height: 1.9; color: #f3ecd0; }
.an-summary .an-summary-title { color: var(--gold); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; display: block; margin-bottom: 8px; }

/* 宫位解读弹窗 */
.house-card { width: 520px; max-width: 100%; border-radius: 22px; padding: 34px; position: relative; }
.house-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.house-modal-head .hm-sym { font-size: 46px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,215,110,.5)); }
.house-modal-head h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 22px; }
.house-modal-head .hm-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hm-area { display: inline-block; background: rgba(138,125,255,0.18); color: #cdc6ff; font-size: 12px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hm-theme { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hm-interpret { color: #e3e7ff; font-size: 15px; line-height: 2; }

.xp-meta-line { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.9; }
.xp-meta-line strong { color: var(--text); }
.dst-notice { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(245,215,110,0.12), rgba(110,195,244,0.08)); border: 1px solid rgba(245,215,110,0.26); }
.dst-notice-top { margin-top: -8px; }
.dst-notice-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.dst-notice-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(245,215,110,0.18); color: var(--gold); font-size: 17px; }
.dst-notice-title { color: var(--gold); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; }
.dst-notice-sub { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 2px; }
.dst-notice-list { display: flex; flex-direction: column; gap: 8px; }
.dst-notice-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(180,190,255,0.12); }
.dst-notice-role { min-width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(245,215,110,0.18); color: var(--gold); font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 13px; }
.dst-notice-text { color: var(--text); font-size: 12.8px; line-height: 1.7; }



/* ===================== 占位页 ===================== */
.placeholder { text-align: center; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-top: 120px; }
.ph-orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; color: var(--gold); border: 1px dashed rgba(245,215,110,0.45); animation: pulse 4s ease-in-out infinite; }

/* ===================== 完整版（专业）===================== */
.ver-tabs { display: flex; gap: 8px; background: rgba(255,255,255,0.04); padding: 5px; border-radius: 12px; margin-bottom: 24px; }
.ver-tab { flex: 1; background: none; border: none; color: var(--muted); padding: 12px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 15px; transition: all .25s; }
.ver-tab.active { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: #2a1c05; font-weight: 700; }
.pro-loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

.pro-wheel { max-width: 480px; }
.pw-planet { fill: #fff; font-size: 18px; cursor: pointer; }
.pw-planet:hover, .pw-planet.sel { fill: var(--gold); }
.pw-retro { fill: #ff8a8a; font-size: 10px; }
.pw-hsector { fill: rgba(138,125,255,0.04); cursor: pointer; transition: fill .2s; }
.pw-hsector:hover { fill: rgba(245,215,110,0.16); }
.pw-hsector.sel { fill: rgba(245,215,110,0.34); }
.asp { stroke-width: 1.1; opacity: 0.72; }
.asp-conj { stroke: var(--gold); }
.asp-sextile, .asp-trine { stroke: #6ec3f4; }
.asp-square, .asp-opp { stroke: #ff6b6b; }
.asp-legend { text-align: center; color: var(--muted); font-size: 12px; margin: -8px 0 20px; }
.asp-legend .lg { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin: 0 4px 0 10px; }
.asp-legend .lg-conj { background: var(--gold); }
.asp-legend .lg-soft { background: #6ec3f4; }
.asp-legend .lg-hard { background: #ff6b6b; }

.pro-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pro-table th { text-align: left; color: var(--gold); font-weight: 500; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pro-table td { padding: 10px 12px; border-bottom: 1px solid rgba(180,190,255,0.08); }
.pro-table tr:hover td { background: rgba(138,125,255,0.08); }
.pt-name { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }
.pt-glyph { color: var(--gold); font-size: 17px; margin-right: 8px; }
.pt-deg { color: var(--blue); font-size: 12px; }
.pt-retro { color: #ff8a8a; }
.pt-direct { color: var(--muted); }
.pt-row { cursor: pointer; }
.ph-cell { cursor: pointer; transition: border-color .2s; }
.ph-cell:hover { border-color: var(--gold); }
.rc-pglyph { font-size: 20px; }
.rc-tag { display: inline-block; background: rgba(138,125,255,0.22); color: #cdc6ff; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-right: 8px; font-weight: 400; }

.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ph-cell { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); text-align: center; }
.ph-num { font-family: "Cinzel", "Trajan Pro", Georgia, serif; color: var(--gold); font-size: 14px; }
.ph-sign { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 14px; }
.ph-deg { color: var(--blue); font-size: 11px; }

.asp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.asp-row { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border-left: 3px solid var(--line); font-size: 13.5px; }
.asp-row-top { display: flex; align-items: center; gap: 10px; }
.asp-row.asp-line-conj { border-left-color: var(--gold); }
.asp-row.asp-line-sextile, .asp-row.asp-line-trine { border-left-color: #6ec3f4; }
.asp-row.asp-line-square, .asp-row.asp-line-opp { border-left-color: #ff6b6b; }
.asp-pair { flex: 1; }
.asp-mark { font-style: normal; color: var(--gold); margin: 0 4px; }
.asp-type { color: #cdc6ff; font-size: 12.5px; }
.asp-nature-和谐 { color: #8ee0a8; }
.asp-nature-紧张, .asp-nature-对立 { color: #ff9a9a; }
.asp-nature-聚合 { color: var(--gold); }
.asp-orb { color: var(--muted); font-size: 12px; }
.asp-text { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.6; }

.balance-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.balance-label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.bar4 { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.bar-seg { transition: flex .4s; }
.bar4-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.bar4-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.pro-note { color: var(--muted); font-size: 12px; opacity: 0.8; margin-top: 6px; }

/* —— 完整版增量：四轴 / 命主星 / 月相 / 交点 / 星群 / 半球象限 / 能量解读 —— */
.balance-reads { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bal-read { font-size: 13px; line-height: 1.7; color: var(--text); background: rgba(255,255,255,0.03); border-radius: 8px; padding: 8px 12px; }
.bal-read b { color: var(--gold); margin-right: 8px; font-weight: 500; }
.bal-read.bal-lack b { color: #ff9a9a; }

.axis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.axis-card { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.axis-head { display: flex; align-items: baseline; gap: 8px; }
.axis-key { font-family: "Cinzel", "Trajan Pro", Georgia, serif; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.axis-name { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; }
.axis-sign { margin-left: auto; font-size: 14px; }
.axis-deg { color: var(--blue); font-size: 11px; font-style: normal; margin-left: 6px; }
.axis-domain { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.axis-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.rp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ruler-card { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(138,125,255,0.14), rgba(255,255,255,0.03)); border: 1px solid var(--line); }
.ruler-glyph { font-size: 34px; color: var(--gold); line-height: 1; }
.ruler-title { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; color: var(--gold); }
.ruler-pos { font-size: 14px; margin: 4px 0 8px; }
.ruler-text { font-size: 13px; line-height: 1.7; color: var(--text); }
.phase-card { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); align-items: flex-start; }
.phase-emoji { font-size: 34px; line-height: 1; }
.phase-name { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; color: var(--gold); margin-bottom: 8px; }
.phase-ang { color: var(--muted); font-size: 12px; margin-left: 10px; }
.phase-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.node-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.node-card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.node-north { border-left: 3px solid var(--gold); }
.node-south { border-left: 3px solid #7d9bff; }
.node-tag { font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.node-south .node-tag { color: #9ab0ff; }
.node-pos { font-size: 14px; margin-bottom: 8px; }
.node-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.stellium-wrap { display: flex; flex-direction: column; gap: 10px; }
.stellium-card { padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(245,215,110,0.12), rgba(255,255,255,0.03)); border: 1px solid rgba(245,215,110,0.3); }
.stellium-tag { color: var(--gold); font-size: 14px; margin-bottom: 6px; }
.stellium-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.hemi-wrap { display: flex; flex-direction: column; gap: 12px; }
.hemi-bar { display: flex; align-items: center; gap: 12px; }
.hemi-l, .hemi-r { font-size: 12.5px; color: var(--muted); min-width: 84px; }
.hemi-r { text-align: right; }
.hemi-track { flex: 1; height: 10px; border-radius: 6px; background: rgba(125,155,255,0.18); overflow: hidden; }
.hemi-fill { height: 100%; transition: width .4s; }
.quad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.quad-cell { text-align: center; padding: 12px 8px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.quad-num { font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 22px; color: var(--gold); }
.quad-label { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* —— 尊贵 / 次相位 / 格局 / 截夺 / 相位网格 —— */
.pt-dig { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; font-style: normal; font-weight: 500; }
.pt-dig-庙 { background: rgba(245,215,110,0.22); color: #f5d76e; }
.pt-dig-旺 { background: rgba(110,195,244,0.2); color: #9ed8ff; }
.pt-dig-陷 { background: rgba(255,138,138,0.18); color: #ff9a9a; }
.pt-dig-落 { background: rgba(176,125,255,0.2); color: #c9b3ff; }
.rc-tag-dig { background: rgba(245,215,110,0.22); color: #f5d76e; }

.asp-cls { font-size: 11px; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; }
.asp-row.asp-minor { opacity: 0.86; }
.asp-row.asp-line-quincunx { border-left-color: #c9a0ff; }
.asp-row.asp-line-semisextile { border-left-color: #8ee0a8; }
.asp-row.asp-line-semisquare, .asp-row.asp-line-sesquiquadrate { border-left-color: #ffb37a; }
.asp-nature-调整 { color: #c9a0ff; }
.asp-nature-微和谐 { color: #8ee0a8; }
.asp-nature-微紧张 { color: #ffb37a; }

.pattern-card { padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(176,125,255,0.14), rgba(255,255,255,0.03)); border: 1px solid rgba(176,125,255,0.32); }
.pattern-tag { color: #c9b3ff; font-size: 14px; margin-bottom: 6px; }
.intercept-card { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-left: 3px solid #ff9a9a; }

.asp-grid-wrap { overflow-x: auto; }
.asp-grid { border-collapse: collapse; margin: 0 auto; }
.asp-grid td { width: 26px; height: 26px; text-align: center; font-size: 14px; border: 1px solid rgba(180,190,255,0.1); color: var(--text); }
.asp-grid .ag-head { font-size: 12px; color: var(--gold); font-weight: 500; background: rgba(138,125,255,0.08); }
.asp-grid .ag-cell { cursor: default; }
.asp-grid .ag-cell.asp-line-conj { background: rgba(245,215,110,0.28); color: var(--gold); }
.asp-grid .ag-cell.asp-line-sextile, .asp-grid .ag-cell.asp-line-trine { background: rgba(110,195,244,0.22); color: #9ed8ff; }
.asp-grid .ag-cell.asp-line-square, .asp-grid .ag-cell.asp-line-opp { background: rgba(255,107,107,0.2); color: #ff9a9a; }
.asp-grid .ag-cell.asp-line-quincunx, .asp-grid .ag-cell.asp-line-semisextile,
.asp-grid .ag-cell.asp-line-semisquare, .asp-grid .ag-cell.asp-line-sesquiquadrate { background: rgba(176,125,255,0.16); color: #c9b3ff; }

/* ===================== 合盘（Synastry） ===================== */
.syn-form { max-width: 1040px; margin: 0 auto 26px; }
.syn-persons { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: start; }
.syn-person { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.syn-a { border-top: 3px solid var(--gold); }
.syn-b { border-top: 3px solid #6ec3f4; }
.syn-person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.syn-person-head h3 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 17px; }
.syn-badge { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-weight: 600; font-size: 14px; color: #1a1140; }
.syn-badge-a { background: var(--gold); }
.syn-badge-b { background: #6ec3f4; }
.syn-heart { align-self: center; text-align: center; color: var(--gold); font-size: 18px; line-height: 1.4; }
.syn-heart span { display: block; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; color: var(--muted); margin: 4px 0; }

.syn-result-wrap { max-width: 1040px; margin: 0 auto; }

.syn-hero { display: flex; align-items: center; gap: 24px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(245,215,110,0.1), rgba(110,195,244,0.08)); border: 1px solid var(--line); margin-bottom: 22px; }
.score-ring { width: 116px; height: 116px; flex: 0 0 auto; }
.sr-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 9; }
.sr-fg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.sr-num { fill: #fff; font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 30px; font-weight: 600; text-anchor: middle; }
.sr-unit { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.syn-hero-body { flex: 1; }
.syn-tag { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 22px; color: var(--gold); margin-bottom: 6px; }
.syn-rel-text { font-size: 14px; line-height: 1.7; color: var(--text); }
.syn-elem { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.syn-elem-tag { display: inline-block; background: rgba(138,125,255,0.2); color: #cdc6ff; padding: 2px 10px; border-radius: 6px; margin-right: 8px; }

.syn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.syn-card { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.syn-card-a { border-left: 3px solid var(--gold); }
.syn-card-b { border-left: 3px solid #6ec3f4; }
.syn-card-top { display: flex; align-items: center; justify-content: space-between; }
.syn-big { font-size: 30px; color: var(--gold); }
.syn-card-sun { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 16px; margin: 6px 0 12px; }
.syn-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.syn-card-rows div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed rgba(180,190,255,0.12); padding-bottom: 4px; }
.syn-card-rows span { color: var(--muted); }
.syn-card-meta { margin-top: 12px; font-size: 12px; color: var(--muted); }

.hl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hl-col { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.hl-title { font-size: 14px; margin-bottom: 8px; }
.hl-title-h { color: #7dd3a0; }
.hl-title-t { color: #ffb37a; }
.hl-col ul { list-style: none; }
.hl-col li { font-size: 13px; padding: 5px 0; border-bottom: 1px dashed rgba(180,190,255,0.1); }
.hl-harm { color: #aee9c4; }
.hl-tense { color: #ffd2ad; }

.syn-asp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.syn-asp { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border-left: 3px solid var(--line); }
.syn-asp.asp-line-conj { border-left-color: var(--gold); }
.syn-asp.asp-line-sextile, .syn-asp.asp-line-trine { border-left-color: #6ec3f4; }
.syn-asp.asp-line-square, .syn-asp.asp-line-opp { border-left-color: #ff6b6b; }
.syn-asp.asp-line-quincunx, .syn-asp.asp-line-semisextile,
.syn-asp.asp-line-semisquare, .syn-asp.asp-line-sesquiquadrate { border-left-color: #c9a0ff; }
.syn-asp.asp-minor { opacity: 0.88; }
.syn-asp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.syn-asp-pair { font-size: 13.5px; }

.dim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dim-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.dim-top { font-size: 14px; color: var(--text); }
.dim-icon { margin-right: 4px; }
.score-ring-mini { width: 66px; height: 66px; }
.sr-num-mini { fill: #fff; font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: 20px; font-weight: 600; text-anchor: middle; }

.syn-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.syn-table-head { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.syn-legend { text-align: center; font-size: 12.5px; color: var(--muted); margin: 12px 0; }
.syn-legend .lg-a { color: var(--gold); margin-right: 12px; }
.syn-legend .lg-b { color: #6ec3f4; margin-right: 16px; }
.syn-legend .lg { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin: 0 4px 0 8px; }
.syn-wheel .syn-pa { fill: var(--gold); font-size: 17px; }
.syn-wheel .syn-pb { fill: #7fd0ff; font-size: 17px; }

/* 五星默契度 */
.star-bar { display: inline-flex; align-items: center; gap: 2px; }
.star-bar .st { font-style: normal; font-size: 17px; line-height: 1; }
.star-bar .st.full { color: var(--gold); }
.star-bar .st.empty { color: rgba(255,255,255,0.18); }
.star-bar .st.half { position: relative; color: rgba(255,255,255,0.18); }
.star-bar .st.half::before { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--gold); }
.star-num { margin-left: 6px; font-family: "Cinzel", "Trajan Pro", Georgia, serif; color: var(--gold); font-size: 13px; }
.syn-hero-stars { margin: 4px 0 8px; }

/* 综合解读 */
.syn-summary { background: linear-gradient(135deg, rgba(245,215,110,0.1), rgba(176,125,255,0.08)); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.syn-summary-title { display: block; color: var(--gold); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 15px; margin-bottom: 8px; }
.syn-summary p { font-size: 14px; line-height: 1.8; color: var(--text); }

/* 维度卡（含星级 + 解读） */
.dim-card .dim-stars { margin: 2px 0 6px; }
.dim-text { font-size: 12.5px; line-height: 1.65; color: var(--muted); text-align: left; align-self: stretch; width: 100%; }

/* 单条相位默契度小星 */
.syn-asp-stars { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.syn-asp-stars-lb { font-size: 11px; color: var(--muted); }
.syn-asp-stars .star-bar .st { font-size: 13px; }
.syn-asp-stars .star-num { font-size: 11px; }
.dim-text { font-size: 12.5px; line-height: 1.65; color: var(--muted); text-align: left; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
  .rpg-grid { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { position: fixed; top: 66px; right: 16px; flex-direction: column; gap: 0; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 16px; padding: 10px; backdrop-filter: blur(18px); display: none; min-width: 180px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-orb { width: 280px; height: 280px; }
  .match-wrap { grid-template-columns: 1fr; }
  .match-result { flex-direction: column; text-align: center; }
  .xp-wrap { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 70px 18px; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .rpg-grid { grid-template-columns: 1fr; }
  .feed { grid-template-columns: 1fr; }
  .fortune-card, .match-form, .match-result, .auth-form { padding: 24px; }
  .xp-form, .xp-result { padding: 22px; }
  .xp-grid { grid-template-columns: 1fr; }
  .house-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-waterfall { column-count: 1; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .asp-list { grid-template-columns: 1fr; }
  .balance-wrap { grid-template-columns: 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .rp-wrap { grid-template-columns: 1fr; }
  .node-wrap { grid-template-columns: 1fr; }
  .quad-grid { grid-template-columns: repeat(2, 1fr); }
  .syn-persons { grid-template-columns: 1fr; }
  .syn-heart { transform: rotate(90deg); justify-self: center; }
  .syn-cards { grid-template-columns: 1fr; }
  .syn-asp-list { grid-template-columns: 1fr; }
  .hl-wrap { grid-template-columns: 1fr; }
  .dim-grid { grid-template-columns: repeat(2, 1fr); }
  .syn-tables { grid-template-columns: 1fr; }
  .syn-hero { flex-direction: column; text-align: center; }
  .login-btn-hide { display: none; }
  .nav-inner { padding: 14px 18px; gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .brand-text { font-size: 17px; }
  .brand-text small { font-size: 9px; letter-spacing: 2px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 36px; }
}
@media (max-width: 380px) {
  /* 超窄屏（iPhone SE 等）：注册按钮缩成"注册"二字 */
  .nav-actions .btn-gold#registerBtn { padding: 8px 12px; font-size: 13px; }
}
