/* ============ 基础 ============ */
:root {
  --primary: #4a7dff;
  --primary-dark: #3a63cc;
  --teal: #2fb89a;
  --green: #2f9e44;
  --orange: #f0a020;
  --red: #e03131;
  --text: #2c3e50;
  --text-light: #7a8a99;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e6eaf0;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(30, 60, 120, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px; font-size: 16px; font-weight: 600;
  transition: all .2s; background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 40px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: #eef3ff; }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #27a88c; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ============ 头部 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--primary); }
.logo img { height: 34px; width: auto; }
.logo span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text-light); font-size: 15px; }
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 10px; }
.header-user .login-btn { padding: 7px 18px; border-radius: 50px; background: var(--primary); color: #fff; font-size: 14px; }
.header-user .register-btn { padding: 7px 18px; border-radius: 50px; border: 1px solid var(--primary); color: var(--primary); font-size: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* ============ 首页 Hero ============ */
.container-xl { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.hero {
  background: linear-gradient(135deg, #2242a6 0%, #4a7dff 48%, #7b5cff 100%);
  color: #fff; padding: 92px 0 132px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; bottom: -70px; left: -10%; right: -10%; height: 140px;
  background: var(--bg); border-radius: 50% 50% 0 0;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 360px; height: 360px; background: rgba(255,255,255,.18); top: -140px; left: -90px; }
.orb-2 { width: 280px; height: 280px; background: rgba(123,92,255,.6); bottom: -90px; right: -50px; }
.orb-3 { width: 210px; height: 210px; background: rgba(64,192,255,.4); top: 28%; right: 16%; }
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; padding: 8px 20px; border-radius: 50px; margin-bottom: 24px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  font-size: 13px; letter-spacing: 3px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: 46px; margin-bottom: 20px; letter-spacing: 2px; font-weight: 800; line-height: 1.2; }
.hero-desc { font-size: 18px; opacity: .95; max-width: 640px; margin: 0 auto; line-height: 1.8; }
.hero .badges { margin-top: 28px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .badge { background: rgba(255,255,255,.16); padding: 8px 18px; border-radius: 50px; font-size: 13px; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.18); }

/* ============ 测评卡片 ============ */
.section-title { font-size: 28px; font-weight: 800; margin: 60px 0 22px; text-align: center; letter-spacing: 1px; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 4px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
}
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 20px; }
.test-card {
  background: var(--card); border-radius: 20px; box-shadow: 0 8px 30px rgba(30,60,120,.10);
  padding: 34px 26px; text-align: center; transition: all .3s; display: block; position: relative; overflow: hidden;
}
.test-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--teal)); opacity: 0; transition: opacity .3s; }
.test-card:hover { transform: translateY(-8px); box-shadow: 0 18px 46px rgba(30,60,120,.18); }
.test-card:hover::before { opacity: 1; }
.test-card .icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.test-card h3 { font-size: 20px; margin-bottom: 8px; }
.test-card .sub { color: var(--text-light); font-size: 13px; margin-bottom: 12px; min-height: 20px; }
.test-card .meta { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.test-card .price { color: var(--red); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.test-card .price small { font-size: 13px; font-weight: 400; }
.test-card .go { display: inline-block; padding: 10px 30px; background: var(--primary); color: #fff; border-radius: 50px; font-size: 15px; font-weight: 600; transition: background .2s; }
.test-card .go:hover { background: var(--primary-dark); }

/* ============ 首页增强 ============ */
.hero-cta {
  display: inline-block; margin-top: 32px; padding: 16px 56px; border-radius: 50px;
  background: #fff; color: var(--primary); font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: all .22s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.26); }
.hero .hero-sub { margin-top: 18px; font-size: 14px; opacity: .85; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: -44px 0 0; position: relative; z-index: 5;
}
.stat-item {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 20px; box-shadow: 0 12px 40px rgba(30,60,120,.12);
  padding: 30px 16px; text-align: center; border: 1px solid rgba(255,255,255,.8);
}
.stat-num {
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #4a7dff, #7b5cff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.step { background: var(--card); border-radius: 18px; box-shadow: 0 8px 30px rgba(30,60,120,.08); padding: 30px 18px; text-align: center; transition: transform .25s; }
.step:hover { transform: translateY(-5px); }
.step-icon { font-size: 38px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-light); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.feature-card { background: var(--card); border-radius: 18px; box-shadow: 0 8px 30px rgba(30,60,120,.08); padding: 28px; transition: transform .25s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.faq { max-width: 800px; margin: 0 auto 20px; }
.faq-item { background: var(--card); border-radius: 16px; box-shadow: 0 8px 30px rgba(30,60,120,.08); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { padding: 18px 50px 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; font-size: 14px; color: var(--text-light); line-height: 1.8; }

.cta-section { background: linear-gradient(135deg, #2242a6, #4a7dff 55%, #7b5cff); color: #fff; border-radius: 24px; padding: 56px 24px; text-align: center; margin: 40px 0 40px; position: relative; overflow: hidden; }
.cta-section h2 { font-size: 28px; margin-bottom: 10px; }
.cta-section p { opacity: .92; margin-bottom: 26px; font-size: 16px; }
.cta-section .hero-cta { margin-top: 0; }
.cta-disclaimer { font-size: 12px; opacity: .75; margin-top: 22px; }

/* ============ 介绍页 ============ */
.page-head { background: linear-gradient(135deg, #5b8def, #4a7dff); color: #fff; padding: 40px 0; text-align: center; }
.page-head h1 { font-size: 26px; margin-bottom: 8px; }
.page-head .sub { opacity: .9; }
.content-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: -20px 0 30px; }
.content-card h2 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.content-card p { color: var(--text-light); white-space: pre-line; }
.content-card .notice { background: #f8fafc; border-left: 3px solid var(--primary); padding: 14px 16px; border-radius: 8px; font-size: 14px; }
.price-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 16px; }
.price-bar .price { font-size: 26px; color: var(--red); font-weight: 700; }

/* ============ 答题页 ============ */
.take-wrap { padding: 24px 0 90px; }
.take-progress { background: #fff; border-radius: 50px; padding: 10px 16px; box-shadow: var(--shadow); margin-bottom: 18px; position: sticky; top: 70px; z-index: 10; }
.take-progress .bar { height: 8px; background: var(--border); border-radius: 50px; overflow: hidden; margin-top: 8px; }
.take-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--primary)); border-radius: 50px; transition: width .3s; }
.question-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.question-card .q-no { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.question-card .q-text { font-size: 19px; font-weight: 600; margin-bottom: 22px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); cursor: pointer; transition: all .18s; font-size: 15px;
}
.option:hover { border-color: var(--primary); background: #f5f8ff; }
.option.selected { border-color: var(--primary); background: #eef3ff; }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.option.selected .dot { border-color: var(--primary); background: var(--primary); }
.option.selected .dot::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.take-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.take-nav .btn { min-width: 110px; }
.assess-overlay { position: fixed; inset: 0; background: linear-gradient(135deg, #5b8def, #4a7dff); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.assess-overlay .spinner { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.assess-overlay h2 { font-size: 22px; margin-bottom: 8px; }
.assess-overlay p { opacity: .9; }

/* ============ 结果页 ============ */
.result-wrap { padding: 30px 0 60px; }
.score-hero { background: linear-gradient(135deg, #5b8def, #4a7dff); color: #fff; border-radius: var(--radius); padding: 34px 24px; text-align: center; margin-bottom: 18px; }
.score-hero .score-num { font-size: 56px; font-weight: 800; line-height: 1; }
.score-hero .score-label { font-size: 20px; margin-top: 8px; font-weight: 600; }
.score-hero .level-tag { display: inline-block; margin-top: 12px; padding: 6px 20px; border-radius: 50px; background: rgba(255,255,255,.2); font-size: 15px; }
.result-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 18px; }
.result-card h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.result-card .bar { height: 10px; background: var(--border); border-radius: 50px; overflow: hidden; margin: 10px 0; }
.result-card .bar i { display: block; height: 100%; border-radius: 50px; }
.locked { position: relative; }
.locked .lock-content { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.5); border-radius: var(--radius); }
.lock-mask .lock-icon { font-size: 40px; margin-bottom: 8px; }
.lock-mask .txt { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.pay-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; text-align: center; }
.pay-card .price { font-size: 34px; color: var(--red); font-weight: 800; margin: 10px 0; }
.pay-card .hint { color: var(--text-light); font-size: 13px; margin-top: 10px; }

/* ============ 报告卡（可下载） ============ */
.report-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 600px; margin: 0 auto; }
.report-card .rc-head { text-align: center; border-bottom: 2px solid var(--primary); padding-bottom: 18px; margin-bottom: 20px; }
.report-card .rc-head h2 { color: var(--primary); }
.report-card .rc-score { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 16px 0; }
.report-card .rc-score .num { font-size: 60px; font-weight: 800; color: var(--primary); }
.report-card .rc-section { margin-bottom: 22px; }
.report-card .rc-section h4 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.report-card .rc-section p { font-size: 14px; color: var(--text-light); }
.report-card .rc-foot { text-align: center; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 20px; }
.report-card .rc-foot img { margin: 8px auto; }

/* ============ 表单 ============ */
.auth-wrap { max-width: 400px; margin: 40px auto; }
.auth-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-row .captcha-img { height: 46px; width: 120px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); }
.form-tip { text-align: center; font-size: 14px; color: var(--text-light); margin-top: 16px; }
.form-tip a { color: var(--primary); }
.auth-card .error-msg { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 8px; }

/* ============ 会员中心 ============ */
.center-tabs { display: flex; gap: 10px; margin: 20px 0; border-bottom: 1px solid var(--border); }
.center-tabs .tab { padding: 10px 18px; font-size: 15px; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; }
.center-tabs .tab.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.record-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.record-item .ri-info h4 { font-size: 16px; margin-bottom: 4px; }
.record-item .ri-info .time { font-size: 13px; color: var(--text-light); }

/* ============ 文章 ============ */
.article-list .article-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.article-item h3 { font-size: 18px; margin-bottom: 8px; }
.article-item h3 a:hover { color: var(--primary); }
.article-item .desc { color: var(--text-light); font-size: 14px; }
.article-detail { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.article-detail h1 { font-size: 24px; margin-bottom: 14px; }
.article-detail .content { color: #3d4d5e; line-height: 1.9; }
.article-detail .content p { margin-bottom: 14px; }
.article-detail .content h2, .article-detail .content h3 { margin: 20px 0 10px; }
.article-detail .content img { border-radius: 8px; margin: 10px 0; }

/* ============ 底部 ============ */
.footer { background: #1f2b3a; color: #9aa8b8; padding: 30px 0; margin-top: 40px; font-size: 13px; }
.footer .container { text-align: center; }
.footer .links { margin-bottom: 10px; }
.footer .links a { margin: 0 10px; }
.footer .links a:hover { color: #fff; }

/* ============ 弹窗 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: var(--radius); padding: 28px; width: 90%; max-width: 380px; text-align: center; }
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--text-light); font-size: 14px; margin-bottom: 18px; }
.modal .m-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============ 提示 ============ */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 10px 22px; border-radius: 50px; z-index: 999; font-size: 14px; animation: fadeIn .2s; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .test-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 64px 0 100px; }
  .hero h1 { font-size: 30px; }
  .header .nav { display: none; }
  .container-wide { padding: 0 12px; }
  .container-xl { padding: 0 14px; }
  .score-hero .score-num { font-size: 46px; }
  .section-title { font-size: 24px; margin-top: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features { grid-template-columns: 1fr; }
}
