/* ==========================================================
   姓名学的艺术 · 视觉系统 v3
   宣纸底 · 墨字 · 朱砂印 · 仪表刻度
   ----------------------------------------------------------
   1. 设计令牌      2. 基础排版      3. 页头 / 导航
   4. 面板 / 首屏   5. 六关 / 五步   6. 表单控件
   7. 评分卡        8. 内容区块      9. 号码页
   10. 起名页       11. 八字卡       12. 云端区块
   13. 页脚 / 动效  14. 响应式
   ========================================================== */

/* ----------------------------------------------------------
   1. 设计令牌
   ---------------------------------------------------------- */
:root {
  /* 纸与墨 */
  --paper: #F6F3EC;
  --paper-2: #FBF9F4;
  --surface: #FFFFFF;
  --surface-2: #FDFCF8;
  --ink: #17160F;
  --ink-2: #3A3730;
  --muted: #6C675D;
  --muted-2: #948E82;
  --line: #E3DCCE;
  --line-2: #EEE9DD;

  /* 点睛 */
  --cinnabar: #A63A26;
  --cinnabar-2: #8A2E1D;
  --cinnabar-soft: #F4E7E2;
  --gold: #A8874A;
  --gold-soft: #F4EDDF;
  --teal: #35594F;
  --teal-soft: #E7EEEA;

  /* 五行 */
  --wx-wood: #4A7C59;   --wx-wood-bg: #E9F0EB;
  --wx-fire: #B5482F;   --wx-fire-bg: #F5E8E4;
  --wx-earth: #A8874A;  --wx-earth-bg: #F4EDDF;
  --wx-metal: #8C8680;  --wx-metal-bg: #EFEEEA;
  --wx-water: #3D5A80;  --wx-water-bg: #E6EBF1;

  /* 字体 */
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 尺度 */
  --wrap: 1080px;
  --radius: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* 投影：两层，越靠近纸面越轻 */
  --shadow-1: 0 1px 1px rgba(23, 22, 15, .03), 0 3px 10px rgba(23, 22, 15, .045);
  --shadow-2: 0 2px 4px rgba(23, 22, 15, .05), 0 14px 34px rgba(23, 22, 15, .09);
  --shadow-3: 0 4px 8px rgba(23, 22, 15, .06), 0 24px 60px rgba(23, 22, 15, .13);

  /* 缓动 */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------
   2. 基础排版
   ---------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% 0%, rgba(168, 135, 74, .07), transparent 46%),
    radial-gradient(circle at 90% 2%, rgba(53, 89, 79, .06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 320px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 极细纸纹：SVG 噪声，2% 不透明度，几乎只在视网膜屏可感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }

::selection { background: rgba(166, 58, 38, .15); }

:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); }

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: .012em;
  margin: 0 0 20px;
}

/* 章节标题：左竖线 + 右侧贯通细线 */
h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 74px 0 26px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  line-height: 1.3;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(227, 220, 206, 0));
}

h3 { font-size: 17.5px; font-weight: 600; margin: 0 0 10px; letter-spacing: .02em; }
h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; letter-spacing: .02em; font-family: var(--sans); }

p { margin: 0 0 12px; }

a { color: var(--cinnabar); }

/* ----------------------------------------------------------
   3. 页头 / 导航
   ---------------------------------------------------------- */
.site-head {
  padding: 34px 0 20px;
  position: relative;
  z-index: 2;
}
.head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
/* 朱砂印：品牌标识 */
.brand::before {
  content: "名";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--cinnabar);
  color: #FBF8F2;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1.5px rgba(251, 248, 242, .38),
    0 2px 8px rgba(166, 58, 38, .26);
  transition: transform .3s var(--ease);
}
.brand:hover::before { transform: rotate(-4deg) scale(1.04); }

.brand-name { color: var(--ink); }

.brand-domain {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .13em;
  color: var(--muted-2);
  text-transform: lowercase;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  transition: color .2s;
}
.brand:hover .brand-domain { color: var(--cinnabar); }

.tagline {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .18em;
  padding-bottom: 2px;
}

/* 导航：等宽胶囊 + 滑动下划线 */
.tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .28s, border-color .28s;
}
.tabs.scrolled { box-shadow: 0 6px 20px rgba(23, 22, 15, .06); border-bottom-color: transparent; }

.tabs-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  padding: 17px 18px 15px;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .3s var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--ink); font-weight: 600; }
.tab.on::after { transform: scaleX(1); }

/* ----------------------------------------------------------
   4. 面板 / 首屏
   ---------------------------------------------------------- */
.panel {
  padding: 58px 0 40px;
  animation: panelIn .42s var(--ease) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 首屏：文字左、印章右 */
.panel-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.panel-head > .head-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--cinnabar);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--cinnabar);
  opacity: .45;
}

.lede {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 660px;
  margin: 0;
  line-height: 2;
}
.lede strong { color: var(--cinnabar); font-weight: 600; }

/* 印章：竖排三字，微微倾斜，朱砂底 */
.seal {
  width: 74px;
  height: 102px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  background: var(--cinnabar);
  color: #FBF8F2;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 3px;
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 2px rgba(251, 248, 242, .34),
    inset 0 0 20px rgba(90, 26, 16, .24),
    0 5px 16px rgba(166, 58, 38, .2);
  opacity: .93;
  user-select: none;
  margin-top: 4px;
}

/* ----------------------------------------------------------
   5. 六关 / 五步 / 误区
   ---------------------------------------------------------- */
.gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.gate {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px 22px;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
  overflow: hidden;
}
/* 悬停：右上角渐显的朱砂光晕 */
.gate::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(166, 58, 38, .09), transparent 68%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.gate:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(166, 58, 38, .22);
}
.gate:hover::after { opacity: 1; }

