/* ============ 基础 ============ */
:root {
  --blue: #2a78d6;
  --blue-dark: #1c5cab;
  --blue-deep: #0d366b;
  --blue-pale: #eaf2fc;
  --amber: #eda100;
  --ink: #0b0b0b;
  --ink2: #52514e;
  --muted: #6f716d;   /* 审核修复：白底对比度 ≥4.5:1 */
  --line: #e1e0d9;
  --bg: #f9f9f7;
  --surface: #ffffff;
  --green: #0ca30c;
  --red: #d03b3b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(11,11,11,.06), 0 8px 24px rgba(11,11,11,.07);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

/* ---- 全局键盘焦点（审核修复02）---- */
:focus-visible { outline: 3px solid rgba(42,120,214,.65); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 3px; }
.hero :focus-visible, .cta-final :focus-visible { outline-color: rgba(255,255,255,.9); }
.opt:has(input:focus-visible), .likert-btn:has(input:focus-visible) {
  outline: 3px solid rgba(42,120,214,.65); outline-offset: 2px; }
.opt input:focus-visible + .opt-box { box-shadow: 0 0 0 3px rgba(42,120,214,.45); }
.likert-btn input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42,120,214,.45); }

/* 读屏专用文本 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--blue-dark); text-decoration: none; }  /* 审核修复06：小字链接用深蓝 */
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; }
.m-only { display: none; }
@media (max-width: 640px) { .m-only { display: inline; } }

/* ============ 按钮 ============ */
.btn { display: inline-block; border: 0; cursor: pointer; font-family: inherit; font-size: 16px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; transition: all .15s; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: #b9cfe9; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: var(--blue-pale); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn-danger:hover { background: #fdf1f1; }

/* ============ 页头页脚 ============ */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); min-width: 0; }
.brand-logo { width: 58px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1; }
.brand-name { color: #34383d; font-size: 17px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.brand-tagline { color: #076af0; font-size: 9px; font-weight: 700; letter-spacing: .16em; margin-top: 5px; white-space: nowrap; }
.brand-login { justify-content: center; margin-bottom: 8px; }
.login-admin-label { text-align: center; color: var(--ink2); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
@media (max-width: 560px) {
  .brand { gap: 7px; }
  .brand-logo { width: 48px; height: 29px; }
  .brand-name { font-size: 15px; letter-spacing: .04em; }
  .brand-tagline { font-size: 8px; letter-spacing: .09em; margin-top: 4px; }
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 9px; }
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }
.site-nav .m-cta { display: none; }
/* 审核修复07：移动导航保留家长/学生两个分流入口 */
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .d-cta { display: none; }
  .site-nav .m-cta { display: inline-block; padding: 8px 14px; font-size: 14px; }
  .site-nav .m-cta-ghost { background: var(--blue-pale); color: var(--blue-dark); }
}

