/* ===========================================================
   《心眼子测试》主样式表
   设计约束：
   1. 移动端优先（375px 起舒适），暗底 + 亮色渐变，卡片圆角；
   2. 所有可点元素高度 >= 44px，禁止横向滚动；
   3. 无图表库、无图片素材，图标一律用 emoji；
   4. 按需求「不做按钮动效」：不给按钮加 transition/animation/hover 位移，
      所有状态变化只用颜色、边框、背景的瞬时切换。
   =========================================================== */

:root {
  /* 色板 */
  --bg: #0b0d1a;
  --bg-2: #12162c;
  --card: #171c34;
  --card-2: #1e2444;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #eef1ff;
  --muted: #a3abce;
  --muted-2: #7d86ad;

  --brand-1: #8b5cf6;
  --brand-2: #ec4899;
  --brand-3: #f59e0b;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #f87171;
  --wechat: #07c160;
  --alipay: #1677ff;

  /* 渐变 */
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #ec4899 100%);

  /* 尺寸 */
  --radius: 18px;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --tap: 48px; /* 可点元素最小高度 */
  --gutter: 16px;
  --shell: 520px; /* 内容最大宽度（平板/桌面居中） */

  /* 安全区 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  /* 禁止横向滚动（三处冗余保护） */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  /* 顶部霓虹光晕，纯 CSS 渐变，无图片 */
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(139, 92, 246, 0.30) 0%, rgba(11, 13, 26, 0) 62%),
    radial-gradient(ellipse 90% 45% at 100% 8%, rgba(236, 72, 153, 0.20) 0%, rgba(11, 13, 26, 0) 60%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

a { color: var(--brand-2); text-decoration: none; }
a:active { color: var(--brand-1); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.15em; }
canvas { display: block; max-width: 100%; }
img { max-width: 100%; }

/* ---------- 布局骨架 ---------- */
.page {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) calc(var(--gutter) + var(--safe-right))
           calc(22px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page.is-center { justify-content: center; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12.5px; line-height: 1.6; }
.tiny { font-size: 11.5px; line-height: 1.55; }
.strong { font-weight: 800; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card-flat { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card-tight { padding: 13px; }

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.brand-mark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad);
}
.link-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-strong);
}

