/* ===================== 基础变量 ===================== */
:root {
  /* 声明深色主题：阻止华为浏览器/鸿蒙 WebView/安卓 Chrome 的 Force Dark
     把深色背景上的浅色文字强制反转成黑色（2026-07-31 鸿蒙黑字事故） */
  color-scheme: dark;
  --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; overflow-x: hidden; }

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;
  /* 禁止横向橡皮筋滑动（微信/iOS 左右乱晃），纵向滚动不受影响 */
  touch-action: pan-y;
  line-height: 1.6;
  /* 短页面（星运/消息/我的等）页脚粘底：内容不足一屏时页脚仍贴底 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.footer { margin-top: auto; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===================== 星空背景 ===================== */
#starfield { position: fixed; top: 0; right: 0; bottom: 0; left: 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);
  color: #fff;   /* 兜底：-webkit-text-fill-color 失效时不至于黑字/透明 */
  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;
  color: var(--gold);   /* 兜底：text-fill-color 失效时显示金色而非黑字 */
  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 {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; 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);
  opacity: 0; transition: opacity .9s ease;
}
.hero-orb img.active { opacity: 1; }
.orb-ring {
  position: absolute; top: -26px; right: -26px; bottom: -26px; left: -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; top: -40px; right: -40px; bottom: -40px; left: -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; top: 0; right: 0; bottom: 0; left: 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：滚动区内含 60+ 格子，移动端 GPU 模糊重绘会卡死 */
}
.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);
}

/* ============================================================
 * 网格化选择器（年/月/时/分）——替代原生 <select>
 * 深空蓝半透明贴主题，一行多个，移动端触控尺寸防误点
 * ============================================================ */
/* 日历头部 月/年 按钮 */
.picker-my-bar { display: inline-flex; align-items: center; gap: 8px; }
.picker-my-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,215,110,0.10);
  border: 1px solid rgba(245,215,110,0.30);
  color: #f5e9c8; border-radius: 10px;
  padding: 4px 12px; font-size: 15px; line-height: 1.4; cursor: pointer;
  font-family: inherit;
}
.picker-my-btn i { font-style: normal; font-size: 10px; opacity: .55; }
.picker-my-btn:hover { background: rgba(245,215,110,0.18); border-color: rgba(245,215,110,0.55); }

/* 网格弹层（覆盖日历主体区） */
.picker-grid-panel {
  position: absolute;
  top: 58px; left: 0; right: 0; bottom: 0;
  z-index: 6;
  background: rgba(14, 18, 44, 0.97);       /* 深空蓝贴主题（不用 backdrop-filter，滚动区模糊会卡死） */
  border-top: 1px solid rgba(245,215,110,0.14);
  padding: 10px;
  overflow: hidden;
}
.picker-grid-panel[hidden] { display: none !important; }
.picker-grid {
  display: grid; gap: 7px;
  grid-template-columns: repeat(4, 1fr);
  height: 100%; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;             /* 滚动不穿透到底层页面 */
  padding-right: 2px;
}
.picker-grid::-webkit-scrollbar { width: 5px; }
.picker-grid::-webkit-scrollbar-thumb { background: rgba(245,215,110,0.25); border-radius: 3px; }
.picker-grid-month { grid-template-columns: repeat(4, 1fr); align-content: start; height: auto; max-height: 100%; }