.site-footer { background: #10233f; color: #b6c4d8; padding: 36px 0 44px; margin-top: 0; }
.footer-brand { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-legal { font-size: 13px; line-height: 1.8; opacity: .85; margin-bottom: 8px; max-width: 780px; }
.footer-contact { font-size: 14px; margin-top: 14px; }
.footer-icp { margin-top: 10px; font-size: 13px; }
.footer-icp a { color: #b6c4d8; }

/* ============ 首页 ============ */
.hero { background: linear-gradient(160deg, #0d366b 0%, #1c5cab 55%, #2a78d6 100%); color: #fff;
  padding: 72px 0 80px; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.25; margin-bottom: 18px; letter-spacing: 1px; }
.hero-sub { font-size: clamp(15px, 2.4vw, 18px); opacity: .92; margin-bottom: 32px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; opacity: .8; }
.hero-anchors { margin-top: 26px; display: none; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-anchors a { color: #fff; font-size: 13.5px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 6px 14px; }
@media (max-width: 760px) { .hero-anchors { display: flex; } }

.section { padding: 64px 0; }
.section-alt { background: #f1f4f8; }
@media (max-width: 640px) { .section { padding: 40px 0; } .hero { padding: 52px 0 56px; } }
.section-title { font-size: clamp(24px, 3.6vw, 32px); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--ink2); margin-bottom: 40px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .cards-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.card-icon { color: var(--blue); margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--ink2); font-size: 15px; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: -.16em; }
.icon-card { color: var(--blue); }
.icon-list-check { position: absolute; left: 0; top: .8em; color: var(--green); }
.icon-success { display: block; color: var(--green); margin: 0 auto; }
.icon-inline { margin-left: 4px; }

.steps { list-style: none; counter-reset: step; max-width: 640px; margin: 0 auto; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 62px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center; font-size: 17px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 2px; background: #c9d8ec; }
.steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--ink2); font-size: 15px; }

.report-flex { display: flex; gap: 40px; align-items: center; max-width: 880px; margin: 0 auto; }
.report-preview { flex: 0 0 320px; }
.report-preview svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(13,54,107,.12)); }
.report-preview-cap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.report-list { list-style: none; flex: 1; }
.report-list li { padding: 9px 0 9px 26px; position: relative; font-size: 15px; color: var(--ink2);
  border-bottom: 1px dashed #eceae4; }
.report-list .icon-list-check { left: 2px; }
.report-list b { color: var(--blue-deep); }
@media (max-width: 760px) { .report-flex { flex-direction: column; gap: 18px; } .report-preview { flex: none; width: 240px; } }
.report-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* 信任证据区（审核建议05） */
.trust-flex { display: flex; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .trust-flex { flex-direction: column; } }
.trust-card { flex: 1.2; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; display: flex; gap: 20px; align-items: flex-start; }
.trust-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 28%;
  flex-shrink: 0; border: 4px solid var(--blue-pale); box-shadow: 0 8px 24px rgba(13,54,107,.13); }
.trust-profile { min-width: 0; }
.trust-card h3 { font-size: 18px; margin-bottom: 2px; }
.trust-role { font-size: 13px; color: var(--blue-dark); font-weight: 600; margin-bottom: 10px; }
.trust-card p { color: var(--ink2); font-size: 14.5px; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.trust-tags span { padding: 4px 9px; border-radius: 999px; background: var(--blue-pale);
  color: var(--blue-dark); font-size: 12px; font-weight: 600; }
.trust-points { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.trust-point { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.trust-point b { display: block; color: var(--blue-deep); margin-bottom: 3px; font-size: 15px; }
.trust-point span { color: var(--ink2); font-size: 13.5px; }
@media (max-width: 560px) {
  .trust-card { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .trust-avatar { align-self: center; width: 128px; height: 128px; }
  .trust-card h3, .trust-role { text-align: center; }
}

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
/* 手机端套餐改为横滑卡片，大幅缩短页面长度（审核建议09） */
@media (max-width: 560px) {
  .pricing { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding: 14px 4px 18px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
  .price-card { flex: 0 0 78%; scroll-snap-align: center; }
  .pricing::after { content: ""; flex: 0 0 2px; }
}
.price-card { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; }
.price-card h3 { font-size: 17px; margin-bottom: 8px; }
.price { font-size: 32px; font-weight: 800; color: var(--blue-deep); margin-bottom: 14px; }
.price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; flex: 1; }
.price-card li { font-size: 14.5px; color: var(--ink2); padding: 5px 0 5px 22px; position: relative; }
.price-tag { margin-top: 12px; font-size: 13px; color: var(--amber); font-weight: 600; }
.price-hot { outline: 2.5px solid var(--blue); }
.hot-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue);
  color: #fff; font-size: 13px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--muted); font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 20px 18px; color: var(--ink2); font-size: 15px; }

.cta-final { background: linear-gradient(160deg, #1c5cab, #0d366b); color: #fff; text-align: center; }
.cta-final h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 12px; }
.cta-final p { opacity: .9; margin-bottom: 28px; }
.cta-wechat { margin-top: 22px; font-size: 15px; }

/* ============ 问卷 ============ */
.survey-body { background: #f1f4f8; }
.survey-wrap { padding: 28px 16px 60px; }
.survey-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
@media (max-width: 560px) { .survey-card { padding: 24px 18px; border-radius: 12px; } }
.survey-title { font-size: 26px; margin-bottom: 6px; }
.survey-subtitle { color: var(--ink2); margin-bottom: 22px; }
.consent-box { background: var(--blue-pale); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.consent-box h2 { font-size: 16px; margin-bottom: 10px; color: var(--blue-deep); }
.consent-box ul { padding-left: 20px; }
.consent-box li { font-size: 14.5px; color: var(--ink2); margin-bottom: 8px; }
.consent-decline { background: #fff7e8; border: 1px solid #f3ddb0; border-radius: 10px; padding: 14px 16px;
  margin-top: 16px; font-size: 14.5px; }
.draft-hint { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--green); }

.progress-bar-wrap { position: sticky; top: 60px; z-index: 40; background: rgba(241,244,248,.95);
  backdrop-filter: blur(6px); padding: 10px 2px 12px; margin-bottom: 14px; }
.progress-info { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; }
.progress-track { height: 6px; background: #dde4ee; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  border-radius: 999px; transition: width .3s; }
.draft-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.sec-title { font-size: 20px; margin-bottom: 6px; color: var(--blue-deep); }
.sec-desc { color: var(--ink2); font-size: 14.5px; margin-bottom: 18px; background: var(--blue-pale);
  padding: 10px 14px; border-radius: 10px; }

.question { padding: 18px 0; border-bottom: 1px solid #f0efec; }
.question:last-of-type { border-bottom: 0; }
.q-text { font-weight: 600; margin-bottom: 12px; font-size: 15.5px; }
.q-num { display: inline-flex; min-width: 22px; height: 22px; border-radius: 6px; background: var(--blue-pale);
  color: var(--blue-dark); font-size: 13px; align-items: center; justify-content: center; margin-right: 8px;
  font-weight: 700; padding: 0 5px; vertical-align: 1px; }
.q-optional { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 8px;
  border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.q-limit { font-size: 12.5px; color: var(--amber); font-weight: 500; margin-left: 8px; }
.q-error { color: var(--red); font-size: 13.5px; margin-top: 8px; }
.question.has-error { background: #fdf6f6; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }

.note-box { background: #fff7e8; border: 1px solid #f3ddb0; border-radius: 10px; padding: 12px 16px;
  font-size: 14.5px; color: #6b4e0e; }
.q-note { border-bottom: 0; padding: 10px 0; }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: all .12s; font-size: 15px; background: #fff; }
.opt:hover { border-color: #b9cfe9; }
.opt input { position: absolute; opacity: 0; }
.opt-box { width: 20px; height: 20px; border: 2px solid #c3c2b7; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px; position: relative; transition: all .12s; }
.opt input[type="checkbox"] + .opt-box { border-radius: 6px; }
.opt input:checked + .opt-box { border-color: var(--blue); background: var(--blue); }
.opt input:checked + .opt-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px;
  height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.opt-label { flex: 1; }
.opt-extra { margin: 2px 0 4px 30px; }
.opt-extra, .text-input { width: calc(100% - 0px); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 15px; font-family: inherit; background: #fff; }
.opt-extra { width: calc(100% - 30px); }
.opt-extra:focus, .text-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,120,214,.12); }
textarea.text-input { resize: vertical; min-height: 84px; }

.likert { display: flex; align-items: center; gap: 10px; }
.likert-anchor { font-size: 12px; color: var(--muted); width: 74px; flex-shrink: 0; line-height: 1.4; }
.likert-anchor:last-child { text-align: right; }
.likert-btns { display: flex; gap: 8px; flex: 1; justify-content: center; }
.likert-btn { cursor: pointer; }
.likert-btn input { position: absolute; opacity: 0; }
.likert-btn span { display: flex; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  align-items: center; justify-content: center; font-size: 15px; color: var(--ink2); transition: all .12s; background: #fff; }
.likert-btn:hover span { border-color: var(--blue); }
.likert-btn input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
@media (max-width: 480px) {
  .likert { flex-direction: column; align-items: stretch; gap: 6px; }
  .likert-anchor { width: auto; display: flex; justify-content: space-between; }
  .likert .likert-anchor:first-child::after { content: ""; }
  .likert-btn span { width: 44px; height: 44px; }
}

.matrix-anchors { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.matrix-scale { display: flex; flex-direction: column; gap: 10px; }
.ms-row { display: flex; align-items: center; gap: 12px; }
.ms-label { width: 44px; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.ms-row .likert-btns { justify-content: flex-start; }
.ms-row .likert-btn span { width: 38px; height: 38px; }
@media (max-width: 480px) { .ms-row .likert-btn span { width: 40px; height: 40px; } .ms-row { gap: 8px; } }

.matrix-input { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mi-head, .mi-row { display: grid; grid-template-columns: 64px repeat(var(--mi-cols, 2), 1fr); gap: 8px;
  align-items: center; padding: 8px 10px; }
.mi-head { background: #f5f7fa; font-size: 13px; color: var(--ink2); font-weight: 600; }
.mi-row { border-top: 1px solid #f0efec; }
.mi-label { font-size: 14.5px; font-weight: 600; }
.mi-row input { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px;
  width: 100%; font-family: inherit; }
.mi-row input:focus { outline: none; border-color: var(--blue); }

.opts-rank { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.rank-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px;
  font-size: 14.5px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
  transition: all .12s; color: var(--ink); }
.rank-chip:hover { border-color: #b9cfe9; }
.rank-chip.on { border-color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.rank-badge { display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 13px; align-items: center; justify-content: center; font-weight: 700; }
.rank-chip.on .rank-badge { display: inline-flex; }

.step-actions { display: flex; gap: 12px; margin-top: 26px; }
.step-actions .btn { flex: 1; }
.step-actions .btn-prev { flex: 0 0 30%; }

.submit-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.85); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--blue-pale); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 成功页 ============ */
.success-wrap { padding: 40px 16px 70px; }
.success-card { text-align: center; }
.success-icon { margin-bottom: 14px; }
.success-card h1 { font-size: 24px; margin-bottom: 10px; }
.success-lead { color: var(--ink2); margin-bottom: 22px; }
.next-steps { list-style: none; counter-reset: ns; text-align: left; max-width: 460px; margin: 0 auto; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 22px 48px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--blue-pale); color: var(--blue-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.next-steps b { display: block; margin-bottom: 3px; }
.next-steps span { color: var(--ink2); font-size: 14.5px; display: block; }
.wechat-id { color: var(--blue-deep); font-size: 17px; }
.btn-copy { border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 7px;
  padding: 3px 12px; font-size: 13px; cursor: pointer; margin-left: 8px; font-family: inherit; }
.wechat-qr { width: 170px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; display: block; }
.next-steps .wechat-qr { margin-left: 0; }
.qr-hint { font-size: 13px; color: var(--muted); }
.success-note { margin-top: 18px; font-size: 14px; color: var(--ink2); background: var(--blue-pale);
  border-radius: 10px; padding: 12px 16px; }
.next-steps-simple { text-align: left; max-width: 440px; margin: 0 auto; color: var(--ink2); font-size: 15px; }
.next-steps-simple p { margin-bottom: 10px; }
.success-card .wechat-qr { margin: 10px auto 0; }

/* ============ 管理后台 ============ */
.admin-body { background: #f4f5f7; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-header-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { color: var(--ink2); font-size: 14.5px; padding: 7px 13px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.admin-nav a:hover { background: #f1f4f8; }
.admin-nav a.active { background: var(--blue-pale); color: var(--blue-dark); font-weight: 600; }
.admin-main { max-width: 1160px; margin: 0 auto; padding: 28px 20px 70px; }
.admin-title { font-size: 24px; margin-bottom: 20px; }
@media (max-width: 700px) { .admin-header-inner { height: auto; padding: 10px 14px; flex-direction: column; align-items: flex-start; } }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-tile { background: #fff; border-radius: 12px; padding: 18px 16px; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat-label { font-size: 13.5px; color: var(--muted); }
.stat-attn .stat-num { color: var(--blue); }
.stat-warn .stat-num { color: var(--red); }

.chart-card { background: #fcfcfb; border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.chart-card h2 { font-size: 15.5px; color: var(--ink2); margin-bottom: 14px; font-weight: 600; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-empty { color: var(--muted); font-size: 14px; }
.export-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.export-hint { font-size: 13px; color: var(--muted); }

.filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 12px;
  font-size: 14.5px; font-family: inherit; background: #fff; }
.filter-bar input[type="search"] { flex: 1; min-width: 160px; }

.table-wrap { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.data-table th { text-align: left; padding: 12px 14px; background: #f5f7fa; color: var(--ink2); font-size: 13px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #f0efec; }
.data-table tr:hover td { background: #f8fafd; }
.td-time { color: var(--ink2); font-size: 13.5px; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge-parent { background: var(--blue-pale); color: var(--blue-dark); }
.badge-student { background: #eef7ee; color: #0a7a0a; }
.paired { color: var(--green); font-weight: 600; font-size: 13px; }
.unpaired { color: var(--muted); font-size: 13px; }
.status { font-size: 13px; }

.detail-head { margin-bottom: 16px; }
.back-link { font-size: 14px; display: inline-block; margin-bottom: 10px; }
.detail-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.status-bar { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.status-bar select { border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: inherit; }
.status-bar input { flex: 1; min-width: 200px; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 7px 12px; font-family: inherit; font-size: 14px; }

.score-panel { background: #fcfcfb; border-radius: 12px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.score-panel > h2 { font-size: 16px; margin-bottom: 14px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .score-grid { grid-template-columns: 1fr; } }
.score-block h3 { font-size: 14.5px; color: var(--ink2); margin: 12px 0 8px; }
.score-block svg { max-width: 280px; display: block; margin: 0 auto; }
.score-list { list-style: none; }
.score-list li { padding: 6px 0; border-bottom: 1px dashed #eceae4; font-size: 14.5px; }
.score-list li span { display: block; color: var(--muted); font-size: 13px; }
.drive-band { font-size: 14px; color: var(--ink2); background: var(--blue-pale); border-radius: 8px; padding: 8px 12px; }

.answers-panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px 22px 20px; }
.ans-sec { font-size: 15px; color: var(--blue-deep); margin: 20px 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--blue-pale); }
.ans-item { padding: 10px 0; border-bottom: 1px solid #f5f4f0; }
.ans-item dt { font-size: 13.5px; color: var(--muted); margin-bottom: 3px; }
.ans-item dd { font-size: 15px; }
.ans-empty dd .muted { color: #c3c2b7; }
.ans-matrix { display: flex; flex-wrap: wrap; gap: 8px; }
.am-cell { background: #f5f7fa; border-radius: 7px; padding: 3px 10px; font-size: 13.5px; }
.am-cell b { color: var(--blue-dark); }
.ans-table { border-collapse: collapse; font-size: 13.5px; margin-top: 4px; }
.ans-table th, .ans-table td { border: 1px solid #eceae4; padding: 4px 10px; text-align: left; }
.ans-table th { background: #f5f7fa; font-weight: 600; }
.rank-tag { display: inline-block; background: var(--blue-pale); color: var(--blue-dark); border-radius: 7px;
  padding: 2px 10px; margin: 2px 6px 2px 0; font-size: 13.5px; }
.extra-note { color: var(--ink2); }
.danger-zone { margin-top: 22px; text-align: right; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-col { display: flex; flex-direction: column; gap: 20px; }
.settings-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 22px; }
.settings-card h2 { font-size: 16px; margin-bottom: 14px; }
.settings-card label { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.settings-card .text-input { margin-top: 4px; }
.settings-hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.setup-banner { background: #fff7e8; border: 1.5px solid #f3ddb0; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px; font-size: 14.5px; }
.setup-banner b { color: #8a5d00; }
.setup-banner ul { margin: 8px 0 12px 20px; color: #6b4e0e; }
.setup-banner li { margin: 3px 0; }

.alert { border-radius: 10px; padding: 11px 16px; font-size: 14.5px; margin-bottom: 16px; }
.alert-ok { background: #eef7ee; color: #0a7a0a; }
.alert-error { background: #fdf1f1; color: var(--red); }

/* ============ 微动效（轻量、可关闭） ============ */
/* 仅当 JS 可用时元素才先隐藏（渐进增强）；系统开启"减少动态"时全部禁用 */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .rv { opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease; }
  html.js-anim .rv.in { opacity: 1; transform: none; }

  /* 首屏内容进场 */
  .hero .container > * { animation: rise .55s ease both; }
  .hero .container > *:nth-child(2) { animation-delay: .07s; }
  .hero .container > *:nth-child(3) { animation-delay: .14s; }
  .hero .container > *:nth-child(4) { animation-delay: .21s; }
  .hero .container > *:nth-child(5) { animation-delay: .28s; }
  .hero .container > *:nth-child(6) { animation-delay: .34s; }

  /* 问卷步骤切换 */
  .step:not([hidden]) .survey-card { animation: rise .32s ease; }

  /* 成功页对勾描画 */
  .success-icon circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease forwards; }
  .success-icon path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .55s ease .45s forwards; }

  /* 点按反馈 */
  .btn:active, .opt:active, .rank-chip:active { transform: scale(.98); }
  .likert-btn:active span { transform: scale(.9); }

  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 36px 32px; width: 100%; max-width: 380px; }

/* ============ 问卷管理 ============ */
.qm-survey { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 24px; }
.qm-survey-title { font-size: 18px; margin-bottom: 6px; }
.qm-count { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.qm-section { margin-top: 16px; }
.qm-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0 8px; border-bottom: 2px solid var(--blue-pale); }
.qm-add { display: flex; gap: 8px; align-items: center; }
.qm-add select { border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 8px; font-family: inherit; font-size: 13.5px; }
.qm-table { width: 100%; border-collapse: collapse; }
.qm-table td { padding: 8px 6px; border-bottom: 1px solid #f5f4f0; font-size: 14px; vertical-align: middle; }
.qm-id { color: var(--muted); font-size: 12.5px; width: 44px; white-space: nowrap; }
.qm-id-big { color: var(--blue-dark); }
.qm-type { color: var(--ink2); font-size: 12.5px; width: 74px; white-space: nowrap; }
.qm-text { line-height: 1.5; }
.qm-flag { display: inline-block; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 7px; margin-left: 6px; white-space: nowrap; }
.qm-flag-blue { color: var(--blue-dark); border-color: #b9cfe9; }
.qm-actions { white-space: nowrap; text-align: right; width: 190px; }
.qm-actions form { display: inline-block; }
.qm-mini { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px;
  cursor: pointer; font-size: 13px; color: var(--ink2); margin-left: 4px; }
.qm-mini:hover { border-color: var(--blue); color: var(--blue); }
.qm-del:hover { border-color: var(--red); color: var(--red); }
/* 审核修复04：700px 以下问卷管理改纵向卡片，触控目标 ≥44px */
@media (max-width: 700px) {
  .qm-table, .qm-table tbody { display: block; }
  .qm-table tr { display: block; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px 12px; margin: 10px 0; }
  .qm-table td { display: block; border-bottom: 0; padding: 0; width: auto; }
  .qm-id, .qm-type { display: inline-block; padding: 0 8px 4px 0; }
  .qm-text { padding: 2px 0 8px; }
  .qm-actions { text-align: left; border-top: 1px dashed #eceae4; padding-top: 10px; }
  .qm-actions .btn-sm { padding: 11px 18px; font-size: 15px; }
  .qm-mini { width: 44px; height: 44px; font-size: 16px; margin-left: 6px; }
}