/* ---------- 标题区 ---------- */
.hero { padding: 10px 2px 2px; }
.hero-emoji { font-size: 44px; line-height: 1.1; }
.hero-title {
  font-size: 34px;
  letter-spacing: 2px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero-sub { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip.on { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.55); color: #fff; }
.chip-gold { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); color: #ffd88a; }
.chip-ok { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.45); color: #9ff0bb; }
.chip-danger { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.45); color: #ffc0c0; }

/* ---------- 按钮（无动效） ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  text-decoration: none;
  /* 无过渡、无动画、无 hover 位移 */
  transition: none;
  animation: none;
}
.btn:active { background: linear-gradient(135deg, #7c4ce0 0%, #d43f89 100%); }
.btn[disabled], .btn.is-disabled { background: #2a3050; color: #737ca6; cursor: not-allowed; }
.btn-sm { min-height: 44px; font-size: 14.5px; padding: 9px 14px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:active { background: rgba(255, 255, 255, 0.14); }
.btn-gold { background: var(--grad-gold); color: #2a1a00; }
.btn-gold:active { background: linear-gradient(135deg, #f3d27e 0%, #e08c0a 55%, #d43f89 100%); }
.btn-wechat { background: var(--wechat); }
.btn-wechat:active { background: #059b4d; }
.btn-alipay { background: var(--alipay); }
.btn-alipay:active { background: #0f5fd6; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1 1 0; }

/* 主按钮上的小角标（价格） */
.btn .price { font-size: 13px; font-weight: 700; opacity: 0.9; }

/* ---------- 首页：示例类型横滑 ---------- */
.type-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.type-strip::-webkit-scrollbar { display: none; }
.type-mini {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background: var(--card-2);
  border: 1px solid var(--line);
  text-align: center;
}
.type-mini .e { font-size: 26px; line-height: 1.2; }
.type-mini .n { margin-top: 4px; font-size: 13px; font-weight: 700; }
.type-mini .l { font-size: 11px; color: var(--muted-2); }

/* ---------- 步骤 / 说明列表 ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step .idx {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
  background: rgba(139, 92, 246, 0.22);
  color: #d9c8ff;
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.advice-list { display: flex; flex-direction: column; gap: 10px; }
.advice-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-size: 14px;
}
.advice-item .n { color: var(--brand-2); font-weight: 800; }

/* ---------- 答题页 ---------- */
.quiz-head {
  position: relative;
  padding: 12px 14px 13px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--card);
  border: 1px solid var(--line);
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad);
}
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.progress-meta .count { font-size: 13px; font-weight: 800; color: #fff; }
/* 剩余题数：让用户随时知道还要答几题 */
.progress-meta .remain {
  font-size: 12px; font-weight: 700;
  color: #a9b0cf;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* 答题点阵：已答的点亮，当前题高亮，未答的是灰点 */
.progress-dots {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 9px;
}
.progress-dots i {
  width: 18px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease;
}
.progress-dots i.is-done { background: var(--grad); }
.progress-dots i.is-current {
  background: #ffd166;
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.25);
}
.hint-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #ffd88a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  padding: 3px 9px;
}

.q-card { padding: 15px; }
.q-scene {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800;
  color: #d9c8ff;
  background: rgba(139, 92, 246, 0.20);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}
.q-text { margin-top: 11px; font-size: 17.5px; font-weight: 700; line-height: 1.55; }

.opt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--card-2);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: none;
  animation: none;
}
.opt:active { background: #232a4e; }
.opt .key {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line);
  color: var(--muted);
}
.opt.is-selected {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.26), rgba(236, 72, 153, 0.14)), var(--card-2);
  border-color: rgba(167, 139, 250, 0.85);
}
.opt.is-selected .key {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.opt .txt { flex: 1 1 auto; min-width: 0; }

.nav-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  padding: 12px 0 calc(2px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(11, 13, 26, 0) 0%, rgba(11, 13, 26, 0.92) 42%, var(--bg) 100%);
}
.nav-bar .btn { flex: 1 1 0; }
.nav-bar .btn-prev { flex: 0 0 34%; }

/* ---------- 结果页 ---------- */
.res-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(139, 92, 246, 0.38) 0%, rgba(236, 72, 153, 0.10) 55%, rgba(23, 28, 52, 0) 100%),
    var(--card);
}
.res-emoji { font-size: 56px; line-height: 1.1; }
.res-type { margin-top: 2px; font-size: 27px; letter-spacing: 1px; }
.res-level { margin-top: 4px; font-size: 13px; color: var(--muted); }
.res-index-wrap { margin-top: 14px; }
.res-index-label { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.res-index {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.res-index-unit { font-size: 15px; font-weight: 700; color: var(--muted); }
.res-tagline { margin-top: 10px; font-size: 14.5px; color: #ffd88a; }

.meter { margin-top: 10px; }
.meter-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
.meter-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--grad-warm); }
.meter-fill.is-locked { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 6px, rgba(255,255,255,0.06) 6px 12px); }

.section-title { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 800; }
.section-title .ico { font-size: 17px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-body { margin-top: 9px; }
.quote {
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.16), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.34);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
.one-liner { font-size: 15px; color: #dfe3ff; }

.match-grid { display: flex; gap: 10px; }
.match-box {
  flex: 1 1 0; min-width: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.match-box .lab { font-size: 11.5px; color: var(--muted-2); }
.match-box .val { margin-top: 3px; font-size: 15px; font-weight: 800; }

/* 说明：原「模糊占位 + 解锁覆盖层」(.locked-wrap/.locked-blur/.lock-cover) 与
   「付费入口」(.buy-box) 样式已随付费墙一起移除 —— 全部内容免费，不再需要遮罩。 */

.pay-tabs { display: flex; gap: 8px; }
.pay-tab {
  flex: 1 1 0;
  min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: none;
  animation: none;
}
.pay-tab.is-active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.9);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.14));
}
.pay-tab.is-active.is-wechat { border-color: rgba(7, 193, 96, 0.9); background: rgba(7, 193, 96, 0.18); }
.pay-tab.is-active.is-alipay { border-color: rgba(22, 119, 255, 0.9); background: rgba(22, 119, 255, 0.18); }

