:root {
  --bg: #0e0a1f;
  --bg2: #1a1334;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --gold: #e8c573;
  --gold2: #f4d98b;
  --txt: #ece8f5;
  --sub: #a79fc4;
  --accent: #8b6fe8;
  --good: #58c98a;
  --warn: #e8a14f;
  --bad: #e76b7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a1c52 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.65;
}

.app { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }

.topbar { text-align: center; padding: 18px 0 10px; }
.topbar h1 {
  font-size: 30px; letter-spacing: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar .sub { color: var(--sub); font-size: 13px; letter-spacing: 3px; margin-top: 4px; }

.tabs {
  display: flex; gap: 8px; background: var(--card);
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 6px; margin: 18px 0;
}
.tab {
  flex: 1; padding: 11px; border: none; border-radius: 10px;
  background: transparent; color: var(--sub); font-size: 15px;
  cursor: pointer; transition: .25s; font-weight: 600;
}
.tab.active { background: linear-gradient(135deg, var(--accent), #6a4fd0); color: #fff; }

.panel { display: none; animation: fade .35s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.card h2 { font-size: 17px; margin-bottom: 16px; color: var(--gold2); }

.form-row { display: flex; align-items: center; margin-bottom: 14px; gap: 12px; }
.form-row label { width: 70px; color: var(--sub); font-size: 14px; flex-shrink: 0; }

input[type="date"], input[type="time"] {
  flex: 1; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--card-border); background: rgba(0,0,0,.25);
  color: var(--txt); font-size: 15px; font-family: inherit;
}
input::-webkit-calendar-picker-indicator { filter: invert(.7); }

.seg { display: flex; gap: 6px; flex: 1; }
.seg.small { margin-bottom: 10px; }
.seg-btn {
  flex: 1; padding: 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--card-border); background: rgba(0,0,0,.2);
  color: var(--sub); font-size: 14px; transition: .2s;
}
.seg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.hint { color: var(--sub); font-size: 12px; margin: 6px 0 14px; }

.primary-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #d9b25a);
  color: #2a1c10; font-size: 16px; font-weight: 700; cursor: pointer;
  letter-spacing: 2px; transition: .2s; box-shadow: 0 6px 20px rgba(232,197,115,.25);
}
.primary-btn:active { transform: scale(.98); }

.two-col { display: flex; gap: 12px; margin-bottom: 16px; }
.person-box { flex: 1; }
.person-box h3 { font-size: 14px; color: var(--gold2); margin-bottom: 10px; }
.person-box input { width: 100%; margin-bottom: 8px; }

/* 命盘四柱 */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 4px;
}
.pillar {
  text-align: center; background: rgba(0,0,0,.25); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 12px 4px;
}
.pillar .pos { font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.pillar .gz { font-size: 26px; font-weight: 700; color: var(--gold2); letter-spacing: 2px; }
.pillar .ss { font-size: 11px; color: var(--accent); margin-top: 4px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  background: rgba(139,111,232,.18); border: 1px solid rgba(139,111,232,.4);
  border-radius: 20px; padding: 5px 12px; font-size: 13px; color: #cdbfff;
}

/* 五行条 */
.wuxing-bars { margin: 12px 0; }
.wx-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wx-bar .name { width: 24px; font-size: 14px; }
.wx-bar .track { flex: 1; height: 10px; background: rgba(0,0,0,.3); border-radius: 6px; overflow: hidden; }
.wx-bar .fill { display: block; height: 100%; border-radius: 6px; transition: width .6s ease; }
.wx-bar .val { width: 38px; text-align: right; font-size: 12px; color: var(--sub); }
.wx-木 { background: linear-gradient(90deg,#4caf6f,#7fd99a); }
.wx-火 { background: linear-gradient(90deg,#e25555,#ff8a6a); }
.wx-土 { background: linear-gradient(90deg,#c79a4a,#e8c98a); }
.wx-金 { background: linear-gradient(90deg,#b8b8c0,#eaeaf0); }
.wx-水 { background: linear-gradient(90deg,#3a78c2,#6fb6e8); }

.section-block { margin: 16px 0; }
.section-block h3 {
  font-size: 15px; color: var(--gold2); margin-bottom: 10px;
  padding-left: 10px; border-left: 3px solid var(--gold);
}
.item { margin-bottom: 12px; }
.item .it-title { font-size: 13px; color: var(--accent); margin-bottom: 3px; }
.item .it-text { font-size: 14px; color: var(--txt); }

/* 合盘结果 */
.match-card { text-align: center; }
.score-circle {
  width: 130px; height: 130px; border-radius: 50%; margin: 6px auto 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--gold) var(--deg,0deg), rgba(255,255,255,.08) 0deg);
  position: relative;
}
.score-circle::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg2);
}
.score-circle .num { position: relative; font-size: 38px; font-weight: 800; color: var(--gold2); }
.score-circle .lbl { position: relative; font-size: 12px; color: var(--sub); }

.rel-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.rel-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--card-border); background: rgba(0,0,0,.2);
  color: var(--sub); font-size: 14px; transition: .2s;
}
.rel-tab.active { background: linear-gradient(135deg,var(--accent),#6a4fd0); color: #fff; }

.stars { color: var(--gold); font-size: 20px; letter-spacing: 3px; margin: 4px 0; }
.level-txt { font-size: 16px; color: var(--gold2); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin: 14px 0; }
.detail-grid .d { background: rgba(0,0,0,.2); border-radius: 10px; padding: 8px 2px; text-align: center; }
.detail-grid .d .dn { font-size: 11px; color: var(--sub); }
.detail-grid .d .dv { font-size: 18px; font-weight: 700; color: var(--gold2); }

.advice-list { text-align: left; margin-top: 10px; }
.advice-list .a {
  font-size: 14px; padding: 8px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,.04); border-radius: 10px;
}

/* 合盘扩展：结语 / 维度解读 / 优势注意点 */
.verdict {
  font-size: 14px; color: var(--txt); margin: 10px 0 4px;
  padding: 10px 14px; background: rgba(139,111,232,.12);
  border-radius: 10px; line-height: 1.7;
}
.dim-list { text-align: left; margin: 16px 0 6px; }
.dim {
  background: rgba(0,0,0,.18); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.dim-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dim-name { font-size: 14px; color: var(--gold2); font-weight: 600; }
.dim-score { font-size: 15px; font-weight: 700; padding: 1px 10px; border-radius: 20px; }
.dim-score.good { color: var(--good); background: rgba(88,201,138,.15); }
.dim-score.mid { color: var(--gold2); background: rgba(232,197,115,.15); }
.dim-score.bad { color: var(--bad); background: rgba(231,107,122,.15); }
.dim-text { font-size: 13.5px; color: var(--txt); line-height: 1.75; }

.block-title { text-align: left; font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.block-title.good-t { color: var(--good); }
.block-title.warn-t { color: var(--warn); }
.block-title.tip-t { color: #e79fc0; }
.tag-list { text-align: left; }
.tag-line {
  font-size: 14px; padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; line-height: 1.7;
}
.tag-line.good-line { background: rgba(88,201,138,.1); border-left: 3px solid var(--good); }
.tag-line.warn-line { background: rgba(232,161,79,.1); border-left: 3px solid var(--warn); }

.persons-mini { display: flex; gap: 10px; margin-bottom: 14px; }
.persons-mini .pm { flex: 1; background: rgba(0,0,0,.2); border-radius: 12px; padding: 10px; text-align: center; }
.persons-mini .pm .pm-bz { font-size: 13px; color: var(--gold2); letter-spacing: 1px; }
.persons-mini .pm .pm-sub { font-size: 11px; color: var(--sub); margin-top: 3px; }

.foot { text-align: center; color: var(--sub); font-size: 12px; margin-top: 24px; line-height: 1.8; }
.foot b { color: var(--warn); }

.best-banner {
  background: linear-gradient(135deg, rgba(232,197,115,.18), rgba(139,111,232,.18));
  border: 1px solid rgba(232,197,115,.3); border-radius: 12px;
  padding: 12px; text-align: center; font-size: 15px; margin-bottom: 14px; color: var(--gold2);
}

/* ---------- 月度运势 ---------- */
.overview { margin: 8px 0 16px; }
.ov-item {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px;
  color: var(--txt); padding: 8px 12px; margin-bottom: 7px;
  background: rgba(255,255,255,.04); border-radius: 10px; line-height: 1.6;
}
.ov-icon { flex-shrink: 0; }

.mfield-tabs {
  display: flex; gap: 6px; background: rgba(0,0,0,.2);
  border-radius: 12px; padding: 5px; margin-bottom: 14px;
}
.mfield-tab {
  flex: 1; text-align: center; padding: 9px; border-radius: 9px;
  font-size: 14px; color: var(--sub); cursor: pointer; transition: .2s;
}
.mfield-tab.active { background: linear-gradient(135deg,var(--accent),#6a4fd0); color: #fff; }

/* 色调 */
.great { color: #6ad6a0 !important; }
.good { color: #58c98a !important; }
.normal { color: var(--gold2) !important; }
.flat { color: #c9a86a !important; }
.low { color: var(--bad) !important; }
.mfill.great, .mini-fill.great { background: linear-gradient(90deg,#3fa56f,#6ad6a0); }
.mfill.good, .mini-fill.good { background: linear-gradient(90deg,#3fa56f,#58c98a); }
.mfill.normal, .mini-fill.normal { background: linear-gradient(90deg,#c79a4a,#e8c98a); }
.mfill.flat, .mini-fill.flat { background: linear-gradient(90deg,#a8823f,#c9a86a); }
.mfill.low, .mini-fill.low { background: linear-gradient(90deg,#c2495a,#e76b7a); }

.mrow {
  background: rgba(0,0,0,.18); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 9px;
}
.mrow-top { display: flex; align-items: center; justify-content: space-between; }
.mname { font-size: 14px; color: var(--txt); font-weight: 600; }
.mgz { font-size: 12px; color: var(--sub); margin-left: 8px; letter-spacing: 1px; }
.tao-badge {
  font-size: 10px; color: #e79fc0; background: rgba(231,159,192,.15);
  border: 1px solid rgba(231,159,192,.4); border-radius: 8px; padding: 1px 6px; margin-left: 8px;
}
.mgrade { font-size: 14px; font-weight: 700; }

.mtrack { height: 8px; background: rgba(0,0,0,.3); border-radius: 5px; overflow: hidden; margin: 9px 0 8px; }
.mfill { display: block; height: 100%; border-radius: 5px; transition: width .5s ease; }
.mtext { font-size: 13px; color: var(--sub); line-height: 1.7; }

.mmini { display: flex; gap: 12px; margin-top: 9px; }
.mini { display: flex; align-items: center; gap: 5px; flex: 1; }
.mini-l { font-size: 12px; color: var(--sub); }
.mini-track { flex: 1; height: 6px; background: rgba(0,0,0,.3); border-radius: 4px; overflow: hidden; }
.mini-fill { display: block; height: 100%; border-radius: 4px; }
.mini-v { font-size: 11px; color: var(--sub); width: 20px; text-align: right; }

/* ---------- 深度命盘：神煞 / 宫位 / 刑冲合害 ---------- */
.sub-label {
  font-size: 13px; color: var(--gold2); font-weight: 600;
  margin: 4px 0 10px; padding-left: 9px; border-left: 3px solid var(--gold);
}

.ss-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.ss-item {
  background: rgba(255,255,255,.04); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 12px;
}
.ss-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ss-name { font-size: 14px; color: var(--txt); font-weight: 600; }
.ss-pos { font-size: 11px; color: var(--sub); margin-left: auto; }
.ss-desc { font-size: 12.5px; color: var(--sub); line-height: 1.65; }

.ss-badge {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 8px;
  flex-shrink: 0; white-space: nowrap;
}
.ss-badge.ji { color: #0e3a24; background: var(--good); }
.ss-badge.xiong { color: #46101a; background: var(--bad); }
.ss-badge.zhong { color: #3a2a08; background: var(--gold); }

.inter-row {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 8px 0; border-top: 1px dashed var(--card-border);
}
.inter-row:first-of-type { border-top: none; }
.inter-row .ss-badge { margin-top: 1px; }

.mini-tag {
  display: inline-block; font-size: 11px; font-weight: 600; border-radius: 6px;
  padding: 1px 7px; margin-left: 4px;
}
.mini-tag.good { color: #bff2d4; background: rgba(88,201,138,.18); border: 1px solid rgba(88,201,138,.5); }
.mini-tag.bad { color: #f6c3cc; background: rgba(231,107,122,.18); border: 1px solid rgba(231,107,122,.5); }

/* ---------- 综合总结 ---------- */
.syn-card {
  background:
    linear-gradient(135deg, rgba(232,197,115,.10), rgba(139,111,232,.10)),
    var(--card);
  border-color: rgba(232,197,115,.28);
}
.syn-card h3 { color: var(--gold2); }
.syn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.syn-tags .mini-tag { margin-left: 0; font-size: 12px; padding: 2px 9px; }
.syn-card .it-text { font-size: 13.5px; line-height: 1.8; color: var(--txt); }

/* ==================== P0/P1/P2 新增样式 ==================== */

/* 表单：历法/出生地/复选 */
#g-caltype, #g-leap { }
#g-city {
  flex: 1; background: var(--card); border: 1px solid var(--card-border);
  color: var(--txt); border-radius: 10px; padding: 9px 10px; font-size: 14px;
}
.check-row { gap: 18px; flex-wrap: wrap; }
.check-row label.check {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--sub); cursor: pointer; width: auto; flex: none;
}
.check-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.q-term {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; margin-left: 4px;
  background: rgba(139,111,232,.25); color: var(--gold2); font-size: 11px;
  cursor: pointer; border: 1px solid rgba(232,197,115,.4);
}
.ghost-btn {
  width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px;
  background: transparent; border: 1px solid var(--card-border);
  color: var(--sub); font-size: 14px; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--gold); color: var(--gold2); }
.ghost-btn.full { margin-top: 4px; }

/* 多人档案 */
.profile-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  background: rgba(139,111,232,.16); border: 1px solid rgba(139,111,232,.4);
  border-radius: 20px; font-size: 13px; color: var(--txt); cursor: pointer;
}
.pf-chip:hover { background: rgba(139,111,232,.28); }
.pf-del { color: var(--sub); font-style: normal; font-size: 15px; line-height: 1; padding: 0 2px; }
.pf-del:hover { color: var(--bad); }
.pf-empty { font-size: 12px; color: var(--sub); opacity: .7; }

/* 命盘圆盘 */
.chart-circle .circle-wrap { display: flex; justify-content: center; padding: 6px 0; }
.chart-svg { width: 260px; height: 260px; max-width: 100%; }
.chart-svg text { text-anchor: middle; dominant-baseline: middle; font-family: inherit; }
.cs-gan, .cs-zhi { font-size: 19px; font-weight: 700; }
.cs-pos { font-size: 11px; fill: var(--sub); }
.cs-dm { font-size: 30px; font-weight: 700; fill: var(--gold2); }
.cs-dm-sub { font-size: 12px; fill: var(--sub); }
.circle-legend { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.circle-legend span { font-size: 12px; color: var(--sub); display: inline-flex; align-items: center; gap: 4px; }
.circle-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 大运时间轴 */
.dayun-track { display: flex; gap: 7px; overflow-x: auto; padding: 4px 2px 8px; }
.dy-step {
  flex: 0 0 auto; min-width: 70px; text-align: center; padding: 8px 6px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--card-border);
  position: relative;
}
.dy-step.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: rgba(232,197,115,.1); }
.dy-age { font-size: 11px; color: var(--sub); }
.dy-gz { font-size: 18px; font-weight: 700; color: var(--txt); margin: 2px 0; }
.dy-shen { font-size: 10.5px; color: var(--sub); }
.dy-grade { font-size: 11px; margin-top: 3px; font-weight: 600; }
.dy-now {
  position: absolute; top: -8px; right: -4px; font-size: 10px; color: #1a1334;
  background: var(--gold2); border-radius: 8px; padding: 1px 5px; font-weight: 700;
}
.dy-grade.great, .ln-grade.great, .mgrade.great, .dt-grade { color: var(--good); }
.dy-grade.good, .ln-grade.good { color: #8fd9b0; }
.dy-grade.normal, .ln-grade.normal { color: var(--gold2); }
.dy-grade.flat, .ln-grade.flat { color: var(--warn); }
.dy-grade.low, .ln-grade.low { color: var(--bad); }

/* 流年 */
.liunian-list { display: flex; flex-direction: column; gap: 7px; }
.ln-row { display: flex; align-items: center; gap: 9px; }
.ln-row.this .ln-year { color: var(--gold2); font-weight: 700; }
.ln-year { flex: 0 0 56px; font-size: 13px; color: var(--txt); }
.ln-year small { color: var(--sub); font-size: 10px; margin-left: 3px; }
.ln-gz { flex: 0 0 34px; font-size: 14px; font-weight: 600; color: var(--txt); }
.ln-bar { flex: 1; height: 7px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.ln-fill { display: block; height: 100%; border-radius: 4px; }
.ln-fill.great { background: var(--good); }
.ln-fill.good { background: #8fd9b0; }
.ln-fill.normal { background: var(--gold); }
.ln-fill.flat { background: var(--warn); }
.ln-fill.low { background: var(--bad); }
.ln-grade { flex: 0 0 44px; font-size: 12px; text-align: right; font-weight: 600; }

/* 每日运势 */
.day-today {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; background: rgba(139,111,232,.12);
  border: 1px solid rgba(139,111,232,.3); margin-bottom: 10px;
}
.day-today.tone-great { background: rgba(88,201,138,.14); border-color: rgba(88,201,138,.4); }
.day-today.tone-low, .day-today.tone-flat { background: rgba(231,107,122,.1); border-color: rgba(231,107,122,.3); }
.dt-left { flex: 1; }
.dt-date { font-size: 12px; color: var(--sub); }
.dt-gz { font-size: 20px; font-weight: 700; color: var(--gold2); }
.dt-mid { text-align: center; }
.dt-stars { color: var(--gold2); font-size: 15px; letter-spacing: 1px; }
.dt-stars .dim { color: rgba(255,255,255,.2); }
.dt-grade { font-size: 13px; color: var(--txt); font-weight: 600; }
.dt-num { font-size: 30px; font-weight: 800; color: var(--gold2); }
.dt-summary { font-size: 13.5px; line-height: 1.8; color: var(--txt); margin-bottom: 10px; }
.dt-yiji { display: flex; flex-direction: column; gap: 6px; }
.dt-yiji .yi, .dt-yiji .ji { font-size: 13px; color: var(--txt); }
.dt-yiji b { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 6px; font-size: 12px; margin-right: 6px; }
.dt-yiji .yi b { background: rgba(88,201,138,.2); color: var(--good); }
.dt-yiji .ji b { background: rgba(231,107,122,.2); color: var(--bad); }
.dt-yiji .luck { display: flex; gap: 14px; font-size: 12px; color: var(--sub); margin-top: 2px; }
.week-list { display: flex; gap: 6px; overflow-x: auto; }
.wk {
  flex: 0 0 auto; min-width: 56px; text-align: center; padding: 7px 4px;
  border-radius: 10px; background: var(--card); border: 1px solid var(--card-border);
}
.wk-d { display: block; font-size: 11px; color: var(--sub); }
.wk-star { display: block; font-size: 11px; color: var(--gold2); margin: 2px 0; }
.wk-g { display: block; font-size: 11px; color: var(--txt); }
.wk.great { border-color: rgba(88,201,138,.4); }
.wk.low, .wk.flat { border-color: rgba(231,107,122,.3); }

/* 起名 */
.name-groups { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.name-group { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-border); }
.ng-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ng-el { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 8px;
  font-weight: 700; font-size: 15px; color: #1a1334; }
.ng-el.wx-木 { background: #58c98a; } .ng-el.wx-火 { background: #e76b7a; }
.ng-el.wx-土 { background: #e8c573; } .ng-el.wx-金 { background: #d8d8e0; }
.ng-el.wx-水 { background: #6fb3e8; }
.ng-mean { font-size: 13px; color: var(--sub); }
.ng-chars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ng-chars span {
  width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--card-border);
  font-size: 17px; color: var(--gold2);
}
.ng-radical { font-size: 11.5px; color: var(--sub); }
.name-tips .nt { font-size: 13px; line-height: 1.8; color: var(--txt); }
.name-surname {
  font-size: 14px; color: var(--txt); margin-bottom: 10px; padding: 9px 12px;
  background: rgba(232,197,115,.1); border: 1px solid rgba(232,197,115,.3); border-radius: 10px;
}
.name-surname b { color: var(--gold2); font-size: 16px; }
.it-text.dim { color: var(--sub); font-size: 12px; }

/* 术语弹层 */
.term, .q-term { color: var(--gold2); border-bottom: 1px dashed rgba(232,197,115,.5); cursor: pointer; }
.q-term { border-bottom: none; }
.term-pop, .share-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.term-pop.show, .share-mask.show { display: flex; }
.term-pop-card {
  max-width: 340px; width: 100%; background: var(--bg2); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.term-pop-title { font-size: 18px; font-weight: 700; color: var(--gold2); margin-bottom: 10px; }
.term-pop-body { font-size: 14px; line-height: 1.8; color: var(--txt); }
.term-pop-close {
  margin-top: 16px; width: 100%; padding: 10px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-size: 14px; cursor: pointer;
}

/* 分享卡片 */
.share-wrap { max-width: 320px; width: 100%; }
.share-card {
  background: linear-gradient(160deg, #241a47, #15102e); border: 1px solid rgba(232,197,115,.35);
  border-radius: 18px; padding: 22px; color: var(--txt); box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.sc-head { text-align: center; font-size: 17px; color: var(--gold2); font-weight: 700; }
.sc-bz { text-align: center; font-size: 22px; letter-spacing: 2px; font-weight: 700;
  color: var(--txt); margin: 12px 0 16px; }
.sc-row { display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 14px; }
.sc-row span { color: var(--sub); }
.sc-row b { color: var(--gold2); }
.sc-desc { font-size: 13px; line-height: 1.8; color: var(--txt); margin-top: 12px;
  background: rgba(255,255,255,.04); padding: 10px; border-radius: 10px; }
.sc-foot { text-align: center; font-size: 11px; color: var(--sub); margin-top: 14px; }
.share-actions { display: flex; gap: 10px; margin-top: 14px; }
.share-actions .ghost-btn { margin-top: 0; }

/* ===== SEO 内容区（搜索引擎/AI 爬虫可读，用户也可浏览） ===== */
.seo-footer { margin-top: 28px; padding: 0 14px 40px; }
.seo-footer-inner { max-width: 760px; margin: 0 auto; color: var(--sub);
  font-size: 13.5px; line-height: 1.9; }
.seo-footer h2 { font-size: 18px; color: var(--gold2); margin: 22px 0 10px;
  font-weight: 700; }
.seo-footer h3 { font-size: 15px; color: var(--gold); margin: 20px 0 8px;
  font-weight: 700; }
.seo-footer p { margin: 8px 0; }
.seo-footer strong { color: var(--txt); }
.seo-footer a { color: var(--accent); text-decoration: none; }
.seo-footer a:hover { text-decoration: underline; }
.seo-features ul, .seo-howto ol { margin: 8px 0 8px 20px; }
.seo-features li, .seo-howto li { margin: 6px 0; }
.seo-faq details { background: var(--card); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.seo-faq summary { cursor: pointer; font-weight: 600; color: var(--txt);
  list-style: none; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::before { content: "›"; display: inline-block; margin-right: 8px;
  transition: transform .2s; color: var(--gold); }
.seo-faq details[open] summary::before { transform: rotate(90deg); }
.seo-faq details p { margin: 8px 0 2px; }
.seo-copy { text-align: center; font-size: 11px; color: var(--sub);
  margin-top: 24px; opacity: .7; }