.gate-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cinnabar);
  border: 1px solid rgba(166, 58, 38, .35);
  border-radius: 2px;
  background: var(--cinnabar-soft);
  transition: background .3s, color .3s, border-color .3s;
}
.gate:hover .gate-no {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #FBF8F2;
}

.gate h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: .04em; }
.gate p { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0 0 12px; }

.gate-eg {
  font-size: 11.5px !important;
  color: var(--muted-2) !important;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin: 0 !important;
  line-height: 1.7 !important;
}

/* 五步：编号 + 标题 + 说明 三栏 */
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 54px 168px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 12px 20px 4px;
  border-bottom: 1px solid var(--line-2);
  transition: background .24s, padding-left .24s;
}
.steps li:hover { background: rgba(168, 135, 74, .045); padding-left: 12px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cinnabar);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.steps b { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .03em; }
.steps span { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* 误区：墨色反白区块，全页唯一暗面 */
.misread {
  margin-top: 74px;
  background: linear-gradient(160deg, #1E1C17 0%, #17160F 60%);
  color: #EDE8DD;
  border-radius: var(--radius-lg);
  padding: 42px 40px 38px;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.misread::before {
  content: "誤";
  position: absolute;
  right: -10px;
  bottom: -46px;
  font-family: var(--serif);
  font-size: 210px;
  line-height: 1;
  color: rgba(237, 232, 221, .035);
  pointer-events: none;
}
.misread h2 {
  color: #F3EFE6;
  border-left-color: var(--gold);
  margin: 0 0 26px;
  font-size: 20px;
}
.misread h2::after { background: linear-gradient(90deg, rgba(237, 232, 221, .22), transparent); }

.misread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.misread-grid h4 {
  color: #F3EFE6;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.misread-grid p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(237, 232, 221, .62);
}

.disclaimer {
  margin: 46px 0 0;
  padding: 18px 22px;
  background: rgba(168, 135, 74, .06);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.95;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ----------------------------------------------------------
   6. 表单控件
   ---------------------------------------------------------- */
.toolbar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.toolbar.wrap-row { flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 124px; }
.field.grow { flex: 1 1 260px; }
.field > span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .12em;
  font-weight: 500;
}

.field input,
.field select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:hover, .field select:hover { border-color: #D6CEBE; }
.field input:focus,
.field select:focus {
  border-color: var(--cinnabar);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(166, 58, 38, .09);
}
.field input::placeholder { color: var(--muted-2); }
.field input[type="datetime-local"] { font-family: var(--mono); font-size: 13px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23948E82' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px !important;
}

.btn {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FBF8F2;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .22s, border-color .22s, transform .12s, box-shadow .22s;
  box-shadow: 0 1px 2px rgba(23, 22, 15, .12);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 42%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
}
.btn:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  box-shadow: 0 4px 14px rgba(166, 58, 38, .26);
}
.btn:hover::after { left: 135%; }
.btn:active { transform: translateY(1px); }

.hint-row {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .04em;
}

/* 气质标签 */
.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.chips-label {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .12em;
  margin-right: 6px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 15px;
  font-size: 12.5px;
  font-family: var(--sans);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .05em;
  transition: all .2s var(--ease);
}
.chip:hover {
  border-color: rgba(166, 58, 38, .4);
  color: var(--cinnabar);
  transform: translateY(-1px);
}
.chip.on {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #FBF8F2;
  box-shadow: 0 3px 10px rgba(166, 58, 38, .22);
}

/* 输出区 */
.out { margin-top: 36px; }
.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: .06em;
}
.err {
  padding: 16px 20px;
  border-left: 2px solid var(--cinnabar);
  background: var(--cinnabar-soft);
  color: var(--cinnabar-2);
  font-size: 13.5px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 手动补笔画 */
.manual {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--gold-soft);
  border-radius: var(--radius-md);
}
.manual-row { display: flex; flex-direction: column; gap: 6px; }
.manual-row span { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; }
.manual input {
  width: 84px;
  border: 1px solid rgba(168, 135, 74, .4);
  background: #fff;
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
}
.manual input:focus { border-color: var(--gold); }

/* ----------------------------------------------------------
   7. 评分卡 + 仪表环
   ---------------------------------------------------------- */
.score-card {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 44px;
  align-items: center;
  padding: 40px 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
/* 顶部一道朱砂细线，按等级换色 */
.score-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), rgba(166, 58, 38, .35));
}
.score-card.g-B::before { background: linear-gradient(90deg, var(--gold), rgba(168, 135, 74, .3)); }
.score-card.g-C::before,
.score-card.g-D::before { background: linear-gradient(90deg, var(--muted-2), rgba(148, 142, 130, .25)); }

.ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); width: 200px; height: 200px; overflow: visible; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 9; }
.ring-ticks { fill: none; stroke: var(--line); stroke-width: 9; stroke-dasharray: 1 8.1; opacity: .85; }
.ring-bar {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-out);
  filter: drop-shadow(0 1px 3px rgba(166, 58, 38, .2));
}
.ring-bar.g-B { stroke: var(--gold); filter: drop-shadow(0 1px 3px rgba(168, 135, 74, .2)); }
.ring-bar.g-C, .ring-bar.g-D { stroke: var(--muted-2); filter: none; }