/* ---------- 打赏（自愿支持，默认收起，不抢分享按钮的注意力） ---------- */
.donate-box {
  padding: 0;
  overflow: hidden;
  /* 刻意低调：中性描边，不用金色/渐变，避免像"付费墙" */
  border: 1px solid var(--line);
  background: var(--card);
}

/* 收起态的触发条：整行可点，视觉上是"次要入口" */
.donate-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.donate-trigger-ico { font-size: 20px; line-height: 1; }
.donate-trigger-txt { flex: 1 1 auto; min-width: 0; display: block; }
.donate-trigger-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #e7e9ff;
}
.donate-trigger-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.donate-trigger-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--muted-2);
}

.donate-panel {
  padding: 0 15px 16px;
  border-top: 1px dashed var(--line);
}
.donate-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* 金额档位：自适应网格，手机上两列/三列都不会挤 */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.donate-amount {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: none;
}
.donate-amount.is-active {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.9);
  background: rgba(245, 158, 11, 0.18);
}
.donate-custom { margin-top: 8px; }
.donate-custom input { width: 100%; }

/* 状态条 / 提示 */
.notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
/* .notice 是 flex 容器：里面的「文字节点」与「链接/按钮」会被当成各自独立的 flex 项，
   于是「见 <a>隐私政策</a>」会被拆成两块、错位换行（实测现象）。
   约定：提示语里有行内元素时，用 .notice-text 包一层，让它整体作为一项正常换行。 */
.notice-text { display: block; line-height: 1.65; min-width: 0; }
.notice.is-ok { border-color: rgba(34, 197, 94, 0.42); background: rgba(34, 197, 94, 0.12); color: #b6f5cf; }
.notice.is-warn { border-color: rgba(245, 158, 11, 0.42); background: rgba(245, 158, 11, 0.12); color: #ffdda1; }
.notice.is-error { border-color: rgba(248, 113, 113, 0.42); background: rgba(248, 113, 113, 0.12); color: #ffc4c4; }

/* 骨架屏 */
.skeleton {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.07) 100%);
}
.skeleton.tall { height: 22px; }

/* 雷达图 */
.radar-box { display: flex; justify-content: center; padding: 6px 0 2px; }
.radar-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; margin-top: 10px; }
.radar-legend .li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.radar-legend .li b { color: #fff; font-size: 13.5px; }
.radar-legend .bar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); overflow: hidden; min-width: 24px; }
.radar-legend .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-cool); }

/* ---------- 海报预览 ---------- */
.poster-preview-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e1122;
}
.poster-preview-slot { position: relative; width: 100%; aspect-ratio: 750 / 1334; }
.poster-preview-slot > * { position: absolute; top: 0; left: 0; }

.poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(16px + var(--safe-top)) 14px calc(16px + var(--safe-bottom));
  background: rgba(4, 6, 16, 0.94);
}
.poster-overlay img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  -webkit-touch-callout: default;
  touch-action: manipulation;
}
.poster-overlay .tip { text-align: center; font-size: 14px; color: #ffd88a; font-weight: 700; }
.poster-overlay .sub { text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- 政策 / 说明页 ---------- */
.doc h1 { font-size: 21px; }
.doc h2 { margin-top: 20px; font-size: 16px; color: #fff; }
.doc h2:first-of-type { margin-top: 14px; }
.doc p, .doc li { font-size: 14px; color: #cfd4f0; }
.doc ul, .doc ol { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
.doc .meta { margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.doc section + section { border-top: 1px solid var(--line); padding-top: 4px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.site-footer .disclaimer { font-size: 12.5px; color: var(--muted); }
.site-footer .links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.site-footer .links a { color: var(--muted); border-bottom: 1px dashed var(--line-strong); padding-bottom: 1px; }
.site-footer .sep { color: var(--muted-2); }
.site-footer .copy { font-size: 11.5px; color: var(--muted-2); }

/* ---------- 错误 / 空状态 ---------- */
.state-box { text-align: center; padding: 26px 16px; }
.state-box .big { font-size: 40px; line-height: 1.2; }
.state-box .t { margin-top: 8px; font-size: 17px; font-weight: 800; }
.state-box .d { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- 无障碍 / 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 560px) {
  .hero-title { font-size: 38px; }
  .res-index { font-size: 52px; }
}
