/* ============================================================
   style.css — 中文版全站样式（移动优先）
   ============================================================ */
:root {
  --ink: #1f1e1c;
  --muted: #7a7772;
  --line: rgba(0, 0, 0, 0.09);
  --bg: #fdfbf8;
  --accent: #C8503C;
  --accent-dark: #9A3A2C;
  --radius: 14px;
  --max: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1 { font-size: 1.95rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.32rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin-bottom: 12px; }
a { color: var(--accent-dark); }
b { font-weight: 600; }
em { font-style: normal; color: var(--accent); }
.micro { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.sub { color: var(--muted); }
.center { text-align: center; }
.todo { color: #c0392b; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent-dark); font-weight: 600; margin-bottom: 10px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

/* 按钮 */
.btn { display: inline-block; border: none; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 999px; padding: 12px 28px; transition: transform .15s, opacity .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-lg { padding: 16px 40px; font-size: 1.06rem; }

/* 导航 */
.nav { padding: 14px 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); position: sticky; top: 0; backdrop-filter: blur(10px); z-index: 10; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav-links a { margin-left: 18px; text-decoration: none; color: var(--ink); font-size: .92rem; }

/* 首页 */
.hero { padding: 64px 0 44px; text-align: center; }
.hero h1 { font-size: 2.3rem; margin-bottom: 18px; }
.hero .sub { max-width: 520px; margin: 0 auto 26px; font-size: 1rem; }
.hero .micro { margin-top: 12px; }
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.strip-inner { display: flex; justify-content: space-around; text-align: center; gap: 12px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.15rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.why { padding: 52px 0 36px; }
.why p { font-size: 1rem; color: #3a3a3a; }
.roles { padding: 24px 0 48px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.role-card { background: var(--b); border-radius: 12px; padding: 14px 12px; text-align: center; }
.role-card b { display: block; color: var(--c); font-size: .98rem; margin-bottom: 2px; }
.role-card span { font-size: .74rem; color: #6a6a6a; line-height: 1.4; display: block; }
.how { padding: 44px 0; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.how-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.how-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.quotes { padding: 12px 0 44px; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: .9rem; }
.q-card span { display: block; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.cta { padding: 56px 0; text-align: center; background: #fff; border-top: 1px solid var(--line); }
.cta h2 { margin-bottom: 22px; font-size: 1.5rem; }
@media (max-width: 560px) {
  .hero h1 { font-size: 1.85rem; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .q-grid { grid-template-columns: 1fr; }
}

/* 答题页 */
.quiz-body { background: #fff; }
.quiz-header { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 0; z-index: 10; }
.quiz-header-inner { display: flex; align-items: center; gap: 14px; }
.progress-wrap { flex: 1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.progress-label { font-size: .76rem; color: var(--muted); min-width: 46px; text-align: right; }
.quiz-main { padding-top: 28px; padding-bottom: 60px; }
.quiz-main h1 { font-size: 1.5rem; margin-bottom: 6px; }
.quiz-main .sub { margin-bottom: 22px; font-size: .9rem; }
.q-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.q-text { font-size: .97rem; margin-bottom: 12px; line-height: 1.65; }
.q-num { display: inline-block; width: 24px; color: #b8b4ae; font-size: .8rem; }
.scale { display: flex; gap: 8px; }
.scale-btn { flex: 1; height: 38px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.scale-btn:hover { border-color: var(--accent); }
.scale-btn.selected { background: var(--accent); border-color: var(--accent); }
.scale-dot { width: 9px; height: 9px; border-radius: 50%; background: #dcd8d2; }
.scale-btn.selected .scale-dot { background: #fff; }
.scale-labels { display: flex; justify-content: space-between; font-size: .7rem; color: #a8a49e; margin-top: 6px; }
.quiz-submit { text-align: center; margin-top: 28px; }

/* 结果页 */
.result-main { padding-top: 20px; padding-bottom: 60px; }
.result-hero { border-radius: 16px; padding: 34px 20px; text-align: center; margin-bottom: 28px; }
.result-hero h1 { font-size: 2.2rem; margin-bottom: 6px; letter-spacing: .06em; }
.tagline { font-size: 1rem; color: #4a4a4a; margin-bottom: 14px; }
.traits { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: .76rem; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: #555; }
.result-desc { font-size: .95rem; max-width: 520px; margin: 0 auto 12px; }
.second { font-size: .84rem; color: #6a6a6a; margin-bottom: 20px; }
.score-bars { max-width: 440px; margin: 0 auto; }
.score-row { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 6px; text-align: left; }
.score-name { font-size: .8rem; color: #6a6a6a; }
.score-track { height: 10px; background: rgba(0,0,0,.09); border-radius: 5px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 5px; }
.score-val { font-weight: 600; font-size: .84rem; text-align: right; }
.dim-note { font-size: .85rem; color: #4a4a4a; margin: 0 0 12px; padding-left: 0; }
.poster-section { text-align: center; padding: 24px 0; border-top: 1px solid var(--line); }
.poster-canvas { width: 100%; max-width: 360px; border-radius: 14px; border: 1px solid var(--line); margin: 14px 0; }
.poster-actions { display: flex; gap: 10px; justify-content: center; }
.locked-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.locked-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; font-size: .9rem; }
.blur-line { filter: blur(4px); user-select: none; color: #999; }
.pay-box { background: #fff; border: 2px solid var(--accent); border-radius: 14px; padding: 22px; text-align: center; max-width: 460px; margin: 0 auto; }
.pay-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.pay-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.pay-price .micro { font-weight: 400; }

/* 报告页 */
.report-main { padding-top: 20px; padding-bottom: 60px; }
.report-hero { border-radius: 16px; padding: 32px 20px; text-align: center; margin-bottom: 22px; }
.report-hero h1 { font-size: 2.1rem; margin-bottom: 6px; letter-spacing: .06em; }
.quote { font-size: .95rem; color: #5a5a5a; margin-top: 10px; }
.report-sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.report-sec:last-child { border-bottom: none; }
.report-sec p { font-size: .95rem; }
.plain-list, .pattern-list { padding-left: 20px; }
.plain-list li, .pattern-list li { margin-bottom: 12px; font-size: .95rem; }
.match-line { margin-bottom: 6px; }
.paywall-gate { text-align: center; padding: 44px 0; }
.paywall-gate .pay-box { margin-top: 18px; }

/* 合规页 */
.legal-main { padding-top: 28px; padding-bottom: 60px; }
.legal-sec { margin-bottom: 36px; }
.legal-sec h1 { font-size: 1.32rem; margin-bottom: 12px; }
.legal-sec p { font-size: .92rem; color: #3a3a3a; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 22px 0; text-align: center; background: #fff; }
.footer p { margin-bottom: 6px; }

/* ============ 解锁弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(31, 30, 28, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal-card {
  background: #fff; border-radius: 18px; padding: 30px 24px 22px;
  width: 100%; max-width: 400px; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  transform: translateY(12px) scale(.98); transition: transform .22s;
  text-align: center;
}
.modal-mask.show .modal-card { transform: none; }
.modal-card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 1.5rem; line-height: 1; color: #b8b4ae; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-hint { font-size: .84rem; color: var(--muted); margin-bottom: 16px; line-height: 1.65; }
.modal-input {
  width: 100%; padding: 14px 16px; font-size: 1.24rem; font-family: inherit;
  letter-spacing: .22em; text-align: center; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fdfbf8;
  outline: none; transition: border-color .15s;
}
.modal-input:focus { border-color: var(--accent); background: #fff; }
.modal-input.shake { animation: shake .38s; border-color: #d9534f; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.modal-error { font-size: .8rem; color: #c0392b; min-height: 24px; margin: 8px 0 4px; line-height: 1.5; }
.modal-error.ok { color: #2e7d4f; }
.modal-submit { width: 100%; margin-bottom: 14px; }
.modal-foot { font-size: .84rem; margin-bottom: 6px; }
.modal-foot a { text-decoration: none; }
.modal-foot.micro { color: var(--muted); margin-top: 4px; }

@media (max-width: 420px) {
  .modal-card { padding: 26px 18px 18px; }
  .modal-input { font-size: 1.1rem; letter-spacing: .16em; }
}

/* ============ 站内支付面板 ============ */
.pay-card { max-width: 380px; }
.pay-eyebrow { font-size: .78rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.pay-amount { font-size: 2.1rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; letter-spacing: -.01em; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 2px; }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
  color: #fff; text-decoration: none; transition: transform .12s, opacity .12s;
}
.pay-btn:hover { transform: translateY(-1px); opacity: .94; }
.pay-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.pay-wx { background: #07C160; }
.pay-ali { background: #1677FF; }
.pay-platform { background: var(--accent); }
.pay-ico {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700;
}
.pay-tip {
  font-size: .8rem; color: var(--muted); line-height: 1.6;
  background: #fdf7f4; border-radius: 10px; padding: 12px; margin: 2px 0 0;
  text-align: left;
}
.pay-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--accent); color: #fff; text-align: center;
  padding: 12px 20px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.pay-banner-warn { background: #8a6d3b; }
.pay-banner b { font-variant-numeric: tabular-nums; }

/* 订单号恢复 */
.pay-restore { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); text-align: center; }
.pay-restore > a { font-size: .8rem; color: var(--muted); text-decoration: none; }
.pay-restore > a:hover { color: var(--accent-dark); text-decoration: underline; }
.pay-restore-form { margin-top: 12px; text-align: left; }
.pay-restore-form .micro { color: var(--muted); font-size: .78rem; line-height: 1.6; margin-bottom: 8px; }
.pay-restore-form .modal-input { margin-bottom: 8px; font-size: .95rem; letter-spacing: .06em; }
.pay-restore-form .btn { width: 100%; }
.pay-restore-form .modal-error { margin: 6px 0 0; }

/* 支付成功态 */
.pay-success { text-align: center; padding: 10px 4px 4px; }
.pay-success-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: #2e7d4f; color: #fff; font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: pop .4s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pay-success h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* 结果页的订单号提示 */
.order-note {
  max-width: 460px; margin: 14px auto 0; padding: 12px 14px;
  background: #f6f7f5; border-radius: 10px; font-size: .78rem;
  color: var(--muted); line-height: 1.7; text-align: center;
}
.order-note b { color: var(--ink); letter-spacing: .04em; }


