/* ==========================================================================
   知遇 ZHIYU · AI 辅助严肃婚恋 · 全局设计系统
   定位：严肃婚恋 · 30-50 岁 · 高知品质（正运隆旗下）
   主色：深墨蓝（信任/稳重） + 知遇橙（双天鹅 LOGO 色/温度） + 暖玫（心动）
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 墨蓝：主色阶 */
  --ink-900: #0B1322;
  --ink-800: #111C31;
  --ink-700: #182740;
  --ink-600: #24354F;
  --ink-500: #35496A;
  --ink-400: #5A6B88;
  --ink-300: #8C99AD;

  /* 知遇橙：品牌强调色阶（源自双天鹅 LOGO） */
  --gold-700: #A94E15;
  --gold-600: #C95F1D;
  --gold-500: #E8722A;
  --gold-400: #F0884C;
  --gold-300: #F5A76B;
  --gold-200: #FAD2B5;
  --gold-100: #FDEEE1;

  /* 暖玫：情感/心动 */
  --rose-600: #9E4F60;
  --rose-500: #B4697A;
  --rose-200: #EED5DA;
  --rose-100: #F8EFF1;

  /* 语义色 */
  --ok-500: #3E8E6E;
  --ok-100: #E7F3EE;
  --warn-500: #C08A2E;
  --warn-100: #FBF1DF;
  --danger-500: #C0503F;

  /* 中性面 */
  --paper: #FFFFFF;
  --cream: #FAF8F4;
  --cream-1: #FCFBF8;
  --cream-2: #F4F1EA;
  --cream-3: #EDE9DF;
  --line: #E7E2D7;
  --line-strong: #D6CFBF;

  /* 文字 */
  --text: #16203A;
  --text-2: #45516B;
  --muted: #7B8499;
  --text-invert: #F6F3EC;
  --muted-invert: #A9B2C4;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 尺寸 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;
  --container: 1200px;
  --nav-h: 74px;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(16, 26, 46, .06);
  --sh-sm: 0 2px 8px rgba(16, 26, 46, .06);
  --sh-md: 0 8px 26px rgba(16, 26, 46, .08);
  --sh-lg: 0 20px 50px rgba(16, 26, 46, .12);
  --sh-gold: 0 10px 30px rgba(232, 114, 42, .3);

  /* 渐变 */
  --grad-ink: linear-gradient(150deg, #111C31 0%, #1B2942 48%, #24354F 100%);
  --grad-gold: linear-gradient(120deg, #E8722A 0%, #F5A76B 52%, #E8722A 100%);
  --grad-cream: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
  --grad-rose: linear-gradient(135deg, #B4697A 0%, #D89AA6 100%);

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
  color: var(--text);
}

h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(25px, 3vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--gold-200); color: var(--ink-800); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--cream-2); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* ---------- 3. 布局工具 ---------- */
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.container-sm { width: min(100% - 44px, 880px); margin-inline: auto; }
.container-md { width: min(100% - 44px, 1040px); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(44px, 5vw, 72px) 0; }
.section-dark { background: var(--grad-ink); color: var(--text-invert); position: relative; overflow: hidden; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-cream { background: var(--cream-2); }
.section-paper { background: var(--paper); }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.tc { text-align: center; }
.tr { text-align: right; }
.mx-auto { margin-inline: auto; }
.hidden { display: none !important; }
.relative { position: relative; }

/* ---------- 4. 排版助手 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }
.section-dark .eyebrow { color: var(--gold-300); }
.section-dark .eyebrow::before { background: var(--gold-400); }

.lead { font-size: clamp(15px, 1.5vw, 17.5px); color: var(--text-2); line-height: 1.85; }
.section-dark .lead { color: var(--muted-invert); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.gold-text { color: var(--gold-600); }
.serif { font-family: var(--font-serif); }
.nowrap { white-space: nowrap; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.tc { margin-inline: auto; }

/* 金线分割 */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  transition: all .26s var(--ease); white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-gold { background: var(--grad-gold); color: #3A2C12; box-shadow: var(--sh-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232, 114, 42, .42); }

.btn-dark { background: var(--ink-800); color: #fff; }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-700); background: var(--gold-100); }

.btn-ghost { color: var(--text-2); padding: 10px 16px; }
.btn-ghost:hover { color: var(--gold-600); background: var(--gold-100); }

.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .18); border-color: var(--gold-300); }

.btn-rose { background: var(--grad-rose); color: #fff; }
.btn-rose:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(180, 105, 122, .34); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--gold-300); }
.card-flat { box-shadow: none; }
.card-ink { background: var(--grad-ink); color: var(--text-invert); border-color: transparent; }
.card-ink h3, .card-ink h4 { color: #fff; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-100); color: var(--gold-700);
}
.card-icon svg { width: 23px; height: 23px; }
.card-icon.ink { background: var(--ink-700); color: var(--gold-300); }
.card-icon.rose { background: var(--rose-100); color: var(--rose-600); }
.card-icon.ok { background: var(--ok-100); color: var(--ok-500); }

/* ---------- 7. 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.badge svg { width: 13px; height: 13px; }
.badge-gold { background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-200); }
.badge-ink { background: var(--ink-700); color: var(--gold-300); }
.badge-rose { background: var(--rose-100); color: var(--rose-600); }
.badge-ok { background: var(--ok-100); color: var(--ok-500); }
.badge-line { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.badge-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }

/* ---------- 8. 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(16, 26, 46, .05); }

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--grad-ink); display: grid; place-items: center;
  color: var(--gold-300); font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  box-shadow: var(--sh-sm); position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245, 167, 107, .3), transparent 60%);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: .06em; color: var(--ink-800); }
.logo-sub { font-size: 10px; letter-spacing: .34em; color: var(--gold-600); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 9px 15px; border-radius: var(--r-full);
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
}
.nav-menu a:hover { color: var(--ink-800); background: var(--cream-2); }
.nav-menu a.active { color: var(--gold-700); background: var(--gold-100); font-weight: 600; }

/* 导航项增至 9 项后，两段压缩：先收内边距，再收字号，避免与右侧按钮争宽 */
@media (min-width: 861px) and (max-width: 1340px) {
  .nav-menu { gap: 2px; }
  .nav-menu a { padding: 9px 10px; font-size: 13.5px; }
}
@media (min-width: 861px) and (max-width: 1150px) {
  .nav-menu { gap: 1px; }
  .nav-menu a { padding: 8px 7px; font-size: 12.8px; }
  .logo-sub { display: none; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; color: var(--ink-800); }
.nav-toggle:hover { background: var(--cream-2); }

/* 深色头（用于内部页） */
.site-header.on-dark { background: rgba(11, 19, 34, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.site-header.on-dark .logo-name { color: #fff; }
.site-header.on-dark .nav-menu a { color: var(--muted-invert); }
.site-header.on-dark .nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header.on-dark .nav-menu a.active { color: var(--gold-300); background: rgba(245, 167, 107, .16); }
.site-header.on-dark .nav-toggle { color: #fff; }

/* ---------- 9. 表单控件 ---------- */
.field { margin-bottom: 20px; }
.label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
}
.label .req { color: var(--rose-500); margin-left: 3px; }

.input, .select, .textarea {
  width: 100%; padding: 13px 16px;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); font-size: 14.5px;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: #A8AEB9; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 114, 42, .14);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B8499' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--danger-500); margin-top: 6px; }

/* 选项卡片（单选/多选） */
.opt-grid { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 17px; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); background: var(--paper);
  cursor: pointer; transition: all .22s var(--ease); user-select: none;
}
.opt:hover { border-color: var(--gold-400); background: var(--gold-100); }
.opt input { display: none; }
.opt .tick {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1.6px solid var(--line-strong); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.opt .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background .2s; }
.opt-body { flex: 1; }
.opt-title { font-weight: 600; font-size: 14.5px; }
.opt-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.opt.selected { border-color: var(--gold-500); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(232, 114, 42, .12); }
.opt.selected .tick { border-color: var(--gold-600); }
.opt.selected .tick::after { background: var(--gold-600); }
.opt-multi .tick { border-radius: 6px; }
.opt-multi .tick::after { border-radius: 2px; }

/* 开关 */
.switch { position: relative; width: 44px; height: 25px; flex: none; }
.switch input { display: none; }
.switch-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line-strong); transition: background .24s var(--ease);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-xs); transition: transform .24s var(--ease);
}
.switch input:checked + .switch-track { background: var(--gold-500); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }

/* ---------- 10. 头像 ---------- */
.avatar {
  border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  background: var(--grad-ink); position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-40 { width: 40px; height: 40px; font-size: 15px; }
.avatar-48 { width: 48px; height: 48px; font-size: 17px; }
.avatar-56 { width: 56px; height: 56px; font-size: 20px; }
.avatar-72 { width: 72px; height: 72px; font-size: 25px; }
.avatar-96 { width: 96px; height: 96px; font-size: 32px; }

.avatar-ring { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold-400); }
.avatar-online::after {
  content: ""; position: absolute; right: 2px; bottom: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #46C08A; border: 2.5px solid var(--paper);
}
.avatar-xs-verify::before {
  content: "✓"; position: absolute; right: -1px; bottom: -1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-500); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--paper);
}

