:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --card-shadow: 0 10px 40px rgba(79, 70, 229, 0.08), 0 2px 8px rgba(0,0,0,0.03);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background-color: #fafbfc; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: #fafbfc;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; }
section[hidden] { display: none !important; }
.fade-in { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ 顶部导航 ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f1f5;
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.brand-name { font-size: 16px; font-weight: 700; color: var(--text-main); }
.nav-actions { display: flex; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  background: #fff; color: #4b5563;
  border: 1px solid var(--border); border-radius: 8px;
  transition: all .2s;
}
.nav-btn:hover { border-color: #c7d2fe; color: var(--primary); background: #eef2ff; }
.nav-btn svg { width: 14px; height: 14px; }

/* ============ 欢迎页 ============ */
.welcome-wrap { padding: 28px 16px 40px; position: relative; overflow: hidden; }
.welcome-container {
  position: relative;
  max-width: 800px; margin: 0 auto;
  background: linear-gradient(160deg, #f8fafc, #eef2ff, #f5f3ff);
  border-radius: 24px; padding: 22px;
  overflow: hidden;
}
.bg-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.bg-circle-1 { width: 420px; height: 420px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(99,102,241,.08) 0%, rgba(0,0,0,0) 70%); }
.bg-circle-2 { width: 380px; height: 380px; bottom: -140px; left: -120px; background: radial-gradient(circle, rgba(139,92,246,.07) 0%, rgba(0,0,0,0) 70%); }
.bg-circle-3 { width: 300px; height: 300px; top: 40%; left: 55%; background: radial-gradient(circle, rgba(59,130,246,.05) 0%, rgba(0,0,0,0) 70%); }
.welcome-card {
  position: relative;
  background: #fff; border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 40px 36px 36px;
}
.certification-badge {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: -40px -36px 26px;
  padding: 13px 12px;
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border-bottom: 1px solid #d1fae5;
  border-radius: 18px 18px 0 0;
  font-size: 13px; font-weight: 600; color: #059669;
}
.cert-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.hero-block {
  text-align: center;
  background: transparent;
  border-radius: 16px; padding: 6px 0 22px; margin-bottom: 22px;
}
.hero-title-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.icon-circle {
  width: 60px; height: 60px; border-radius: 17px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.hero-name { text-align: left; }
.hero-name h1 { font-size: 27px; font-weight: 800; color: var(--primary); letter-spacing: .5px; line-height: 1.2; }
.hero-name .hero-sub { font-size: 15px; font-weight: 600; color: #6d28d9; margin-top: 2px; letter-spacing: 2px; }
.hero-en { margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 13.5px; color: #9ca3af; letter-spacing: .8px; }
.hero-src { margin-top: 4px; font-size: 12px; color: #b0b7c3; letter-spacing: .4px; }
.features-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px;
  padding: 14px 12px; margin-bottom: 22px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 14px 8px;
  background: #fff; border: 1px solid #eef0f4; border-radius: 12px;
}
.f-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.f-icon svg { width: 20px; height: 20px; }
.f-icon.amber { background: #fef3c7; }
.f-icon.emerald { background: #d1fae5; }
.f-icon.blue { background: #dbeafe; }
.f-texts { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.feature-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #374151; }
.feature-desc { font-size: 11.5px; color: #9ca3af; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 14px;
  padding: 18px 10px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 6px 14px rgba(99,102,241,.28); }
.stat-icon.pink { background: linear-gradient(135deg, #f43f5e, #ec4899); box-shadow: 0 6px 14px rgba(236,72,153,.28); }
.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); box-shadow: 0 6px 14px rgba(59,130,246,.28); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--text-main); }
.stat-num small { font-size: 12.5px; font-weight: 600; color: #6b7280; margin-left: 2px; }
.stat-label { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 800; color: var(--text-main); margin-bottom: 14px; }
.sec-title .t-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #6366f1, #818cf8); }
.sec-title .t-icon svg { width: 15px; height: 15px; }
.about-text { font-size: 14px; color: #374151; line-height: 1.9; margin-bottom: 20px; }
.sub-panel { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.sub-title { font-size: 14.5px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.purpose-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.purpose-list li { display: flex; gap: 10px; font-size: 13.5px; color: #4b5563; line-height: 1.7; }
.purpose-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #818cf8; margin-top: 9px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.dim-tag { padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.dim-tag.c-amber  { background: #fef3c7; color: #92400e; }
.dim-tag.c-emerald{ background: #d1fae5; color: #065f46; }
.dim-tag.c-indigo { background: #e0e7ff; color: #3730a3; }
.dim-tag.c-blue   { background: #dbeafe; color: #1e40af; }
.dim-tag.c-pink   { background: #fce7f3; color: #9d174d; }
.dim-tag.c-red    { background: #fee2e2; color: #991b1b; }
.dim-tag.c-teal   { background: #ccfbf1; color: #115e59; }
.dim-tag.c-purple { background: #f3e8ff; color: #6b21a8; }
.dim-tag.c-lime   { background: #ecfccb; color: #3f6212; }
.dim-tag.c-slate  { background: #f1f5f9; color: #475569; }
.notice-panel {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 14px;
  padding: 22px 24px; margin: 24px 0 30px;
}
.notice-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: #b45309; margin-bottom: 14px; }
.notice-item { display: flex; gap: 12px; align-items: flex-start; }
.notice-item + .notice-item { margin-top: 11px; }
.notice-num {
  flex: none; width: 21px; height: 21px; border-radius: 7px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.notice-item p { font-size: 13.5px; color: #78350f; line-height: 1.7; }
.start-btn-row { text-align: center; }
.start-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 52px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff; font-size: 17.5px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(129,140,248,.3);
  transition: all .25s;
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(129,140,248,.42); }
.start-btn svg { width: 17px; height: 17px; }
.welcome-footer { text-align: center; padding: 30px 16px 36px; }
.footer-slogan { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; color: #6b7280; font-weight: 600; }
.footer-copy { margin-top: 5px; font-size: 11.5px; color: #c2c8d0; }

/* ============ 答题页 ============ */
.quiz-wrap { max-width: 660px; margin: 0 auto; padding: 22px 16px 60px; }
.quiz-progress-card {
  position: sticky; top: 61px; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border: 1px solid #f0f1f5; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.qp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.qp-left { font-size: 13.5px; font-weight: 700; color: var(--text-main); }
.qp-left small { font-weight: 500; color: #9ca3af; }
.qp-pct { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.qp-bar { height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.qp-bar-inner { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #818cf8, #a78bfa); transition: width .35s ease; }
.quiz-card {
  background: #fff; border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 34px 32px 28px;
}
.q-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.q-num {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(129,140,248,.3);
}
.q-meta .q-meta-top { font-size: 11.5px; color: #9ca3af; font-weight: 600; letter-spacing: 1px; }
.q-meta .q-factor { display: inline-block; margin-top: 3px; font-size: 11px; padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.q-text { font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1.6; margin-bottom: 24px; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 13px 16px; text-align: left;
  background: #fff; border: 1.5px solid var(--border); border-radius: 13px;
  font-size: 15px; color: #4b5563; font-weight: 500;
  transition: all .18s;
}
.option-btn:hover { border-color: #c7d2fe; background: #fafbff; }
.opt-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #f3f4f6; color: #6b7280;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.opt-check { margin-left: auto; width: 20px; height: 20px; color: var(--primary); opacity: 0; transform: scale(.6); transition: all .18s; }
.option-btn.selected { border-color: var(--primary-light); background: #eef2ff; color: #3730a3; font-weight: 700; }
.option-btn.selected .opt-num { background: linear-gradient(135deg, #818cf8, #a78bfa); color: #fff; }
.option-btn.selected .opt-check { opacity: 1; transform: scale(1); }
.quiz-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 26px; }
.btn-ghost {
  padding: 13px 18px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--border);
  font-size: 15px; font-weight: 600; color: #6b7280;
  transition: all .2s;
}
.btn-ghost:hover:not(:disabled) { border-color: #c7d2fe; color: var(--primary); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  padding: 13px 18px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(129,140,248,.3);
  transition: all .2s;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(129,140,248,.42); transform: translateY(-1px); }
.quiz-tip { text-align: center; margin-top: 16px; font-size: 11.5px; color: #c2c8d0; }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ============ 报告页 ============ */
.report-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 56px; }
.report-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  border-radius: 18px; padding: 34px 24px 30px;
  text-align: center; color: #fff;
  box-shadow: 0 14px 34px rgba(139,92,246,.3);
  margin-bottom: 22px;
}
.banner-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
}
.report-banner h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.report-banner .banner-time { margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.r-card {
  background: #fff; border-radius: 16px;
  border: 1px solid #f2f4f8;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  padding: 28px 26px; margin-bottom: 20px;
}
.r-card-title { text-align: center; font-size: 19px; font-weight: 800; color: var(--text-main); margin-bottom: 22px; }
.overview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ov-item { text-align: center; padding: 6px 4px; }
.ov-label { font-size: 13px; color: #6b7280; font-weight: 600; margin-bottom: 8px; }
.ov-score { font-size: 46px; font-weight: 800; line-height: 1.1; }
.ov-score-sub { margin-top: 6px; font-size: 11.5px; color: #c2c8d0; }
.ov-score-sub b { color: #9ca3af; }
.lv-pill {
  display: inline-block; padding: 8px 26px; border-radius: 999px;
  font-size: 19px; font-weight: 800; letter-spacing: 2px;
}
.ov-pill-sub { margin-top: 9px; font-size: 11.5px; color: #c2c8d0; }
.overview-note {
  background: #fffbeb; border-radius: 10px; padding: 13px 18px;
  font-size: 13px; color: #713f12; line-height: 1.8; text-align: center;
}
.legend-card {
  background: #f8fafc; border-radius: 14px;
  padding: 18px 16px 16px; margin-bottom: 16px;
}
.legend-title { text-align: center; font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 13px; }
.legend-items { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; align-items: center; gap: 11px 44px; }
.lg-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: #374151; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; }
.factor-table-wrap { border: 1px solid #e2e6ee; border-radius: 12px; overflow: hidden; }
.factor-table { width: 100%; border-collapse: collapse; }
.factor-table th {
  font-size: 12.5px; color: #8a919e; font-weight: 700;
  padding: 10px 8px; text-align: center; background: #f8fafc;
  border: 1px solid #edf0f5;
}
.factor-table th:first-child { text-align: left; padding-left: 14px; }
.factor-table td { padding: 11px 8px; text-align: center; font-size: 13.5px; color: #374151; border: 1px solid #edf0f5; }
.factor-table td:first-child { text-align: left; font-weight: 700; color: var(--text-main); font-size: 14px; padding-left: 14px; }
.ft-name { display: inline-flex; align-items: center; }
.ft-raw { font-weight: 500; }
.ft-avg { font-weight: 800; font-size: 14px; }
.fc-pill { display: inline-block; padding: 2.5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; }
.lv-normal   { color: #fff; background: #22c55e; }
.lv-mild     { color: #fff; background: #eebb2d; }
.lv-moderate { color: #fff; background: #f97316; }
.lv-severe   { color: #fff; background: #ef4444; }
.sc-normal   { color: #16a34a; }
.sc-mild     { color: #eab308; }
.sc-moderate { color: #f97316; }
.sc-severe   { color: #dc2626; }
.radar-box { display: flex; justify-content: center; position: relative; }
.radar-box svg { cursor: pointer; }
.radar-card { position: relative; }
.radar-pop {
  position: absolute; top: 58px; right: 12px; z-index: 30;
  background: #fff; border: 1.5px solid #c7d2fe; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(67, 56, 202, .16);
  padding: 11px 15px 8px; min-width: 180px;
  animation: fadeUp .22s ease both;
}
.radar-pop[hidden] { display: none !important; }
.rp-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #8a919e; margin-bottom: 5px; }
.rp-close { border: none; background: transparent; color: #c2c8d0; font-size: 17px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.rp-close:hover { color: #8a919e; }
.rp-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #374151; padding: 3.5px 0; }
.rp-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #818cf8; }
.rp-val { margin-left: auto; font-weight: 800; color: #111827; font-size: 13px; }
.detail-list { display: flex; flex-direction: column; gap: 16px; }
.detail-item { border: 1px solid #f1f5f9; border-radius: 14px; padding: 20px 22px 14px; background: #fff; }
.di-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.di-name-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.di-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.di-name { font-size: 15px; font-weight: 800; color: var(--text-main); }
.di-desc { font-size: 12px; color: #9ca3af; font-style: italic; }
.di-score-box { text-align: right; flex: none; }
.di-score { font-size: 20px; font-weight: 800; line-height: 1.2; }
.di-score-label { font-size: 10.5px; color: #c2c8d0; margin: 1px 0 5px; }
.di-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.di-col { background: #f8fafc; border-radius: 11px; padding: 14px 16px; }
.di-col-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-main); margin-bottom: 7px; }
.di-col-icon { flex: none; width: 21px; height: 21px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.di-col-icon.i-blue { background: #3b82f6; }
.di-col-icon.i-green { background: #10b981; }
.di-col-icon svg { width: 11px; height: 11px; }
.di-col p { font-size: 12.8px; color: #4b5563; line-height: 1.75; }
.di-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #f3f4f6; padding-top: 12px; }
.di-stat { text-align: center; }
.di-stat + .di-stat { border-left: 1px solid #f3f4f6; }
.ds-val { font-size: 15px; font-weight: 800; color: var(--text-main); }
.ds-label { font-size: 10.5px; color: #b0b7c3; margin-top: 2px; }
.after-card {
  background: linear-gradient(150deg, #fff7ed, #fffbeb);
  border: 1px solid #fed7aa; border-radius: 16px;
  padding: 28px 30px; margin-bottom: 20px;
}
.after-title { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 800; color: #7c2d12; margin-bottom: 18px; }
.after-subtitle { font-size: 15px; font-weight: 800; color: #431407; margin-bottom: 12px; }
.after-card p { font-size: 13.8px; color: #57534e; line-height: 1.95; margin-bottom: 12px; }
.hotline-box {
  background: rgba(255,255,255,.75); border-left: 3px solid #f59e0b;
  border-radius: 8px; padding: 13px 16px; margin: 16px 0 18px;
  font-size: 13.5px; color: #78350f; line-height: 1.8;
}
.hotline-num { color: #ea580c; font-weight: 800; font-size: 15px; }
.after-end { text-align: center; font-style: italic; color: #a8a29e; font-size: 13px; margin: 18px 0 0; }
.report-meta-card { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px; padding: 22px 20px; text-align: center; }
.rmeta-time { font-size: 13.5px; font-weight: 700; color: #4b5563; }
.rmeta-desc { margin-top: 7px; font-size: 11.5px; color: #b0b7c3; line-height: 1.7; }
.save-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 15px;
  padding: 11px 30px; border: none; border-radius: 10px;
  background: #3b82f6; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(59,130,246,.3);
  transition: all .2s;
}
.save-btn:hover { background: #2563eb; transform: translateY(-1px); }
.save-btn svg { width: 15px; height: 15px; }
.save-btn.busy { opacity: .85; cursor: wait; }
.save-btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.report-more { text-align: center; margin-top: 22px; font-size: 12.5px; color: #b0b7c3; }
.report-more a { color: #818cf8; font-weight: 600; text-decoration: underline; cursor: pointer; }
.report-more .re-again { margin-right: 14px; }

/* 微信保存图片遮罩层 */
.save-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: rgba(17, 24, 39, .94);
  display: flex; flex-direction: column;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  animation: fadeUp .3s ease both;
}
.save-overlay[hidden] { display: none !important; }
.so-tip { flex: none; text-align: center; color: #fff; font-size: 15.5px; font-weight: 800; padding: 6px 0 12px; }
.so-tip small { display: block; font-size: 12px; color: rgba(255,255,255,.66); font-weight: 400; margin-top: 4px; }
.so-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: center; }
.so-body img { max-width: 100%; width: 100%; border-radius: 10px; display: block; margin: 0 auto; }
.so-close {
  flex: none; margin: 12px auto 2px; padding: 11px 46px;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: 2px;
}
.so-close:active { background: rgba(255,255,255,.3); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(20px);
  background: rgba(17,24,39,.88); color: #fff; font-size: 13.5px;
  padding: 11px 22px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 999; max-width: 84vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 状态提示页（无效 / 已过期） ============ */
.state-wrap { max-width: 560px; margin: 0 auto; padding: 60px 18px; }
.state-card {
  background: #fff; border-radius: 20px; box-shadow: var(--card-shadow);
  padding: 48px 34px; text-align: center;
}
.state-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
}
.state-icon.warn { background: #fef3c7; color: #d97706; }
.state-icon.info { background: #fee2e2; color: #dc2626; }
.state-icon svg { width: 36px; height: 36px; }
.state-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.state-desc { font-size: 14px; color: #6b7280; line-height: 1.9; margin-bottom: 26px; }
.state-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 40px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(129,140,248,.3);
}
.state-meta { margin-top: 20px; font-size: 12px; color: #b0b7c3; }

/* loading 遮罩 */
#loadingMask {
  position: fixed; inset: 0; z-index: 999; background: rgba(255,255,255,.72);
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
#loadingMask.show { display: flex; }
.spinner { width: 42px; height: 42px; border: 3px solid #e0e7ff; border-top-color: #6366f1; border-radius: 50%; animation: spin 1s linear infinite; }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .welcome-wrap { padding: 18px 12px 32px; }
  .welcome-container { padding: 16px; }
  .welcome-card { padding: 20px 16px 26px; border-radius: 16px; }
  .certification-badge { margin: -20px -16px 20px; padding: 11px 10px; border-radius: 16px 16px 0 0; font-size: 12px; }
  .hero-block { padding: 2px 0 18px; margin-bottom: 18px; }
  .hero-title-row { gap: 13px; }
  .icon-circle { width: 54px; height: 54px; border-radius: 15px; }
  .icon-circle svg { width: 24px; height: 24px; }
  .hero-name h1 { font-size: 23px; }
  .hero-name .hero-sub { font-size: 13.5px; letter-spacing: 1.5px; }
  .hero-en { font-size: 12.5px; margin-top: 10px; }
  .hero-src { font-size: 11px; }
  .features-row { display: flex; flex-direction: column; gap: 10px; background: transparent; border: none; padding: 0; border-radius: 0; margin-bottom: 18px; }
  .feature-item { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 12px 14px; }
  .f-icon { width: 42px; height: 42px; flex: none; }
  .f-texts { align-items: flex-start; }
  .feature-title { font-size: 14.5px; }
  .feature-desc { font-size: 12px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 24px; }
  .stat-card { padding: 14px 4px 12px; border-radius: 12px; }
  .stat-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px; }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 10.5px; }
  .sec-title { font-size: 15.5px; }
  .sub-panel { padding: 16px 14px; margin-bottom: 14px; }
  .about-text { font-size: 13px; margin-bottom: 16px; }
  .notice-panel { padding: 16px 14px; margin: 18px 0 24px; }
  .start-btn { padding: 13px 40px; font-size: 16px; }
  .legend-items { gap: 10px 22px; }
  .factor-table th { padding: 9px 4px; font-size: 12px; }
  .factor-table th:first-child { padding-left: 10px; }
  .factor-table td { padding: 10px 4px; font-size: 13px; }
  .factor-table td:first-child { padding-left: 10px; font-size: 13.5px; }
  .factor-table .ft-avg { font-size: 13.5px; }
  .factor-table .fc-pill { font-size: 11px; padding: 2.5px 10px; }
  .radar-pop { top: 48px; right: 8px; min-width: 168px; padding: 9px 12px 7px; }
  .di-cols { grid-template-columns: 1fr; }
  .di-stats { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .di-stat:nth-child(3) { border-left: none; }
  .overview-row { grid-template-columns: 1fr; gap: 20px; }
  .quiz-nav { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 15px; }
  .navbar-inner { padding: 10px 14px; }
  .nav-btn { width: 42px; height: 40px; justify-content: center; padding: 0; border-radius: 10px; }
  .nav-btn span { display: none; }
}
@media print {
  .navbar, .save-btn, .report-more, .quiz-tip { display: none !important; }
  body { background: #fff; }
  .r-card, .report-banner, .after-card { box-shadow: none; }
}