.picker-cell {
  min-height: 40px;
  border: 1px solid rgba(180,190,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #cdd3ea;
  font-family: inherit; font-size: 14.5px; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.picker-cell:hover { border-color: rgba(245,215,110,0.45); color: #f5e9c8; background: rgba(245,215,110,0.08); }
.picker-cell.on {
  background: rgba(245,215,110,0.20);
  border-color: rgba(245,215,110,0.75);
  color: #f7e3ac;
  font-weight: 600;
}

/* 时间网格面板：时/分双列 */
.picker-time-cols { display: flex; gap: 12px; }
.picker-time-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.picker-time-col .picker-grid { max-height: 220px; height: 220px; }
.picker-time-col .picker-cell { min-height: 38px; }

/* 移动端：触控放大，防误点 */
@media (max-width: 480px) {
  .picker-cell { min-height: 46px; font-size: 15.5px; }
  .picker-time-col .picker-cell { min-height: 44px; }
  .picker-my-btn { padding: 6px 14px; font-size: 16px; }
}

.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; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 1px dashed rgba(245,215,110,0.4); animation: spin 30s linear infinite; }
.chart-ring::before { content: ""; position: absolute; top: 18px; right: 18px; bottom: 18px; left: 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; top: 0; right: 0; bottom: 0; left: 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; top: 0; right: 0; bottom: 0; left: 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-cell .xc-attrs { color: var(--muted); font-size: 11px; margin-top: 3px; letter-spacing: .5px; }
.xp-attrs { margin-top: 6px; }
.sign-attrs { color: var(--muted); font-size: 11px; margin-left: 6px; letter-spacing: .5px; }

.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; }

/* ===================== 星盘渲染（专业版，唯一版本）===================== */
.xp-actions { display: flex; gap: 8px; background: rgba(255,255,255,0.04); padding: 5px; border-radius: 12px; margin-bottom: 24px; align-items: center; }
/* 保存按钮：结果区顶部，生成即可见（不用拉到底部） */
.ver-save {
  flex: 0 0 auto; padding: 10px 16px; border-radius: 9px;
  border: 1px solid rgba(245,215,110,0.45); background: rgba(245,215,110,0.10);
  color: #f5e9c8; font-family: inherit; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; transition: all .2s;
}
.ver-save:hover { background: rgba(245,215,110,0.20); }
.ver-save:disabled { opacity: .5; cursor: default; }

/* 核心四轴速览（源自精简版，并入专业版顶部） */
.xp-core-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:26px; }
.xp-core-cell { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:12px 8px; text-align:center; }
.xp-core-label { font-size:12px; color:#9c8f74; margin-bottom:4px; }
.xp-core-sym { font-size:24px; line-height:1; color:#f5e9c8; }
.xp-core-sign { font-size:13px; color:#e8ddc4; margin-top:4px; }
.xp-core-deg { font-size:11px; color:#9c8f74; margin-top:2px; }

/* 星盘综合解读（源自精简版，并入专业版） */
.ana-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; margin-bottom:14px; }
.ana-item { display:flex; gap:10px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:12px; }
.ana-ic { font-size:22px; line-height:1; }
.ana-key { font-size:13.5px; color:#f5e9c8; font-weight:600; }
.ana-sign { color:#cdbf9b; font-weight:400; margin-left:6px; font-size:12px; }
.ana-label { font-size:12px; color:#9c8f74; margin:2px 0; }
.ana-text { font-size:12.5px; color:#cfc4a8; line-height:1.6; }
.ana-summary { background:rgba(245,215,110,0.08); border-left:3px solid rgba(245,215,110,0.5); border-radius:8px; padding:12px 14px; font-size:13px; line-height:1.8; color:#e8ddc4; }
@media (max-width:768px) { .xp-core-grid { grid-template-columns:repeat(2,1fr); } }

/* ============================================================
 * 我的星盘（保存列表弹窗）
 * ============================================================ */
.sv-card {
  width: 460px; max-width: 94vw; max-height: 82vh; overflow: hidden;
  display: flex; flex-direction: column; padding: 24px 24px 18px; position: relative;
}
.sv-title { text-align: center; font-size: 18px; color: #f3ead6; margin-bottom: 16px; letter-spacing: 1px; }
.sv-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.sv-tab {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04); color: #9aa1b5; cursor: pointer;
  font-family: inherit; font-size: 14px; transition: all .15s;
}
.sv-tab.on { color: #f0d9a8; border-color: rgba(214,178,106,.55); background: rgba(214,178,106,.12); }
.sv-list { overflow-y: auto; min-height: 120px; }
.sv-list::-webkit-scrollbar { width: 5px; }
.sv-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.sv-loading, .sv-empty { text-align: center; color: #6d7490; padding: 40px 16px; font-size: 14px; line-height: 1.9; }
.sv-empty span { font-size: 12.5px; color: #565d75; }
.sv-count { color: #6d7490; font-size: 12.5px; margin-bottom: 10px; text-align: right; }

.sv-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px; border-radius: 13px; margin-bottom: 9px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: all .15s;
}
.sv-item:hover { border-color: rgba(214,178,106,.45); background: rgba(214,178,106,.07); transform: translateY(-1px); }
.sv-item-main { flex: 1; min-width: 0; }
.sv-item-name { color: #f0e6d2; font-size: 14.5px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-item-sub { color: #6d7490; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-item-del {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: transparent;
  color: #6d7490; font-size: 12px; cursor: pointer;
}
.sv-item-del:hover { color: #e08a8a; border-color: rgba(224,138,138,.5); }
/* 合盘分数徽标 */
.sv-score {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; font-family: Georgia, serif;
}
.sv-score-high { background: linear-gradient(150deg, rgba(245,215,110,.28), rgba(214,178,106,.12)); border: 1.5px solid rgba(245,215,110,.65); color: #f7e3ac; text-shadow: 0 0 12px rgba(245,215,110,.5); }
.sv-score-mid { background: rgba(120,150,240,.14); border: 1.5px solid rgba(120,150,240,.5); color: #b3c4f5; }
.sv-score-low { background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.2); color: #9aa1b5; }

/* 合盘页：A/B 方「我的星盘」按钮与选盘弹层 */
.syn-person-head { display: flex; align-items: center; gap: 10px; }
.syn-my-chart {
  margin-left: auto; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(245,215,110,.4); background: rgba(245,215,110,.08);
  color: #f5e9c8; font-size: 12.5px; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all .15s;
}
.syn-my-chart:hover { background: rgba(245,215,110,.18); }
.sv-person-pop {
  position: absolute; z-index: 1200; width: 284px; max-height: 320px; overflow-y: auto;
  background: linear-gradient(165deg, rgba(26,32,58,.98), rgba(14,18,38,.99));
  border: 1px solid rgba(214,178,106,.3); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 8px;
}
.sv-pop-title { color: #6d7490; font-size: 12px; padding: 6px 10px 8px; }
.sv-pop-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.sv-pop-item:hover { background: rgba(214,178,106,.10); }
.sv-pop-name { color: #f0e6d2; font-size: 14px; margin-bottom: 3px; }
.sv-pop-sub { color: #6d7490; font-size: 12px; }
.sv-pop-empty { color: #6d7490; font-size: 13px; text-align: center; padding: 22px 12px; line-height: 1.8; }
.sv-pop-empty span { font-size: 12px; color: #565d75; }

/* ============================================================
 * 今日运势页
 * ============================================================ */
.fortune { max-width: 760px; margin: 0 auto; }
.ft-loading, .ft-gate { text-align: center; padding: 80px 24px; }
.ft-gate { border-radius: 22px; padding: 56px 32px; max-width: 480px; margin: 60px auto; }
.ft-gate .section-title { margin: 10px 0 14px; }
.ft-gate .btn { margin-top: 22px; }

/* 日期导航 */
.ft-datenav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 22px; }
.ft-navbtn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(245,215,110,.35); background: rgba(245,215,110,.08);
  color: #f5e9c8; font-size: 15px; cursor: pointer; transition: all .15s;
}
.ft-navbtn:hover:not(.off) { background: rgba(245,215,110,.2); }
.ft-navbtn.off { opacity: .25; cursor: default; }
.ft-datetitle { text-align: center; min-width: 180px; }
.ft-date-main { font-size: 26px; color: #f7e9c8; font-family: Georgia, "Songti SC", serif; letter-spacing: 2px; }
.ft-date-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Hero 总览 */
.ft-hero { border-radius: 22px; padding: 26px 26px 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.ft-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 80% -20%, rgba(245,215,110,.10), transparent 60%);
}
.ft-hero-moon { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ft-moon-emoji { font-size: 22px; }
.ft-moon-text { color: var(--muted); font-size: 13.5px; letter-spacing: .5px; }
.ft-hero-main { display: flex; align-items: center; gap: 24px; }
.ft-ring { position: relative; width: 118px; height: 118px; flex: 0 0 auto; }
.ft-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ft-ring circle { fill: none; stroke-width: 7; }
.ft-ring-bg { stroke: rgba(255,255,255,.08); }
.ft-ring-val {
  stroke: url(#ftGoldGrad); stroke: #e8c26a;
  stroke-linecap: round; transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 6px rgba(232,194,106,.5));
}
.ft-ring-num { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ft-ring-num b { font-size: 34px; color: #f7e3ac; font-family: Georgia, serif; line-height: 1; }
.ft-ring-num span { font-size: 12px; color: var(--muted); margin-top: 5px; }
.ft-hero-text { flex: 1; min-width: 0; }
.ft-headline { font-size: 21px; color: #f5ead0; font-family: Georgia, "Songti SC", serif; margin-bottom: 10px; letter-spacing: 1px; }
.ft-summary { font-size: 13.5px; line-height: 1.85; color: #b9c0d8; }

/* 卡片通用 */
.ft-card { border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.ft-card-title { font-size: 14px; color: #e8cf95; letter-spacing: 1.5px; margin-bottom: 16px; }

/* 四维指数 */
.ft-dim { margin-bottom: 13px; }
.ft-dim:last-child { margin-bottom: 0; }
.ft-dim-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ft-dim-head span { color: #cfd4e4; font-size: 13.5px; }
.ft-dim-head b { color: #f5e9c8; font-size: 15px; font-family: Georgia, serif; }
.ft-dim-head i { color: var(--muted); font-size: 11.5px; font-style: normal; }
.ft-dim-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.ft-dim-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(214,178,106,.55), rgba(245,215,110,.95));
  transition: width .8s ease;
}

/* 宜忌 */
.ft-yiji { display: flex; gap: 16px; }
.ft-yi-col { flex: 1; min-width: 0; }
.ft-yi-title {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  font-size: 13px; margin-bottom: 12px; letter-spacing: 2px;
}
.ft-yi-title.yi { background: rgba(126,211,160,.14); color: #9fe0bb; border: 1px solid rgba(126,211,160,.35); }
.ft-yi-title.ji { background: rgba(224,138,138,.12); color: #e8a0a0; border: 1px solid rgba(224,138,138,.3); }
.ft-yi-item {
  font-size: 13px; line-height: 1.6; padding: 8px 12px; border-radius: 10px;
  margin-bottom: 7px; color: #c6cbe0;
}
.ft-yi-item.yi { background: rgba(126,211,160,.06); }
.ft-yi-item.ji { background: rgba(224,138,138,.05); color: #a8aec5; }

/* 幸运物 */
.ft-lucky-row { display: flex; gap: 12px; }
.ft-lucky-item {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px;
}
.ft-lucky-item i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.ft-lucky-item b { display: block; font-size: 14px; color: #f0e6d2; margin-top: 2px; }
.ft-lucky-dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(140deg, #e8c26a, #a8801f); box-shadow: 0 0 10px rgba(232,194,106,.35); }
.ft-lucky-num { font-size: 20px; color: #f7e3ac; font-family: Georgia, serif; width: 26px; text-align: center; }
.ft-lucky-sign { font-size: 19px; color: #e8cf95; width: 26px; text-align: center; flex: 0 0 auto; }
.ft-lucky-tip { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: right; }
/* ===== 星运范围切换（今天/本周/本月） ===== */
.ft-scope { display: flex; gap: 26px; justify-content: center; margin: 2px 0 14px; }
.ft-scope-btn {
  background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 6px 2px; cursor: pointer; position: relative; font-family: inherit; transition: color .2s;
}
.ft-scope-btn.on { color: var(--text); }
.ft-scope-btn.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -2px;
  width: 20px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
/* ===== 今日速览（指数+幸运物 整合紧凑卡） ===== */
.ft-glance { padding: 14px 16px; margin-bottom: 14px; }
.ft-glance-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ft-gdim { text-align: center; min-width: 0; }
.ft-gdim-ic { display: block; font-size: 12px; color: var(--muted); }
.ft-gdim b {
  display: block; font-size: 22px; font-weight: 700; margin: 2px 0 0;
  font-family: "Cinzel", Georgia, serif; color: var(--gold);
}
.ft-gdim i { font-style: normal; font-size: 11px; color: #8a7dff; }
.ft-glance-lucky {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(138,125,255,.12);
}
.ft-gl-chip {
  font-size: 12px; color: var(--muted); background: rgba(138,125,255,.1);
  border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; flex-wrap: wrap;
}
/* Lucky Times 独立一行：整行换行展示多个时段（移动端2个/行，PC同） */
.ft-lt-row {
  display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%;
}
.ft-gl-chip .ft-lucky-dot { margin: 0; }
/* ===== 本周列表 ===== */
.ft-weeksum { font-size: 14px; line-height: 1.8; color: var(--text); margin: 0; }
.ft-wlist { padding: 6px 14px; }
.ft-wrow {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid rgba(138,125,255,.08); cursor: pointer;
}
.ft-wrow:last-child { border-bottom: none; }
.ft-wrow.today { background: rgba(245,215,110,.06); border-radius: 10px; }
.ft-wdatebox { flex: 0 0 76px; }
.ft-wdatebox b { font-size: 14px; display: block; }
.ft-wdatebox span { font-size: 11px; color: var(--muted); }
.ft-wmain { flex: 1; min-width: 0; }
.ft-wheadline {
  font-size: 13px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ft-wscore { flex: 0 0 auto; text-align: center; min-width: 44px; }
.ft-wscore b { display: block; font-size: 18px; font-family: "Cinzel", Georgia, serif; }
.ft-wscore i { font-style: normal; font-size: 10px; color: var(--muted); }
.ft-wscore.lv3 b { color: var(--gold); }
.ft-wscore.lv2 b { color: #7ec8ff; }
.ft-wscore.lv1 b { color: #9aa3c0; }
.ft-wscore.lv0 b { color: #666; }
/* ===== 本月月历 ===== */
.ft-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.ft-cal-head span { text-align: center; font-size: 11px; color: var(--muted); }
.ft-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ft-cd {
  aspect-ratio: 0.86; min-height: 46px; border-radius: 10px; cursor: pointer;
  background: rgba(138,125,255,.07); border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: border-color .2s;
}
.ft-cd:hover { border-color: rgba(138,125,255,.4); }
.ft-cd.off { opacity: .35; cursor: default; }
.ft-cd.off:hover { border-color: transparent; }
.ft-cd.empty { background: transparent; cursor: default; }
.ft-cd.today { border-color: var(--gold); }
.ft-cd.skeleton { opacity: .45; cursor: default; }
.ft-cd-num { font-size: 12px; color: var(--text); }
.ft-cd-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.ft-cd-dot.lv3 { background: var(--gold); }
.ft-cd-dot.lv2 { background: #7ec8ff; }
.ft-cd-dot.lv1 { background: #9aa3c0; }
.ft-cd-dot.lv0 { background: #555; }
.ft-cd-score { font-size: 10px; color: var(--muted); font-family: "Cinzel", Georgia, serif; }
.ft-cal-legend {
  display: flex; gap: 14px; justify-content: center; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}
.ft-cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ft-mevents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 星象焦点 */
.ft-focus { font-size: 13px; color: #b9c0d8; line-height: 1.8; margin: 6px 0; }

/* 相位列表 */
.ft-aspect { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ft-aspect:last-child { border-bottom: none; padding-bottom: 0; }
.ft-aspect-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.ft-aspect-name { font-size: 14px; color: #eee5d0; }
.ft-aspect-name em { font-style: normal; color: #e8c26a; margin: 0 2px; }
.ft-aspect-state { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ft-aspect-state.applying { background: rgba(126,211,160,.12); color: #9fe0bb; }
.ft-aspect-state.separating { background: rgba(255,255,255,.06); color: var(--muted); }
.ft-aspect-state.exact { background: rgba(245,215,110,.16); color: #f5df9e; }
.ft-aspect-text { font-size: 13px; color: #a8aec5; line-height: 1.8; }
.ft-expand {
  width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px;
  border: 1px dashed rgba(245,215,110,.3); background: transparent;
  color: #d9c493; font-size: 13px; cursor: pointer;
}
.ft-expand:hover { background: rgba(245,215,110,.06); }
.ft-footnote { text-align: center; font-size: 11.5px; color: #565d75; margin-top: 20px; line-height: 1.7; }
/* 逆行徽章 / 吉时 / 月空亡 */
.ft-retro-badge {
  margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px;
  background: rgba(224,138,138,.14); border: 1px solid rgba(224,138,138,.4); color: #e8a0a0;
}
.ft-hours { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ft-hour-item {
  flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(245,215,110,.06); border: 1px solid rgba(245,215,110,.2);
  border-radius: 10px; padding: 9px 12px; font-size: 12px; color: var(--muted);
}
.ft-hour-item b { color: #f0d9a8; font-size: 13.5px; }
.ft-voc { color: #9aa1b5 !important; font-style: italic; }

@media (max-width: 480px) {
  .ft-hero-main { flex-direction: column; gap: 18px; text-align: center; }
  .ft-yiji { flex-direction: column; gap: 14px; }
  .ft-lucky-row { flex-direction: column; }
  .ft-date-main { font-size: 22px; }
  .ft-card { padding: 17px 16px; }
}

/* 本命盘卡片（我的星盘） */
.sv-natal-card {
  border: 1px solid rgba(245,215,110,.5) !important;
  background: linear-gradient(140deg, rgba(245,215,110,.12), rgba(214,178,106,.05)) !important;
}
.sv-natal-badge {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #f7e3ac;
  background: rgba(245,215,110,.16); border: 1.5px solid rgba(245,215,110,.6);
  text-shadow: 0 0 10px rgba(245,215,110,.6);
}
.sv-natal-tag {
  font-size: 11px; color: #e8cf95; background: rgba(214,178,106,.15);
  border: 1px solid rgba(214,178,106,.4); border-radius: 999px;
  padding: 2px 8px; margin-left: 6px; vertical-align: 1px;
}
.sv-natal-hint { font-size: 12px; color: #6d7490; line-height: 1.7; margin: 10px 4px 12px; }
.sv-natal-edit {
  width: 100%; padding: 11px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  color: #b9c0d8; font-size: 13.5px; cursor: pointer;
}
.sv-natal-edit:hover { border-color: rgba(214,178,106,.4); color: #e8e2d0; }
.sv-natal-empty { padding: 30px 20px !important; }
.sv-natal-orb { font-size: 40px; color: #e8c26a; text-shadow: 0 0 24px rgba(232,194,106,.5); margin-bottom: 14px; }
.sv-natal-cta { margin-top: 20px; }
.sv-item-set {
  flex: 0 0 auto; padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(214,178,106,.35); background: rgba(214,178,106,.08);
  color: #d9c493; font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.sv-item-set:hover { background: rgba(214,178,106,.18); }
/* 保存弹窗 checkbox */
.sv-prompt-check {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  font-size: 12.5px; color: #b9c0d8; line-height: 1.5; cursor: pointer;
}
.sv-prompt-check input { accent-color: #d6b26a; margin-top: 2px; }

/* 运势引导页（无本命盘） */
.ft-gate-natal { padding: 48px 30px 30px; }
.ft-gate-sky { position: relative; height: 74px; margin-bottom: 8px; }
.ft-gate-orb {
  font-size: 44px; color: #e8c26a; text-shadow: 0 0 30px rgba(232,194,106,.55);
  animation: ftOrb 3s ease-in-out infinite;
}
@keyframes ftOrb { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ft-gate-star { position: absolute; color: rgba(245,215,110,.6); font-size: 14px; animation: ftTwinkle 2.4s ease-in-out infinite; }
.ft-gate-star.s1 { left: 18%; top: 10px; }
.ft-gate-star.s2 { right: 20%; top: 28px; animation-delay: .8s; }
.ft-gate-star.s3 { left: 30%; top: 48px; animation-delay: 1.6s; font-size: 10px; }
@keyframes ftTwinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.ft-gate-copy { line-height: 2.0 !important; }
.ft-gate-copy b { color: #f0d9a8; font-weight: 600; }
.ft-gate-note { margin-top: 14px; font-size: 11.5px; color: #565d75; }

/* 恒星点卡片 */
.stars-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; }
.star-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(245,215,110,.18);
  border-radius: 12px; padding: 10px 12px;
}
.star-glyph { font-size: 18px; color: #f5df9e; text-shadow: 0 0 10px rgba(245,215,110,.6); }
.star-body b { display: block; font-size: 13.5px; color: #eee5d0; }
.star-body b i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 4px; }
.star-body span { font-size: 12px; color: #9aa1b5; }

/* 小行星带板块 */
.ft-minor-intro { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.ft-minor {
  border: 1px solid rgba(255,255,255,.08); border-radius: 13px;
  padding: 13px 15px; margin-bottom: 10px; background: rgba(255,255,255,.03);
}
.ft-minor.active { border-color: rgba(245,215,110,.45); background: rgba(245,215,110,.05); }
.ft-minor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.ft-minor-glyph { font-size: 21px; color: #e8cf95; text-shadow: 0 0 10px rgba(232,194,106,.4); }
.ft-minor-title b { color: #f0e6d2; font-size: 14.5px; }
.ft-minor-title i { font-style: normal; color: #e8cf95; font-size: 12px; margin-left: 6px; }
.ft-minor-pos { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ft-minor-desc { font-size: 12.5px; color: #a8aec5; line-height: 1.75; }
.ft-minor-act {
  margin-top: 8px; font-size: 12px; color: #f0d9a8; line-height: 1.7;
  background: rgba(245,215,110,.08); border-left: 2px solid rgba(245,215,110,.5);
  padding: 6px 10px; border-radius: 0 8px 8px 0;
}

/* 名称输入/确认小弹窗 */
.sv-prompt { width: 340px; max-width: 90vw; padding: 22px; }
.sv-prompt-title { text-align: center; color: #f3ead6; font-size: 16px; margin-bottom: 16px; }
.sv-prompt-actions { display: flex; gap: 10px; margin-top: 16px; }
.sv-prompt-cancel {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #9aa1b5; cursor: pointer; font-size: 14px;
}
.sv-prompt-ok { flex: 1; height: 42px; margin-top: 0; }
.sv-prompt-danger {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid rgba(224,138,138,.5);
  background: rgba(224,138,138,.12); color: #e08a8a; cursor: pointer; font-size: 14px;
}

@media (max-width: 480px) {
  .sv-card { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .bl-auth-mask:has(.sv-card) { align-items: flex-end; padding: 0; }
  .ver-save { padding: 9px 12px; font-size: 12.5px; }
  /* 命名/确认弹窗：贴可视区底部（配合 JS 高度跟随 visualViewport，键盘弹出时停在键盘上沿） */
  .bl-auth-mask:has(.sv-prompt) { align-items: flex-end; padding: 0 12px 10px; }
  .sv-prompt { width: 100%; max-width: 100%; border-radius: 16px; padding: 18px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
.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; padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* 合盘/组合盘 Tab 切换栏 */
.rel-tabs { display: flex; gap: 0; margin-bottom: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rel-tab { flex: 1; padding: 10px 0; text-align: center; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--muted); border: none; cursor: pointer;
  transition: background .2s, color .2s; letter-spacing: 1px; }
.rel-tab:hover { background: rgba(255,255,255,0.05); color: var(--fg); }
.rel-tab.active { background: linear-gradient(135deg, rgba(245,215,110,0.15), rgba(110,195,244,0.1));
  color: var(--gold); }

.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); }
/* 元素相性（合盘专业版） */
.el-compat { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.el-pair { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 18px; color: var(--gold); white-space: nowrap; }
.el-tag { display: inline-block; background: rgba(138,125,255,0.2); color: #cdc6ff; padding: 3px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.el-text { flex: 1 1 100%; min-width: 200px; font-size: 13px; line-height: 1.7; color: var(--text); margin: 8px 0 0; }

.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; }
  /* 移动端无 hover：星盘子菜单（星盘/合盘）展开为静态缩进项，否则合盘无法进入 */
  .nav-dropdown { width: 100%; }
  .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    margin-top: 0; min-width: 0; padding: 0 0 0 18px;
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu a { font-size: 13.5px; color: var(--muted); padding: 10px 16px; }
  .dropdown-menu a:hover { color: var(--gold); background: transparent; }
  .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; flex: 0 0 auto; min-width: 0; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  /* 登录后昵称按钮很长：截断显示，给 ☰ 留出位置（否则 ☰ 被挤出屏幕，全站无法导航） */
  .nav-actions #loginBtn { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .nav-actions #registerBtn { flex: 0 0 auto; }
  .nav-toggle { flex: 0 0 auto; display: block; }
  .brand { flex: 0 0 auto; min-width: 0; }
  .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; }
  .nav-actions #loginBtn { max-width: 88px; }
}

/* iOS/微信：输入框字号 <16px 聚焦会触发整页自动放大且不收还原。
   移动端所有输入控件强制 16px，杜绝缩放错位。 */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

/* ===================== 万象 · 太阳系模拟 ===================== */
.sv-section { padding-top: 110px; }
.sv-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 26px; margin-top: 36px; align-items: start;
}
/* 统一顺序：此刻天空 → 未来48小时 → 太阳系此刻（标题+canvas一体） */
#svNowPanel { order: 1; }
#svEventsPanel { order: 2; }
#svStageEl { order: 3; }
.sv-stage { position: relative; border-radius: var(--radius); padding: 24px 18px 64px; }
.sv-stage .kicker { margin-bottom: 4px; }
.sv-stage .section-title { font-size: 22px; margin-bottom: 6px; }
.sv-stage .section-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
#solarCanvas { display: block; margin: 0 auto; max-width: 100%; touch-action: none; cursor: pointer; }
.sv-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 13px; font-size: 13px; line-height: 1.5;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 210px;
}
.sv-panel { border-radius: var(--radius); padding: 20px 18px; margin-bottom: 20px; }
.sv-panel-title { font-size: 16px; color: var(--gold); margin-bottom: 14px; letter-spacing: 1px; }
.sv-loading { color: var(--muted); font-size: 14px; padding: 10px 0; }
.sv-evt {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 14px; margin-bottom: 8px;
  background: rgba(138,125,255,.07); border: 1px solid var(--line);
  transition: background .2s;
}
.sv-evt:hover { background: rgba(138,125,255,.15); }
.sv-evt-glyph { font-size: 22px; flex: 0 0 auto; color: var(--blue); }
.sv-evt-main { flex: 1 1 auto; min-width: 0; }
.sv-evt-desc { font-size: 14px; font-weight: 600; }
.sv-evt-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sv-evt-tag {
  flex: 0 0 auto; font-size: 12px; padding: 3px 10px;
  border: 1px solid; border-radius: 999px;
}
.sv-now-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 8px 2px; border-bottom: 1px dashed var(--line);
}
.sv-now-row span { color: var(--muted); flex: 0 0 auto; }
.sv-now-row b { font-weight: 600; text-align: right; }
.sv-now-hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
@media (max-width: 980px) {
  /* sv-layout 已是单列，移动端与桌面端布局完全一致 */
}

/* ===================== 星运 · 盘选择器 ===================== */
.ft-chartbar {
  position: relative; display: flex; justify-content: center; align-items: center;
  gap: 8px; margin: 0 auto 14px; max-width: 640px;
}
.ft-chartbar-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.ft-chartpill {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  border-radius: 999px; padding: 5px 13px;
  color: var(--text); font-size: 13px; font-family: inherit; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ft-chartpill:hover { background: rgba(138,125,255,.10); border-color: var(--line); }
.ft-chartpill .caret { font-size: 10px; color: var(--muted); }
.ft-chartpill-ic { color: var(--gold); font-size: 12px; }
.ft-chartpill-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-chartmenu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 220px; max-height: 320px; overflow-y: auto; z-index: 30;
  border-radius: 16px; padding: 8px;
}
.ft-chartopt {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: 11px; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.ft-chartopt:hover { background: rgba(138,125,255,.14); }
.ft-chartopt.on { background: rgba(245,215,110,.10); }
.ft-chartopt em {
  margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}

/* ===================== 星运组子标签（星运/星盘/合盘） ===================== */
.subnav {
  display: flex; justify-content: center; gap: 6px;
  margin: 0 auto; padding: 74px 16px 0;
}
.subnav a {
  padding: 7px 20px; font-size: 14px; color: var(--muted);
  border-radius: 999px; border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.subnav a:hover { color: var(--text); }
/* 选中态：文字金色 + 底部短横杠（替代椭圆按钮） */
.subnav a.active, .charttabs a.active, .msg-tab.active {
  color: var(--gold); background: none; border-color: transparent;
  position: relative;
}
.subnav a.active::after, .charttabs a.active::after, .msg-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #ffe9a8);
}
/* 跟手滑动时的目标页 */
.swipe-tgt {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 60;
  height: 100vh; height: 100dvh; overflow-y: auto;
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
}
/* 子标签占用了原 section 的顶部留白，星运组/漫语视图 section 收紧 */
#view-fortune .section, #view-xingpan .section, #view-hepan .section,
#view-manyu .section { padding-top: 20px; }
/* 星盘二级标签（万象/星算） */
.charttabs { display: flex; justify-content: center; gap: 6px; padding: 14px 16px 0; }
.charttabs a {
  padding: 6px 16px; font-size: 13px; color: var(--muted);
  border: none;
  transition: color .2s;
}
.charttabs a:hover { color: var(--text); }
/* 万象视图：太阳系段顶部留白（子标签已占 96px） */
#view-wanxiang .sv-section { padding-top: 24px; }

/* ===================== 我的 ===================== */
.mine-root { max-width: 520px; margin: 40px auto 0; }
.mine-card {
  border-radius: var(--radius); padding: 46px 30px 38px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mine-card .section-title { margin-top: 14px; }
.mine-card .btn-lg { margin-top: 26px; }
.mine-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--gold);
  background: rgba(245,215,110,.08); border: 1px solid rgba(245,215,110,.35);
  box-shadow: 0 0 34px rgba(245,215,110,.18); overflow: hidden;
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-nick { font-size: 22px; font-weight: 700; margin-top: 16px; }
.mine-sign {
  font-size: 12px; color: var(--violet); margin-top: 6px;
  border: 1px solid rgba(138,125,255,.4); border-radius: 999px; padding: 2px 12px;
}
.mine-id { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 1px; }
.mine-sig { font-size: 13px; color: var(--text); opacity: .85; margin-top: 8px; max-width: 320px; word-break: break-all; }
.mine-sig-empty { color: var(--muted); opacity: 1; font-size: 12px; }
.mine-city { font-size: 13px; color: var(--muted); margin-top: 6px; }
.mine-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; width: 100%; max-width: 280px; }

/* 登录/注册旧按钮已由「我的」接管（保留 DOM 供 auth.js 更新状态） */
.nav-actions .btn { display: none; }

/* ===================== 漫语社区 ===================== */
.my-section { max-width: 1080px; margin: 0 auto; }
.my-feed { column-count: 3; column-gap: 16px; }
@media (max-width: 980px) { .my-feed { column-count: 2; } }
@media (max-width: 560px) { .my-feed { column-gap: 10px; } }
.my-card {
  break-inside: avoid; margin-bottom: 16px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s;
}
.my-card:hover { border-color: rgba(138,125,255,.45); }
.my-imgbox { position: relative; width: 100%; overflow: hidden; cursor: zoom-in; }
.my-imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-count, .my-gif {
  position: absolute; right: 8px; padding: 2px 9px; border-radius: 999px;
  background: rgba(7,11,36,.65); color: #fff; font-size: 11px;
  backdrop-filter: blur(6px);
}
.my-count { top: 8px; }
.my-gif { bottom: 8px; color: var(--gold); }
.my-text { padding: 12px 14px 4px; font-size: 14px; line-height: 1.65; word-break: break-word; }
.my-meta {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 12px; font-size: 13px;
}
.my-author { display: flex; align-items: center; gap: 7px; color: var(--muted); min-width: 0; flex: 1; }
.my-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.my-ava-ph { display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,215,110,.12); color: var(--gold); font-size: 11px; }
.my-like { display: flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; user-select: none; }
.my-like .my-heart { font-size: 15px; transition: color .2s, transform .15s; }
.my-like.on { color: #ff6b8f; }
.my-like.on .my-heart { transform: scale(1.15); }
.my-del { color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 16px; }
.my-del:hover { color: #ff8aa3; }
.my-sentinel { text-align: center; padding: 18px 0 30px; }
.my-loading { color: var(--muted); font-size: 13px; }
.my-empty {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 70px 20px; line-height: 1.8;
}

/* 发帖浮动按钮 */
.my-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: none;
  font-size: 26px; color: #1a1147; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #e8b94a);
  box-shadow: 0 8px 26px rgba(245,215,110,.4);
  transition: transform .15s;
}
.my-fab:hover { transform: scale(1.07); }
@media (min-width: 769px) { .my-fab { bottom: 40px; right: 40px; } }

/* 发帖器弹层 */
.my-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: none;
  background: rgba(5,8,26,.72); backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
}
.my-mask.show { display: flex; }
.my-modal {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto; background: var(--glass-strong);
  border: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
@media (min-width: 769px) {
  .my-mask { align-items: center; }
  .my-modal { border-radius: 22px; }
}
.my-mask-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 24px; cursor: pointer;
}
.my-composer-title { font-size: 17px; color: var(--gold); margin-bottom: 16px; }
.my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.my-slot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: rgba(138,125,255,.08); border: 1px solid var(--line); }
.my-slot img { width: 100%; height: 100%; object-fit: cover; }
.my-slot-ing { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center;
  justify-content: center; color: var(--muted); animation: myPulse 1s infinite; }
@keyframes myPulse { 50% { opacity: .3; } }
.my-slot-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(7,11,36,.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
}
.my-pick {
  background: none; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); padding: 10px; width: 100%; cursor: pointer;
  font-size: 13px; font-family: inherit; margin-bottom: 12px;
  transition: border-color .2s, color .2s;
}
.my-pick:hover { border-color: var(--violet); color: var(--text); }
.my-textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: rgba(7,11,36,.5); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; color: var(--text);
  font-size: 14px; font-family: inherit; line-height: 1.6;
  margin-bottom: 16px; outline: none;
}
.my-textarea:focus { border-color: var(--violet); }

/* 发帖器移动端适配（≤768px：全面收紧） */
@media (max-width: 768px) {
  .my-modal { padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 84vh; }
  .my-composer-title { font-size: 15px; margin-bottom: 12px; }
  .my-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
  .my-slot { border-radius: 9px; }
  .my-slot-x { width: 18px; height: 18px; font-size: 12px; }
  .my-pick { padding: 7px; font-size: 12px; margin-bottom: 8px; border-radius: 9px; }
  .my-textarea { min-height: 80px; font-size: 13px; padding: 10px 12px;
    border-radius: 11px; margin-bottom: 12px; }
  .my-modal .btn-lg { padding: 12px; font-size: 15px; }
  .my-card { margin-bottom: 10px; border-radius: 13px; }
  .my-text { padding: 9px 11px 3px; font-size: 13px; }
  .my-meta { padding: 8px 11px 9px; font-size: 12px; }
}

/* ===================== 帖子详情浮层 ===================== */
.my-detail {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 250; display: none;
  background: rgba(3,5,18,.92); backdrop-filter: blur(10px);
  overflow: hidden;
}
.my-detail.show { display: flex; align-items: center; justify-content: center; }
.my-detail-box {
  position: relative; display: flex; flex-direction: column;
  width: 96%; max-width: 1060px; height: 92vh; max-height: 720px;
  background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
/* 作者头部置顶（小红书式） */
.my-dhead {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; padding-right: 62px;   /* 右侧预留关闭按钮位置，避免遮挡关注/删除 */
  border-bottom: 1px dashed var(--line);
  cursor: pointer; flex: 0 0 auto;
}
.my-dhead .my-ava { width: 36px; height: 36px; font-size: 14px; flex: 0 0 auto; }
.my-dhead .my-dname { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; }
.my-detail-main { flex: 1; display: flex; min-height: 0; }
.my-detail-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  background: rgba(7,11,36,.65); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer;
}
.my-detail-media {
  flex: 1.35; position: relative; display: flex; align-items: center;
  justify-content: center; background: rgba(3,5,18,.55); min-width: 0;
}
.my-detail-media img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.my-detail-media .my-lb-nav { position: absolute; }
.my-detail-noimg { font-size: 60px; color: var(--gold); }
.my-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.my-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; }
.my-dots span.on { background: var(--gold); }
.my-detail-side { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 14px 18px; overflow: hidden; }
.my-follow {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 5px 15px; font-size: 12px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.my-follow.on { border-color: var(--line); color: var(--muted); }
.my-delfab {
  background: none; border: 1px solid rgba(255,138,163,.4); color: #ff8aa3;
  border-radius: 999px; padding: 5px 15px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.my-dtext { padding: 14px 2px 6px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.my-dtime { font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.my-dactions { display: flex; align-items: center; gap: 20px; padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.my-dactions .my-like { font-size: 15px; }
.my-fav { color: var(--muted); cursor: pointer; font-size: 14px; display: flex; gap: 5px; align-items: center; user-select: none; }
.my-fav.on { color: var(--gold); }
.my-ccount { color: var(--muted); font-size: 14px; margin-left: auto; }
.my-cmts { flex: 1; overflow-y: auto; padding: 10px 2px; min-height: 70px; }
.my-cmt-row { display: flex; gap: 9px; padding: 8px 0; }
.my-cmt-row .my-ava { width: 28px; height: 28px; font-size: 12px; }
.my-cmt-body { flex: 1; min-width: 0; }
.my-cmt-head { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.my-cmt-head i { font-style: normal; cursor: pointer; margin-left: auto; }
.my-cmt-head i:hover { color: #ff8aa3; }
.my-cmt-text { font-size: 14px; margin-top: 3px; word-break: break-word; }
.my-cinput { display: flex; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.my-cinput input {
  flex: 1; min-width: 0; background: rgba(7,11,36,.5); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; color: var(--text);
  font-size: 13px; font-family: inherit; outline: none;
}
.my-cinput button { flex: 0 0 auto; }
.my-cinput input:focus { border-color: var(--violet); }
.my-cinput button {
  background: linear-gradient(135deg, var(--gold), #e8b94a); border: none;
  border-radius: 999px; padding: 0 18px; font-size: 13px; color: #1a1147;
  cursor: pointer; font-weight: 600; font-family: inherit;
}

/* ===================== 用户主页浮层 ===================== */
.my-profile {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 280; display: none;   /* 高于聊天窗(270)，否则资料页被压住 */
  background: rgba(3,5,18,.85); backdrop-filter: blur(8px);
}
.my-profile.show { display: flex; align-items: center; justify-content: center; }
.my-profile-box {
  position: relative; width: 94%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 20px; padding: 26px 22px;
}
.my-phead { display: flex; align-items: center; gap: 14px; }
.my-pava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 24px; }
.my-pinfo { flex: 1; min-width: 0; }
.my-pname { font-size: 19px; font-weight: 700; }
.my-pid { font-size: 12px; color: var(--muted); margin-top: 4px; }
.my-psig { font-size: 13px; color: var(--text); opacity: .85; margin-top: 6px; max-width: 420px; word-break: break-all; }
.my-pbtns { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.my-chatgo {
  background: none; border: 1px solid var(--violet); color: var(--violet);
  border-radius: 999px; padding: 5px 15px; font-size: 12px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.my-pstats {
  display: flex; gap: 26px; padding: 16px 4px; margin-top: 6px;
  border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted);
}
.my-pstats b { color: var(--text); margin-right: 5px; font-size: 16px; }
.my-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 14px; }
.my-pcell { aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(138,125,255,.08); }
.my-pcell img { width: 100%; height: 100%; object-fit: cover; }
.my-pnoimg { font-size: 12px; color: var(--muted); padding: 10px; line-height: 1.5; }
/* 老 WebView（Chrome<88 / 老微信 X5）无 aspect-ratio：padding 比例 hack 兜底正方形 */
@supports not (aspect-ratio: 1) {
  .my-pcell { height: 0; padding-bottom: 100%; position: relative; }
  .my-pcell > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}
.my-pava-wrap { flex: 0 0 auto; cursor: zoom-in; }
.my-pbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.my-pbadge {
  font-size: 11px; color: var(--blue); border: 1px solid rgba(110,195,244,.35);
  border-radius: 999px; padding: 2px 10px;
}
.my-pbadge.tag { color: var(--violet); border-color: rgba(138,125,255,.4); }
.my-pbadge.my-pbadge-attrs { color: var(--gold); border-color: rgba(245,215,110,.4); }
.my-gender { font-size: 13px; border-radius: 999px; padding: 1px 8px; }
.my-gender.g1 { color: #6ec3f4; border: 1px solid rgba(110,195,244,.4); }
.my-gender.g2 { color: #ff9dc6; border: 1px solid rgba(255,157,198,.4); }
.my-dava { flex: 0 0 auto; cursor: zoom-in; display: inline-flex; }
.my-cmt-ava { flex: 0 0 auto; cursor: zoom-in; display: inline-flex; }
.my-cmt-nick { cursor: pointer; }
.msg-ava { flex: 0 0 auto; cursor: zoom-in; display: inline-flex; }
.msg-nick { cursor: pointer; }

/* ===================== 私聊 IM ===================== */
.chat-conv {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px; margin-bottom: 8px;
  background: var(--glass); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .2s;
}
.chat-conv:hover { border-color: rgba(138,125,255,.45); }
.chat-conv .my-ava { width: 40px; height: 40px; font-size: 15px; flex: 0 0 auto; }
.chat-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-conv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-conv-name { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-time { font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.chat-conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-conv-digest {
  font-size: 13px; color: var(--muted); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-unread {
  background: #ff5a76; color: #fff; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; flex: 0 0 auto;
}
/* 消息入口红点（桌面导航 a / 移动端底栏 tb-ic） */
.nav-dot {
  position: absolute; top: -2px; right: -8px; width: 8px; height: 8px;
  background: #ff5a76; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 6px rgba(255,90,118,.8);
}
#navLinks a[data-view="message"] { position: relative; }
#tabbar a .tb-ic { position: relative; }
#tabbar .nav-dot { top: -3px; right: -6px; }
/* 私聊子标签未读角标 */
.msg-tab { position: relative; }
.msg-tab-badge {
  background: #ff5a76; color: #fff; font-size: 10px; min-width: 16px; height: 16px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; margin-left: 4px; vertical-align: 2px;
}
/* hidden 属性会被 display:flex/inline-flex 覆盖，显式补刀 */
.nav-dot[hidden], .msg-tab-badge[hidden] { display: none; }
/* 波粒ID 点击即复制 */
.boli-copy { cursor: pointer; border-bottom: 1px dashed rgba(167,173,218,.45); padding-bottom: 1px; }
.boli-copy:active { color: var(--gold); }
.chat-win {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 270; display: none;
  background: rgba(3,5,18,.94); backdrop-filter: blur(10px);
}
/* 移动端：固定容器自身即 flex 列（无显式高度），键盘弹起时浏览器原生收缩，
   输入框自然停在输入法上方；内容永不横向溢出（每层都是容器 100%） */
.chat-win.show { display: flex; flex-direction: column; }
.chat-box {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  width: 100%; max-width: 680px; margin: 0 auto;
  background: var(--glass-strong); overflow: hidden;
}
@media (min-width: 769px) {
  .chat-win.show { align-items: center; justify-content: center; }
  .chat-box {
    flex: 0 0 auto; height: 86vh;
    border: 1px solid var(--line); border-radius: 20px;
  }
}
.chat-head {
  display: flex; align-items: center; gap: 11px; flex: 0 0 auto;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.chat-back { background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; padding: 0 4px; }
.chat-ava { cursor: pointer; display: inline-flex; }
.chat-ava .my-ava { width: 34px; height: 34px; font-size: 13px; }
.chat-name { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; cursor: pointer; }
.chat-call {
  background: none; border: 1px solid rgba(245,215,110,.4); color: var(--gold);
  width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.chat-time-div { text-align: center; font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.chat-sys-title { color: var(--gold); font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.chat-sys-ava { background: rgba(216,179,106,.15) !important; }
.chat-row { display: flex; margin-bottom: 12px; }
.chat-row.mine { justify-content: flex-end; }
.chat-btext {
  max-width: 76%; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: rgba(138,125,255,.14); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; word-break: break-word;
}
.chat-row.mine .chat-btext {
  border-radius: 16px 16px 4px 16px;
  background: rgba(245,215,110,.14); border-color: rgba(245,215,110,.3);
}
.chat-btext.sys { background: rgba(167,173,218,.1); color: var(--muted); font-size: 12px; }
/* 系统消息紧凑卡片（2026-08-18）：简短、居中、不占大气泡 */
.chat-row:has(.chat-btext.sys) .chat-bubble.sys {
  max-width: 100%; padding: 8px 14px; margin: 0 auto;
}
.chat-row:has(.chat-btext.sys) { justify-content: center; }
.chat-bimg { max-width: 220px; max-height: 260px; border-radius: 12px; cursor: zoom-in; }
.chat-input {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.chat-imgbtn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: 0 0 auto;
}
.chat-input input {
  flex: 1; min-width: 0; background: rgba(7,11,36,.5); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
}
.chat-input input:focus { border-color: var(--violet); }
.chat-send {
  background: linear-gradient(135deg, var(--gold), #e8b94a); border: none;
  border-radius: 999px; padding: 0 20px; height: 38px; font-size: 13px;
  color: #1a1147; cursor: pointer; font-weight: 600; font-family: inherit; flex: 0 0 auto;
}

/* 语音通话浮层 */
.call-ui {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 320; display: none;
  background: rgba(3,5,18,.9); backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.call-ui.show { display: flex; }
.call-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 46px 40px; border-radius: 24px; min-width: 260px;
}
.call-ava {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--gold);
  background: rgba(245,215,110,.08); border: 1px solid rgba(245,215,110,.35);
  box-shadow: 0 0 40px rgba(245,215,110,.2);
}
.call-ava img { width: 100%; height: 100%; object-fit: cover; }
.call-name { font-size: 20px; font-weight: 700; margin-top: 18px; }
.call-state { font-size: 14px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.call-actions { display: flex; gap: 16px; margin-top: 30px; }
.call-btn {
  border: none; border-radius: 999px; padding: 12px 30px; font-size: 15px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.call-btn.accept { background: linear-gradient(135deg, #67d99a, #3cb371); color: #07230f; }
.call-btn.reject { background: linear-gradient(135deg, #ff7a8f, #e85a70); color: #2b0810; }

/* 通用图片放大查看 */
.img-zoom {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 400; display: none;
  background: rgba(3,5,18,.95); align-items: center; justify-content: center;
  cursor: zoom-out;
}
.img-zoom.show { display: flex; }
.img-zoom img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow); }

@media (max-width: 768px) {
  .my-detail-box { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .my-detail-main { flex-direction: column; overflow-y: auto; }
  .my-detail-media { flex: 0 0 auto; max-height: 42vh; }
  .my-detail-side { flex: 0 0 auto; overflow: visible; padding: 12px 14px; }
  .my-cmts { overflow: visible; max-height: none; }
}

/* 灯箱 */
.my-lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; display: none;
  background: rgba(3,5,18,.94); align-items: center; justify-content: center;
}
.my-lightbox.show { display: flex; }
.my-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.my-lb-close {
  position: absolute; top: 18px; right: 20px; background: none; border: none;
  color: #fff; font-size: 32px; cursor: pointer; z-index: 2;
}
.my-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(28,30,70,.6); border: 1px solid var(--line); color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.my-lb-nav.prev { left: 12px; }
.my-lb-nav.next { right: 12px; }
.my-lb-idx { position: absolute; bottom: 20px; color: var(--muted); font-size: 13px; }

/* ===================== 消息视图 ===================== */
.msg-section { max-width: 720px; margin: 0 auto; }
.msg-tabs { display: flex; gap: 8px; margin: 22px 0 18px; }
.msg-tab {
  background: none; border: none; color: var(--muted);
  border-radius: 0; padding: 8px 14px; font-size: 14px;
  font-family: inherit; cursor: pointer; transition: color .2s;
}
.msg-tab.active { color: var(--gold); border-color: rgba(245,215,110,.35); background: rgba(245,215,110,.08); }
.msg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px; margin-bottom: 8px;
  background: var(--glass); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .2s;
}
.msg-row:hover { border-color: rgba(138,125,255,.45); }
.msg-row .my-ava { width: 36px; height: 36px; font-size: 14px; flex: 0 0 auto; }
.msg-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.msg-time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.msg-comment {
  margin-top: 5px; font-size: 13px; color: var(--muted);
  background: rgba(138,125,255,.08); border-radius: 10px; padding: 7px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-ic { font-size: 17px; color: var(--gold); flex: 0 0 auto; }
.msg-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }

/* ===================== 全站搜索 ===================== */
.nav-search {
  background: none; border: 1px solid var(--line); color: var(--muted);
  width: 41px; height: 41px; border-radius: 50%; font-size: 21px;
  cursor: pointer; margin-left: auto; transition: all .2s; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.nav-search:hover { color: var(--gold); border-color: rgba(245,215,110,.4); }
.nav-search-ic { display: inline-block; transform: scaleX(-1); }
.search-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 220; display: none;
  background: rgba(3,5,18,.9); backdrop-filter: blur(10px);
}
.search-mask.show { display: flex; justify-content: center; }
.search-panel {
  width: 100%; max-width: 640px; height: 76vh;
  margin-top: 8vh; display: flex; flex-direction: column;
  background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
@media (max-width: 768px) {
  .search-panel { height: 100vh; height: 100dvh; margin-top: 0; border-radius: 0; }
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.search-bar-ic { color: var(--muted); font-size: 17px; }
.search-bar input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.search-bar button {
  background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer;
}
.search-result { flex: 1; overflow-y: auto; padding: 16px 18px; }
.search-hint { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.search-sec {
  font-size: 12px; color: var(--muted); letter-spacing: 2px;
  margin: 6px 0 10px; padding-left: 2px;
}
.search-sec:not(:first-child) { margin-top: 20px; }
.search-user { margin-bottom: 6px; }
.search-uid { font-size: 12px; color: var(--muted); margin-top: 3px; }
.search-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .search-posts { grid-template-columns: repeat(2, 1fr); } }
.search-post {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: rgba(138,125,255,.08); border: 1px solid var(--line);
  transition: border-color .2s;
}
.search-post:hover { border-color: rgba(138,125,255,.45); }
.search-post img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.search-post-noimg { aspect-ratio: 1; padding: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.search-post-text { padding: 7px 9px; font-size: 12px; line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===================== 移动端底部标签栏（小红书式） ===================== */
.tabbar { display: none; }
@media (max-width: 768px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(13, 17, 54, 0.92);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    /* iOS 滚动时固定栏防抖 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
  .tabbar > a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 5px 0; font-size: 11px; color: var(--muted);
    transition: color .2s;
  }
  .tabbar > a .tb-ic { font-size: 19px; line-height: 1; }
  .tabbar > a.active { color: var(--gold); }
  .tabbar-sub {
    position: absolute; right: 10px; bottom: calc(100% + 10px);
    flex-direction: column; border-radius: 16px; padding: 8px; min-width: 132px;
    box-shadow: var(--shadow);
  }
  .tabbar-sub a { padding: 11px 16px; font-size: 14px; border-radius: 10px; }
  .tabbar-sub a:hover, .tabbar-sub a:active { background: rgba(138,125,255,.16); }
  /* 顶部汉堡菜单让位给底部标签栏 */
  .nav-toggle { display: none !important; }
  .nav-links { display: none !important; }
  /* 内容不被固定栏遮挡 */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  footer { margin-bottom: 0; }
}