/* ---------- 11. 进度 ---------- */
.progress { height: 7px; border-radius: 999px; background: var(--cream-3); overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 999px; background: var(--grad-gold);
  transition: width .8s var(--ease-out);
}
.progress-thin { height: 4px; }

.steps { display: flex; align-items: center; gap: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
  background: var(--paper); border: 1.6px solid var(--line-strong); color: var(--muted);
  transition: all .3s var(--ease); z-index: 2;
}
.step-label { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step::before {
  content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 1.6px;
  background: var(--line-strong); z-index: 1;
}
.step:first-child::before { display: none; }
.step.done .step-dot { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.step.done::before { background: var(--gold-400); }
.step.done .step-label { color: var(--gold-700); font-weight: 600; }
.step.active .step-dot { background: var(--ink-800); border-color: var(--ink-800); color: var(--gold-300); box-shadow: 0 0 0 5px rgba(24, 39, 64, .1); }
.step.active .step-label { color: var(--ink-800); font-weight: 700; }

/* ---------- 12. 匹配度环形 ---------- */
.score-ring { position: relative; display: grid; place-items: center; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-linecap: round; }
.score-ring .track { stroke: var(--cream-3); }
.score-ring .fill { stroke: url(#goldGrad); transition: stroke-dashoffset 1.1s var(--ease-out); }
.score-val {
  position: absolute; text-align: center; line-height: 1.1;
}
.score-num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--gold-700); }
.score-num small { font-size: 12px; }
.score-cap { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; }

/* ---------- 13. 数据统计 ---------- */
.stat-num {
  font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700; line-height: 1; color: var(--ink-800);
}
.section-dark .stat-num { color: #fff; }
.stat-num .unit { font-size: .5em; margin-left: 3px; color: var(--gold-500); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 9px; letter-spacing: .04em; }
.section-dark .stat-label { color: var(--muted-invert); }

/* ---------- 14. 标签页 ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--cream-2); border-radius: var(--r-full); border: 1px solid var(--line); }
.tab {
  padding: 9px 20px; border-radius: var(--r-full); font-size: 14px;
  font-weight: 600; color: var(--muted); transition: all .24s var(--ease);
}
.tab:hover { color: var(--ink-700); }
.tab.active { background: var(--paper); color: var(--ink-800); box-shadow: var(--sh-sm); }

/* ---------- 15. 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--cream-2); padding: 15px 18px; text-align: left;
  font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream); }

/* ---------- 16. 聊天气泡 ---------- */
.chat { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 11px; max-width: 84%; }
.msg-ai { align-self: flex-start; }
.msg-me { align-self: flex-end; flex-direction: row-reverse; }
.bubble {
  padding: 12px 16px; border-radius: 16px; font-size: 14.2px; line-height: 1.7;
  border: 1px solid var(--line); background: var(--paper); color: var(--text);
}
.msg-ai .bubble { border-top-left-radius: 5px; }
.msg-me .bubble { background: var(--ink-800); color: #F3F0E9; border-color: transparent; border-top-right-radius: 5px; }
.bubble-title { font-weight: 700; font-size: 13px; color: var(--gold-700); margin-bottom: 5px; letter-spacing: .04em; }
.msg-me .bubble-title { color: var(--gold-300); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-input-bar {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.chat-input-bar textarea {
  flex: 1; border: none; outline: none; resize: none; max-height: 110px;
  padding: 9px 6px; font-size: 14.2px; line-height: 1.65; background: transparent;
}

/* ---------- 17. 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(11, 19, 34, .56); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(100%, 480px); background: var(--paper); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--sh-lg);
  transform: translateY(18px) scale(.97); transition: transform .34s var(--ease-out);
  max-height: 88vh; overflow-y: auto;
}
.modal-mask.show .modal { transform: none; }
.modal-lg { width: min(100%, 660px); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; color: var(--muted);
}
.modal-close:hover { background: var(--cream-2); color: var(--ink-800); }

/* ---------- 18. Toast ---------- */
.toast-wrap { position: fixed; top: 92px; right: 26px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 19px; border-radius: var(--r-md);
  background: var(--ink-800); color: #F3F0E9; font-size: 14px;
  box-shadow: var(--sh-lg); animation: toastIn .38s var(--ease-out);
  max-width: 340px;
}
.toast.ok { background: #2C6B54; }
.toast.warn { background: #8A6420; }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* ---------- 19. 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .78s var(--ease-out), transform .78s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
.reveal[data-d="6"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 20. 装饰 ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.glow-gold { background: rgba(232, 114, 42, .28); }
.glow-rose { background: rgba(180, 105, 122, .22); }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}

.heart-float { position: absolute; color: var(--gold-400); opacity: .3; animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(7deg); } }

.divider-orn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold-500); margin: 32px 0;
}
.divider-orn::before, .divider-orn::after {
  content: ""; height: 1px; width: 68px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}
.divider-orn::after { background: linear-gradient(90deg, var(--gold-300), transparent); }

/* ---------- 21. 页脚 ---------- */
.site-footer { background: var(--ink-900); color: var(--muted-invert); padding: clamp(52px, 6vw, 76px) 0 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-family: var(--font-sans); letter-spacing: .04em; }
.site-footer a { color: var(--muted-invert); font-size: 14px; }
.site-footer a:hover { color: var(--gold-300); }
.footer-links li { margin-bottom: 11px; }
.footer-logo .logo-name { color: #fff; }
.footer-bottom {
  margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #78829A;
}

/* ---------- 22. 页面 Hero（内页） ---------- */
.page-hero { background: var(--grad-ink); color: var(--text-invert); padding: calc(var(--nav-h) + 54px) 0 66px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--muted-invert); max-width: 660px; }

/* ---------- 23. 侧栏布局 ---------- */
.layout-side { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.layout-side > * { min-width: 0; }
.side-nav { position: sticky; top: calc(var(--nav-h) + 22px); }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; border-radius: var(--r-md);
  font-size: 14.2px; color: var(--text-2); font-weight: 500; margin-bottom: 3px;
}
.side-nav a:hover { background: var(--cream-2); color: var(--ink-800); }
.side-nav a.active { background: var(--ink-800); color: var(--gold-300); font-weight: 600; }
.side-nav a svg { width: 17px; height: 17px; }

/* ---------- 24. 响应式 ---------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .side-nav a { white-space: nowrap; margin-bottom: 0; }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; box-shadow: var(--sh-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all .28s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 14px; font-size: 15.5px; }
  .nav-toggle { display: grid; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-mobile-2 { grid-template-columns: repeat(2, 1fr); }
  .steps .step-label { font-size: 11px; }
  .card { padding: 22px; }
  .modal { padding: 26px; }
  .toast-wrap { right: 14px; left: 14px; }
}

@media (max-width: 560px) {
  .container, .container-sm, .container-md { width: calc(100% - 32px); }
  .btn { padding: 12px 20px; font-size: 14px; }
  .stat-num { font-size: 30px; }
}

/* ---------- 25. 比率栅格（替代内联 grid-template-columns，窄屏自动折叠） ---------- */
.rg-half   { grid-template-columns: 1fr 1fr; }
.rg-9-11   { grid-template-columns: .9fr 1.1fr; }
.rg-135-1  { grid-template-columns: 1.35fr 1fr; }
.rg-104-96 { grid-template-columns: 1.04fr .96fr; }
.rg-3      { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .rg-half, .rg-9-11, .rg-135-1, .rg-104-96 { grid-template-columns: 1fr; }
  .rg-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rg-3 { grid-template-columns: 1fr; }
}

/* ---------- 26. 语音问答（TTS 听题模式） ---------- */
.vq-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 13px 16px; margin: 0 0 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.vq-ctl .vq-state { font-size: 12.8px; color: var(--muted); line-height: 1.55; margin-left: auto; }
.vq-ctl .vq-state b { color: var(--gold-700); }
.vq-pick { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.vq-pick > span { white-space: nowrap; }
.vq-pick select { height: 34px; padding: 0 28px 0 11px; border: 1px solid var(--line-strong);
  border-radius: 8px; background-color: var(--paper); font-size: 12.5px; color: var(--text);
  max-width: 236px; cursor: pointer; }
.vq-pick input[type="range"] { width: 86px; accent-color: var(--gold-500); cursor: pointer; }
.vq-pick input[type="checkbox"] { accent-color: var(--gold-500); cursor: pointer; }

/* 选项遮罩：绝对定位覆盖在选项之上，不改变文档高度 —— 朗读结束前后版式不跳动 */
.vq-optwrap { position: relative; }
.vq-veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--cream); color: var(--muted); font-size: 12.6px; line-height: 1.6;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.vq .opt-grid, .vq .date-opts { transition: opacity .4s var(--ease); }
.vq-lock .vq-veil { opacity: 1; pointer-events: auto; }
.vq-lock .opt-grid, .vq-lock .date-opts { opacity: 0; pointer-events: none; }

/* 当前正在朗读的题：左侧金色竖条 + 题干高亮 + 声波 */
.vq-live { position: relative; }
.vq-live::before { content: ''; position: absolute; left: -13px; top: 5px; bottom: 5px; width: 3px;
  border-radius: 3px; background: var(--grad-gold); }
.vq-live .label, .vq-live .qt { color: var(--gold-700); }
.vq-wave { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 11px;
  margin-left: 8px; vertical-align: -1px; }
.vq-wave b { display: block; width: 2.6px; height: 4px; border-radius: 2px;
  background: var(--gold-500); animation: vqwave .85s ease-in-out infinite; }
.vq-wave b:nth-child(2) { animation-delay: .17s; }
.vq-wave b:nth-child(3) { animation-delay: .34s; }
@keyframes vqwave { 0%, 100% { height: 4px; opacity: .5; } 50% { height: 11px; opacity: 1; } }

@media (max-width: 700px) {
  .vq-ctl { gap: 9px 12px; padding: 12px 13px; }
  .vq-ctl .vq-state { margin-left: 0; width: 100%; order: 9; }
  .vq-pick select { max-width: 168px; }
  .vq-live::before { left: -9px; }
}

/* ---------- 27. 打分口径标注（口径单一来源，见 app.js ZYL.CALIBER） ---------- */
.caliber {
  margin-top: 16px; padding: 16px 18px;
  background: var(--cream-1); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.caliber .cb-hd {
  font-size: 11.6px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-700); margin-bottom: 8px;
}
.caliber .cb-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-top: 1px dashed var(--line);
}
.caliber .cb-item:first-of-type { border-top: 0; }
.caliber .cb-tag {
  flex: none; white-space: nowrap; font-size: 11.4px; font-weight: 700;
  color: var(--gold-700); background: var(--gold-100); border-radius: 99px; padding: 3px 9px;
}
.caliber .cb-body b { display: block; font-size: 13.2px; font-weight: 700; color: var(--ink-800); }
.caliber .cb-body p { font-size: 12.3px; line-height: 1.8; color: var(--muted); margin: 4px 0 0; }
.caliber .cb-gap { font-size: 12.1px; line-height: 1.75; color: var(--text-2); margin: 10px 0 0; }

/* ---------- 28. 页脚 · 分享话术 ---------- */
.footer-share {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.footer-share .fs-txt { flex: 1; min-width: 260px; }
.footer-share .fs-txt b { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.footer-share .fs-txt span { font-size: 12.2px; line-height: 1.75; color: var(--muted-invert); }
.footer-share .btn-outline { border-color: rgba(255, 255, 255, .32); color: #fff; }
.footer-share .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
@media (max-width: 700px) {
  .footer-share { align-items: flex-start; }
  .footer-share .btn-outline { width: 100%; }
  .caliber .cb-item { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   断点续答提示条（单一来源：assets/js/progress.js 的 ZYL_PROG.bar()）
   出现在答题页顶部：已自动恢复上次作答 + 断点信息 + 清空本卷作答
   ========================================================================== */
.resume-bar {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; margin: 0 0 18px;
  border: 1px solid var(--gold-300); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--gold-100), var(--cream));
}
.resume-bar .rb-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px;
  background: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 114, 42, .14);
}
.resume-bar .rb-txt { flex: 1; min-width: 220px; display: grid; gap: 3px; }
.resume-bar .rb-txt b { font-size: 13.4px; color: var(--ink-800); }
.resume-bar .rb-txt span { font-size: 12.4px; line-height: 1.7; color: var(--text-2); }
.resume-bar .rb-note { color: var(--muted); }
.resume-bar .btn { flex: none; }
@media (max-width: 700px) {
  .resume-bar { align-items: stretch; }
  .resume-bar .rb-dot { display: none; }
  .resume-bar .btn { width: 100%; }
}

/* 页头账号区（登录后：我的 / 退出登录） */
.nav-user { position: relative; }
.nav-user .nu-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; z-index: 320;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 14px 34px rgba(27, 41, 66, .14); padding: 6px; display: none;
}
.nav-user.open .nu-menu { display: block; }
.nav-user .nu-menu a, .nav-user .nu-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px;
  font-size: 13.2px; color: var(--text-2); background: none; border: 0; cursor: pointer;
}
.nav-user .nu-menu a:hover, .nav-user .nu-menu button:hover { background: var(--gold-100); color: var(--gold-700); }
.nav-user .nu-menu .nu-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* 未完成问卷卡（member.html 概览） */
.resume-card { border: 1px solid var(--gold-300); background: linear-gradient(180deg, #fff, var(--gold-100)); }
.resume-card .rc-line { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.resume-card .rc-meta { font-size: 12.4px; color: var(--muted); }

/* 打印 */
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; }
  .vq-ctl { display: none; }
}
