@import url("../foundation/src/tokens/tokens.css");
@import url("../foundation/src/navigation/navigation.css");
@import url("../foundation/src/question-bank/question-bank.css");
@import url("../foundation/src/vip-question-bank/vip-question-bank.css");

:root {
  --orange: #ff5a1f;
  --orange-soft: #fff4ef;
  --ink: #222222;
  --text: #333;
  --muted: #888;
  --line: #eeeeee;
  --blue: #4ca7ce;
  --green: #1fc48d;
  --red: #f05252;
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #eef0f3; }
body { min-width: 320px; }
button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }

.demo-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.phone { position: relative; width: min(390px, 100vw); height: min(844px, calc(100vh - 48px)); min-height: 680px; overflow: hidden; border: 1px solid #ddd; border-radius: 28px; background: #fff; box-shadow: 0 24px 72px rgb(25 30 38 / 18%); }
#app, .app-screen { width: 100%; height: 100%; }
.app-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; }

.status-bar { height: 44px; display: flex; align-items: flex-end; justify-content: space-between; flex: 0 0 auto; padding: 0 26px 8px; background: #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.status-bar strong { font-size: 16px; line-height: 20px; font-weight: 650; }
.status-icons { display: flex; align-items: center; gap: 8px; height: 18px; }
.signal { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.signal i { display: block; width: 3px; border-radius: 2px; background: #000; }
.signal i:nth-child(1) { height: 5px; }
.signal i:nth-child(2) { height: 8px; }
.signal i:nth-child(3) { height: 11px; }
.signal i:nth-child(4) { height: 13px; }
.wifi { position: relative; width: 17px; height: 13px; overflow: hidden; }
.wifi::before, .wifi::after { content: ""; position: absolute; left: 50%; border: 2px solid #000; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateX(-50%) rotate(45deg); }
.wifi::before { top: 1px; width: 14px; height: 14px; }
.wifi::after { top: 6px; width: 6px; height: 6px; }
.battery { position: relative; width: 25px; height: 13px; display: grid; place-items: center; border: 1.4px solid #aaa; border-radius: 4px; font-style: normal; }
.battery::after { content: ""; position: absolute; right: -3px; width: 2px; height: 6px; border-radius: 0 2px 2px 0; background: #aaa; }
.battery b { position: absolute; inset: 0 5px 0 0; border-radius: 3px; background: #000; }
.battery em { z-index: 1; color: #fff; font-size: 9px; line-height: 1; font-style: normal; }

.page-nav { height: 54px; display: grid; grid-template-columns: 50px minmax(0, 1fr) 76px; align-items: center; flex: 0 0 auto; padding: 0 10px; border-bottom: 1px solid var(--line); background: #fff; }
.page-nav h1 { overflow: hidden; margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 26px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.nav-back { width: 40px; height: 44px; display: grid; place-items: center; }
.nav-right { display: flex; justify-content: flex-end; white-space: nowrap; }
.paper-settings-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; }
.paper-settings-button:active { background: #f6f6f6; }
.paper-settings-button img { width: 24px; height: 24px; display: block; object-fit: contain; }
.chevron { display: inline-block; width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.chevron-left { transform: rotate(-135deg); }
.chevron-right { transform: rotate(45deg); }

/* 图二、三：历年试卷列表 */
.paper-list-scroll { min-height: 0; flex: 1; overflow-y: auto; padding-bottom: 28px; background: #fff; }
.paper-hero { height: 160px; position: relative; display: flex; align-items: flex-start; justify-content: space-between; overflow: hidden; padding: 27px 14px 10px; }
.paper-hero-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.year-section { padding: 12px 25px 22px; }
.year-section + .year-section { margin-top: 13px; }
.year-section h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 20px; font-size: 17px; font-weight: 500; }
.year-section h2 i { width: 3px; height: 19px; background: var(--orange); }
.unit-list { display: flex; flex-direction: column; gap: 22px; }
.unit-row { min-height: 34px; display: grid; grid-template-columns: 59px 1fr 45px 53px; align-items: center; column-gap: 5px; }
.unit-name { color: #666; font-size: 12px; white-space: nowrap; }
.unit-score { color: #263143; font-size: 14px; white-space: nowrap; }
.unit-score b { color: var(--orange); font-weight: 500; }
.unit-row button { color: var(--orange); font-size: 12px; white-space: nowrap; }
.unit-row .practice-pill { height: 25px; border: 1px solid var(--orange); border-radius: 14px; line-height: 23px; }

/* 图四、五、六：试卷作答 */
.exam-scroll, .analysis-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 0 32px 20px; }
.question-body { padding-top: 2px; }
.question-type { color: var(--blue); font-size: 17px; line-height: 42px; }
.question-divider { height: 1px; background: var(--line); }
.question-body h2 { margin: 20px 0 16px; color: #111820; font-size: 17px; font-weight: 500; line-height: 1.55; }
.options { display: flex; flex-direction: column; }
.option { min-height: 49px; display: grid; grid-template-columns: 32px 28px minmax(0, 1fr); align-items: center; color: #333; text-align: left; }
.option .radio { width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #eee; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.option b { font-size: 17px; font-weight: 400; }
.option em { overflow-wrap: anywhere; font-size: 17px; font-style: normal; line-height: 1.45; }
.option.selected .radio { border-color: #42a5cf; background: #42a5cf; }
.option.correct .radio { border-color: var(--green); background: var(--green); }
.question-footer { height: 88px; display: grid; grid-template-columns: repeat(3, 1fr); flex: 0 0 auto; border-top: 1px solid var(--line); background: #fff; }
.question-footer button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 16px; }
.question-footer button > span:not(.chevron) { line-height: 17px; }
.question-footer .chevron { width: 16px; height: 16px; }
.question-footer b { font-size: 14px; font-weight: 400; line-height: 17px; }

.modal-layer { position: absolute; z-index: 20; top: 44px; right: 0; bottom: 0; left: 0; display: grid; place-items: center; background: rgb(0 0 0 / 69%); }
.alert-dialog { position: relative; width: 300px; overflow: hidden; border-radius: 15px; background: #fff; }
.alert-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #999; font-size: 25px; font-weight: 300; line-height: 1; }
.alert-close:active { background: #f5f5f5; }
.alert-copy { min-height: 123px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px 21px; text-align: center; }
.alert-copy h2 { margin: 0 0 13px; color: #333; font-size: 18px; font-weight: 600; }
.alert-copy p { margin: 0; color: #6d6d6d; font-size: 15px; line-height: 1.5; }
.alert-actions { height: 51px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #eee; }
.alert-actions.single { grid-template-columns: 1fr; }
.alert-actions button { border-right: 1px solid #eee; color: #333; font-size: 17px; }
.alert-actions button:last-child { border-right: 0; }
.alert-actions button.primary { color: var(--orange); }

/* 图七：答题卡 */
.answer-card-layer { place-items: end stretch; }
.answer-card-sheet { width: 100%; max-height: 636px; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; }
.answer-card-sheet header { height: 60px; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 0 19px 0 26px; border-bottom: 1px solid #eee; }
.answer-card-sheet header > button { color: #ccc; font-size: 36px; font-weight: 200; line-height: 1; }
.answer-legends { display: flex; gap: 35px; }
.answer-legends span, .result-legends span { display: flex; align-items: center; gap: 8px; color: #777; font-size: 15px; }
.answer-legends i, .result-legends i { width: 20px; height: 11px; display: inline-block; border-radius: 4px; background: #b4b4b4; }
.answer-legends i.done { background: var(--orange); }
.answer-grid, .result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; overflow-y: auto; padding: 10px 9px 30px; }
.answer-cell, .result-cell { height: 31px; border-radius: 5px; background: #d5d5d5; color: #333; font-size: 17px; }
.answer-cell.done { background: var(--orange); color: #fff; }
.answer-cell.current { outline: 2px solid rgb(255 90 24 / 28%); outline-offset: 2px; }

/* 图八、十、十一：结算、错题重练、重新答卷 */
.retry-link { color: #17202f; font-size: 15px; }
.result-scroll { min-height: 0; flex: 1; overflow-y: auto; padding-top: 2px; background: #f7f7f7; }
.score { height: 62px; display: grid; place-items: center; background: #fff; color: #071426; font-size: 38px; font-weight: 700; }
.result-hint { margin: 0; padding: 1px 20px 8px; background: #fff; color: #a5a5a5; font-size: 14px; }
.result-legends { display: flex; gap: 35px; padding: 0 20px 10px; background: #fff; }
.result-legends span { color: #333; }
.result-legends i.right { background: #00bf82; }
.result-legends i.wrong { background: var(--red); }
.result-grid { gap: 18px; padding: 30px 9px; overflow: visible; }
.result-cell { height: 31px; background: #b5b5b5; color: #fff; }
.result-cell.right { background: #00bf82; }
.result-cell.wrong { background: var(--red); }
.result-actions { height: 62px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px; flex: 0 0 auto; padding: 8px 20px 10px; background: #fff; box-shadow: 0 -2px 10px rgb(0 0 0 / 4%); }
.result-actions button { height: 43px; border: 1px solid var(--orange); border-radius: 6px; color: var(--orange); font-size: 17px; }
.result-actions button.primary { background: var(--orange); color: #fff; }

/* 图九：解析 */
.analysis-scroll { padding-right: 28px; padding-left: 28px; }
.analysis-screen .question-body { padding-top: 8px; }
.analysis-screen .option.correct b, .analysis-screen .option.correct em { color: #333; }
.answer-summary { margin-top: 15px; padding: 17px 8px 0; border-radius: 9px; background: #f7f7f7; }
.answer-head { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
.answer-head div { display: flex; flex-direction: column; gap: 3px; }
.answer-head b { color: #333; font-size: 16px; }
.answer-head strong { font-size: 17px; font-weight: 500; }
.wrong-answer { color: red; }
.right-answer { color: var(--green); }
.accuracy-card { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 16px; padding: 17px 0; border: 1px solid #eee; border-radius: 7px; background: #fff; text-align: center; }
.accuracy-card div { display: flex; flex-direction: column; gap: 6px; }
.accuracy-card span, .accuracy-card small { color: #bbb; font-size: 13px; }
.accuracy-card b { color: #777; font-size: 20px; font-weight: 400; }
.official-analysis { padding: 19px 0 28px; }
.official-analysis h2 { margin: 0 0 21px; font-size: 18px; }
.official-analysis p { margin: 0; color: #333; font-size: 16px; line-height: 1.85; }

/* v9.4.5：VIP 题库视觉底座下的试卷适配层 */
.list-screen,
.exam-screen,
.result-screen,
.analysis-screen { --vip-orange: var(--orange); }

.list-screen { background: var(--page-bg, #f7f7f8); }
.list-screen .page-nav { border-bottom-color: #f2f2f2; }
.ahu-qb-product-cover img.core-mother-source-crop { position: absolute; left: -15px; top: -502px; width: 399px; height: 864px; max-width: none; object-fit: fill; }
.paper-list-scroll { padding: 10px 12px 28px; background: #f7f7f8; scrollbar-width: none; }
.paper-list-scroll::-webkit-scrollbar { display: none; }
.paper-hero { height: 98px; align-items: center; margin: -10px -12px 10px; padding: 0; border-radius: 0; background: #fff8f5; }
.paper-hero--classic { background: #f7f8ff; }
.paper-hero--core-mother { background: #fff7f5; }
.paper-category-tabs { height: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; margin: 0 -12px 10px; padding: 0 6px; border-bottom: 1px solid #f1f1f2; background: #fff; }
.paper-category-tabs button { position: relative; min-width: 0; padding: 0 2px; color: #999; font-size: 12px; line-height: 44px; text-align: center; white-space: nowrap; }
.paper-category-tabs button::after { content: ""; position: absolute; right: 50%; bottom: 0; width: 20px; height: 3px; border-radius: 3px; background: transparent; transform: translateX(50%); }
.paper-category-tabs button.is-active { color: #333; font-weight: 600; }
.paper-category-tabs button.is-active::after { background: var(--orange); }
.paper-category-tabs button:active { background: #fff8f5; }
.paper-category-content { min-width: 0; }
.year-section { overflow: hidden; padding: 0; border: 1px solid #f0f0f1; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgb(34 34 34 / 3%); }
.year-section + .year-section { margin-top: 10px; }
.paper-group-header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; }
.year-section h2 { min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; color: #222; font-size: 17px; font-weight: 600; line-height: 24px; }
.year-section h2 span { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.year-section h2 i { width: 3px; height: 16px; flex: 0 0 auto; border-radius: 3px; background: var(--orange); }
.paper-report-link { height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: #666 !important; font-size: 12px !important; font-weight: 400; }
.paper-report-link img { display: block; flex: 0 0 auto; object-fit: contain; }
.paper-report-link:active { color: #333 !important; opacity: .72; }
.unit-list { gap: 0; }
.unit-row { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 8px 14px; border-top: 1px solid #f2f2f2; }
.unit-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.unit-name { overflow: hidden; color: #333; font-size: 14px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.unit-score { color: #999; font-size: 12px; line-height: 18px; white-space: nowrap; }
.unit-score b { color: var(--orange); font-weight: 500; }
.unit-score i { margin: 0 5px; color: #d5d5d5; font-style: normal; }
.unit-score strong { color: var(--orange); font-weight: 500; }
.unit-actions { display: flex; align-items: center; gap: 6px; }
.unit-actions button { min-width: 50px; height: 28px; padding: 0 9px; border-radius: 14px; font-size: 11px; font-weight: 500; }
.unit-actions .analysis-link { background: #fff4ef; color: var(--orange); }
.unit-actions .analysis-link:active { background: #ffe9df; }
.unit-actions .analysis-link.is-locked { min-width: 64px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 0 7px; background: #f4f4f5; color: #888; }
.unit-actions .analysis-link.is-locked img { width: 13px; height: 13px; flex: 0 0 auto; object-fit: contain; }
.unit-actions .analysis-link.is-locked:active { background: #ebebec; }
.unit-row .practice-pill { min-width: 50px; height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 500; line-height: 28px; box-shadow: 0 1px 4px rgb(255 90 31 / 10%); }
.unit-row .practice-pill:active { background: #e94d16; transform: scale(.98); }

.exam-screen,
.analysis-screen { background: #fff; }
.exam-screen .page-nav,
.analysis-screen .page-nav,
.result-screen .page-nav { border-bottom-color: #f2f2f2; }
.exam-scroll,
.analysis-scroll { padding: 0; touch-action: pan-y; scrollbar-width: none; }
.exam-scroll { backface-visibility: hidden; will-change: transform, opacity; }
.exam-scroll::-webkit-scrollbar,
.analysis-scroll::-webkit-scrollbar { display: none; }
.ahu-vip-paper-question { padding: 17px 16px 28px; }
.ahu-vip-paper-question h1 { color: #222; font-size: 18px; line-height: 1.6; }
.ahu-vip-paper-question .ahu-vip-options { gap: 12px; }
.ahu-vip-paper-question .ahu-vip-options button { min-height: 58px; }
.exam-screen.is-small-type .ahu-vip-paper-question h1,
.analysis-screen.is-small-type .ahu-vip-paper-question h1 { font-size: 18px; }
.exam-screen.is-small-type .ahu-vip-paper-question .ahu-vip-options button strong,
.analysis-screen.is-small-type .ahu-vip-paper-question .ahu-vip-options button strong { font-size: 16px; }
.exam-screen.is-medium-type .ahu-vip-paper-question h1,
.analysis-screen.is-medium-type .ahu-vip-paper-question h1 { font-size: 19px; }
.exam-screen.is-medium-type .ahu-vip-paper-question .ahu-vip-options button strong,
.analysis-screen.is-medium-type .ahu-vip-paper-question .ahu-vip-options button strong { font-size: 17px; }
.exam-screen.is-large-type .ahu-vip-paper-question h1,
.analysis-screen.is-large-type .ahu-vip-paper-question h1 { font-size: 20px; line-height: 1.5; }
.exam-screen.is-large-type .ahu-vip-paper-question .ahu-vip-options button strong,
.analysis-screen.is-large-type .ahu-vip-paper-question .ahu-vip-options button strong { font-size: 18px; line-height: 1.5; }
.exam-toolbar { height: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 0 auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #eee; background: #fff; }
.exam-toolbar-item { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #303033; }
.exam-toolbar-item + .exam-toolbar-item::before { content: ""; position: absolute; left: 0; top: 20px; width: 1px; height: 32px; background: #eee; }
.exam-toolbar-item time,
.exam-toolbar-item b { color: inherit; font-size: 17px; font-style: normal; font-weight: 500; line-height: 24px; white-space: nowrap; }
.exam-toolbar-item b { display: inline-flex; align-items: baseline; }
.exam-toolbar-item b i { color: #b6b6ba; font-size: 15px; font-style: normal; font-weight: 400; }
.exam-time time { color: var(--red); font-variant-numeric: tabular-nums; }
.exam-tool-icon { position: relative; width: 24px; height: 24px; display: block; flex: 0 0 auto; color: currentColor; }
.exam-tool-image { width: 24px; height: 24px; display: block; flex: 0 0 auto; object-fit: contain; }
.exam-tool-icon.is-clock { width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; }
.exam-tool-icon.is-clock::before { content: ""; position: absolute; left: 7px; top: 3px; width: 2px; height: 6px; border-radius: 2px; background: currentColor; }
.exam-tool-icon.is-clock::after { content: ""; position: absolute; left: 8px; top: 8px; width: 5px; height: 2px; border-radius: 2px; background: currentColor; transform-origin: left center; transform: rotate(25deg); }
.exam-submit-button { min-width: 84px; height: 38px; padding: 0 20px !important; border-radius: 8px; background: var(--orange) !important; color: #fff !important; font-size: 15px; font-weight: 600; line-height: 38px; }
.exam-toast { position: absolute; z-index: 30; left: 50%; bottom: 88px; width: max-content; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 8px; background: rgb(34 34 34 / 92%); color: #fff; font-size: 13px; line-height: 20px; text-align: center; white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / 18%); pointer-events: none; transform: translateX(-50%); animation: exam-toast-in 180ms ease-out; }
@keyframes exam-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.paper-settings-layer { display: flex; align-items: flex-end; justify-content: stretch; background: rgb(0 0 0 / 36%); }
.paper-settings-sheet { width: 100%; background: #f6f6f7; box-shadow: 0 -10px 36px rgb(0 0 0 / 12%); }
.paper-font-settings { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; background: #fff; }
.paper-font-settings > span { color: #555; font-size: 16px; line-height: 24px; white-space: nowrap; }
.paper-font-settings > div { display: flex; gap: 12px; align-items: center; }
.paper-font-settings button { width: 48px; height: 48px; border-radius: 8px; background: #f6f6f7; color: #5f6471; font-size: 20px; }
.paper-font-settings button.is-active { background: var(--orange-soft); color: var(--orange); font-weight: 500; }
.paper-font-settings button:active { transform: scale(.97); }
.paper-settings-cancel { width: 100%; height: 64px; margin-top: 8px; background: #fff; color: #555; font-size: 17px; }
.paper-settings-cancel:active { background: #f7f7f8; }

/* v9.4.5：沿用 v9.3.8 三步内容，迁移 VIP 题库最新引导表现 */
.paper-practice-guide {
  position: absolute;
  z-index: 60;
  inset: 0;
  overflow: hidden;
  color: var(--ink);
  pointer-events: auto;
}
.paper-guide-focus {
  position: absolute;
  z-index: 1;
  left: var(--guide-left, 126px);
  top: var(--guide-top, 768px);
  width: var(--guide-width, 138px);
  height: var(--guide-height, 64px);
  border: 2px solid rgb(255 255 255 / 94%);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 0 999px rgb(0 0 0 / 62%);
  pointer-events: none;
}
.paper-guide-card {
  position: absolute;
  z-index: 3;
  right: 16px;
  left: 16px;
  padding: 15px 16px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
}
.paper-guide-card::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}
.paper-practice-guide.is-navigation .paper-guide-card::after {
  right: 95px;
  bottom: -20px;
  border-top-color: #fff;
}
.paper-practice-guide.is-answer .paper-guide-card::after {
  left: 50%;
  top: -20px;
  border-bottom-color: #fff;
  transform: translateX(-50%);
}
.paper-practice-guide.is-submit .paper-guide-card::after {
  right: 37px;
  bottom: -20px;
  border-top-color: #fff;
}
.paper-guide-kicker {
  margin: 0 0 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.paper-guide-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}
.paper-guide-copy {
  margin: 7px 0 14px;
  color: #555;
  font-size: 13px;
  line-height: 20px;
}
.paper-guide-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.paper-guide-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.paper-guide-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #dedede;
}
.paper-guide-dots i.is-active {
  width: 18px;
  background: var(--orange);
}
.paper-guide-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.paper-practice-guide .paper-guide-actions .paper-guide-skip {
  padding: 0 10px;
  color: #888;
}
.paper-practice-guide .paper-guide-actions .paper-guide-next {
  min-width: 76px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 10px rgb(255 90 31 / 20%);
}
.paper-guide-next:focus-visible,
.paper-guide-skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.paper-guide-gesture {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  width: 176px;
  height: 102px;
  display: grid;
  grid-template-columns: 38px 64px 38px;
  grid-template-rows: 72px 22px;
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.paper-guide-gesture-label {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-shadow: 0 2px 6px rgb(0 0 0 / 28%);
  white-space: nowrap;
}
.paper-guide-hand {
  width: 64px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgb(0 0 0 / 22%));
  animation: paper-guide-swipe 1.5s ease-in-out infinite;
}
.paper-guide-arrow {
  font-family: Arial, sans-serif;
  font-size: 50px;
  font-weight: 200;
  line-height: 1;
  text-align: center;
  opacity: .95;
}
@keyframes paper-guide-swipe {
  0%, 100% { transform: translateX(-16px); }
  50% { transform: translateX(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .paper-guide-hand { animation: none; }
}
.question-footer { height: 76px; padding-bottom: env(safe-area-inset-bottom); border-top-color: #eee; }
.question-footer button { gap: 3px; color: #303033; font-size: 15px; }
.question-footer b { color: #777; font-size: 12px; }
.question-footer button:nth-child(2) > span { color: var(--orange); font-weight: 600; }

.modal-layer { background: rgb(0 0 0 / 46%); }
.alert-dialog { width: 300px; border-radius: 20px; box-shadow: 0 16px 48px rgb(0 0 0 / 16%); }
.alert-copy { min-height: 130px; }
.alert-copy h2 { color: #222; }
.alert-actions { height: 52px; }
.alert-actions button.primary { color: var(--orange); font-weight: 500; }
.answer-card-layer.ahu-vip-sheet-mask { inset: 44px 0 0; display: flex; place-items: initial; align-items: flex-end; justify-content: flex-start; background: rgb(0 0 0 / 36%); }
.answer-card-sheet.ahu-vip-sheet { width: 100%; max-height: 75%; display: flex; flex-direction: column; overflow-y: auto; padding: 16px 17px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
.answer-card-sheet.ahu-vip-sheet header { height: 42px; padding: 0; border: 0; }
.answer-card-sheet header h2 { margin: 0; color: #222; font-size: 18px; }
.answer-card-sheet header > button { color: #777; font-size: 14px; font-weight: 400; }
.answer-card-summary { margin-top: 5px; color: #777; font-size: 13px; }
.answer-card-summary strong { color: var(--orange); }
.answer-legends.ahu-vip-sheet-legend { gap: 18px; margin-top: 10px; }
.answer-legends.ahu-vip-sheet-legend i { width: 11px; height: 11px; border-radius: 50%; }
.answer-legends.ahu-vip-sheet-legend i.done { border-color: var(--orange); background: var(--orange); }
.answer-legends.ahu-vip-sheet-legend i.correct { border-color: var(--green); background: var(--green); }
.answer-legends.ahu-vip-sheet-legend i.wrong { border-color: var(--red); background: var(--red); }
.ahu-vip-paper-answer-grid { gap: 13px 12px; margin: 18px 0 0; padding: 3px 0 6px; overflow: visible; }
.ahu-vip-paper-answer-grid button { font-size: 14px; }
.answer-card-continue { width: 100%; min-height: 42px; margin-top: 15px; flex: 0 0 auto; border-radius: 8px; background: var(--orange) !important; color: #fff !important; font-size: 15px; font-weight: 600; }

.result-screen { background: #f5f5f6; }
.result-report-hero { flex: 0 0 auto; padding-bottom: 20px; background: var(--orange); color: #fff; }
.result-report-hero .status-bar { background: transparent; }
.result-report-nav { height: 52px; display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; padding: 0 16px; }
.result-report-nav .nav-back { width: 44px; height: 44px; margin-left: -12px; }
.result-report-nav .chevron { border-color: #fff; }
.result-report-nav h1 { margin: 0; font-size: 18px; font-weight: 600; text-align: center; }
.result-report-nav .retry-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: #fff; font-size: 14px; text-align: right; white-space: nowrap; }
.retry-icon { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.result-hero-copy { display: flex; align-items: flex-end; justify-content: space-between; min-height: 86px; padding: 12px 24px 0; }
.result-hero-copy > div:first-child { min-width: 0; padding-right: 16px; }
.result-hero-copy span { display: block; font-size: 13px; opacity: .82; }
.result-hero-copy h2 { margin: 8px 0 0; overflow: hidden; font-size: 21px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.result-score { display: flex; align-items: baseline; flex: 0 0 auto; }
.result-score strong { font-size: 50px; font-weight: 700; line-height: 1; }
.result-score span { margin-left: 3px; font-size: 18px; font-weight: 600; opacity: 1; }
.result-scroll { padding: 12px 12px 20px; background: #f5f5f6; scrollbar-width: none; }
.result-scroll::-webkit-scrollbar { display: none; }
.result-report-card { padding: 18px 16px; border-radius: 10px; background: #fff; }
.result-report-card + .result-report-card { margin-top: 12px; }
.result-analysis-notice { margin-top: 12px; padding: 13px 16px; border: 1px solid #ffe1d3; border-radius: 10px; background: #fff7f3; color: #555; }
.result-analysis-notice p { margin: 0; font-size: 13px; line-height: 1.65; }
.result-analysis-notice p + p { margin-top: 3px; }
.result-analysis-notice .result-analysis-kicker { color: #999; }
.result-analysis-notice strong { color: #333; font-weight: 600; }
.result-analysis-notice b,
.result-analysis-notice span { color: var(--orange); font-weight: 600; }
.result-analysis-notice time { color: #333; font-weight: 600; }
.result-analysis-notice + .result-report-card { margin-top: 12px; }
.result-report-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.result-report-card > header h2 { position: relative; margin: 0; padding-left: 11px; color: #252528; font-size: 17px; font-weight: 600; }
.result-report-card > header h2::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 3px; border-radius: 3px; background: var(--orange); }
.result-report-card > header > span { color: #999; font-size: 12px; }
.result-report-card > header .result-duration strong { margin-left: 3px; color: #555; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-rings { display: grid; grid-template-columns: repeat(2, 1fr); padding: 2px 0 18px; }
.result-ring-item { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.result-ring-item + .result-ring-item { border-left: 1px solid #eee; }
.result-ring { --result-color: var(--green); position: relative; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--result-color) var(--result-value), #f0f0f1 0); }
.result-ring.is-completion { --result-color: var(--orange); }
.result-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.result-ring > div { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.result-ring strong { color: var(--result-color); font-size: 21px; font-weight: 600; line-height: 24px; }
.result-ring strong small { font-size: 11px; }
.result-ring span { margin-top: 2px; color: var(--result-color); font-size: 11px; }
.result-ring-item p { margin: 8px 0 0; color: #999; font-size: 11px; }
.result-ring-item .result-benchmark { margin-top: 4px; color: #666; white-space: nowrap; }
.result-benchmark strong { color: var(--orange); font-weight: 600; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.result-stats > div + div { border-left: 1px solid #eee; }
.result-stats strong, .result-stats span { display: block; }
.result-stats strong { color: #222; font-size: 20px; font-weight: 600; }
.result-stats strong small { margin-left: 1px; font-size: 11px; font-weight: 500; }
.result-stats span { margin-top: 3px; color: #999; font-size: 12px; }
.result-stats .is-correct strong { color: var(--green); }
.result-stats .is-wrong strong { color: var(--red); }
.result-stats .is-unanswered strong { color: #8f8f94; }
.result-card { padding: 18px 13px 22px; }
.result-card > header { margin: 0 3px 4px; }
.result-legends { gap: 12px; padding: 0; }
.result-legends span { font-size: 11px; }
.result-legends i { width: 9px; height: 9px; border-radius: 50%; }
.result-legends i.right { background: var(--green); }
.result-legends i.wrong { background: var(--red); }
.result-card .ahu-vip-paper-answer-grid { margin-top: 12px; }
.result-card .ahu-vip-answer-grid button.is-unanswered { background: #f4f4f5; color: #777; }
.result-actions { height: 64px; gap: 12px; padding: 9px 16px 11px; }
.result-actions button { height: 44px; border-color: #f6b28f; border-radius: 8px; font-size: 16px; }
.result-actions button:disabled { border-color: #ddd; background: #f4f4f5; color: #aaa; cursor: default; }
.result-actions.single { grid-template-columns: 1fr; }
.result-screen.is-analysis-locked .result-card .ahu-vip-answer-grid button:disabled { cursor: default; }

/* 阿虎白卷：四份试卷综合分析（沿用原报告内容与功能） */
.paper-insight-screen { background: #f6f6f7; }
.paper-insight-scroll { min-height: 0; flex: 1; overflow-y: auto; padding-bottom: 24px; background: #f6f6f7; scrollbar-width: none; }
.paper-insight-scroll::-webkit-scrollbar { display: none; }
.paper-insight-hero { position: relative; min-height: 176px; overflow: hidden; padding: 26px 20px 18px; background: linear-gradient(145deg, #ff5a1f 0%, #ff7b46 56%, #ffb18e 100%); color: #fff; }
.paper-insight-hero::before { content: ""; position: absolute; top: -84px; left: 90px; width: 210px; height: 210px; border-radius: 50%; background: rgb(255 255 255 / 9%); }
.paper-insight-hero > div:first-child { position: relative; z-index: 1; }
.paper-insight-hero strong,
.paper-insight-hero h1 { display: block; margin: 0; font-size: 27px; font-weight: 700; line-height: 1.18; }
.paper-insight-hero h1 { margin-top: 2px; }
.paper-insight-hero p { margin: 18px 0 0; font-size: 12px; opacity: .84; }
.paper-insight-illustration { position: absolute; right: 25px; top: 29px; width: 98px; height: 100px; transform: rotate(5deg); }
.paper-insight-illustration i { position: absolute; inset: 0 10px 8px 0; border-radius: 10px; background: #fff5ef; box-shadow: 0 10px 28px rgb(152 49 13 / 18%); }
.paper-insight-illustration i::before,
.paper-insight-illustration i::after { content: ""; position: absolute; left: 16px; right: 16px; height: 6px; border-radius: 4px; background: #ffd5c3; }
.paper-insight-illustration i::before { top: 20px; box-shadow: 0 18px 0 #ffd5c3, 0 36px 0 #ffd5c3; }
.paper-insight-illustration b { position: absolute; right: 0; bottom: 0; width: 54px; height: 55px; border-radius: 9px; background: linear-gradient(145deg, #ffb293, #ff7540); box-shadow: 0 8px 20px rgb(168 61 21 / 20%); }
.paper-insight-illustration span { position: absolute; right: 15px; bottom: 12px; width: 28px; height: 23px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: skew(-12deg); }
.paper-insight-summary { position: relative; z-index: 2; margin: -28px 12px 12px; padding: 18px 14px 15px; border-radius: 10px; background: #fff; box-shadow: 0 8px 26px rgb(113 65 45 / 8%); }
.paper-insight-summary h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed #e8e8e8; color: var(--red); font-size: 17px; }
.paper-insight-overview-head,
.paper-insight-overview-row,
.paper-insight-subject-head,
.paper-insight-subject-row { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: center; column-gap: 5px; text-align: center; }
.paper-insight-overview-head { margin-bottom: 7px; color: #999; font-size: 10px; }
.paper-insight-overview-row { min-height: 29px; color: #777; font-size: 12px; }
.paper-insight-overview-row span { text-align: left; }
.paper-insight-overview-row b { color: var(--red); font-weight: 600; }
.paper-insight-overview-row em { color: #666; font-style: normal; }
.paper-insight-overview-row strong { color: #666; font-weight: 500; }
.paper-insight-detail { margin: 0 12px 12px; overflow: hidden; border-radius: 10px; background: #4299f5; }
.paper-insight-detail > header { display: flex; flex-direction: column; gap: 5px; padding: 15px 14px 13px; color: #fff; }
.paper-insight-detail > header strong { font-size: 15px; }
.paper-insight-detail > header span { font-size: 11px; opacity: .9; }
.paper-insight-panel { margin: 0 6px 6px; padding: 15px 12px 14px; border-radius: 8px; background: #fff; }
.paper-insight-panel h2 { position: relative; margin: 0 0 12px; padding-left: 9px; color: #333; font-size: 15px; }
.paper-insight-panel h2::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 3px; border-radius: 3px; background: var(--orange); }
.paper-insight-bars { margin-bottom: 22px; }
.paper-insight-bars > div { display: grid; grid-template-columns: 62px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 28px; color: #777; font-size: 11px; }
.paper-insight-bars i { position: relative; height: 8px; overflow: hidden; border-radius: 6px; background: #f0f1f2; }
.paper-insight-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar-value); border-radius: inherit; background: #ffd7a8; }
.paper-insight-bars > div:nth-child(2) i::after { background: #c8eacb; }
.paper-insight-bars > div:nth-child(3) i::after { background: #bcdff5; }
.paper-insight-bars > div:nth-child(4) i::after { background: #f7c8bb; }
.paper-insight-bars b { color: #999; font-weight: 500; text-align: right; }
.paper-insight-subject-head { min-height: 28px; background: #f5f5f6; color: #777; font-size: 10px; }
.paper-insight-subject-row { min-height: 31px; border-bottom: 1px solid #f2f2f2; color: #555; font-size: 10px; }
.paper-insight-subject-head span:first-child,
.paper-insight-subject-row span:first-child { text-align: left; }
.paper-insight-subject-row b { color: #555; font-weight: 500; }
.paper-insight-subject-row em { color: var(--green); font-style: normal; }
.paper-insight-subject-row strong { color: var(--orange); font-weight: 500; }
.paper-insight-unit { margin: 0 12px 12px; padding: 16px 14px 14px; border-radius: 10px; background: #fff; }
.paper-insight-unit h2 { margin: 0 0 15px; color: #333; font-size: 16px; }
.paper-insight-unit-data { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.paper-insight-unit-data > div + div { border-left: 1px solid #eee; }
.paper-insight-unit-data strong,
.paper-insight-unit-data span { display: block; }
.paper-insight-unit-data strong { font-size: 25px; line-height: 30px; }
.paper-insight-unit-data span { margin-top: 3px; color: #999; font-size: 11px; }
.paper-insight-unit-data .is-correct strong { color: var(--green); }
.paper-insight-unit-data .is-wrong strong { color: var(--red); }
.paper-insight-unit-data .is-unanswered strong { color: #777; }
.paper-insight-unit-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.paper-insight-unit-actions button { height: 38px; border: 1px solid var(--orange); border-radius: 20px; color: var(--orange); font-size: 14px; }
.paper-insight-unit-actions button.primary { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgb(255 90 31 / 18%); }
.paper-insight-unit-actions button:disabled { border-color: #e3e3e3; background: #f4f4f5; color: #aaa; box-shadow: none; cursor: default; }

.analysis-screen .ahu-vip-paper-question { padding-bottom: 24px; }
.paper-analysis-detail { padding-bottom: 30px; }
.paper-analysis-detail .ahu-vip-answer-summary { display: flex; flex-direction: column; gap: 8px; }
.paper-analysis-detail .ahu-vip-answer-summary p { margin: 0; color: #444; font-size: 15px; line-height: 24px; }
.paper-analysis-detail .ahu-vip-answer-summary strong { margin-left: 5px; font-size: 17px; }
.paper-analysis-data { margin-bottom: 24px; background: #f7f7f8; }
.paper-analysis-data div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.paper-analysis-data strong { color: #333; font-size: 21px; }
.paper-analysis-data span,
.paper-analysis-data small { color: #999; font-size: 12px; }
.official-analysis { padding: 0; }
.official-analysis .ahu-vip-analysis-title h2 { margin: 0; }
.official-analysis .ahu-vip-analysis-copy { margin: 12px 0 0; color: #444; font-size: 15px; line-height: 1.8; }
.analysis-toolbar { height: 70px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #ececee; background: #fff; }
.analysis-toolbar button { min-width: 166px; height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #303033; }
.analysis-toolbar img { width: 25px; height: 25px; display: block; object-fit: contain; }
.analysis-toolbar span { font-size: 13px; }
.analysis-toolbar b { display: inline-flex; align-items: baseline; color: var(--orange); font-size: 16px; font-weight: 600; }
.analysis-toolbar b i { color: #aaaab0; font-size: 14px; font-style: normal; font-weight: 400; }

@media (max-width: 480px) {
  body { background: #fff; }
  .demo-stage { display: block; min-height: 100dvh; padding: 0; }
  .phone { width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
}
