/* ===================== 基础变量 ===================== */
: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); }
/* ICP 备案号（工信部要求：底部展示 + 链到 beian.miit.gov.cn）。
   紧贴版权行、去掉它自带的上分隔线与大间距，视觉上属于同一块页脚底部信息。 */
.copyright.beian-line { margin-top: 10px; padding-top: 0; border-top: 0; }
.copyright.beian-line a { color: var(--muted); text-decoration: none; }
.copyright.beian-line a:hover { color: var(--text); text-decoration: underline; }

/* ===================== 注册/登录弹窗 ===================== */
.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; }

/* ===================== 我的星盘 · 页面内嵌区块 =====================
   2026-09-09：原「我的 → 我的星盘」弹窗内的本命盘/TA的星盘/合盘三个列表，
   迁入「星运 → 星盘」（本命盘 + TA 的星盘）与「星运 → 星盘 → 合盘」（保存的合盘）。
   点击条目仍走 SavedCharts.openNatal / openSyn：回填表单并重新调用接口计算。 */
/* 置于测算表单「上方」：与下方表单留 28px；section-head 自带 56px 下边距略大，
   这里用负 margin 收敛到 28px，避免标题与卡片之间空得过多。 */
.xp-saved {
  border-radius: var(--radius); padding: 26px 30px 30px;
  margin: -28px 0 28px;
}
.xp-saved-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.xp-saved-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 19px; color: var(--gold); letter-spacing: 1px;
}
.xp-saved-tabs { display: flex; gap: 8px; }
.xp-saved-tab {
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
  transition: all .2s;
}
.xp-saved-tab:hover { color: var(--text); border-color: rgba(138,125,255,.45); }
.xp-saved-tab.on {
  background: rgba(245,215,110,.14); border-color: rgba(245,215,110,.5); color: var(--gold);
}
.xp-saved-loading, .xp-saved-empty {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 26px 10px; line-height: 1.8;
}
.xp-saved-list { display: grid; gap: 10px; }
/* 条目：左色条 + 主体 + 操作 */
.xps-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  transition: border-color .2s, background .2s, transform .15s;
}
.xps-item:hover {
  border-color: rgba(245,215,110,.42); background: rgba(245,215,110,.06);
  transform: translateY(-1px);
}
.xps-orb {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px;
  background: rgba(245,215,110,.12); color: var(--gold);
  border: 1px solid rgba(245,215,110,.3);
}
.xps-item.is-guest .xps-orb {
  background: rgba(138,125,255,.12); color: #b9b3e8; border-color: rgba(138,125,255,.3);
}
.xps-main { flex: 1; min-width: 0; }
.xps-name {
  font-size: 15px; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.xps-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; color: var(--gold); background: rgba(245,215,110,.14);
  vertical-align: middle; font-weight: 400;
}
.xps-sub {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.xps-score {
  flex: 0 0 auto; font-family: "Cinzel", Georgia, serif; font-size: 20px;
  min-width: 46px; text-align: center; color: var(--gold);
}
.xps-score.high { color: #8ce0b0; }
.xps-score.mid { color: #e8c26a; }
.xps-score.low { color: #e0968a; }
.xps-acts { display: flex; gap: 8px; flex: 0 0 auto; }
.xps-btn {
  padding: 5px 11px; border-radius: 8px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  transition: all .2s;
}
.xps-btn:hover { color: var(--text); border-color: rgba(138,125,255,.5); }
.xps-btn.del:hover { color: #e0968a; border-color: rgba(224,150,138,.5); }
.xp-saved-foot { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }
@media (max-width: 640px) {
  .xp-saved { padding: 20px 16px 22px; }
  .xp-saved-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .xps-item { flex-wrap: wrap; }
}

.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; }
/* 页首「星级＝重要程度」图例（2026-09-12 新增，纯新增选择器）
   放在 .xp-head 之后作为**独立的整行图例带**（该容器是 flex 且没有 wrap，
   塞进去会挤压标题），这样不依赖也不改动任何既有布局规则。 */
.xp-legend {
  margin: -8px 0 20px; padding: 10px 13px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-radius: 12px; border: 1px solid rgba(245, 215, 110, .26);
  background: rgba(245, 215, 110, .06); cursor: help;
}
.xp-legend-demo { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.xp-legend-demo .star-bar .st { font-size: 15px; }
.xp-legend-demo .star-num { font-size: 12px; }
.xp-legend-demo b { color: var(--gold); font-size: 13px; white-space: nowrap; }
.xp-legend-txt { flex: 1 1 240px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.xp-legend-txt b { color: #e6dcae; }

/* 重要程度星级徽标（2026-09-12 新增，纯新增选择器，不改动任何既有规则） */
.card-imp { display: inline-flex; align-items: center; flex: 0 0 auto; margin-left: auto; }
.card-imp .star-bar .st { font-size: 13px; }
.card-imp .star-num { font-size: 11px; margin-left: 4px; }
/* 父容器不是 flex 的卡片：独占一行、右对齐。
   fit-content：只包裹自身宽度（否则热区会占满整行，悬停提示范围过大） */
.card-imp-block {
  display: flex; justify-content: flex-end; margin: 8px 0 2px;
  width: -moz-fit-content; width: fit-content; margin-left: auto;
}
/* 逆行释义块（2026-09-13 新增）：卡片内「该逆行状态意味着什么」的独立解读，
   用左侧红边与既有释义区分；内部复用 .plain-points / .plain-advice / .plain-source */
.retro-block {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px;
  border-left: 3px solid #ff8a8a; background: rgba(255, 138, 138, .06);
}
.retro-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 600; color: #ffb0b0; margin-bottom: 7px;
}
.retro-head .retro-tag {
  font-weight: 400; font-size: 11px; color: var(--muted);
  border: 1px solid rgba(255, 138, 138, .34); border-radius: 999px; padding: 1px 8px;
}

/* 分布类区块的星标行（能量分布 / 半球与象限）：左标签 + 右星标 */
.imp-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; }
.imp-row-label { color: var(--muted); font-size: 12px; }

/* ---- 移动端适配（2026-09-13 新增，仅小屏生效，桌面端完全不受影响）----
   实测（360×740）：卡片头不换行时，星标会占掉约 86px，
   把标题挤到只剩 90px 宽、高度撑到 74px（"太阳 · 水瓶座"被压成多行）。
   小屏下让星标换到独立一行并靠右，标题即可占满宽度。 */
@media (max-width: 760px) {
  .rc-head, .axis-head, .asp-row-top, .syn-asp-top { flex-wrap: wrap; }
  .rc-head .card-imp, .axis-head .card-imp { margin-left: auto; }
  .rc-title { flex: 1 1 auto; }
  .xp-legend { padding: 9px 11px; gap: 8px; }
  .xp-legend-txt { flex: 1 1 100%; font-size: 11px; }
  .imp-row { flex-wrap: wrap; }
}
.imp-legend {
  margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(245, 215, 110, 0.07); border-left: 3px solid var(--gold);
  color: var(--muted); font-size: 12px; line-height: 1.6;
}
.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: 13.5px; line-height: 1.65; padding: 9px 13px; border-radius: 11px;
  margin-bottom: 7px; color: #d6dbef;
}
.ft-yi-item.yi { background: rgba(126,211,160,.06); }
/* 「忌」原先整条降成 #a8aec5，比「宜」暗一档 —— 但忌同样需要看清，改为同亮度 */
.ft-yi-item.ji { background: rgba(224,138,138,.05); color: #d6dbef; }
/* 宜忌依据（2026-09-07）：每条宜忌都说明由哪个星象推出，可信度与可读性都提升
   ⚠️ 2026-09-14 可读性修复：原 11px + opacity .85 + 暗绿(#7fa88f)/暗棕(#a8827f)，
   实测对比度仅 4.95:1，用户反馈"字小色暗看得很累"。
   改为 12px、去掉 opacity、提亮到 ≈6.5:1。 */
.ft-yi-why {
  display: block; margin-top: 5px; font-size: 12px; line-height: 1.6;
  color: var(--muted);
}
.ft-yi-item.yi .ft-yi-why { color: #9cc9ae; }
.ft-yi-item.ji .ft-yi-why { color: #ccA69f; }
/* 日签徽标（峰值日/顺势日/…/休养日） */
.ft-daytag {
  display: inline-block; margin-left: 8px; font-size: 11px; padding: 2px 9px;
  border-radius: 999px; background: rgba(138,125,255,.16); color: #cfc9ff;
  vertical-align: middle;
}

/* 幸运物 */
.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));
}
/* ===== 今日速览（指数+幸运物 整合紧凑卡） ===== */
/* 2026-09-07 修：本卡此前漏写 border-radius，在一排圆角卡片里显示为直角，视觉不统一。
   统一取 18px，与 .ft-card 一致（.ft-hero 22px 是刻意的主视觉层级，保留）。 */
.ft-glance { border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; }
/* 七维指数（2026-09-07：四维扩为七维——爱情/事业/财运/健康/家庭/人际/心境）。
   移动端 4 列换行成 4+3，桌面端一行 7 列。分数按档位着色，一眼看出高低。 */
.ft-glance-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; }
@media (min-width: 640px) { .ft-glance-dims { grid-template-columns: repeat(7, 1fr); } }
.ft-gdim { text-align: center; min-width: 0; }
.ft-gdim-ic { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ft-gdim b {
  display: block; font-size: 20px; 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-gdim b.s-top { color: #8ce0b0; text-shadow: 0 0 12px rgba(140,224,176,.35); }
.ft-gdim b.s-good { color: #e8c26a; }
.ft-gdim b.s-mid { color: #b9b3e8; }
.ft-gdim b.s-low { color: #e0a08a; }
.ft-gdim b.s-bad { color: #e08a8a; text-shadow: 0 0 12px rgba(224,138,138,.3); }
.ft-gdim.is-best i { color: #8ce0b0; }
.ft-gdim.is-worst i { color: #e08a8a; }
.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; }
/* —— 速览与总评合并（2026-09-14 第六次梳理）——
   总评 ring + 今日解读并入速览卡，与七维分数一体（用户裁定不再切分两张卡）。
   桌面：幸运物列居左（固定宽），总评占右侧剩余空间——正好填满原先的空白；
   移动（≤768px）：竖排，总评居中。 */
/* 2026-09-15：幸运物不再与总评并排（并排时右侧凸出一块很难看），
   改为总评下方整块的**小卡盘**（.ft-lucky-board）。故这里只保留总评本身。 */
.ft-verdict { display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding-top: 12px; min-width: 0;
  border-top: 1px solid rgba(138, 125, 255, .12); }
/* 今日幸运 · 小卡盘 */
.ft-lucky-board { margin-top: 12px; padding: 12px 13px; border-radius: 14px;
  border: 1px solid rgba(138, 125, 255, .20); background: rgba(138, 125, 255, .06); }
.ft-lucky-board-title { display: block; font-size: 12px; letter-spacing: 1px;
  color: var(--gold-soft); margin-bottom: 8px; }
.ft-lucky-board .ft-glance-lucky { margin: 0; padding: 0; border: 0; }
.ft-verdict .ft-ring { width: 96px; height: 96px; }
.ft-verdict .ft-ring-num b { font-size: 27px; }
.ft-verdict .ft-ring-num span { font-size: 11px; margin-top: 3px; }
.ft-verdict .ft-headline { font-size: 18px; margin-bottom: 6px; }
.ft-verdict .ft-summary { font-size: 12.5px; line-height: 1.78; }
@media (max-width: 768px) {
  .ft-verdict { flex-direction: column; text-align: center; gap: 10px; }
  .ft-verdict .ft-ring { width: 104px; height: 104px; }
  .ft-verdict .ft-headline { font-size: 18px; }
  /* 2026-09-14：竖排时父级 text-align:center 会让**整段正文居中**，
     每行左右都不齐（末行尤其明显）。正文改两端对齐，左右边缘取齐；
     标题仍居中。text-justify:inter-ideograph 让中文按字分散更自然。 */
  .ft-verdict .ft-summary {
    text-align: justify; text-justify: inter-ideograph;
    text-indent: 0; hyphens: none;
  }
}
/* ===== 评分依据（折叠说明：让用户知道分数有算法与占星依据，不是随机数） ===== */
.ft-basis { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(138,125,255,.12); }
.ft-basis > summary {
  list-style: none; cursor: pointer; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; user-select: none;
}
.ft-basis > summary::-webkit-details-marker { display: none; }
.ft-basis > summary:hover { color: #cfc9ff; }
.ft-basis > summary .ft-basis-ic { color: #8a7dff; font-style: normal; }
.ft-basis > summary .ft-basis-arrow { margin-left: auto; transition: transform .2s; font-size: 10px; }
.ft-basis[open] > summary .ft-basis-arrow { transform: rotate(180deg); }
.ft-basis-body { padding: 10px 2px 2px; }
.ft-basis-fml {
  font-size: 12px; line-height: 1.7; color: #d8d3f2; text-align: center;
  background: rgba(138,125,255,.08); border: 1px solid rgba(138,125,255,.16);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
  font-family: "Cambria Math", Georgia, serif; overflow-wrap: break-word;
}
.ft-basis-step { display: flex; gap: 8px; font-size: 12px; line-height: 1.65; margin-bottom: 6px; }
.ft-basis-step b {
  flex: 0 0 auto; color: #e8cf95; font-weight: 600;
  background: rgba(232,207,149,.1); border-radius: 6px; padding: 1px 7px; height: fit-content;
}
.ft-basis-step span { color: #b8bdd4; min-width: 0; }
.ft-basis-src { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
.ft-basis-tip { font-size: 11px; color: #9fe0bb; margin: 6px 0 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;
}
/* 当日最旺维度（v2 七维评分后各维差异明显，比只看总分更有指向性） */
.ft-wtop { font-size: 11px; color: #9fe0bb; margin-top: 3px; }
.ft-wscore { flex: 0 0 auto; text-align: center; min-width: 46px; }
.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); }
/* 色阶与今日视图七维卡统一（2026-09-07）：v2 评分下低分日占比明显上升，
   低分用「暖红」而非死灰——低分不是"无效日"，而是提示休养的信号，不该看起来像被禁用。 */
.ft-wscore.lv3 b { color: #8ce0b0; }
.ft-wscore.lv2 b { color: var(--gold); }
.ft-wscore.lv1 b { color: #b9b3e8; }
.ft-wscore.lv0 b { color: #e0968a; }
/* ===== 本月月历 ===== */
.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; }
/* 月历色阶与周列表、今日七维卡统一（2026-09-07） */
.ft-cd-dot.lv3 { background: #8ce0b0; box-shadow: 0 0 6px rgba(140,224,176,.5); }
.ft-cd-dot.lv2 { background: var(--gold); }
.ft-cd-dot.lv1 { background: #b9b3e8; }
.ft-cd-dot.lv0 { background: #e0968a; }
.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; }
/* 2026-09-14 可读性修复：原 #565d75 对比度仅 **2.97:1**（远低于 WCAG 4.5），
   在深色背景上几乎看不见。提到 #8b93b5 ≈ 5.3:1。 */
.ft-footnote { text-align: center; font-size: 12px; color: #8b93b5; margin-top: 20px; line-height: 1.7; }
/* 周/月列表页的分数语义说明（列表页放不下完整公式，点进某天可看详细依据） */
.ft-note-sm { font-size: 11px; margin-top: 8px; color: #4e5570; padding: 0 8px; }
/* 逆行徽章 / 吉时 / 月空亡 */
.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; }
}

/* ===== 移动端卡片统一规范（2026-09-14 视觉审查）=====
   审查发现同一屏内圆角混用 12/18/20/22px、左内边距混用 12/16/22px，
   拼在一起时边缘参差、不像同一套设计。窄屏统一为：
     大卡（直接落在页面上）圆角 18px、内边距 14px；
     小卡（嵌在大卡里）圆角 14px。
   桌面端保持原值不变（空间充裕，层级差异是刻意的）。 */
@media (max-width: 560px) {
  .xp-form, .xp-result, .xp-saved, .ft-card, .ft-glance, .ft-hero,
  .sv-panel, .sv-stage, .wnl-hero {
    border-radius: 18px;
  }
  .xp-form, .xp-result, .xp-saved { padding: 16px 14px; }
  .ft-card { padding: 16px 14px; }
  .sv-panel { padding: 16px 14px; }
  /* 嵌套在大卡内的小卡，圆角比外层小一档，视觉上才有"包含"关系 */
  .ft-sky-slot .sv-panel, .wnl-tb, .astro-item, .wnl-yiji-col, .wnl-rel-card {
    border-radius: 14px;
  }
  /* 区块标题与卡片左缘对齐（原先标题有额外缩进，和卡片错开） */
  .xp-section-title { font-size: 15px; margin: 22px 0 10px; }
}

/* 本命盘卡片（我的星盘） */
.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; }
/* 图例结构化（2026-09-15）：flex + gap 排列，窄屏竖排一项一行；
   原先靠全角空格分隔，换行后三项挤在一起分不清配对。 */
@media (max-width: 560px) {
  .asp-legend, .syn-legend { flex-direction: column; align-items: flex-start; gap: 6px;
    text-align: left; }
}
.asp-legend { display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 5px 16px; color: var(--muted); font-size: 12px; margin: -8px 0 20px; }
.lg-title { color: #cfd4e4; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.asp-legend .lg { display: inline-block; width: 16px; height: 2px; flex: 0 0 auto; }
.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); }

/* ===== 释义区块（2026-09-04）：星盘术语的生活化解读 ===== */
.plain-box {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,215,110,0.10), rgba(126,195,244,0.06));
  border: 1px solid rgba(245,215,110,0.28); border-left: 3px solid var(--gold);
}
.plain-box::before {
  content: "释义"; display: inline-block; font-size: 11px; font-weight: 700;
  color: #2b2410; background: var(--gold); border-radius: 6px;
  padding: 1px 8px; margin-bottom: 8px; letter-spacing: 2px;
}
.plain-summary { font-size: 13.5px; line-height: 1.75; color: var(--text); font-weight: 600; }
.plain-points { margin: 8px 0 0; padding-left: 18px; }
.plain-points li { font-size: 13px; line-height: 1.8; color: var(--text); margin-bottom: 4px; }
.plain-advice {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.14);
  font-size: 12.5px; line-height: 1.7; color: var(--gold);
}
.plain-source {
  margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--muted);
  opacity: 0.85; letter-spacing: 0.2px;
}
@media (max-width: 520px) {
  .plain-box { padding: 10px 12px; }
  .plain-points { padding-left: 16px; }
}

.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; }

/* ============================================================
   移动端统一单列（2026-09-09，面向所有手机/平板竖屏，非单一机型）
   ------------------------------------------------------------
   覆盖对象：合盘六维解读卡、完整跨盘相位与解读、双方行星位置表、
   专业盘的相位列表与行星落座/落宫瀑布流。这些内容都带长段落释义，
   多列在手机上（320~430px）会严重挤压，平板竖屏（~768px）同样局促。
   768px 及以下一律单列；桌面端保持原多列。

   ⚠️ 【本块必须位于上述所有基础规则之后】
   @media 不提升选择器优先级，同优先级下「后定义者生效」。
   之前把它放在 .dim-grid / .syn-tables 基础规则之前，单列规则被基础规则
   反向覆盖 —— iPhone 14 Pro 上仍显示多列即由此而来（不是缓存问题）。
   ⚠️ 下方 600px 等断点块里，也不得再把这些选择器重设为多列
   （原先那里有一条 .dim-grid{repeat(2,1fr)}，已移除）。
   ============================================================ */
@media (max-width: 768px) {
  .dim-grid { grid-template-columns: 1fr; }
  .syn-asp-list { grid-template-columns: 1fr; }
  .syn-tables { grid-template-columns: 1fr; }
  .asp-list { grid-template-columns: 1fr; }
  .reading-waterfall { column-count: 1; }
}
.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 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 5px 16px; font-size: 12.5px; color: var(--muted); margin: 12px 0; }
.syn-legend .lg-a { color: var(--gold); }
.syn-legend .lg-b { color: #6ec3f4; }
.syn-legend .lg { display: inline-block; width: 16px; height: 3px; flex: 0 0 auto; }

/* ===== 合盘行星位置对照表（2026-09-09 重构：A/B 双表并排 → 单表对照）=====
   行 = 行星，列 = A(星座·度数/宫) + B(星座·度数/宫)，同屏可读两人同一天体；
   3° 内紧密跨盘相位以 ● 标记到对应行星格（金=合 蓝=六合/拱 红=刑/冲，悬停看详情），
   位置表本身即可读出关系动力学。内容与计算完全不变，纯展示层重构。 */
.spt-wrap { margin-bottom: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spt { font-size: 13px; }
.spt th { padding: 8px 8px; }
.spt td { padding: 7px 8px; white-space: nowrap; }
.spt .spt-head th { border-bottom: 1px solid var(--line); padding-bottom: 4px; text-align: left; }
.spt .spt-sub th { font-size: 11.5px; color: var(--muted); font-weight: 400; padding-top: 2px; }
.spt .spt-name { margin-left: 6px; font-size: 13px; }
.spt .spt-head .syn-badge { width: 20px; height: 20px; font-size: 11px; vertical-align: middle; }
.spt .pt-deg { font-size: 11.5px; }
.spt .spt-house { color: var(--muted); font-size: 12.5px; }
.spt .spt-empty { color: var(--muted); }
.spt-mark { font-size: 9px; vertical-align: 2px; margin-left: 2px; cursor: help; }
.spt-mark.spt-conj { color: var(--gold); }
.spt-mark.spt-soft { color: #6ec3f4; }
.spt-mark.spt-hard { color: #ff8a8a; }
.spt-legend { font-size: 11.5px; color: var(--muted); margin: 8px 2px 0; line-height: 1.6; }
.spt-legend i { font-style: normal; font-weight: 600; }
.spt-legend .spt-conj { color: var(--gold); }
.spt-legend .spt-soft { color: #6ec3f4; }
.spt-legend .spt-hard { color: #ff8a8a; }
/* 行星格 → 相位解读卡的跳转锚：可点击态 + 目标卡闪烁定位 */
.spt .spt-jump { cursor: pointer; }
.spt td.spt-jump:hover { background: rgba(138, 125, 255, 0.14); }
.spt td.spt-jump:active { background: rgba(245, 215, 110, 0.18); }
.syn-asp.spt-flash { animation: sptFlash 1.8s ease; }
@keyframes sptFlash {
  0%   { background: rgba(245, 215, 110, 0.30);
         box-shadow: 0 0 0 2px rgba(245, 215, 110, 0.55); }
  100% { background: rgba(255, 255, 255, 0.04); box-shadow: none; }
}
/* 移动端：5 列要塞进 ~354px（390 视口 − 页面内边距），因此逐项压缩字号与内边距；
   星座名去「座」字、宫位保留独立列。仍放不下时由 .spt-wrap 横向滚动兜底，
   ——关键是**不能再像初版那样被裁掉**（初版没有 overflow 容器）。 */
@media (max-width: 768px) {
  .spt { font-size: 11.5px; }
  .spt th, .spt td { padding: 6px 3px; }
  .spt .pt-deg { font-size: 10.5px; }
  .spt .spt-house { font-size: 11px; }
  .spt .spt-sub th { font-size: 10.5px; }
  .spt .spt-name { max-width: 62px; display: inline-block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
}
.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; }
}

/* 601~768px（小平板 / 折叠屏窄侧）：顶栏同样会被「长昵称 + 退出」挤爆——
   实测 640 视口下 退出 right=680（已出屏）、768 视口下 right=772。
   这里与 ≤600 段一样让顶栏与昵称按钮可收缩 + 省略号截断。
   ⚠️ 本块必须放在 ≤600 块【之前】：两者同时命中时后者生效，细粒度规则才不会被粗粒度覆盖
   （@media 不提升优先级，同优先级「后定义者生效」——见仓库响应式适配踩坑）。 */
@media (max-width: 768px) {
  .nav-actions { flex: 0 1 auto; min-width: 0; }
  /* 昵称按钮：可收缩 + **头部**截断。
     ⚠️ 不要用 flex 居中 + text-overflow：flex 容器里的文本是「匿名 flex 项」，
     ellipsis 不生效，缩窄后是**居中裁切**（两端都剪）——实测 390px 显示成
     "二三四五六七八九十" 这种中间片段，看不出是谁。改 block + text-align:left
     才会「保留开头 + …」。line-height 26 + padding 9×2 = 44px 触控高度。 */
  .nav-actions #loginBtn {
    max-width: 40vw; flex: 0 1 auto; min-width: 0;
    display: block; line-height: 26px; padding: 9px 14px; text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}
@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; }
  /* 2026-09-14：原为 22px，窄屏下内容区被压得过窄（与 ≤560px 的统一规范冲突，
     且本条在后面会覆盖它）。改 16/14 与其它卡片一致。 */
  .xp-form, .xp-result { padding: 16px 14px; }
  .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 不在本块重设为两列：卡内含长释义段落，移动端须保持单列。
     （2026-09-09 踩坑：此处原写 repeat(2,1fr)，因本块位于 768px 单列规则之后，
      同优先级下后定义者生效，把上面的单列再次覆盖回两列，14 Pro 等窄屏因此失效。） */
  .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; }
  /* 2026-09-22：触控热区不得小于 44px（iOS HIG / Android 48px 规范）。
     此前 padding 8px + 13px 字号只有 35px 高，手指容易点空——用 inline-flex + min-height 居中撑到 44。
     （min-height 单独用在 inline-block 上会让文字贴顶，必须配 align-items:center。） */
  .nav-actions .btn {
    padding: 8px 14px; font-size: 13px;
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  /* 昵称按钮例外：max-width 收紧到 118px（≤380px 再收 88px），
     且必须用 block + text-align:left 做**头部**截断——flex 居中会把长昵称裁成中间片段且无省略号
     （详见 ≤768 段注释）。line-height 26 + padding 9×2 = 44px。 */
  .nav-actions #loginBtn {
    max-width: 118px; flex: 0 1 auto; min-width: 0;
    display: block; line-height: 26px; padding: 9px 14px; text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* ⚠️ 移动端不再顶「退出」按钮：窄屏上它会把昵称挤出屏幕（实测 320/360/390 退出按钮越界、
     用户点不到退出）。点昵称弹出的菜单里本来就有「退出登录」，与抖音/小红书一致。 */
  .nav-actions #registerBtn { display: none; }
  .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 等）：昵称按钮上限再收窄（实际宽度由 flex 收缩决定，不会顶到搜索按钮） */
  .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一体）
   （「此刻天空」卡已于 2026-09-15 撤除，见 index.html 注释） */
#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; }
/* 面板内的空态/提示（如「未来 48 小时风平浪静」）：原先是裸文本 + 大片留白，
   看起来像"没加载出来"。改为带图示的紧凑提示块，明确表达"已查询，确实没有"。
   注意：此处只覆盖 .sv-panel 内的，避免影响 1037 行那条列表用的居中 loading。 */
.sv-panel .sv-loading { color: var(--muted); font-size: 13px; line-height: 1.7;
  display: flex; align-items: center; gap: 9px; padding: 12px 13px; text-align: left;
  border-radius: 12px; border: 1px dashed var(--line); background: rgba(255, 255, 255, .022); }
.sv-panel .sv-loading::before { content: "✧"; flex: 0 0 auto; font-size: 14px;
  color: var(--gold-soft); opacity: .75; }
.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 / .sv-nowrap / .sv-now-hint）已于
   2026-09-15 随该卡一并撤除：观测时刻移入 .ft-skyboard-time，逆行移入 .ft-retro-*。
   保留 sv-panel 在窄屏的内边距规则（未来48小时卡仍在用）。 */
@media (max-width: 768px) {
  .sv-panel { padding: 16px 14px; }
}
@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; }

/* 2026-09-22：顶栏登录入口恢复显示。
   （此前这里写 `.nav-actions .btn { display:none }` 把登录/注册按钮藏了、只留「我的」页入口；
     用户要求顶栏可直接登录，故放开。仍在「我的」页保留登录按钮，两处入口并存。）
   隐藏改用 .login-btn-hide（auth.js 按登录态切换），不要用标签级 display:none。 */
.nav-actions .btn.login-btn-hide { 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; }
/* 收起（最小化）按钮：中性样式，与挂断（红）区分 */
.call-btn.min { background: rgba(138,125,255,.16); color: var(--text); border: 1px solid rgba(138,125,255,.4); }

/* 通话最小化悬浮气泡（2026-09-22）：收起后可在任意页面边通话边浏览 */
.call-bubble {
  position: fixed; right: 20px; bottom: 30px; z-index: 330; display: none;
  align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(16, 20, 48, .94); border: 1px solid rgba(214, 178, 106, .45);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  user-select: none;
  touch-action: none;   /* 2026-09-22：允许触摸拖动（否则 pointermove 被滚动打断） */
}
.call-bubble.show { display: flex; }
.call-bubble .cb-ava {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold); background: rgba(245, 215, 110, .1);
  border: 1px solid rgba(245, 215, 110, .4);
  animation: cbPulse 2s ease-in-out infinite;
}
.call-bubble .cb-ava img { width: 100%; height: 100%; object-fit: cover; }
@keyframes cbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 217, 154, .5); }
  50% { box-shadow: 0 0 0 9px rgba(103, 217, 154, 0); }
}
.call-bubble .cb-name { font-size: 12px; color: var(--text); max-width: 96px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-bubble .cb-dur { font-size: 12px; color: #67d99a; font-variant-numeric: tabular-nums; }
.call-bubble .cb-hang {
  position: absolute; top: -7px; right: -4px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: #e85a70; color: #fff;
  font-size: 11px; line-height: 22px; padding: 0; cursor: pointer;
}
.call-bubble .cb-hang:hover { background: #ff7a8f; }
/* 移动端：贴右下并避开底部标签栏 + 安全区 */
@media (max-width: 768px) {
  .call-bubble { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); }
}

/* 通用图片放大查看 */
.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; }
}

/* ============================================================
   日历（黄历）独立视图样式
   ⚠️ 2026-09-14 新增：全部为**新选择器**（.wnl-*），不改动任何既有规则。
      可与 huangli.js / server/huangli/ 一起整体删除。
   ============================================================ */
.wnl-wrap { max-width: 920px; margin: 0 auto; }
.wnl-loading { text-align: center; padding: 60px 0; }

/* ---- 月历卡片（可翻月/翻年，1900-2100）---- */
.wnl-cal { border-radius: var(--radius); background: var(--glass-strong);
  border: 1px solid var(--line); padding: 14px 16px 10px; margin-bottom: 16px;
  box-shadow: var(--shadow); }
.wnl-cal-head { display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 10px; }
.wnl-cal-title { font-size: 16px; font-weight: 600; color: var(--text);
  padding: 2px 10px; border-radius: 8px; cursor: pointer; }
.wnl-cal-title:hover { background: rgba(245, 215, 110, .10); }
.wnl-cal-btn { width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 14px; line-height: 1; }
.wnl-cal-btn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.wnl-cal-btn:disabled { opacity: .28; cursor: not-allowed; }
.wnl-cal-todaybtn { width: auto; padding: 0 10px; font-size: 12px; margin-left: 4px; }
.wnl-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.wnl-cal-week span { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.wnl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wnl-cal-cell { border-radius: 10px; padding: 6px 2px 5px; text-align: center;
  cursor: pointer; border: 1px solid transparent; min-height: 46px; transition: .15s; }
.wnl-cal-cell:hover { background: rgba(255, 255, 255, .05); }
.wnl-cal-cell b { display: block; font-size: 15px; line-height: 1.2; color: var(--text); }
.wnl-cal-cell i { display: block; font-style: normal; font-size: 10px; color: var(--muted);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wnl-cal-empty { cursor: default; }
.wnl-cal-empty:hover { background: transparent; }
.wnl-cal-wk b, .wnl-cal-wk i { color: #ff9a9a; }
.wnl-cal-jieqi { color: var(--gold) !important; }
.wnl-cal-fest { color: #ff9a9a !important; }
.wnl-cal-today { background: rgba(245, 215, 110, .14); border-color: var(--gold); }
.wnl-cal-today b { color: var(--gold); }
.wnl-cal-sel { background: rgba(176, 125, 255, .18); border-color: var(--purple); }
.wnl-cal-foot { margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
/* 图例（2026-09-15 结构化）：PC 横向排列，窄屏竖排一项一行，不再挤成一团 */
.wnl-cal-foot-meta { line-height: 1.8; }
.wnl-cal-legend { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 18px; margin-top: 6px; }
.wnl-cal-legend-item { display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; line-height: 1.7; white-space: nowrap; }
.wnl-cal-legend-item b { color: var(--text); font-weight: 600; }
.wnl-cal-legend-item.is-plain { color: #7d84a3; }
@media (max-width: 560px) {
  .wnl-cal-legend { flex-direction: column; align-items: flex-start; gap: 5px;
    text-align: left; padding-left: 6px; }
  .wnl-cal-legend-item { font-size: 11.5px; }
  .wnl-cal-foot { text-align: left; }
  .wnl-cal-foot-meta { font-size: 11px; padding-left: 6px; }
}
.wnl-tag-fest { color: var(--gold); border-color: rgba(245, 215, 110, .45); }

/* ---- 日期切换 ---- */
.wnl-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 18px; }
.wnl-arrow { width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--gold);
  font-size: 22px; line-height: 1; transition: .2s; }
.wnl-arrow:hover { background: rgba(245, 215, 110, .12); border-color: var(--gold); }
.wnl-navdate { text-align: center; min-width: 230px; }
.wnl-navdate strong { display: block; font-size: 18px; color: var(--text); }
.wnl-navdate span { font-size: 12px; color: var(--muted); }
.wnl-backtoday { text-align: center; margin: -8px 0 14px; }
.wnl-backtoday a { color: var(--gold); font-size: 12px; text-decoration: none; }

/* ---- 主卡 ---- */
.wnl-hero { display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  border-radius: var(--radius); background: var(--glass-strong);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.wnl-hero-day { flex: 0 0 auto; text-align: center; }
.wnl-hero-day b { display: block; font-size: 46px; line-height: 1; color: var(--gold); }
.wnl-hero-day span { font-size: 12px; color: var(--muted); }
.wnl-hero-meta { flex: 1 1 auto; min-width: 0; }
.wnl-hero-lunar { font-size: 20px; color: var(--text); margin-bottom: 4px; }
.wnl-hero-gz { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.wnl-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wnl-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); }
.wnl-tag-jieqi { color: var(--blue); border-color: rgba(110, 195, 244, .4); }
.wnl-tag-good { color: #7ee0a8; border-color: rgba(126, 224, 168, .4); }
.wnl-tag-bad { color: #ff9a9a; border-color: rgba(255, 154, 154, .4); }

/* ---- 宜 / 忌 ---- */
.wnl-yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px;
  align-items: start; }
.wnl-yiji-col { padding: 14px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); }
/* 宜/忌各自用色调区分（原先两列同色，只靠标题文字色区分，层次偏弱） */
.wnl-yi.wnl-yiji-col { border-color: rgba(126, 224, 168, .22); background: rgba(126, 224, 168, .045); }
.wnl-ji.wnl-yiji-col { border-color: rgba(255, 154, 154, .22); background: rgba(255, 154, 154, .04); }
.wnl-yiji-head { font-size: 15px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px; }
/* 标题前加圆点图示，宜忌一眼可辨 */
.wnl-yiji-head::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  flex: 0 0 auto; background: currentColor; box-shadow: 0 0 8px currentColor; }
.wnl-yi .wnl-yiji-head { color: #7ee0a8; }
.wnl-ji .wnl-yiji-head { color: #ff9a9a; }
.wnl-yiji-body { display: flex; flex-wrap: wrap; gap: 6px; }
.wnl-yiji-item { font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); color: var(--text); }
.wnl-yi .wnl-yiji-item { background: rgba(126, 224, 168, .10); }
.wnl-ji .wnl-yiji-item { background: rgba(255, 154, 154, .10); }
.wnl-yiji-none { font-size: 13px; color: var(--muted); }

/* 2026-09-14 移动端打磨：宜忌两列 + 月历格子 + 卡片内边距
   ① 原 `align-items: stretch` 令「忌」只有 1 条时也被拉到与「宜」等高，空占一大块；
      改 start 后按内容收缩（上面已设）。窄屏再缩小内边距与间距。
   ② 月历格子农历字原 10px，在 390 视口实测渲染到 9px（缩放），提到 10.5px。 */
@media (max-width: 560px) {
  .wnl-yiji { gap: 10px; margin: 14px 0 18px; }
  .wnl-yiji-col { padding: 12px 12px; border-radius: 14px; }
  .wnl-yiji-head { font-size: 14px; margin-bottom: 8px; }
  .wnl-yiji-item { font-size: 12px; padding: 4px 9px; }
  .wnl-cal-cell i { font-size: 10.5px; }
}

/* ---- 时辰吉凶 ---- */
.wnl-shichen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.wnl-sc { padding: 10px 6px; border-radius: 12px; text-align: center; border: 1px solid var(--line); }
.wnl-sc-good { background: rgba(126, 224, 168, .08); border-color: rgba(126, 224, 168, .28); }
.wnl-sc-bad { background: rgba(255, 154, 154, .06); border-color: rgba(255, 154, 154, .20); }
.wnl-sc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.wnl-sc-star { font-size: 11px; color: var(--muted); margin: 2px 0; }
.wnl-sc-gz { font-size: 11px; color: var(--gold-soft); }
.wnl-sc-range { font-size: 9px; color: var(--muted); white-space: nowrap; letter-spacing: -.2px; }
.wnl-sc-label { font-size: 11px; margin-top: 2px; }
.wnl-sc-good .wnl-sc-label { color: #7ee0a8; }
.wnl-sc-bad .wnl-sc-label { color: #ff9a9a; }

/* ---- 神煞 ---- */
.wnl-shensha { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.wnl-ss-row { display: flex; align-items: flex-start; gap: 12px; }
.wnl-ss-label { flex: 0 0 68px; font-size: 12px; color: var(--muted); padding-top: 3px; }
.wnl-ss-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wnl-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.wnl-chip-good { color: #7ee0a8; border-color: rgba(126, 224, 168, .35); }
.wnl-chip-bad { color: #ff9a9a; border-color: rgba(255, 154, 154, .35); }
.wnl-chip-none { color: var(--muted); }

/* ---- 详情 ---- */
.wnl-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.wnl-kv { display: flex; gap: 8px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.wnl-kv-k { flex: 0 0 76px; color: var(--muted); }
.wnl-kv-v { color: var(--text); }
.wnl-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---- 移动端（≤760px）---- */
@media (max-width: 760px) {
  .wnl-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .wnl-yiji { grid-template-columns: 1fr; }
  .wnl-detail { grid-template-columns: 1fr; }
  .wnl-navdate { min-width: 0; }
  .wnl-ss-row { flex-direction: column; gap: 6px; }
  .wnl-ss-label { flex: none; padding-top: 0; }
}

/* ---- 二十八宿 ---- */
.wnl-xiu { margin-bottom: 22px; }
.wnl-xiu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wnl-xiu-head b { font-size: 18px; color: var(--text); }
.wnl-xiu-song { font-size: 12px; line-height: 1.9; color: var(--muted);
  padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }

/* ---- 时辰列表（每时辰含宜忌）---- */
.wnl-tlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.wnl-trow { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid var(--line); font-size: 12px; }
.wnl-trow-good { background: rgba(126, 224, 168, .07); border-color: rgba(126, 224, 168, .22); }
.wnl-trow-bad { background: rgba(255, 154, 154, .05); border-color: rgba(255, 154, 154, .18); }
.wnl-tname { flex: 0 0 104px; color: var(--text); font-weight: 600; }
.wnl-tname i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.wnl-tgz { flex: 0 0 42px; color: var(--gold-soft); }
.wnl-tstar { flex: 0 0 56px; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); text-align: center; }
.wnl-tyiji { flex: 1 1 auto; color: var(--muted); line-height: 1.7;
  display: flex; flex-wrap: wrap; gap: 2px 12px; }
/* 窄屏：宜 / 忌 各占一行（原全角空格分隔，换行后糊在一起） */
@media (max-width: 560px) {
  .wnl-tyiji { flex-direction: column; gap: 3px; }
  .wnl-ty-part { display: block; }
}
.wnl-tyiji b { color: var(--text); font-weight: 600; }

/* ---- 依据与来源 ---- */
.wnl-sources { display: flex; flex-direction: column; gap: 0; margin-bottom: 10px; }
.wnl-src-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.75;
  padding: 7px 0; border-bottom: 1px dashed var(--line); }
.wnl-src-row b { flex: 0 0 84px; color: var(--gold-soft); font-weight: 600; }
.wnl-src-row span { flex: 1 1 auto; color: var(--muted); }
.wnl-src { font-size: 11px; color: var(--muted); }

@media (max-width: 760px) {
  .wnl-trow { flex-wrap: wrap; gap: 8px; }
  .wnl-tname { flex: 0 0 82px; }
  .wnl-tyiji { flex: 1 1 100%; }
  .wnl-src-row { flex-direction: column; gap: 2px; }
  .wnl-src-row b { flex: none; }
  /* 月历：窄屏压缩，保证 7 列不溢出 */
  .wnl-cal { padding: 10px 8px 8px; }
  .wnl-cal-title { font-size: 14px; padding: 2px 6px; }
  .wnl-cal-cell { min-height: 40px; padding: 4px 1px; }
  .wnl-cal-cell b { font-size: 13px; }
  /* 2026-09-14：农历/节日字原 9px，实测过小难辨（移动端 30 处）。
     提到 10.5px；配合下面的 letter-spacing 收紧，7 列仍不溢出。 */
  .wnl-cal-cell i { font-size: 10.5px; letter-spacing: -.3px; }
  .wnl-cal-grid, .wnl-cal-week { gap: 2px; }
}

/* ---- 月历：传统忌日红点标记 ---- */
.wnl-cal-cell { position: relative; }
.wnl-cal-dot { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px;
  border-radius: 50%; background: #ff8a8a; box-shadow: 0 0 5px rgba(255, 138, 138, .65); }
.wnl-cal-dot-inline { position: static; display: inline-block; vertical-align: 1px;
  margin: 0 3px; }
.wnl-cal-dot-2 { background: #ffbe6b; box-shadow: 0 0 5px rgba(255, 190, 107, .60); }
.wnl-cal-dot-good { background: #7ee0a8; box-shadow: 0 0 5px rgba(126, 224, 168, .60); }
.wnl-tb-lv { font-size: 10px; padding: 0 6px; border-radius: 999px; color: #ffb4b4;
  border: 1px solid rgba(255, 154, 154, .5); background: rgba(255, 154, 154, .10); }

/* ---- 当前时辰：秒表式闪烁高亮 ---- */
@keyframes wnlNow {
  0%, 100% { border-color: rgba(245, 215, 110, .40); box-shadow: 0 0 0 0 rgba(245, 215, 110, 0); }
  50%      { border-color: rgba(245, 215, 110, 1);   box-shadow: 0 0 14px 2px rgba(245, 215, 110, .38); }
}
.wnl-trow-now { animation: wnlNow 1.8s ease-in-out infinite; }
.wnl-now { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; font-weight: 400; font-style: normal; color: #070b24; background: var(--gold);
  vertical-align: 1px; }

/* ---- 传统避忌（固定忌日卡片）---- */
.wnl-taboos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.wnl-tb { padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); }
.wnl-tb-ji { border-color: rgba(255, 154, 154, .30); background: rgba(255, 154, 154, .06); }
.wnl-tb-yi { border-color: rgba(126, 224, 168, .30); background: rgba(126, 224, 168, .06); }
.wnl-tb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.wnl-tb-name { font-size: 14px; font-weight: 600; color: var(--text); }
.wnl-tb-kind { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.wnl-tb-ji .wnl-tb-kind { color: #ff9a9a; border-color: rgba(255, 154, 154, .45); }
.wnl-tb-yi .wnl-tb-kind { color: #7ee0a8; border-color: rgba(126, 224, 168, .45); }
.wnl-tb-what { font-size: 13px; color: var(--text); }
.wnl-tb-src { font-size: 11px; line-height: 1.75; color: var(--muted); }
.wnl-tb-none { font-size: 12px; color: var(--muted); padding: 8px 0; }

/* ---- 生肖对冲（六冲/六害/三刑）---- */
.wnl-sx { margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, .22); background: rgba(245, 215, 110, .05); }
.wnl-sx-head { font-size: 13px; line-height: 1.9; color: var(--text); margin-bottom: 8px; }
.wnl-sx-head b { color: var(--gold-soft); }
/* 今日日支 + 四个关系小格（2026-09-14 由一整行长文本改造而来） */
.wnl-sx-today { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wnl-sx-badge { font-size: 13px; font-weight: 600; color: #070b24; background: var(--gold);
  border-radius: 999px; padding: 3px 12px; letter-spacing: .5px; }
.wnl-sx-zx { font-size: 11px; color: #ffbe6b; border: 1px solid rgba(255, 190, 107, .45);
  background: rgba(255, 190, 107, .10); border-radius: 999px; padding: 2px 9px; }
.wnl-sx-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.wnl-sxc { padding: 7px 6px; border-radius: 11px; text-align: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); min-width: 0; }
.wnl-sxc span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .5px; }
.wnl-sxc b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wnl-sxc.is-good { border-color: rgba(126, 224, 168, .28); background: rgba(126, 224, 168, .07); }
.wnl-sxc.is-good b { color: #7ee0a8; }
.wnl-sxc.is-bad { border-color: rgba(255, 154, 154, .30); background: rgba(255, 154, 154, .07); }
.wnl-sxc.is-bad b { color: #ff9a9a; }
.wnl-sxc.is-warn { border-color: rgba(255, 190, 107, .28); background: rgba(255, 190, 107, .06); }
.wnl-sxc.is-warn b { color: #ffbe6b; }
@media (max-width: 430px) {
  .wnl-sx-cells { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .wnl-sxc b { font-size: 12.5px; }
}
.wnl-sx-hl { color: #ff9a9a; }
.wnl-sx-scenes { display: flex; flex-direction: column; gap: 4px; }
.wnl-sx-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.8; }
.wnl-sx-row b { flex: 0 0 76px; color: var(--gold-soft); font-weight: 600; }
.wnl-sx-row span { flex: 1 1 auto; color: var(--muted); }
.wnl-sx-pairs { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 11px; line-height: 1.9; color: var(--muted); }
.wnl-sx-tip { margin-top: 4px; font-size: 11px; color: var(--muted); }
.wnl-sx-good { color: #7ee0a8; }

/* 十二地支关系速查表 */
/* ---- 月相（2026-09-14：真实形状 + 月升月落）---- */
.moon-svg { display: block; }
.ft-moon-shape { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: middle; }
.ft-moon-rs { font-style: normal; font-size: 12px; color: var(--muted); opacity: .9; }
.wnl-moon { display: inline-flex; align-items: center; margin: 0 6px; vertical-align: -4px; }
.wnl-moon-rs { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }

/* ---- 星运页：天象面板插槽（2026-09-14 由「万象·天象」迁入，与总览卡片整合）---- */
/* ---- 月亮与星象实况（2026-09-14 改版）：大卡包小卡 ----
   紧接月相行，顺序 = 此刻天空 → 今日星象焦点 → 未来 48 小时。
   用 order 而非挂载顺序：前两块是从 #skyPanelsHolder 移入的常驻 DOM、
   中间一块是 fortune 本次重绘生成的，谁先 appendChild 不可靠。 */
.ft-skyboard { margin: 0 0 20px; padding: 16px 16px 4px; border-radius: 18px;
  background: rgba(138, 125, 255, .05); border: 1px solid var(--line); }
.ft-skyboard-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ft-skyboard-ic { color: var(--gold); font-size: 13px; }
.ft-skyboard-head b { font-size: 15px; color: var(--gold); letter-spacing: 1px; font-weight: 600; }
.ft-skyboard-sub { font-size: 12px; color: var(--muted); }
.ft-sky-slot > #ftFocusCard { order: 1; }
.ft-sky-slot > #svEventsPanel { order: 2; }
/* 观测时刻：并入大卡标题右侧（原「此刻天空」卡撤除，2026-09-15） */
.ft-skyboard-time { margin-left: auto; font-size: 12px; color: var(--muted);
  white-space: nowrap; }
/* 逆行天体：chips 自动换行，替代原先右对齐的长文本（8 个天体放不下且难看） */
.ft-retro-block { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.ft-retro-label { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.ft-retro-chips { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ft-retro-chip { font-size: 12.5px; line-height: 1.5; padding: 3px 11px; border-radius: 999px;
  color: #ffb4c6; border: 1px solid rgba(255, 138, 163, .38); background: rgba(255, 138, 163, .10); }
.ft-retro-chip.is-none { color: var(--muted); border-color: var(--line);
  background: rgba(255, 255, 255, .03); }
/* 可点击的 chip（跳转到下方逆行释义） */
button.ft-retro-chip { cursor: pointer; font-family: inherit;
  transition: background .18s, border-color .18s, transform .18s; }
button.ft-retro-chip:hover { background: rgba(255, 138, 163, .22);
  border-color: rgba(255, 138, 163, .7); transform: translateY(-1px); }
button.ft-retro-chip:active { transform: translateY(0); }
/* ---- 逆行释义（「行星与你今天的对话」卡片末尾）---- */
.ft-retro-notes { margin-top: 18px; padding-top: 15px;
  border-top: 1px dashed rgba(255, 138, 163, .28); }
.ft-retro-notes-title { font-size: 13.5px; color: #ffb4c6; letter-spacing: 1px; margin-bottom: 8px; }
.ft-retro-notes-hint { font-size: 12.5px; line-height: 1.8; color: var(--muted);
  background: rgba(255, 190, 107, .07); border: 1px solid rgba(255, 190, 107, .22);
  border-radius: 11px; padding: 9px 12px; margin-bottom: 12px; }
.ft-retro-note { padding: 11px 13px; border-radius: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .028); }
.ft-retro-note:last-child { margin-bottom: 0; }
.ft-retro-note-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.ft-retro-note-name { font-size: 13.5px; font-weight: 600; color: #ffb4c6; }
.ft-retro-slow { font-size: 11px; padding: 1px 8px; border-radius: 999px;
  color: var(--muted); border: 1px solid var(--line); }
.ft-retro-note-desc { font-size: 13px; line-height: 1.8; color: #c6cbe0; }
.ft-retro-note-today { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.ft-retro-note-today b { color: #f5df9e; }
/* 跳转落地高亮 */
@keyframes retroFlash {
  0%   { background: rgba(255, 138, 163, .28); border-color: rgba(255, 138, 163, .85); }
  100% { background: rgba(255, 255, 255, .028); border-color: var(--line); }
}
.ft-retro-note.is-flash { animation: retroFlash 1.6s ease-out; }
/* 移动端：label 独占一行，chips 更紧凑（8 个逆行天体在 390px 下从 5 行压到 ~3 行） */
@media (max-width: 560px) {
  .ft-retro-block { flex-direction: column; align-items: stretch; gap: 7px; }
  .ft-retro-label { padding-top: 0; }
  .ft-retro-chips { gap: 5px; }
  .ft-retro-chip { font-size: 11.5px; padding: 2px 9px; }
}
.ft-sky-slot { display: flex; flex-direction: column; gap: 12px; margin-top: 0;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .10); }
.ft-sky-slot .sv-panel { margin: 0; background: rgba(255, 255, 255, .03); }
/* 2026-09-14 移动端：Hero(26) → skyboard(16) → sv-panel(14) 三层内边距累加，
   360 视口下内容区只剩 ~202px，逆行列表被挤成 3 行。逐层收窄，多让出约 40px。 */
@media (max-width: 768px) {
  .ft-hero { padding: 16px 12px 14px; border-radius: 18px; }
  .ft-skyboard { padding: 12px 10px 4px; margin-bottom: 16px; }
  .ft-sky-slot { padding-top: 12px; gap: 10px; }
  .ft-sky-slot .sv-panel { padding: 14px 12px; }
  .ft-glance { padding: 14px 12px; }
}
/* 万象页：天文事件面板占满整行 */
.sv-panel-wide { grid-column: 1 / -1; }

/* ==========================================================================
   PC 大屏加宽（2026-09-15，用户反馈"PC 端宽度总感觉太小"）
   --------------------------------------------------------------------------
   全局 --maxw 是 1240px（为首页 hero 定的大字号排版宽度），但「发现」组是
   内容密集的卡片列表——1920/2560 显示器上左右留白过多、每行文字被挤。
   这里只对发现组（星运/星盘/万象/日历/合盘）阶梯放宽，**移动端与首页、
   漫语、消息、我的等视图完全不受影响**（选择器带 #view-* 前缀，且限定 ≥1240px）。
   ⚠️ 2026-09-15 三次修正（用户逐次反馈「太胖」）：
     首版 1400/1640/1800 → 用户说太胖 → 1300/1360/1400 → 仍觉胖
     → **本次取上一版的 60%：780 / 816 / 840**。
   经验：这个项目的卡片列表在 PC 上**宁可窄些**，阅读舒适度优先于填满屏幕。
   ========================================================================== */
@media (min-width: 1240px) {
  #view-fortune .section, #view-huangli .section, #view-xingpan .section,
  #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 780px;
  }
}
@media (min-width: 1600px) {
  #view-fortune .section, #view-huangli .section, #view-xingpan .section,
  #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 816px;
  }
}
@media (min-width: 1920px) {
  #view-fortune .section, #view-huangli .section, #view-xingpan .section,
  #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 840px;
  }
}

.sv-panel-sub { margin: -4px 0 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---- 重大天文事件（astro.js）---- */
.astro-events { display: flex; flex-direction: column; gap: 14px; }
.astro-group-title { font-size: 12px; font-weight: 600; color: var(--gold-soft);
  padding-bottom: 6px; border-bottom: 1px solid var(--line); }
/* ---- 天象事件列表（2026-09-14 视觉打磨）----
   原为「纯文本 + 虚线分隔」的平铺列表，移动端非常扁平、条目边界弱。
   改为**小卡片**：圆角底色 + 左侧金色竖条（临近事件加亮），层次一目了然。 */
.astro-item { display: flex; gap: 12px; padding: 11px 13px; margin-bottom: 9px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .028); position: relative; overflow: hidden;
  transition: background .18s, border-color .18s; }
.astro-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, rgba(245, 215, 110, .75), rgba(245, 215, 110, .12)); }
.astro-item:hover { background: rgba(245, 215, 110, .055); border-color: rgba(245, 215, 110, .28); }
.astro-item:last-child { margin-bottom: 0; }
.astro-when { flex: 0 0 92px; font-size: 12px; color: var(--gold-soft); font-weight: 600; }
.astro-body { flex: 1 1 auto; min-width: 0; }
.astro-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.astro-name i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }
.astro-desc { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.astro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
/* 标签原 10px 偏小（移动端 33 处），提到 11px 并加底色以增强可读性 */
.astro-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); }
.astro-tag.hot { color: #ffbe6b; border-color: rgba(255, 190, 107, .45);
  background: rgba(255, 190, 107, .09); }
.astro-when i { display: block; margin-top: 3px; font-style: normal; font-weight: 400;
  font-size: 11px; color: var(--gold-soft); opacity: .9; }
/* 移动端：日期改为顶部整行（原 92px 固定列把正文挤得很窄） */
@media (max-width: 560px) {
  .astro-item { flex-direction: column; gap: 6px; padding: 11px 12px; }
  .astro-when { flex: none; display: flex; align-items: baseline; gap: 8px; }
  .astro-when i { display: inline; margin-top: 0; font-size: 10.5px; opacity: .8; }
}
.astro-next { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  margin-bottom: 6px; border-radius: 12px;
  border: 1px solid rgba(245, 215, 110, .30); background: rgba(245, 215, 110, .06); }
.astro-next-ic { font-size: 20px; }
.astro-next b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--text); }
.astro-next span { font-size: 12px; color: var(--muted); }
.astro-src { margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--muted); opacity: .9; }

@media (max-width: 760px) {
  .astro-item { flex-direction: column; gap: 4px; }
  .astro-when { flex: none; }
}

.wnl-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.wnl-toggle-ic { font-size: 11px; font-weight: 400; color: var(--gold-soft); opacity: .85; }
.wnl-rel-title { font-size: 11px; color: var(--gold-soft); margin-bottom: 8px; }
.wnl-rel-row { padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.wnl-rel-row:last-of-type { border-bottom: none; }
.wnl-rel-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wnl-rel-key { font-size: 12px; font-weight: 600; }
.wnl-rel-kind { font-size: 11px; padding: 0 6px; border-radius: 5px; border: 1px solid; }
.wnl-rel-good { color: #7ee0a8; }
.wnl-rel-bad { color: #ff9a9a; }
.wnl-rel-kind.wnl-rel-good { border-color: rgba(126, 224, 168, .45); }
.wnl-rel-kind.wnl-rel-bad { border-color: rgba(255, 154, 154, .45); }
.wnl-rel-note { flex: 1 1 190px; font-size: 11px; color: var(--muted); }
.wnl-rel-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wnl-rel-item { font-size: 11px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--muted); }
.wnl-rel-today { color: #070b24; background: var(--gold); border-color: var(--gold);
  font-weight: 600; }

@media (max-width: 760px) {
  .wnl-sx-row { flex-direction: column; gap: 1px; }
  .wnl-sx-row b { flex: none; }
}

/* ---- 释义 ---- */
.wnl-gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-bottom: 10px; }
.wnl-gloss-group { min-width: 0; }
.wnl-gloss-group h4 { font-size: 12px; font-weight: 600; color: var(--gold-soft);
  margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.wnl-gloss-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.75; padding: 3px 0; }
.wnl-gloss-row b { flex: 0 0 74px; color: var(--text); font-weight: 600; }
.wnl-gloss-row span { flex: 1 1 auto; color: var(--muted); }
.wnl-gloss-wide { grid-column: 1 / -1; }
/* 释义区内的「十二地支关系速查」卡（2026-09-14 从传统避忌卡拆入） */
.wnl-rel-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .02); }
.wnl-rel-card .wnl-sx-tip { margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--muted); }

@media (max-width: 760px) {
  .wnl-gloss { grid-template-columns: 1fr; }
  .wnl-gloss-wide { grid-column: auto; }
  .wnl-gloss-row { flex-direction: column; gap: 1px; }
  .wnl-gloss-row b { flex: none; }
}

/* ==========================================================================
   PC 端可读性增强（2026-09-14，用户反馈"字小、色暗、看得很累"）
   --------------------------------------------------------------------------
   背景：本项目基础样式是**移动优先**写的——同一套 11~13px 字号被桌面端直接沿用。
   手机屏小必须压字号，但 1440px 桌面空间充裕，小字纯属受累。
   做法：只在 ≥1024px **上调字号与行高、提亮辅助文字**，不动任何布局与顺序，
   移动端（<1024px）完全不受影响。
   量化依据：改前审查 1440px 下「字号<12.5px 或对比度<4.5」共
   星运 60 处 / 日历 247 处。
   ========================================================================== */
@media (min-width: 1024px) {
  /* ---------- 星运 ---------- */
  .ft-yi-item { font-size: 15px; line-height: 1.7; padding: 11px 15px; }
  .ft-yi-why { font-size: 13px; line-height: 1.7; margin-top: 6px; }
  .ft-yi-title { font-size: 14px; padding: 4px 16px; }
  .ft-summary { font-size: 14.5px; line-height: 1.9; }
  .ft-verdict .ft-summary { font-size: 14px; }
  .ft-verdict .ft-headline { font-size: 20px; }
  .ft-focus { font-size: 14px; line-height: 1.85; }
  .ft-aspect-text { font-size: 14px; line-height: 1.85; }
  .ft-aspect-name { font-size: 14.5px; }
  .ft-aspect-state { font-size: 12.5px; padding: 3px 10px; }
  .ft-gdim i { font-size: 12.5px; }
  .ft-daytag { font-size: 12.5px; }
  .ft-retro-badge { font-size: 12.5px; }
  .wnl-sx-tip { font-size: 12.5px; line-height: 1.85; }
  .ft-minor-desc { font-size: 14px; line-height: 1.85; }
  .ft-minor-pos { font-size: 12.5px; }
  .ft-minor-act { font-size: 13px; }
  .ft-minor-intro { font-size: 13.5px; line-height: 1.85; }
  .ft-gl-chip { font-size: 13px; padding: 5px 12px; }
  .ft-gdim-ic { font-size: 12.5px; }
  .ft-gdim b { font-size: 22px; }
  .ft-skyboard-sub { font-size: 13px; }
  .ft-moon-text { font-size: 14.5px; }
  .ft-moon-rs { font-size: 13px; }
  .ft-chartbar-label { font-size: 13px; }
  .ft-card-title { font-size: 15px; }
  .ft-basis > summary { font-size: 13px; }
  .ft-basis-step { font-size: 13px; line-height: 1.8; }
  .ft-basis-fml { font-size: 13px; }
  .ft-basis-src, .ft-basis-tip { font-size: 12.5px; }
  .ft-footnote { font-size: 13px; }
  .ft-retro-label, .ft-retro-chip { font-size: 13px; }
  .ft-skyboard-time { font-size: 13px; }
  .sv-panel .sv-loading { font-size: 14px; }
  .astro-desc { font-size: 13.5px; }
  .astro-name { font-size: 14.5px; }
  .astro-when { font-size: 13px; }
  .astro-tag { font-size: 12px; }

  /* ---------- 日历 ---------- */
  .wnl-tag { font-size: 12.5px; padding: 3px 11px; }
  .wnl-note { font-size: 13px; line-height: 1.85; }
  .wnl-src { font-size: 12.5px; line-height: 1.85; }
  .wnl-moon-rs { font-size: 13px; }
  .wnl-yiji-item { font-size: 13.5px; padding: 6px 13px; }
  .wnl-yiji-head { font-size: 16px; }
  .wnl-tname i { font-size: 12.5px; }
  .wnl-tname { font-size: 14px; }
  .wnl-tyiji { font-size: 13px; line-height: 1.7; }
  .wnl-tstar { font-size: 12.5px; }
  .wnl-ss-label { font-size: 13px; }
  .wnl-ss-list, .wnl-chip-good, .wnl-chip-bad { font-size: 13px; }
  .wnl-xiu-song { font-size: 13.5px; line-height: 2; }
  .wnl-xiu-head b { font-size: 15.5px; }
  .wnl-kv-k { font-size: 13px; }
  .wnl-kv-v { font-size: 13.5px; }
  .wnl-tb-name { font-size: 15px; }
  .wnl-tb-what { font-size: 14px; }
  .wnl-tb-src { font-size: 12.5px; line-height: 1.9; }
  .wnl-tb-kind, .wnl-tb-lv { font-size: 12px; }
  .wnl-sx-row { font-size: 13.5px; line-height: 1.9; }
  .wnl-sxc span { font-size: 12px; }
  .wnl-sxc b { font-size: 14.5px; }
  .wnl-sx-badge { font-size: 14px; padding: 4px 14px; }
  .wnl-rel-note { font-size: 12.5px; }
  .wnl-rel-item { font-size: 12.5px; padding: 3px 9px; }
  .wnl-rel-kind { font-size: 12px; }
  .wnl-rel-key { font-size: 13.5px; }
  .wnl-gloss-row { font-size: 13.5px; line-height: 1.9; }
  /* 子元素有自己的规则，必须显式覆盖（否则继承不到上面这条） */
  .wnl-gloss-row b { font-size: 13.5px; flex-basis: 88px; }
  .wnl-gloss-row span { font-size: 13.5px; }
  .wnl-gloss-group h4 { font-size: 13.5px; }
  .wnl-rel-title { font-size: 13px; }
  .wnl-toggle-ic { font-size: 12.5px; }
  .wnl-tgz { font-size: 13px; flex-basis: 48px; }
  .wnl-src-row { font-size: 12.5px; line-height: 1.9; }
  .wnl-cal-cell i { font-size: 11.5px; }
  .wnl-cal-cell b { font-size: 16px; }
  .wnl-cal-btn { font-size: 13px; }
  /* 月历格子加高，配合放大的字不显拥挤 */
  .wnl-cal-cell { min-height: 54px; }
}

/* 超宽屏（≥1600px）再放一档：此时留白很多，正文可以更从容 */
@media (min-width: 1600px) {
  .ft-yi-item { font-size: 15.5px; }
  .ft-yi-why { font-size: 13.5px; }
  .ft-aspect-text, .ft-minor-desc, .ft-focus { font-size: 14.5px; }
  .wnl-gloss-row, .wnl-sx-row { font-size: 14px; }
  .wnl-tb-src, .wnl-src-row { font-size: 13px; }
}

/* ============================================================
 * 年度星运 v2（2026-10-10）
 * 移动端优先：全部纵向卡片；行运用 12 个月时间条，逐月用宫格，不用宽表格。
 * ============================================================ */

/* 范围切换 4 项（今天/本周/本月/年度）：窄屏收窄间距，避免挤成两行 */
.ft-scope { gap: 22px; }
@media (max-width: 560px) { .ft-scope { gap: 14px; } }
@media (max-width: 380px) { .ft-scope { gap: 10px; } .ft-scope-btn { font-size: 14px; } }

/* 往期：有分数但不可点进单日详情 */
.ft-cd.nodetail { cursor: default; }
.ft-wrow.nodetail { cursor: default; }
.ft-wrow.nodetail:active { transform: none; }

/* 年份 chips
   ⚠️ 2026-10-11：同 .fy-dimchips，由横向滚动改为**换行**。
      「2021…2027」共 8 个 chip 内容宽 514px、可视 354px（390 屏），2025 之后的年份
      被切在屏幕外（用户截图指出"年份显示不全"）；4 位年份再怎么压窄也塞不进一行，故换行。 */
.ft-yearchips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding-bottom: 4px;
  overscroll-behavior-x: contain;
}
@media (min-width: 700px) { .ft-yearchips { justify-content: center; } }
.ft-ychip {
  flex: 0 0 auto; padding: 7px 14px; min-height: 34px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 600; font-family: inherit; transition: all .18s;
}
.ft-ychip.on { color: #0b0f1f; border-color: transparent; background: linear-gradient(135deg, var(--gold), #f3d9a4); }
.ft-ychip.locked { opacity: .55; }
/* 年份面板（2026-10-16）：范围放开到「出生年 ~ 今年」后用面板选年。
   PC 一行 10 格＝一个年代；移动端一行 5 格。面板内**竖向**滚动（不与整屏横滑手势冲突）。 */
.ft-ychip.ft-ypick { color: var(--gold); border-color: rgba(212,175,55,.38); }
.ft-ypanel { margin: -4px 0 16px; padding: 12px 12px 6px; border-radius: 16px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ft-ypanel[hidden] { display: none; }
.ft-ypanel-head { display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 2px 8px; font-size: 13px; color: var(--text, #e8e3d3); }
.ft-ypanel-head span { font-size: 12px; color: var(--muted); }
.ft-ygrid-wrap { max-height: min(46vh, 340px); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding-right: 2px; }
.ft-ydec { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; margin: 8px 2px 6px; }
.ft-ygrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .ft-ygrid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.ft-ycell { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 44px;
  padding: 5px 0; border-radius: 10px; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: #e8e3d3;
  background: rgba(255,255,255,.04); border: 1px solid transparent; transition: all .15s; }
.ft-ycell small { font-size: 10.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.ft-ycell:hover { border-color: rgba(212,175,55,.4); }
.ft-ycell.cur { border-color: rgba(212,175,55,.55); }
.ft-ycell.on { color: #0b0f1f; background: linear-gradient(135deg, var(--gold), #f3d9a4); }
.ft-ycell.on small { color: rgba(11,15,31,.7); }
.ft-ycell.locked { opacity: .45; }

.ft-yl-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px;
  letter-spacing: .08em; color: var(--gold); border: 1px solid rgba(212,175,55,.38);
  background: rgba(212,175,55,.08); margin-bottom: 12px;
}
.ft-year-loading, .ft-year-locked {
  text-align: center; padding: 40px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ft-year-loading .ph-orb, .ft-yl-orb { font-size: 40px; color: var(--gold); }

/* ---- 总纲 ---- */
.fy-hero { text-align: center; padding: 22px 18px 18px; }
.fy-head { font-size: 15px; line-height: 1.8; color: var(--text); text-align: left; margin: 0 0 14px; }
.fy-theme { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .fy-theme { grid-template-columns: repeat(4, 1fr); } }
.fy-th {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 10px; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0;
}
.fy-th i { font-style: normal; font-size: 11px; color: var(--muted); }
.fy-th b { font-size: 15.5px; color: var(--gold); }
.fy-th span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.fy-method { margin-top: 12px; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.fy-note {
  margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  color: #e9d9a8; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25);
}

.fy-sec { margin-bottom: 14px; }
.fy-p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; text-align: justify; }
.fy-dim { color: var(--muted); font-size: 12px; }

/* ---- 图例 ---- */
.fy-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); margin: 2px 0 10px; }
.fy-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.fy-legend .t-support::before { background: var(--gold); }
.fy-legend .t-challenge::before { background: #e08a6a; }
.fy-legend .t-intense::before { background: #a78bfa; }
.fy-legend .lg-ex::before, .fy-legend .lg-today::before, .fy-legend .fy-dim::before { display: none; }
.fy-legend.sm { margin-top: 10px; }
.fy-legend .c-smooth::before { background: rgba(212,175,55,.7); }
.fy-legend .c-tense::before { background: rgba(224,138,106,.75); }
.fy-legend .c-turn::before { background: rgba(167,139,250,.8); }
.fy-legend .c-calm::before { background: rgba(160,168,190,.45); }

/* ---- 重大行运：时间条 ---- */
.fy-ticks { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10px; color: var(--muted);
  text-align: center; margin-bottom: 4px; }
.fy-tr { padding: 12px 0 12px; border-top: 1px solid var(--line); }
.fy-tr:first-of-type { border-top: none; }
.fy-tr-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.fy-tr-head b { font-size: 14.5px; color: var(--text); }
.fy-tr-glyph { font-size: 18px; color: var(--gold); line-height: 1; width: 20px; text-align: center; }
.fy-tone {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; line-height: 18px;
}
.fy-tone.t-support, .fy-tone.c-smooth { color: #1a1406; background: var(--gold); }
.fy-tone.t-challenge, .fy-tone.c-tense { color: #fff; background: #d97757; }
.fy-tone.t-intense, .fy-tone.c-turn { color: #fff; background: #8b6cf0; }
.fy-tone.c-calm { color: var(--text); background: rgba(160,168,190,.3); }
.fy-tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; line-height: 18px; }
.fy-tag.lord { color: var(--gold); border: 1px solid rgba(212,175,55,.45); background: rgba(212,175,55,.1); }
.fy-tag.cycle { color: #c9b8ff; border: 1px solid rgba(167,139,250,.45); background: rgba(167,139,250,.1); }
.fy-bar {
  position: relative; height: 12px; border-radius: 6px; background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(100%/12 - 1px), rgba(255,255,255,.08) calc(100%/12 - 1px), rgba(255,255,255,.08) calc(100%/12));
  background-color: rgba(255,255,255,.04);
}
.fy-win { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; opacity: .85; }
.fy-win.t-support { background: linear-gradient(90deg, #e8c76a, var(--gold)); }
.fy-win.t-challenge { background: linear-gradient(90deg, #e9967a, #d97757); }
.fy-win.t-intense { background: linear-gradient(90deg, #b39cff, #8b6cf0); }
.fy-exact {
  position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  background: #fff; transform: rotate(45deg); border-radius: 1.5px;
  box-shadow: 0 0 0 1.5px rgba(11,15,31,.8);
}
.fy-today { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px;
  background: rgba(120,200,255,.9); border-radius: 1px; }
.fy-tr-text { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 8px 0 0; text-align: justify; }

/* ---- 逐月宫格 ---- */
.fy-mongrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .fy-mongrid { grid-template-columns: repeat(6, 1fr); } }
.fy-mon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 10px 10px 9px; border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text);
  border-left-width: 3px; transition: transform .15s, background .15s;
}
.fy-mon:active { transform: scale(.97); }
.fy-mon.c-smooth { border-left-color: rgba(212,175,55,.85); }
.fy-mon.c-tense { border-left-color: #d97757; }
.fy-mon.c-turn { border-left-color: #8b6cf0; }
.fy-mon.c-calm { border-left-color: rgba(160,168,190,.45); }
.fy-mon.past { opacity: .62; }
.fy-mon.now { box-shadow: 0 0 0 1.5px rgba(120,200,255,.8) inset; }
.fy-mon.sel { background: rgba(255,255,255,.1); opacity: 1; }
.fy-mon-n { font-size: 18px; font-weight: 700; font-family: "Cinzel", Georgia, serif; line-height: 1.1; }
.fy-mon-n small { font-size: 11px; font-weight: 500; margin-left: 1px; color: var(--muted); font-family: inherit; }
.fy-mon-tone { font-size: 12px; font-weight: 600; }
.fy-mon.c-smooth .fy-mon-tone { color: var(--gold); }
.fy-mon.c-tense .fy-mon-tone { color: #ee9a7e; }
.fy-mon.c-turn .fy-mon-tone { color: #b9a4ff; }
.fy-mon.c-calm .fy-mon-tone { color: var(--muted); }
.fy-mon-h { font-size: 11px; color: var(--muted); }
.fy-mon-g { font-size: 12px; color: var(--gold); letter-spacing: 1px; min-height: 15px; }
.fy-mondetail { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fy-mondetail:empty { display: none; }
.fy-md-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fy-md-head b { font-size: 14.5px; }
.fy-md-ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---- chips / 年主星 / 日月食 / 逆行 ---- */
.fy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fy-chip {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 999px;
  font-size: 12.5px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.fy-chip i { font-style: normal; font-size: 11px; color: var(--muted); }
.fy-lord { display: flex; align-items: center; gap: 12px; margin: 2px 0 2px; }
.fy-lord-g {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 24px; color: var(--gold);
  background: radial-gradient(circle, rgba(212,175,55,.22), rgba(212,175,55,.04));
  border: 1px solid rgba(212,175,55,.4);
}
.fy-lord b { display: block; font-size: 16px; }
.fy-lord span { font-size: 12px; color: var(--muted); }
.fy-ecl { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.fy-ecl:first-of-type { border-top: none; }
.fy-ecl-ic { font-size: 18px; line-height: 1.3; width: 20px; text-align: center; }
.fy-ecl.sol .fy-ecl-ic { color: var(--gold); }
.fy-ecl.lun .fy-ecl-ic { color: #b9c4ff; }
.fy-ecl-main { flex: 1 1 auto; min-width: 0; }
.fy-ecl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fy-ecl-top b { font-size: 14px; }
.fy-ecl-top span { font-size: 12px; color: var(--muted); }
.fy-ecl.hit { background: linear-gradient(90deg, rgba(212,175,55,.08), transparent); border-radius: 10px; padding-left: 6px; }
.fy-retro { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 640px) { .fy-retro { grid-template-columns: repeat(2, 1fr); } }
.fy-rt {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(224,138,106,.07); border: 1px solid rgba(224,138,106,.22); font-size: 13px;
}
.fy-rt b { font-weight: 600; color: var(--text); font-size: 12.5px; }
.fy-slow { border-top: 1px solid var(--line); padding: 10px 0; }
.fy-slow:first-of-type { border-top: none; }
.fy-slow summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 30px;
}
.fy-slow summary::-webkit-details-marker { display: none; }
.fy-slow summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: 12px; transition: transform .2s; }
.fy-slow[open] summary::after { transform: rotate(180deg); }

/* 「展开更多」按钮 */
.ft-btn-more {
  width: 100%; margin-top: 8px; padding: 11px 14px; min-height: 44px; border-radius: 12px; cursor: pointer;
  font-family: inherit; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.ft-btn-more:active { background: rgba(255,255,255,.1); color: var(--text); }

@media (max-width: 480px) {
  .fy-hero { padding: 18px 14px 16px; }
  .fy-head { font-size: 14.5px; }
  .fy-mon { padding: 9px 8px 8px; }
  .fy-mon-n { font-size: 17px; }
  .fy-p, .fy-tr-text { font-size: 13px; }
}

/* 精确日标签：直接写在菱形下方（手机没有悬停，2026-10-10） */
.fy-exlabels { position: relative; height: 21px; margin-top: 5px; }
.fy-exl {
  position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 5px;
  font-variant-numeric: tabular-nums; color: var(--text);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.fy-exl::before { content: "◆"; font-size: 7px; margin-right: 3px; vertical-align: 1px; opacity: .85; }
.fy-exl.t-support { border-color: rgba(212,175,55,.45); color: #f0d98c; }
.fy-exl.t-challenge { border-color: rgba(217,119,87,.5); color: #f1ab92; }
.fy-exl.t-intense { border-color: rgba(139,108,240,.55); color: #c4b3ff; }
@media (max-width: 480px) { .fy-exl { font-size: 10.5px; padding: 0 4px; } }

/* ============================================================
 * 分项走势（原「单看某一项」，2026-10-17 改名；2026-10-10 新增）
 * ============================================================ */

/* 范围分段控件（本周/本月/本年/跨年） */
.fy-seg {
  display: inline-flex; padding: 3px; border-radius: 999px; gap: 2px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 12px;
}
.fy-seg-b {
  border: none; background: none; cursor: pointer; font-family: inherit; min-height: 32px;
  padding: 5px 15px; border-radius: 999px; font-size: 13.5px; color: var(--muted); transition: all .18s;
}
.fy-seg-b.on { color: #0b0f1f; background: linear-gradient(135deg, var(--gold), #f3d9a4); font-weight: 600; }

/* 维度 chips
   ⚠️ 2026-10-11：由**横向滚动**改为**换行**（用户实测问题）。
      7 个领域在 390px 屏下内容宽 538px、可视只有 324px → 214px 落在屏幕外，
      要看到最后一个「心境」必须横滑；而横滑会被 main.js 的整屏翻页手势抢走，
      用户体感就是"想滑动却误操作把整个视图划走"。
      换行后 7 个全部可见，根本不需要横滑（4 位年份同理，见 .ft-yearchips）。 */
.fy-dimchips { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 4px;
  overscroll-behavior-x: contain; }
.fy-dchip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 7px 13px; min-height: 34px; border-radius: 999px; font-family: inherit; font-size: 13.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); transition: all .18s;
}
.fy-dchip span { font-size: 14px; }
.fy-dchip.on { color: var(--text); border-color: rgba(212,175,55,.6); background: rgba(212,175,55,.12); }
.fy-dchip.on span { color: var(--gold); }
.fy-sk { display: block; border-radius: 10px; background: rgba(255,255,255,.05); }

/* 图表 */
/* 每日综合分走势卡（2026-10-16 新增，本周 / 本月 / 年度共用，插在综述·总纲之上） */
.fy-dt-ph { text-align: center; padding: 26px 0; }
/* 图表游标：PC 悬停 / 移动端按住拖动 → 选中 X 轴上的某一天，气泡显示「X年X月X日 + 分数」 */
.fy-cur-host { position: relative; touch-action: pan-y; }
.fy-cur-line { stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-dasharray: 3 3; }
.fy-cur-dot { fill: #fff; stroke: var(--gold); stroke-width: 2; }
.fy-cur-dot.ov { fill: rgba(160,168,190,.95); stroke: rgba(160,168,190,.9); }
.fy-cur-tip { position: absolute; z-index: 3; display: none; pointer-events: none;
  padding: 5px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.55; white-space: nowrap;
  background: rgba(18,20,29,.95); border: 1px solid rgba(212,175,55,.35); }
.fy-cur-tip b { display: block; color: var(--gold); font-weight: 600; }
.fy-cur-tip .lg-dim { color: var(--gold); margin-right: 8px; }
.fy-cur-tip .lg-ov { color: rgba(160,168,190,.95); }
.fy-trend-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.fy-trend-head b { font-size: 16px; }
.fy-trend-ic { font-size: 18px; color: var(--gold); }
.fy-chart { width: 100%; min-height: 186px; }
.fy-chart svg { display: block; width: 100%; }
.fy-grid { stroke: rgba(255,255,255,.09); stroke-width: 1; stroke-dasharray: 3 4; }
.fy-ax, .fy-ay { fill: var(--muted); font-size: 9.5px; font-family: inherit; }
.fy-dimline { stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fy-ovline { stroke: rgba(160,168,190,.5); stroke-width: 1.3; stroke-dasharray: 4 4; }
.fy-dot { fill: var(--gold); }
.fy-today { stroke: rgba(120,200,255,.75); stroke-width: 1.4; stroke-dasharray: 2 3; }
.fy-chart-lg { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin: 2px 0 12px; }
.fy-chart-lg span::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: 5px;
  vertical-align: 3px; border-radius: 2px; }
.fy-chart-lg .lg-dim::before { background: var(--gold); height: 3px; }
.fy-chart-lg .lg-ov::before { background: rgba(160,168,190,.6); }
.fy-tr-loading { text-align: center; padding: 26px 10px; }
.fy-tr-loading .ph-orb { font-size: 30px; color: var(--gold); }

/* 本期统计 */
.fy-tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fy-tstats > div {
  display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0;
}
.fy-tstats i { font-style: normal; font-size: 11px; color: var(--muted); }
.fy-tstats b { font-size: 19px; font-family: "Cinzel", Georgia, serif; color: var(--gold); }
.fy-tstats b.hi { color: var(--gold); }
.fy-tstats b.lo { color: #e08a6a; }
.fy-tstats span { font-size: 10.5px; color: var(--muted); }

/* 月度柱（仅本年） */
.fy-trend-mon { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin: 12px 0 8px; }
.fy-tm { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; }
.fy-tm-v { font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fy-tm-bar { width: 100%; max-width: 20px; border-radius: 5px 5px 2px 2px; min-height: 5px;
  background: linear-gradient(180deg, #ffe9a8, var(--gold)); }
.fy-tm-bar.lv3 { background: linear-gradient(180deg, #ffe9a8, var(--gold)); }
.fy-tm-bar.lv2 { background: linear-gradient(180deg, #b9e8ff, var(--blue)); }
.fy-tm-bar.lv1 { background: linear-gradient(180deg, #cfd6e8, #8b93ab); }
.fy-tm-bar.lv0 { background: linear-gradient(180deg, #6b7290, #4a5069); }
.fy-tm-m { font-size: 10px; color: var(--muted); margin-top: 3px; }
/* 年度柱（2026-10-11）：一年一根，共约 10 根；标签是 4 位年份 → 收窄字号与间距，
   否则 320px 屏上「2022」会挤在一起（宽度只剩 ~26px/根）。 */
.fy-trend-yr { gap: 3px; height: 118px; }
.fy-trend-yr .fy-tm-m { font-size: 10px; letter-spacing: -.2px; }
.fy-trend-yr .fy-tm-bar { max-width: 18px; }
/* 年列可点：选中年加金框，当前年下划线；按钮去掉默认样式，触控高度 ≥ 44px */
.fy-ycol { background: none; border: 1px solid transparent; border-radius: 8px; padding: 2px 0 0;
  cursor: pointer; min-height: 44px; color: inherit; font: inherit; }
.fy-ycol.on { border-color: rgba(212,175,55,.55); background: rgba(212,175,55,.07); }
.fy-ycol.now .fy-tm-m { color: var(--gold); font-weight: 700; }
.fy-yfocus { display: block; height: 13px; line-height: 13px; font-size: 11px; margin-top: 1px; }
.fy-yfocus.f-主课题 { color: var(--gold); }
.fy-yfocus.f-重点 { color: #b9c4e6; font-size: 9px; }
.fy-yr-legend b.fy-yfocus { display: inline-block; margin-right: 3px; }
.fy-yr-note { font-size: 12px; color: #e8c37a; background: rgba(232,195,122,.08);
  border: 1px solid rgba(232,195,122,.25); border-radius: 8px; padding: 7px 10px; margin: 8px 0 4px;
  line-height: 1.6; }
.fy-yr-method { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* 某年 · 某维 详情卡 */
.fy-yr-detail { margin: 12px 0 4px; padding: 12px 12px 10px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.fy-yrd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fy-yrd-head b { font-size: 15px; color: var(--text); margin-right: 2px; }
.fy-yrd-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.fy-yrd-tag.s3, .fy-yrd-tag.s2 { color: #ffe9a8; background: rgba(212,175,55,.14); }
.fy-yrd-tag.s0 { color: #f1ab92; background: rgba(224,138,106,.13); }
.fy-yrd-tag.f-主课题 { color: var(--gold); background: rgba(212,175,55,.12); }
.fy-yrd-verdict { margin: 9px 0 6px; font-size: 13.5px; line-height: 1.75; color: var(--text); }
.fy-yrd-wt { font-size: 11.5px; color: var(--muted); margin: 8px 0 4px; }
.fy-yrd-wi { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.6;
  padding: 4px 0; border-top: 1px dashed rgba(255,255,255,.06); }
.fy-yrd-wi:first-of-type { border-top: 0; }
.fy-yrd-wi i { flex: 0 0 auto; font-style: normal; font-size: 10.5px; padding: 1px 6px;
  border-radius: 6px; margin-top: 2px; }
.fy-yrd-wi.pos i { color: #9fe0b5; background: rgba(140,224,176,.12); }
.fy-yrd-wi.neg i { color: #f1ab92; background: rgba(224,138,106,.13); }
.fy-yrd-wi.neu i { color: #b9c4e6; background: rgba(185,196,230,.10); }
.fy-yrd-wi span { color: var(--text); word-break: break-word; }
.fy-yrd-go { margin-top: 10px; width: 100%; min-height: 40px; }
@media (max-width: 360px) {
  .fy-trend-yr .fy-tm-m { font-size: 9px; }
  .fy-trend-yr .fy-tm-v { font-size: 8.5px; }
}

/* 最顺 / 最吃力 */
.fy-tlist { margin-top: 12px; }
.fy-tl-t { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.fy-tli {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px;
  margin-bottom: 5px; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); font-size: 13px;
}
.fy-tli span { flex: 1 1 auto; }
.fy-tli i { font-style: normal; font-size: 11px; color: var(--muted); }
.fy-tli b { font-size: 15px; font-family: "Cinzel", Georgia, serif; }
.fy-tli.hi b { color: var(--gold); }
.fy-tli.lo b { color: #e08a6a; }
.fy-tli:active { background: rgba(255,255,255,.1); }

@media (max-width: 380px) {
  .ft-scope { gap: 9px; }
  .ft-scope-btn { font-size: 13.5px; }
  .fy-seg-b { padding: 5px 12px; font-size: 13px; }
}

/* ============================================================
 * 私聊删除：左滑露出删除 + 操作面板（2026-10-10）
 * ============================================================ */

/* 会话行外壳：左滑时把行内容推出，露出底下的删除按钮。
   ⚠️ 红色只能给「按钮」、不能给外壳：`.chat-conv` 的背景是半透明玻璃
   （var(--glass)），外壳一旦填红，红色会透过每一行，整列泛红、按钮文字也会
   隐隐透出来（2026-10-10 截图复查发现）。同理按钮默认要隐藏。 */
.chat-conv-wrap {
  position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 8px;
}
.chat-conv-wrap .chat-conv {
  margin-bottom: 0; position: relative; z-index: 1;
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
  will-change: transform;
}
.chat-conv-wrap.swiped .chat-conv { transform: translateX(-76px); }
.chat-conv-del {
  position: absolute; right: 0; top: 0; bottom: 0; width: 76px; z-index: 0;
  border: none; background: #c8403c; color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer;
  visibility: hidden;                       /* 未划开时绝不露出 */
}
.chat-conv-wrap.swiped .chat-conv-del { visibility: visible; }
.chat-conv-del:active { background: #a5302d; }
/* PC 端没有左滑：悬停时直接露出一个小删除角标 */
@media (hover: hover) and (pointer: fine) {
  .chat-conv-wrap .chat-conv::after {
    content: "⋯"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 16px; opacity: 0; transition: opacity .18s;
  }
  .chat-conv-wrap:hover .chat-conv::after { opacity: .8; }
  .chat-conv-wrap:hover { box-shadow: 0 0 0 1px rgba(200,64,60,.5); }
}

/* 操作面板：移动端贴底，PC 居中 */
.chat-sheet-mask {
  position: fixed; inset: 0; z-index: 320; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(5,8,26,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: sheetIn .16s ease-out;
}
@keyframes sheetIn { from { opacity: 0 } to { opacity: 1 } }
.chat-sheet {
  width: 100%; max-width: 420px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-strong, rgba(20,24,46,.96));
  border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  animation: sheetUp .2s cubic-bezier(.22,.8,.3,1);
}
@keyframes sheetUp { from { transform: translateY(14px) } to { transform: none } }
@media (min-width: 640px) {
  .chat-sheet-mask { align-items: center; }
  .chat-sheet { border-radius: 16px; padding: 10px; }
}
.chat-sheet-title {
  padding: 10px 14px 12px; font-size: 13px; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.chat-sheet-item {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px; margin-bottom: 6px;
  border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--text);
  font-family: inherit; font-size: 15px; text-align: center; transition: background .15s;
}
.chat-sheet-item:active { background: rgba(255,255,255,.12); }
.chat-sheet-item.danger { color: #ff8b8b; border-color: rgba(200,64,60,.45); }
.chat-sheet-item.cancel { color: var(--muted); margin-bottom: 0; }

/* ===== 语音（2026-10-18：IM 语音消息 + 资料语音介绍；按住说话，点击播放）===== */
.chat-voicebtn { border: 0; background: none; font-size: 17px; color: var(--muted); padding: 0 6px; cursor: pointer; }
/* 语音消息气泡（2026-10-18 改微信式）：胶囊 + 声波图标（播放时跳动）+ 时长靠右；
   宽度由 JS 按时长计算（60~196px），越长越宽 —— 一眼看出这条语音多长。 */
.chat-bvoice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  border-radius: 18px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  background: var(--brand, #7c6cf2); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.chat-bvoice.peer { background: var(--card, #f2f2f5); color: var(--text, #222); }
.chat-bvoice:active { filter: brightness(.94); }
.chat-bvoice .cv-ic { display: inline-flex; align-items: center; gap: 2px; height: 15px; flex: none; }
.chat-bvoice .cv-ic i { width: 2px; border-radius: 1px; background: currentColor; opacity: .9;
  height: 7px; transform-origin: center; }
.chat-bvoice .cv-ic i:nth-child(2) { height: 11px; }
.chat-bvoice .cv-ic i:nth-child(3) { height: 15px; }
.chat-bvoice .cv-ic i:nth-child(4) { height: 9px; }
.chat-bvoice.playing .cv-ic i { animation: cvwave .9s ease-in-out infinite; }
.chat-bvoice.playing .cv-ic i:nth-child(2) { animation-delay: .15s; }
.chat-bvoice.playing .cv-ic i:nth-child(3) { animation-delay: .3s; }
.chat-bvoice.playing .cv-ic i:nth-child(4) { animation-delay: .45s; }
@keyframes cvwave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1.35); } }
.chat-bvoice .cv-dur { margin-left: auto; font-size: 12px; opacity: .9;
  font-variant-numeric: tabular-nums; flex: none; }
.chat-bvoice.peer .cv-dur { opacity: .6; }
.chat-recpanel { position: fixed; inset: 0; z-index: 1300; background: rgba(0, 0, 0, .45);
  display: none; align-items: center; justify-content: center; flex-direction: column; }
.chat-recpanel.show { display: flex; }
.chat-recbox { background: var(--panel, #fff); border-radius: 16px; padding: 20px 28px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 240px; }
.chat-recdot { width: 12px; height: 12px; border-radius: 50%; background: #ff4d6a; animation: crecpulse 1s infinite; }
@keyframes crecpulse { 50% { opacity: .25; } }
.chat-recsec { font-variant-numeric: tabular-nums; font-weight: 600; }
.chat-reccancel { border: 1px solid var(--line, #e5e5ea); background: none; border-radius: 8px; padding: 6px 14px; cursor: pointer; }
/* 资料卡里的语音介绍条：与 IM 语音气泡同一套视觉（声波图标 + 胶囊），播放时同样跳动 */
.my-pvoice { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; cursor: pointer;
  padding: 7px 13px; border-radius: 16px; background: var(--brand, #7c6cf2); color: #fff; font-size: 12px; }
.my-pvoice .pv-label { font-size: 12px; opacity: .95; }
.my-pvoice .pv-dur { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .85; }
.my-pvoice.playing .cv-ic i { animation: cvwave .9s ease-in-out infinite; }
.my-pvoice.playing .cv-ic i:nth-child(2) { animation-delay: .15s; }
.my-pvoice.playing .cv-ic i:nth-child(3) { animation-delay: .3s; }
.my-pvoice.playing .cv-ic i:nth-child(4) { animation-delay: .45s; }
.ob-voice-row { display: flex; gap: 10px; align-items: center; margin: 8px 0 4px; flex-wrap: wrap; }
.ob-vplay, .ob-vdel { border: 1px solid var(--line, #e5e5ea); background: none; border-radius: 8px;
  padding: 4px 10px; cursor: pointer; font-size: 12px; }

/* ===== 语音按钮图标（2026-10-18 换掉 emoji 🎤：SVG 线性麦克风，颜色跟随主题）===== */
.chat-voicebtn { border: 0; background: none; color: var(--muted, #8a8a94); padding: 0;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chat-voicebtn:hover { color: var(--brand, #7c6cf2); background: rgba(124, 108, 242, .09); }
.chat-voicebtn:active { transform: scale(.94); }
.chat-voicebtn svg { display: block; }
.ob-micbtn { display: inline-flex; align-items: center; gap: 6px; }
.ob-micbtn.rec { color: #ff4d6a; border-color: #ff4d6a; }
.ob-micbtn svg { display: block; }