.ring-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-num {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ring-sub {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .2em;
  margin-top: 10px;
  text-transform: uppercase;
}

.score-body h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 25px;
  display: block;
  letter-spacing: .03em;
}
.score-body h2::after { display: none; }
.score-body .verdict {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.9;
}
.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  margin-left: 12px;
  vertical-align: middle;
  letter-spacing: .1em;
  font-weight: 500;
}
.grade-pill.g-B { background: var(--gold-soft); color: var(--gold); }
.grade-pill.g-C, .grade-pill.g-D { background: #EFEDE7; color: var(--muted); }

/* 维度条 */
.dims { display: grid; gap: 13px; }
.dim {
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  gap: 14px;
  align-items: center;
  font-size: 12.5px;
}
.dim-k { color: var(--ink-2); letter-spacing: .08em; }
.dim-bar {
  height: 6px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.dim-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53, 89, 79, .55), var(--teal));
  transition: width .9s var(--ease-out);
}
.dim-fill.hi { background: linear-gradient(90deg, rgba(74, 124, 89, .5), #4A7C59); }
.dim-fill.mid { background: linear-gradient(90deg, rgba(168, 135, 74, .5), var(--gold)); }
.dim-fill.lo { background: linear-gradient(90deg, rgba(166, 58, 38, .45), var(--cinnabar)); }
.dim-v {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   8. 内容区块
   ---------------------------------------------------------- */
.block {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-1);
}
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.block-head h3 { margin: 0; font-size: 17px; letter-spacing: .04em; }
.block-head .tag-note { font-size: 11.5px; color: var(--muted-2); letter-spacing: .06em; }

/* 五格表 */
.grid-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted-2);
  padding: 0 12px 11px 0;
  border-bottom: 1px solid var(--line);
}
.grid-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.grid-table tbody tr { transition: background .18s; }
.grid-table tbody tr:hover { background: rgba(168, 135, 74, .04); }
.grid-table tr:last-child td { border-bottom: 0; }
.grid-table .g-name { font-family: var(--serif); font-size: 15.5px; letter-spacing: .06em; }
.grid-table .g-num {
  font-family: var(--mono);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.grid-table .g-wx { color: var(--muted); font-size: 13px; }
.role-note { font-size: 11px; color: var(--muted-2); display: block; margin-top: 3px; letter-spacing: .04em; }

.lv {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: .08em;
  white-space: nowrap;
  font-weight: 500;
}
.lv-good { background: var(--teal-soft); color: var(--teal); }
.lv-mid { background: var(--gold-soft); color: var(--gold); }
.lv-bad { background: var(--cinnabar-soft); color: var(--cinnabar); }

/* 三才 */
.sancai-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.wx-cell {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  transition: transform .24s var(--ease), box-shadow .24s;
}
.wx-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.wx-arrow { color: var(--muted-2); font-size: 11px; letter-spacing: .06em; }
.sancai-text { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.95; }

/* 三列信息 */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.cols-3 > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-1);
}
.cols-3 h4 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 12px;
  letter-spacing: .06em;
}
.cols-3 h4 em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cinnabar);
  letter-spacing: .06em;
}
.cols-3 ul { margin: 0; padding: 0; list-style: none; }
.cols-3 li {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
  padding-left: 14px;
  position: relative;
}
.cols-3 li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .55;
}

/* 建议 */
.advice { margin: 0; padding: 0; list-style: none; counter-reset: adv; }
.advice li {
  counter-increment: adv;
  position: relative;
  padding: 15px 0 15px 38px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.95;
  border-bottom: 1px solid var(--line-2);
}
.advice li:last-child { border-bottom: 0; }
.advice li::before {
  content: counter(adv, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cinnabar);
  letter-spacing: .06em;
  opacity: .8;
}

/* ----------------------------------------------------------
   9. 号码页
   ---------------------------------------------------------- */
