/* ========== 全局基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #e11d48;
  --primary-2: #f59e0b;
  --primary-soft: #ffe4e6;
  --accent: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1d8d5;
  --bg: #fff7f2;
  --card: #ffffff;
  --radius: 22px;
  --shadow-sm: 0 2px 4px rgba(120, 40, 50, .05), 0 10px 24px rgba(225, 29, 72, .08);
  --shadow-md: 0 14px 34px rgba(225, 29, 72, .14);
  --grad: linear-gradient(135deg, #e11d48, #f59e0b);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1080px, 92%); margin: 0 auto; }

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.22rem; font-weight: 800; letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  color: #fff; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  -webkit-text-fill-color: #fff;
}

.main-nav { display: none; gap: 24px; font-size: .95rem; color: var(--muted); font-weight: 500; }
.main-nav a { transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); font-weight: 700; }

@media (min-width: 768px) { .main-nav { display: flex; } }

/* ========== 首页 Hero ========== */
.hero {
  padding: 68px 0 56px; text-align: center;
  background:
    radial-gradient(900px 420px at 85% -10%, #ede9fe 0%, transparent 60%),
    radial-gradient(700px 380px at 8% 110%, #ffe4e6 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid #e0e7ff; padding: 6px 16px; border-radius: 99px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 900; line-height: 1.3;
  letter-spacing: .5px; margin-bottom: 18px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p { font-size: 1.05rem; color: var(--muted); margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 26px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: .85rem; color: var(--muted); }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--grad); color: #fff; padding: 13px 30px; font-size: 1rem;
  box-shadow: 0 8px 22px rgba(99, 102, 241, .35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(99, 102, 241, .45); transform: translateY(-2px); }

.btn-ghost {
  background: #fff; color: var(--ink); padding: 12px 26px; font-size: .95rem;
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* ========== 通用区块 ========== */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid rgba(0,0,0,.04); border-bottom: 1px solid rgba(0,0,0,.04); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary);
  letter-spacing: 3px; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: .95rem; }

/* ========== 分类卡片 ========== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }

.cat-card {
  background: #fff; border-radius: var(--radius); padding: 24px 14px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-icon { font-size: 1.9rem; margin-bottom: 8px; }
.cat-name { font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.cat-desc { font-size: .76rem; color: var(--muted); }

/* ========== 测试卡片 ========== */
.test-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .test-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }

.test-card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
  position: relative;
}
.test-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0;
}
.card-tag {
  font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-soft);
  padding: 3px 10px; border-radius: 99px; align-self: flex-start;
}
.card-title { font-size: 1.08rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.card-desc {
  color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; gap: 14px; font-size: .78rem; color: #9ca3af; margin-bottom: 16px; }
.card-cta { color: var(--primary); font-weight: 800; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-cta .arr { transition: transform .2s; }
.test-card:hover .arr { transform: translateX(4px); }

.card-soon {
  border: 2px dashed #d1d5db; background: transparent; box-shadow: none;
  text-align: center; color: #9ca3af; padding: 34px 20px;
}
.card-soon .card-title { color: #6b7280; }
.soon-badge {
  position: absolute; top: 14px; right: 14px; font-size: .68rem; color: #fff; font-weight: 600;
  background: #c4c9d4; padding: 2px 10px; border-radius: 99px;
}

/* ========== 三步流程 ========== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04);
}
.step-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--muted); }

/* ========== 面包屑 ========== */
.breadcrumb { font-size: .8rem; color: #9ca3af; padding: 18px 0 4px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb b { color: var(--muted); font-weight: 600; }

/* ========== 答题引擎 ========== */
#quiz-app { max-width: 680px; margin: 12px auto 48px; }
.quiz-loading, .quiz-error {
  background: #fff; border-radius: var(--radius); padding: 48px 20px; text-align: center;
  color: var(--muted); box-shadow: var(--shadow-sm);
}
.quiz-error small { color: #c4c9d4; }

.quiz-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 30px 22px; border: 1px solid rgba(99, 102, 241, .08);
}

.quiz-progress { height: 7px; background: #eef0f7; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress span {
  display: block; height: 100%; background: var(--grad); border-radius: 99px;
  transition: width .35s ease;
}

.quiz-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 22px; }

.quiz-question { font-size: 1.28rem; font-weight: 800; line-height: 1.65; margin-bottom: 30px; }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.likert-btn {
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 4px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all .18s;
}
.likert-btn:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.likert-btn.selected { border-color: var(--primary); background: var(--grad); color: #fff; transform: none; }
.likert-num { font-weight: 800; font-size: 1.05rem; }
.likert-label { font-size: .64rem; color: var(--muted); line-height: 1.25; }
.likert-btn.selected .likert-label { color: rgba(255,255,255,.92); }

.quiz-option {
  display: block; width: 100%; text-align: left; border: 2px solid var(--line); border-radius: 14px;
  padding: 15px 17px; margin-bottom: 10px; background: #fff; font-size: .98rem; transition: all .18s;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(3px); }
.quiz-option.selected { border-color: var(--primary); background: var(--grad); color: #fff; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 10px; }
.quiz-tip { font-size: .74rem; color: #9ca3af; text-align: right; }

/* ========== 答题引导页 ========== */
.quiz-intro-head { text-align: center; margin-bottom: 24px; }
.quiz-intro-icon { font-size: 2.4rem; margin-bottom: 10px; }
.quiz-intro-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.quiz-intro-desc { color: var(--muted); font-size: .92rem; }

.intro-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.intro-chip {
  background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 99px;
}

.intro-tips {
  background: #fafaff; border: 1px dashed #d6d9f8; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 24px;
}
.intro-tips li { list-style: none; font-size: .86rem; color: var(--muted); display: flex; gap: 8px; margin: 4px 0; }
.intro-tips li::before { content: "✦"; color: var(--primary); font-size: .8rem; }

.intro-cta { text-align: center; }

/* ========== 结果页 ========== */
.result-hero { text-align: center; padding: 6px 0 4px; }
.result-badge {
  display: inline-block; font-size: .76rem; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 4px 14px; border-radius: 99px; margin-bottom: 14px;
}
.result-type {
  font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 900; line-height: 1.35; margin-bottom: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-tagline { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }

.score-board {
  background: linear-gradient(180deg, #fafaff, #fff); border: 1px solid #eceafd;
  border-radius: 16px; padding: 20px 18px; margin-bottom: 26px;
}
.score-main { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 6px; }
.score-main b { font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.score-main span { color: #9ca3af; font-size: 1rem; }
.score-main-label { text-align: center; font-size: .8rem; color: var(--muted); }

.dim-row { margin-bottom: 18px; }
.dim-row:last-child { margin-bottom: 0; }
.dim-labels { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; color: var(--muted); }
.dim-labels b { color: #9ca3af; font-weight: 600; }
.dim-labels b.on { color: var(--primary); font-weight: 800; }
.dim-track { position: relative; height: 13px; border-radius: 99px; background: #ffe4ec; overflow: hidden; }
.dim-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.dim-pcts { display: flex; justify-content: space-between; font-size: .68rem; color: #b0b6c3; margin-top: 4px; }

.result-desc {
  background: var(--primary-soft); border-radius: 16px; padding: 20px; font-size: .93rem;
  color: #3f4a63; margin-bottom: 20px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--primary); background: #fff;
  border: 1px solid #e0e7ff; padding: 4px 13px; border-radius: 99px;
}

.result-h3 { font-size: 1.05rem; font-weight: 800; margin: 24px 0 14px; display: flex; align-items: center; gap: 8px; }
.result-h3::before { content: ""; width: 5px; height: 18px; border-radius: 99px; background: var(--grad); }

.advice-list { list-style: none; }
.advice-item { display: flex; gap: 13px; padding: 13px 4px; border-bottom: 1px dashed var(--line); font-size: .9rem; color: #46506b; }
.advice-item:last-child { border-bottom: none; }
.advice-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--grad);
  color: #fff; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ========== 解锁报告卡 ========== */
.unlock-card {
  margin-top: 30px; border: 2px dashed #c7cdf9; border-radius: 20px; padding: 30px 20px 26px;
  text-align: center; background: linear-gradient(180deg, #fff, #f5f3ff); position: relative;
}
.unlock-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 16px; border-radius: 99px; box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.unlock-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.unlock-card p { font-size: .84rem; color: var(--muted); margin-bottom: 4px; }
.unlock-qr { width: 148px; margin: 16px auto 8px; }
.unlock-qr img { border-radius: 12px; border: 1px solid var(--line); padding: 7px; background: #fff; }
.unlock-note { font-size: .78rem !important; color: #9ca3af !important; }

/* ========== 相关推荐 ========== */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 14px; padding: 16px 14px;
  text-align: center; transition: all .2s;
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.related-icon { font-size: 1.5rem; margin-bottom: 6px; }
.related-card b { display: block; font-size: .9rem; margin-bottom: 3px; }
.related-card span { font-size: .74rem; color: #9ca3af; }

/* ========== 分类页头部 ========== */
.cat-hero {
  background: linear-gradient(180deg, #fff, var(--bg)); padding: 44px 0 8px; text-align: center;
}
.cat-hero-icon { font-size: 2.6rem; margin-bottom: 10px; }
.cat-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.cat-hero p { color: var(--muted); font-size: .95rem; max-width: 560px; margin: 0 auto; }

.empty-state {
  background: #fff; border: 2px dashed #d1d5db; border-radius: var(--radius);
  padding: 60px 24px; text-align: center; color: var(--muted); margin-top: 30px;
}
.empty-icon { font-size: 2.6rem; margin-bottom: 12px; }
.empty-state h2 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: .88rem; margin-bottom: 18px; }

/* ========== 页脚 ========== */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 70px; padding: 48px 0 30px; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 30px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.footer-desc { line-height: 1.8; font-size: .84rem; max-width: 380px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; text-align: center; font-size: .78rem; color: #64748b; line-height: 2; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ========== 提示浮层 ========== */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 24px; border-radius: 99px;
  font-size: .88rem; opacity: 0; pointer-events: none; transition: all .3s; z-index: 99;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ========== 方案 C：珊瑚 · 温暖亲和 ========== */
body { background: var(--bg); }
.hero {
  background:
    radial-gradient(720px 360px at 88% -10%, #ffe1d4 0%, transparent 64%),
    radial-gradient(620px 360px at 8% 110%, #ffe4e6 0%, transparent 58%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
}
.hero-eyebrow, .pill { color: var(--primary); border-color: #ffd5cf; }
.cat-card, .test-card, .step-card, .quiz-card { border-color: rgba(225, 29, 72, .08); }
.cat-card:hover, .test-card:hover { box-shadow: var(--shadow-md); }
.card-icon, .icon-tile, .test-icon { background: #ffe4e6; color: #e11d48; }
.card-tag, .intro-chip { color: #be123c; background: #fff0ed; }
.section-alt { background: #fffdfb; }
.cat-hero { background: linear-gradient(180deg, #fffdfb, var(--bg)); }
.quiz-progress span, .dim-fill, .step-num, .unlock-badge { background: var(--grad); }
.quiz-card { box-shadow: var(--shadow-md); }
.result-desc { background: #fff0ed; color: #63313a; }
.result-badge { color: #be123c; background: #ffe4e6; }
.site-footer { background: #3d1f2a; }

.icon {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em;
  fill: currentColor; fill-opacity: .82; stroke: currentColor; stroke-width: 1.45;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 46px; height: 46px; }
.card-icon .icon, .cat-icon .icon, .cat-hero-icon .icon, .empty-icon .icon { fill-opacity: .9; }
.hero-eyebrow .icon, .intro-chip .icon, .btn .icon { fill-opacity: .9; }
.quiz-intro-icon { color: var(--primary); line-height: 1; }
.quiz-intro-icon .icon { width: 52px; height: 52px; }
.related-icon { color: var(--primary); line-height: 1; }
.related-icon .icon { width: 28px; height: 28px; }
.intro-chip { display: inline-flex; align-items: center; gap: 5px; }
.intro-chip .icon { width: 15px; height: 15px; }
.card-meta { display: flex; align-items: center; }
.card-meta .icon { width: 14px; height: 14px; margin-right: 3px; }
.btn .icon { width: 16px; height: 16px; }
.empty-icon, .cat-hero-icon { color: var(--primary); line-height: 1; }