.num-strip { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.num-cell {
  width: 44px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  animation: digitIn .45s var(--ease-out) both;
  transition: transform .2s, background .2s;
}
.num-cell:hover { transform: translateY(-2px); background: #fff; }
.num-cell.tail {
  background: var(--ink);
  color: #FBF8F2;
  border-color: var(--ink);
  box-shadow: 0 3px 10px rgba(23, 22, 15, .14);
}
.num-cap { font-size: 11px; color: var(--muted-2); margin-bottom: 22px; letter-spacing: .06em; }

@keyframes digitIn {
  from { opacity: 0; transform: translateY(9px) scale(.9); }
  to { opacity: 1; transform: none; }
}

/* 八星 */
.pairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pair {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: var(--surface-2);
  border-radius: 2px;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s;
}
.pair:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-1); }
.pair .p-d {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.pair .p-s { font-size: 11.5px; margin-top: 3px; letter-spacing: .04em; }
.pair.good { border-left-color: var(--teal); }
.pair.good .p-s { color: var(--teal); }
.pair.mid { border-left-color: var(--gold); }
.pair.mid .p-s { color: var(--gold); }
.pair.bad { border-left-color: var(--cinnabar); }
.pair.bad .p-s { color: var(--cinnabar); }
.pair.neut { border-left-color: var(--line); }
.pair.neut .p-s { color: var(--muted-2); }

/* 数理双卡 */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.duo > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-1);
}
.duo .d-big {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.duo .d-lab {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.duo .d-desc { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.9; }

/* ----------------------------------------------------------
   10. 起名结果
   ---------------------------------------------------------- */
.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.name-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.name-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(166, 58, 38, .2);
}
/* 第一名：朱砂角标 + 淡金底 */
.name-card:first-child {
  background: linear-gradient(175deg, #FFFDF7, #FFFFFF 62%);
  border-color: rgba(168, 135, 74, .4);
}
.name-card:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}

.nc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.nc-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  margin-right: 9px;
  background: var(--gold);
  color: #FBF8F2;
  font-family: var(--serif);
  font-size: 12px;
  border-radius: 2px;
  vertical-align: 8px;
  box-shadow: inset 0 0 0 1px rgba(251, 248, 242, .28);
}
.name-card:first-child .nc-rank {
  background: var(--cinnabar);
  box-shadow: inset 0 0 0 1px rgba(251, 248, 242, .34), 0 2px 8px rgba(166, 58, 38, .24);
}
.nc-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
}
.nc-score {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nc-pinyin {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .08em;
  margin-bottom: 14px;
  font-family: var(--mono);
}
.nc-mean {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 16px;
  min-height: 46px;
}
.nc-meta { display: flex; gap: 7px; flex-wrap: wrap; }

.pill {
  font-size: 10.5px;
  padding: 3px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 2px;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   11. 八字可选区 / 契约卡
   ---------------------------------------------------------- */
.optional-block {
  flex-basis: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.optional-head {
  flex-basis: 100%;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .14em;
}
.bazi-status { font-size: 11.5px; color: var(--muted-2); padding-bottom: 13px; letter-spacing: .04em; }
.bazi-status.err { color: var(--cinnabar); }

.bazi-card {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  box-shadow: var(--shadow-1);
}
.bazi-card .bc-pillars {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .16em;
  background: linear-gradient(180deg, var(--ink), #4A453B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.bazi-pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
  letter-spacing: .05em;
}
.bazi-pill.favor { background: var(--teal-soft); color: var(--teal); }
.bazi-pill.avoid { background: var(--cinnabar-soft); color: var(--cinnabar); }
.bazi-note { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.85; }

/* ----------------------------------------------------------
   12. 云端区块
   ---------------------------------------------------------- */
.community {
  margin-top: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px 24px;
  box-shadow: var(--shadow-1);
}
.comm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.comm-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 18px;
  letter-spacing: .06em;
  display: block;
}
.comm-head h2::after { display: none; }
.comm-note { font-size: 11px; color: var(--muted-2); letter-spacing: .06em; }
.comm-note.err { color: var(--cinnabar); }

.comm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.comm-stat {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cs-lab { font-size: 10.5px; color: var(--muted-2); letter-spacing: .12em; }

.comm-wall { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.comm-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 2px;
  animation: digitIn .4s var(--ease-out) both;
  transition: transform .2s, background .2s;
}
.comm-item:hover { transform: translateY(-2px); background: #fff; }
.comm-item.g-hi { border-left-color: var(--cinnabar); }
.comm-item.g-mid { border-left-color: var(--gold); }
.comm-item.g-lo { border-left-color: var(--muted-2); }
.ci-kind {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #FBF8F2;
  font-family: var(--serif);
  font-size: 10.5px;
  border-radius: 2px;
}
.ci-name { font-family: var(--serif); font-size: 14px; letter-spacing: .06em; }
.ci-score { font-family: var(--mono); font-size: 11.5px; color: var(--cinnabar); font-variant-numeric: tabular-nums; }
.ci-time { font-size: 10.5px; color: var(--muted-2); }
.comm-empty { font-size: 12.5px; color: var(--muted-2); margin: 0; }
.comm-foot { font-size: 11px; color: var(--muted-2); margin: 18px 0 0; line-height: 1.9; }

/* 同步提示 */
.sync-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #FBF8F2;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-2);
}
.sync-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------
   13. 页脚 / 动效
   ---------------------------------------------------------- */
.site-foot {
  margin-top: 80px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(168, 135, 74, .04), transparent 70%);
}
.site-foot p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .1em;
}
.site-foot p:first-child { color: var(--muted); }
.foot-sep { color: var(--line); margin: 0 8px; }
.foot-note { margin-top: 8px !important; opacity: .85; letter-spacing: .06em !important; }

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* 五行配色（三才格 / 标签） */
.wx-cell[data-wx="木"] { color: var(--wx-wood); background: var(--wx-wood-bg); border-color: rgba(74, 124, 89, .34); }
.wx-cell[data-wx="火"] { color: var(--wx-fire); background: var(--wx-fire-bg); border-color: rgba(181, 72, 47, .34); }
.wx-cell[data-wx="土"] { color: var(--wx-earth); background: var(--wx-earth-bg); border-color: rgba(168, 135, 74, .38); }
.wx-cell[data-wx="金"] { color: var(--wx-metal); background: var(--wx-metal-bg); border-color: rgba(140, 134, 128, .38); }
.wx-cell[data-wx="水"] { color: var(--wx-water); background: var(--wx-water-bg); border-color: rgba(61, 90, 128, .34); }

.pill.wx-木 { color: var(--wx-wood); border-color: rgba(74, 124, 89, .38); background: var(--wx-wood-bg); }
.pill.wx-火 { color: var(--wx-fire); border-color: rgba(181, 72, 47, .38); background: var(--wx-fire-bg); }
.pill.wx-土 { color: var(--wx-earth); border-color: rgba(168, 135, 74, .38); background: var(--wx-earth-bg); }
.pill.wx-金 { color: var(--wx-metal); border-color: rgba(140, 134, 128, .38); background: var(--wx-metal-bg); }
.pill.wx-水 { color: var(--wx-water); border-color: rgba(61, 90, 128, .38); background: var(--wx-water-bg); }

/* ----------------------------------------------------------
   14. 响应式
   ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .gates { grid-template-columns: repeat(2, 1fr); }
  .name-grid { grid-template-columns: repeat(2, 1fr); }
  .pairs { grid-template-columns: repeat(4, 1fr); }
  .score-card { grid-template-columns: 200px 1fr; gap: 32px; }
  .ring, .ring svg { width: 180px; height: 180px; }
  .ring-num { font-size: 50px; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .panel { padding: 44px 0 30px; }
  .panel-head { grid-template-columns: 1fr; gap: 0; }
  .seal { display: none; }
  .misread { padding: 34px 26px 30px; }
  .misread-grid { grid-template-columns: 1fr; gap: 22px; }
  .cols-3 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .score-card { grid-template-columns: 1fr; gap: 26px; text-align: center; padding: 32px 24px 28px; }
  .dims { text-align: left; }
  .steps li { grid-template-columns: 42px 1fr; gap: 10px 14px; }
  .steps span { grid-column: 2; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  .site-head { padding: 24px 0 14px; }
  .head-inner { align-items: center; padding-bottom: 14px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand::before { width: 27px; height: 27px; font-size: 15px; }
  .tagline { display: none; }
  .tab { padding: 15px 13px 13px; font-size: 12.5px; }
  .tab::after { left: 13px; right: 13px; }
  h2 { font-size: 19px; margin-top: 52px; }
  .gates { grid-template-columns: 1fr; gap: 12px; }
  .name-grid { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .toolbar { padding: 18px; gap: 12px; }
  .btn { width: 100%; }
  .block, .community, .bazi-card { padding: 20px 18px; }
  .num-cell { width: 36px; height: 46px; font-size: 17px; }
  .num-strip { gap: 5px; }
  .comm-stats { grid-template-columns: 1fr; }
  .cs-num { font-size: 26px; }
  .ring, .ring svg { width: 160px; height: 160px; }
  .ring-num { font-size: 46px; }
  .nc-name { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   15. 多页版式（2026-10-28 · SEO/GEO 重构）
   阅读页 / 索引页 / 工具页共用，沿用纸墨朱砂体系
   ========================================================== */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #FBF8F2;
  padding: 10px 18px; z-index: 99; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* 导航：按钮改为链接，视觉不变 */
a.tab { display: inline-block; text-decoration: none; color: var(--muted); }
a.tab:hover { color: var(--ink-2); }
a.tab.on { color: var(--ink); font-weight: 600; }

/* 面包屑 */
.crumb {
  padding: 18px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }
.crumb-sep { margin: 0 8px; opacity: .5; }
.crumb [aria-current] { color: var(--ink-2); }

/* ---------- 首页首屏 ---------- */
.hero {
  position: relative;
  padding: 74px 0 62px;
  max-width: 760px;
}
.hero-mark {
  position: absolute;
  right: -40px; top: -34px;
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
  color: var(--ink);
  opacity: .028;
  pointer-events: none;
  user-select: none;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: .015em;
}
.hero .lede { font-size: 16px; line-height: 2.05; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.hero-note { margin: 0; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }

.btn-primary { background: var(--cinnabar); border-color: var(--cinnabar); }
.btn-primary:hover { background: var(--cinnabar-2); border-color: var(--cinnabar-2); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
a.btn { display: inline-block; text-decoration: none; }

/* ---------- 立场块 ---------- */
.stance {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 46px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stance h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .02em;
}
.stance p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }
.stance p strong { color: var(--ink); font-weight: 600; box-shadow: inset 0 -6px 0 var(--gold-soft); }

.pledge { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pledge li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cinnabar);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 15px 18px;
}
.pledge b {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cinnabar);
  margin-bottom: 4px;
}
.pledge span { font-size: 12.8px; color: var(--muted); line-height: 1.85; }

/* ---------- 区块标题 ---------- */
.sec-head { margin: 0 0 26px; }
.sec-head h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: .02em;
}
.sec-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.sec-more { margin: 22px 0 0; font-size: 13px; }
.sec-more a { color: var(--cinnabar); text-decoration: none; border-bottom: 1px solid var(--cinnabar-soft); }
.sec-more a:hover { border-bottom-color: var(--cinnabar); }

.gates-block, .compare-block, .tools-block, .facts-block, .faq-block, .method-note {
  padding: 56px 0 0;
}
.gates { margin-top: 4px; }

/* ---------- 数据表 ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.2px;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .08em;
  padding: 0 0 10px;
}
.data-table thead th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-2);
  white-space: nowrap;
}
.data-table td, .data-table tbody th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.75;
  color: var(--ink-2);
}
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(168, 135, 74, .045); }
.data-table a { color: var(--cinnabar); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.data-table .py { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.data-table .mean-mini { font-size: 11.8px; color: var(--muted); min-width: 120px; display: inline-block; }
.data-table .tag-mini {
  display: inline-block; font-size: 10.5px; letter-spacing: .1em;
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 20px;
  color: var(--muted); background: var(--surface-2);
}
.g-hi { color: var(--cinnabar); }
.g-mid { color: var(--gold); }
.g-lo { color: var(--muted-2); }

.compare td:last-child { color: var(--ink); }
.compare td:nth-child(2) { color: var(--muted); }

.shuli-table td:nth-child(5) { font-size: 12.6px; color: var(--muted); }
.shuli-table th:nth-child(1), .shuli-table td:nth-child(1) { width: 52px; text-align: right; }

/* ---------- 工具卡 ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tool-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.tool-card::after {
  content: "";
  position: absolute; right: -30px; bottom: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--cinnabar-soft), transparent 68%);
  opacity: 0; transition: opacity .35s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.tool-card:hover::after { opacity: 1; }
.tc-kicker { font-size: 10.5px; letter-spacing: .22em; color: var(--cinnabar); }
.tool-card strong {
  display: block; margin: 8px 0 10px;
  font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink);
  letter-spacing: .03em;
}
.tool-card p { margin: 0 0 16px; font-size: 13.2px; color: var(--muted); line-height: 1.9; }
.tc-go { font-size: 12px; color: var(--cinnabar); letter-spacing: .08em; }

/* ---------- 事实条 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fact { background: var(--surface); padding: 22px 22px 20px; }
.fact-k {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--cinnabar);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.fact-k em{font-style:normal;font-family:inherit;font-size:11px;font-weight:700;color:#fff;background:#C8941E;border-radius:4px;padding:1px 6px;margin-left:6px;vertical-align:middle;letter-spacing:.04em}
.fact-v { display: block; margin: 6px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.fact-n { display: block; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---------- 问答 ---------- */
.qa { display: grid; gap: 10px; margin: 22px 0; }
.qa-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 22px;
  transition: border-color .25s, box-shadow .25s;
}
.qa-item[open] { border-color: var(--line); box-shadow: var(--shadow-1); }
.qa-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 14.2px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  position: relative;
  padding-right: 28px;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 14px;
  font-size: 17px; color: var(--cinnabar); font-weight: 400;
  transition: transform .25s;
}
.qa-item[open] summary::after { content: "−"; }
.qa-body { padding: 0 0 18px; font-size: 13.6px; color: var(--ink-2); line-height: 1.95; }
.qa-body p { margin: 0 0 10px; }
.qa-body p:last-child { margin-bottom: 0; }

/* ---------- 阅读页 ---------- */
.prose { max-width: 780px; padding: 56px 0 20px; }
.prose h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: .015em;
}
.prose h2 {
  margin: 52px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .02em;
  scroll-margin-top: 90px;
}
.prose h3 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.prose p { margin: 0 0 16px; font-size: 14.8px; line-height: 2.05; color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--cinnabar); text-decoration: none; border-bottom: 1px solid var(--cinnabar-soft); }
.prose a:hover { border-bottom-color: var(--cinnabar); }
.prose code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: 1px 6px; border-radius: 3px; color: var(--ink-2);
}
.prose .lede { font-size: 15.5px; color: var(--muted); }
.note {
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  font-size: 13.2px !important;
  color: var(--ink-2) !important;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.9 !important;
}
.h2-sub { margin: -8px 0 18px; font-size: 13px; color: var(--muted); }

ul.marks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
ul.marks li {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
ul.marks li::before {
  content: "·";
  position: absolute; left: 16px; top: 10px;
  color: var(--cinnabar); font-size: 22px; font-weight: 700;
}
ul.marks b { color: var(--ink); }

/* 直答框：AI 抓取的结构锚点 */
.answer-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cinnabar);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 22px 24px;
  margin: 0 0 30px;
}
.ab-label {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--cinnabar);
  white-space: nowrap;
  padding-top: 4px;
}
.answer-box p { margin: 0; font-size: 14.6px; line-height: 2; color: var(--ink-2); }
.answer-box p strong { color: var(--ink); }

/* 目录 */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 30px;
}
.toc-t { margin: 0 0 10px; font-size: 10.5px; letter-spacing: .2em; color: var(--muted-2); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { font-size: 13px; line-height: 1.9; color: var(--muted); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--cinnabar); }

/* 行动卡 */
.cta-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(166,58,38,.055), rgba(168,135,74,.05));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 40px 0 10px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cta-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cta-k { display: block; font-size: 10.5px; letter-spacing: .22em; color: var(--cinnabar); }
.cta-card strong {
  display: block; margin: 6px 0 6px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink);
}
.cta-t { font-size: 13px; color: var(--muted); }

/* 相关阅读 */
.related { margin: 52px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 17px; font-weight: 600; border: 0; padding: 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.related li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-2);
}
.related li:last-child { border-bottom: 0; }
.related a { color: var(--ink); text-decoration: none; font-size: 13.8px; font-weight: 600; }
.related a:hover { color: var(--cinnabar); }
.related span { font-size: 12px; color: var(--muted-2); }

/* ---------- 姓氏索引 ---------- */
.surname-grid {
  list-style: none; margin: 26px 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.surname-grid li { background: var(--surface); }
.surname-grid a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; text-decoration: none; border: 0;
  transition: background .2s;
}
.surname-grid a:hover { background: var(--surface-2); }
.surname-grid b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.surname-grid a:hover b { color: var(--cinnabar); }
.surname-grid span { font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }

.surname-page .facts { margin: 0 0 8px; }

/* 工具页说明块 */
.method-note { }
.method-note h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  margin: 0 0 14px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* 404 */
.hero-404 { padding: 100px 0 90px; }

/* ---------- 页脚（多列） ---------- */
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
}
.foot-brand { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: var(--ink); letter-spacing: .04em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-nav h3 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .2em; color: var(--muted-2); font-weight: 500; }
.foot-nav a { display: block; font-size: 12.5px; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.foot-nav a:hover { color: var(--cinnabar); }
.foot-legal { max-width: 720px; line-height: 1.9; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stance { grid-template-columns: 1fr; gap: 26px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-mark { font-size: 200px; right: -16px; }
  .prose h1 { font-size: 29px; }
  .prose { padding: 38px 0 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero-mark { display: none; }
  .facts { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .answer-box { grid-template-columns: 1fr; gap: 8px; }
  .prose h2 { font-size: 21px; margin-top: 40px; }
  .surname-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .data-table { font-size: 12.4px; }
  .data-table td, .data-table th { padding: 9px 10px; }
}

/* 补充：维度权重角标 / 名卡评测链接 */
.dim-k em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted-2);
  margin-left: 4px;
  font-family: var(--mono);
}
.nc-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--cinnabar);
  text-decoration: none;
  border-bottom: 1px solid var(--cinnabar-soft);
}
.nc-link:hover { border-bottom-color: var(--cinnabar); }
.nc-sign { margin-left: 14px; color: var(--ink); border-bottom-color: rgba(42,38,32,.2); font-weight: 600; }
.nc-sign:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

/* ==========================================================
   16. 汉字库（2026-10-28）
   单字页头部的字牌 + 搭配字网格
   ========================================================== */

.zi-head {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: center;
  margin: 6px 0 32px;
}

.zi-mark {
  position: relative;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wx-bg, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
  font-weight: 600;
  color: var(--wx, var(--ink));
  user-select: none;
}
.zi-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(23, 22, 15, .07);
  border-radius: 2px;
  pointer-events: none;
}

.zi-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.zi-kv {
  font-size: 12.4px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 5px 13px;
  letter-spacing: .02em;
}
.zi-kv b { color: var(--ink); font-weight: 600; margin-left: 2px; }

.zi-tags { margin-top: 12px; }
.tag-pill {
  display: inline-block;
  font-size: 10.8px;
  letter-spacing: .12em;
  padding: 3px 11px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--muted);
}

.wx-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
  padding: 1px 9px;
  border-radius: 20px;
  color: #FBF8F2;
  background: var(--wx, var(--muted));
}

.zi-grid {
  list-style: none;
  margin: 20px 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.zi-grid li { background: var(--surface); }
.zi-grid a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 13px;
  text-decoration: none;
  border: 0;
  transition: background .2s;
}
.zi-grid a:hover { background: var(--surface-2); }
.zi-grid b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.zi-grid a:hover b { color: var(--cinnabar); }
.zi-grid span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.prose .note a { color: var(--cinnabar); text-decoration: none; border-bottom: 1px solid var(--cinnabar-soft); }
.prose .note a:hover { border-bottom-color: var(--cinnabar); }

@media (max-width: 640px) {
  .zi-head { grid-template-columns: 104px 1fr; gap: 16px; margin-bottom: 24px; }
  .zi-mark { width: 104px; height: 104px; font-size: 58px; }
  .zi-kv { font-size: 11.6px; padding: 4px 10px; }
  .zi-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .zi-grid b { font-size: 17px; }
}

/* ==========================================================
   16. 汉字库（2026-10-28）
   单字页头部的字牌 + 搭配字网格
   ========================================================== */

.zi-head {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: center;
  margin: 6px 0 32px;
}

.zi-mark {
  position: relative;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wx-bg, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
  font-weight: 600;
  color: var(--wx, var(--ink));
  user-select: none;
}
.zi-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(23, 22, 15, .07);
  border-radius: 2px;
  pointer-events: none;
}

.zi-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.zi-kv {
  font-size: 12.4px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 5px 13px;
  letter-spacing: .02em;
}
.zi-kv b { color: var(--ink); font-weight: 600; margin-left: 2px; }

.zi-tags { margin-top: 12px; }
.tag-pill {
  display: inline-block;
  font-size: 10.8px;
  letter-spacing: .12em;
  padding: 3px 11px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--muted);
}

.wx-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
  padding: 1px 9px;
  border-radius: 20px;
  color: #FBF8F2;
  background: var(--wx, var(--muted));
}

.zi-grid {
  list-style: none;
  margin: 20px 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.zi-grid li { background: var(--surface); }
.zi-grid a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 13px;
  text-decoration: none;
  border: 0;
  transition: background .2s;
}
.zi-grid a:hover { background: var(--surface-2); }
.zi-grid b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.zi-grid a:hover b { color: var(--cinnabar); }
.zi-grid span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.prose .note a { color: var(--cinnabar); text-decoration: none; border-bottom: 1px solid var(--cinnabar-soft); }
.prose .note a:hover { border-bottom-color: var(--cinnabar); }

@media (max-width: 640px) {
  .zi-head { grid-template-columns: 104px 1fr; gap: 16px; margin-bottom: 24px; }
  .zi-mark { width: 104px; height: 104px; font-size: 58px; }
  .zi-kv { font-size: 11.6px; padding: 4px 10px; }
  .zi-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .zi-grid b { font-size: 17px; }
}

/* 首页汉字库区块 */
.chars-block { padding: 56px 0 0; }

/* 首页汉字库区块 */
.chars-block { padding: 56px 0 0; }

/* 按需加载提示（康熙笔画表） */
.loading {
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.loading::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 8px;
  border: 1.5px solid var(--line);
  border-top-color: var(--cinnabar);
  border-radius: 50%;
  vertical-align: -1px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 按需加载提示（康熙笔画表） */
.loading {
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.loading::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 8px;
  border: 1.5px solid var(--line);
  border-top-color: var(--cinnabar);
  border-radius: 50%;
  vertical-align: -1px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   17. 搜索（2026-10-28）
   ========================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin: 26px 0 10px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input::placeholder { color: var(--muted-2); letter-spacing: .02em; }
.search-bar input:focus {
  outline: 0;
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(166, 58, 38, .1);
}
.search-bar .btn { flex: 0 0 auto; padding: 13px 26px; }

.search-hint {
  margin: 0 0 26px;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: .04em;
  min-height: 18px;
}

.search-out:empty { margin: 0; }

.s-group { margin: 0 0 26px; }
.s-group-t {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .14em;
  border: 0;
  padding: 0;
}
.s-group-t em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0;
}

.s-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.s-list li { background: var(--surface); }
.s-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  text-decoration: none;
  border: 0;
  transition: background .2s;
}
.s-list a:hover, .s-list a:focus { background: var(--surface-2); }
.s-char {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .06em;
  line-height: 1;
  min-width: 30px;
}
.s-word {
  flex: 0 0 auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.s-list a:hover .s-char, .s-list a:hover .s-word { color: var(--cinnabar); }
.s-meta {
  flex: 1;
  font-size: 12.4px;
  color: var(--muted);
  letter-spacing: .02em;
}
.s-go {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .06em;
}
.s-list a:hover .s-go { color: var(--cinnabar); }

.s-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
}
.s-empty p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.s-empty p:last-child { margin-bottom: 0; }
.s-empty-tip { font-size: 13px !important; color: var(--muted) !important; line-height: 1.9; }
.s-empty a { color: var(--cinnabar); text-decoration: none; border-bottom: 1px solid var(--cinnabar-soft); }
.s-empty a:hover { border-bottom-color: var(--cinnabar); }

/* 导航栏搜索入口 */
.tab-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-decoration: none;
  padding: 0 2px;
}
.tab-search:hover { color: var(--cinnabar); }
.tab-search svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }

@media (max-width: 640px) {
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; padding: 12px; }
  .s-list a { gap: 10px; padding: 11px 14px; }
  .s-meta { font-size: 11.6px; }
  .s-char { font-size: 21px; min-width: 26px; }
  .tab-search { font-size: 0; gap: 0; }
  .tab-search svg { width: 15px; height: 15px; }
}

/* 搜索结果键盘高亮 */
.s-list a.s-cur { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--cinnabar); }
.s-list a.s-cur .s-char, .s-list a.s-cur .s-word { color: var(--cinnabar); }

/* 搜索结果键盘高亮 */
.s-list a.s-cur { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--cinnabar); }
.s-list a.s-cur .s-char, .s-list a.s-cur .s-word { color: var(--cinnabar); }

/* 评测结果操作条 */
.out-act {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.out-act .btn { padding: 10px 20px; font-size: 13px; }
.out-act-note { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* 评测结果操作条 */
.out-act {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.out-act .btn { padding: 10px 20px; font-size: 13px; }
.out-act-note { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* 移动端导航：压缩间距 + 右侧渐隐提示可横滑 */
@media (max-width: 900px) {
  .tab { padding: 13px 13px 11px; font-size: 12.8px; }
  .tab-search { margin-left: 0; padding-left: 10px; }
  .tabs-inner { -webkit-overflow-scrolling: touch; position: relative; }
  .tabs-inner::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 28px;
    height: 100%;
    align-self: stretch;
    margin-left: -28px;
    background: linear-gradient(to right, rgba(246,243,236,0), rgba(246,243,236,.95) 70%);
    pointer-events: none;
  }
}

/* 移动端导航：压缩间距 + 右侧渐隐提示可横滑 */
@media (max-width: 900px) {
  .tab { padding: 13px 13px 11px; font-size: 12.8px; }
  .tab-search { margin-left: 0; padding-left: 10px; }
  .tabs-inner { -webkit-overflow-scrolling: touch; position: relative; }
  .tabs-inner::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 28px;
    height: 100%;
    align-self: stretch;
    margin-left: -28px;
    background: linear-gradient(to right, rgba(246,243,236,0), rgba(246,243,236,.95) 70%);
    pointer-events: none;
  }
}

/* ---------------- 签名设计页 ---------------- */
.sign-input-row{display:flex;gap:10px;margin:18px 0 8px}
.sign-input-row input{flex:1;min-width:0;font-size:17px;padding:12px 14px;border:1.5px solid #D8CFBE;border-radius:10px;background:#FFFDF8;font-family:inherit}
.sign-input-row input:focus{outline:none;border-color:#A63A26}
.sign-styles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:16px 0}
.sign-style{position:relative;background:#FBF8F2;border:1.5px solid #E8E0D2;border-radius:10px;padding:12px 10px;text-align:left;cursor:pointer;font-family:inherit}
.sign-style b{display:block;font-size:14.5px;color:#2A2620}
.sign-style span{display:block;font-size:12px;color:#7A7264;margin-top:4px;line-height:1.5}
.sign-style.on{border-color:#A63A26;background:#FDF4EF}
.sign-style.pro{border-color:#C8A24A;background:#FCF6E8}
.sign-style.pro.on{border-color:#A63A26;background:#FDF4EF}
.sign-pro{position:absolute;top:-9px;right:8px;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.04em;color:#fff;background:#C8941E;border-radius:4px;padding:1px 6px;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sign-bgs{margin:6px 0 14px;font-size:13.5px;color:#5C554A;display:flex;gap:8px;align-items:center}
.sign-bg{border:1px solid #D8CFBE;background:#FFFDF8;border-radius:6px;padding:3px 10px;font-size:13px;cursor:pointer;font-family:inherit}
.sign-bg.on{border-color:#A63A26;color:#A63A26;font-weight:600}
.sign-stage{background:#FFFDF8;border:1.5px solid #E8E0D2;border-radius:14px;padding:20px}
#sign-preview{min-height:240px;display:flex;align-items:center;justify-content:center}
#sign-preview .sign-svg{width:100%;max-width:720px;height:auto;border-radius:8px}
.sign-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.sign-badge{font-size:12.5px;color:#8A6D3B;background:#F7EEDD;border-radius:20px;padding:3px 12px}
.sign-badge.ok{color:#2E6B4F;background:#E4F2EA}
.sign-err{color:#A63A26;font-size:13px;min-height:18px;margin:4px 0}
.btn.primary{background:#A63A26;color:#FBF8F2}
.btn.pay{border-color:#8A6D3B;color:#8A6D3B;background:#F7EEDD}
.sign-modal{position:fixed;inset:0;background:rgba(42,38,32,0.55);display:flex;align-items:center;justify-content:center;z-index:60;padding:16px}
.sign-modal[hidden]{display:none}
.sign-modal-card{background:#FFFDF8;border-radius:14px;max-width:420px;width:100%;padding:24px;position:relative;max-height:88vh;overflow:auto}
.sign-modal-card h3{margin:0 0 8px;font-size:19px}
.sign-modal-card>p{font-size:14px;color:#5C554A;line-height:1.6}
.sign-close{position:absolute;top:10px;right:14px;border:none;background:none;font-size:24px;color:#7A7264;cursor:pointer}
.sign-price{font-size:30px;font-weight:700;color:#A63A26;margin:10px 0}
.sign-price span{font-size:13px;color:#8A8274;font-weight:400}
.sign-qr{text-align:center;margin:12px 0}
.sign-qr img{width:220px;height:220px;object-fit:contain;border:1px solid #E8E0D2;border-radius:10px;background:#fff}
.sign-qr-note{font-size:12.5px;color:#7A7264;margin-top:8px;line-height:1.6}
.sign-unlock-row{display:flex;gap:8px;margin-top:6px}
.sign-unlock-row input{flex:1;min-width:0;padding:10px 12px;border:1.5px solid #D8CFBE;border-radius:8px;font-size:14.5px;text-transform:uppercase;font-family:inherit}
.sign-unlock-row input:focus{outline:none;border-color:#A63A26}
@media (max-width:720px){.sign-styles{grid-template-columns:repeat(2,1fr)}}

/* 签名转化钩子（字页 / 姓氏页） */
.sign-hook{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:20px 0 8px;padding:12px 16px;background:#FBF8F2;border-left:3px solid #A63A26;border-radius:0 8px 8px 0;font-size:14.5px;line-height:1.7;color:#3A342B}
.sign-hook-k{font-size:12px;color:#8A8274;letter-spacing:.06em;flex:0 0 auto}
.sign-hook a{color:#A63A26;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(166,58,38,.35);white-space:nowrap}
.sign-hook a:hover{border-bottom-color:#A63A26}
