:root {
  color-scheme: light;
  --ink: #17263a;
  --muted: #687386;
  --paper: #f7f8fb;
  --white: #ffffff;
  --navy: #14253d;
  --navy-2: #203957;
  --gold: #f5c66a;
  --gold-soft: #fff5d9;
  --red: #c74b50;
  --red-soft: #fff1f1;
  --green: #2c7a63;
  --green-soft: #eaf7f1;
  --line: #dde2e9;
  --shadow: 0 18px 55px rgba(20, 37, 61, .10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 16px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.view { display: none; }
.view.active { display: block; }
.topbar { height: 76px; padding: 0 clamp(20px, 4vw, 64px); color: #fff; background: var(--navy); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(12, 25, 42, .18); position: sticky; top: 0; z-index: 20; }
.brand { color: inherit; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border: 1px solid rgba(245,198,106,.65); border-radius: 10px 10px 10px 3px; display: grid; place-items: center; color: var(--gold); font: 700 22px/1 "STKaiti", "KaiTi", serif; }
.brand b { font: 700 20px/1.2 "STKaiti", "KaiTi", serif; letter-spacing: .14em; }
.brand small { display: block; margin-top: 3px; color: #aebbd0; font-size: 12px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 6px; }
.main-nav a { position: relative; display: grid; place-items: center; min-width: 88px; padding: 0 12px; color: #b9c4d5; text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { background: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.streak { color: #b9c4d5; font-size: 14px; }
.network-status { padding: 6px 10px; border: 1px solid rgba(245,198,106,.45); border-radius: 999px; color: var(--gold); background: rgba(245,198,106,.08); font-size: 13px; font-weight: 700; white-space: nowrap; }
.install-btn { min-height: 38px; padding: 0 15px; border: 1px solid rgba(245,198,106,.5); color: var(--gold); background: rgba(255,255,255,.05); }
.install-btn:hover { border-color: var(--gold); background: rgba(245,198,106,.12); }
.btn { border: 0; border-radius: 10px; min-height: 44px; padding: 0 18px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .icon-btn:focus-visible, textarea:focus-visible { outline: 3px solid rgba(245,198,106,.55); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 5px 14px rgba(245,198,106,.2); }
.home-view { min-height: calc(100vh - 76px); padding: 54px clamp(22px, 5vw, 72px) 80px; background: var(--paper); }
.home-intro { width: min(1280px, 100%); margin: 0 auto; padding: 40px clamp(28px, 4vw, 58px); border-radius: 22px; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, #203a59 72%, #294966 100%); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 210px; gap: 36px; align-items: center; overflow: hidden; position: relative; }
.home-intro::after { content: "阅"; position: absolute; right: 235px; bottom: -58px; color: rgba(255,255,255,.045); font: 800 220px/1 "STKaiti", "KaiTi", serif; pointer-events: none; }
.home-intro .eyebrow { color: var(--gold); }
.home-intro h1 { max-width: 720px; margin: 0; font: 800 clamp(30px, 4vw, 48px)/1.25 "STKaiti", "KaiTi", serif; letter-spacing: .04em; }
.home-intro > div > p:last-child { max-width: 680px; margin: 16px 0 0; color: #c8d2df; line-height: 1.8; }
.today-card { position: relative; z-index: 1; min-height: 172px; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: flex-start; }
.today-card > span { color: #d5ddea; font-size: 13px; }
.today-card strong { margin-top: 6px; color: var(--gold); font-size: 42px; line-height: 1; }
.today-card small { margin-top: 5px; color: #d5ddea; font-size: 13px; }
.text-link { margin-top: auto; padding: 0; border: 0; color: #fff; background: transparent; font-weight: 700; }
.learning-overview { width: min(1280px, 100%); margin: 28px auto 0; padding: 24px 26px; border: 1px solid #d7dde6; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(20,37,61,.055); }
.overview-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.overview-heading h2 { margin: 4px 0 0; color: var(--navy); font: 800 24px/1.3 "STKaiti", "KaiTi", serif; }
.overview-heading > span { color: var(--red); font-size: 14px; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; }
.resume-card, .recent-card { min-height: 136px; padding: 20px; border-radius: 14px; background: #f3f5f8; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid var(--gold); }
.overview-label { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.resume-card h3 { margin: 8px 0 5px; color: var(--navy); font: 800 20px/1.35 "STKaiti", "KaiTi", serif; }
.resume-card p { margin: 0; color: var(--muted); font-size: 14px; }
.resume-card .btn { flex: 0 0 auto; }
.recent-head { display: flex; justify-content: space-between; gap: 18px; }
.recent-head > strong { color: var(--navy); font-size: 14px; }
.recent-list { margin-top: 10px; display: grid; gap: 7px; }
.recent-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recent-list span { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.recent-list b { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.recent-list small { color: var(--muted); font-size: 12px; }
.recent-list > div > strong { color: var(--navy); font-size: 16px; }
.home-section { width: min(1280px, 100%); margin: 46px auto 0; }
.section-heading { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 3px 0 0; color: var(--navy); font: 800 28px/1.3 "STKaiti", "KaiTi", serif; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.section-kicker { margin: 0; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .15em; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card { min-width: 0; min-height: 218px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; text-align: left; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(20,37,61,.055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,37,61,.11); border-color: #bcc6d2; }
.category-card:focus-visible { outline: 3px solid rgba(245,198,106,.6); outline-offset: 3px; }
.category-card strong { margin-top: 18px; color: var(--navy); font: 800 23px/1.25 "STKaiti", "KaiTi", serif; }
.category-card small { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.bank-count { margin-top: 13px; padding: 5px 9px; border-radius: 999px; color: var(--navy-2); background: #eef2f7; font-size: 13px; font-weight: 800; }
.card-index { position: absolute; top: 20px; right: 22px; color: #aab3c0; font: 700 13px/1 monospace; }
.card-icon { width: 50px; height: 50px; border-radius: 13px 13px 13px 4px; color: var(--gold); background: var(--navy); display: grid; place-items: center; font: 800 22px/1 "STKaiti", "KaiTi", serif; }
.card-action { margin-top: auto; padding-top: 20px; color: var(--red); font-size: 14px; font-weight: 800; }
.study-section { padding-top: 42px; border-top: 1px solid var(--line); }
.study-card { min-height: 182px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.study-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.study-card strong { margin-top: 14px; }
.method-no { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.practice-toolbar { max-width: 1440px; height: 66px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); display: flex; justify-content: space-between; align-items: center; background: #eef1f5; border-bottom: 1px solid var(--line); }
.back-link { padding: 8px 0; border: 0; color: var(--navy-2); background: transparent; font-weight: 800; }
.method-view { min-height: calc(100vh - 76px); padding: 34px clamp(22px, 5vw, 72px) 86px; background: #f4f6f9; }
.method-shell { width: min(1120px, 100%); margin: 0 auto; }
.method-shell > .back-link { margin-bottom: 22px; }
.method-hero { min-height: 262px; padding: 42px clamp(28px, 5vw, 58px); border-radius: 20px; color: #fff; background: var(--navy); box-shadow: var(--shadow); display: flex; align-items: end; justify-content: space-between; gap: 38px; position: relative; overflow: hidden; }
.method-hero::after { content: "法"; position: absolute; right: 235px; bottom: -70px; color: rgba(255,255,255,.045); font: 800 230px/1 "STKaiti", "KaiTi", serif; }
.method-hero > div, .method-hero .btn { position: relative; z-index: 1; }
.method-hero .eyebrow { color: var(--gold); }
.method-hero h1 { max-width: 700px; margin: 0; font: 800 clamp(30px, 4vw, 46px)/1.25 "STKaiti", "KaiTi", serif; }
.method-hero > div > p:not(.eyebrow) { max-width: 690px; margin: 15px 0 0; color: #cad4e1; line-height: 1.75; }
.method-hero .method-stats { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.method-stats span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #e6ebf2; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 700; }
.method-hero .btn { flex: 0 0 auto; margin-bottom: 5px; }
.method-block { margin-top: 28px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(20,37,61,.045); }
.method-heading { margin-bottom: 24px; display: flex; align-items: baseline; gap: 14px; }
.method-heading > span { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.method-heading h2 { margin: 0; color: var(--navy); font: 800 25px/1.3 "STKaiti", "KaiTi", serif; }
.universal-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.universal-step { min-height: 116px; padding: 18px; border: 1px solid #e1e5eb; border-radius: 12px; background: #f7f8fa; display: grid; grid-template-columns: 40px 1fr; gap: 13px; }
.universal-step > span { width: 34px; height: 34px; border-radius: 9px 9px 9px 3px; color: var(--gold); background: var(--navy); display: grid; place-items: center; font: 800 12px/1 monospace; }
.universal-step h3 { margin: 3px 0 6px; color: var(--navy); font-size: 16px; }
.universal-step p { margin: 0; color: #586577; font-size: 14px; line-height: 1.65; }
.command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.command-card { min-height: 142px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fafc); }
.command-card strong { display: inline-grid; min-width: 48px; height: 29px; padding: 0 10px; border-radius: 7px; place-items: center; color: #fff; background: var(--red); font-size: 14px; }
.command-card span { display: block; margin-top: 12px; color: var(--navy); font-size: 14px; font-weight: 800; }
.command-card p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.method-step { min-height: 178px; padding: 20px; border-radius: 12px; background: #f3f5f8; }
.method-step > span { color: var(--red); font: 800 13px/1 monospace; }
.method-step h3 { margin: 20px 0 7px; color: var(--navy); font-size: 17px; }
.method-step p { margin: 0; color: #5a6678; font-size: 14px; line-height: 1.65; }
.marking-guide { margin-top: 18px; padding: 20px; border-radius: 13px; color: #fff; background: var(--navy-2); display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; }
.marking-guide > div span { display: block; margin-bottom: 6px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.marking-guide > div strong { font: 800 19px/1.4 "STKaiti", "KaiTi", serif; }
.marking-guide ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: #dce4ef; font-size: 14px; line-height: 1.55; }
.type-list { border-top: 1px solid var(--line); }
.type-row { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.type-count { width: 40px; height: 40px; border-radius: 10px; color: var(--gold); background: var(--navy); display: grid; place-items: center; font: 800 13px/1 monospace; }
.type-row h3 { margin: 0; color: var(--navy); font-size: 17px; }
.type-row p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; }
.answer-formula { color: #38475b; font-weight: 700; }
.type-tip { color: var(--muted); }
.type-tip::before { content: "提醒："; color: var(--red); font-weight: 800; }
.answer-example { margin-top: 13px; padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: var(--gold-soft); }
.answer-example span { color: #84631f; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.answer-example p { margin: 5px 0 0; color: #4a5666; font-size: 14px; line-height: 1.65; }
.method-notes { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method-notes article { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.method-notes h2 { margin: 7px 0 18px; color: var(--navy); font: 800 21px/1.45 "STKaiti", "KaiTi", serif; }
.note-label { margin: 0; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.note-label.danger { color: var(--red); }
.mistake-list, .check-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: #4f5d70; font-size: 14px; line-height: 1.6; }
.mistake-list li::marker { color: var(--red); }
.check-list li::marker { color: var(--green); font-weight: 900; }
.method-sources { margin-top: 28px; padding: 24px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.method-sources > p { margin: 0 0 11px; color: var(--navy); font-size: 14px; font-weight: 900; }
.method-sources ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.method-sources a { color: var(--navy-2); font-size: 13px; line-height: 1.5; text-decoration-color: #aeb9c7; text-underline-offset: 3px; }
.method-sources small { font-size: 12px; line-height: 1.6; }
.workspace { width: min(1440px, 100%); margin: 0 auto; min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.reading-panel { padding: 36px clamp(28px, 5vw, 76px) 72px; background: var(--white); border-right: 1px solid var(--line); }
.article-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 999px; background: #edf1f6; color: #546177; font-size: 13px; font-weight: 700; }
.icon-btn { width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line); color: var(--navy); background: #fff; font-weight: 800; }
.article { max-width: 760px; margin: 0 auto; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article h1 { margin: 0; color: var(--navy); font: 800 clamp(28px, 3vw, 42px)/1.22 "STKaiti", "KaiTi", serif; letter-spacing: .07em; }
.byline { color: var(--muted); margin: 12px 0 32px; font-size: 14px; }
.article-copy { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 18px; line-height: 2.05; letter-spacing: .03em; color: #273649; }
.article-copy.large { font-size: 20px; }
.article-copy p { margin: 0 0 1.3em; text-indent: 2em; }
.practice-panel { padding: 36px clamp(24px, 3.2vw, 50px) 72px; background: #f7f8fb; }
.practice-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.practice-head h2 { margin: 0; font: 800 28px/1.2 "STKaiti", "KaiTi", serif; color: var(--navy); }
.score-ring { min-width: 76px; height: 48px; padding: 0 12px; border-radius: 24px; background: #e9edf3; display: flex; justify-content: center; align-items: baseline; gap: 2px; color: var(--muted); }
.score-ring strong { color: var(--navy); font-size: 23px; line-height: 48px; }
.score-ring span { font-size: 12px; }
.progress-track { height: 5px; margin-top: 25px; background: #e3e7ed; border-radius: 5px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .25s ease; }
.progress-row { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.progress-copy { margin: 8px 0; color: var(--muted); font-size: 13px; }
.draft-status { color: var(--green); font-size: 12px; font-weight: 700; }
.question-nav { margin: 8px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.question-nav button { min-width: 0; min-height: 46px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.question-nav button:hover { border-color: #aeb9c8; }
.question-nav button:focus-visible, .hint-btn:focus-visible { outline: 3px solid rgba(245,198,106,.55); outline-offset: 2px; }
.question-nav button span { width: 22px; height: 22px; border-radius: 50%; background: #edf1f5; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.question-nav button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.question-nav button.answered { color: var(--navy); border-color: #e3cb89; background: var(--gold-soft); }
.question-nav button.result-good { border-color: #9ed2bd; background: var(--green-soft); }
.question-nav button.result-partial { border-color: #e3c875; background: #fff9e8; }
.question-nav button.result-weak { border-color: #e2b2b5; background: var(--red-soft); }
.question-card { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.question-card:first-child { border-top: 0; }
.question-top { display: flex; align-items: flex-start; gap: 12px; }
.q-number { flex: 0 0 28px; height: 28px; border-radius: 8px 8px 8px 2px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.question-card h3 { margin: 1px 0 7px; font-size: 16px; line-height: 1.6; }
.q-meta { color: var(--muted); font-size: 13px; }
textarea { display: block; width: calc(100% - 40px); margin: 15px 0 0 40px; min-height: 96px; resize: vertical; border: 1px solid #cfd6df; border-radius: 10px; padding: 13px 14px; background: rgba(255,255,255,.85); color: var(--ink); line-height: 1.65; transition: border-color .18s, box-shadow .18s; }
textarea::placeholder { color: #9aa3b0; }
textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(32,57,87,.09); }
.hint-actions { margin: 10px 0 0 40px; }
.hint-btn { padding: 5px 0; border: 0; color: var(--red); background: transparent; font-size: 13px; font-weight: 800; }
.hint-btn::before { content: "◇"; margin-right: 6px; }
.hint-btn:disabled { cursor: default; color: var(--muted); }
.hint-panel { margin: 8px 0 0 40px; padding: 14px 15px; border: 1px dashed #d1bb7e; border-radius: 10px; background: var(--gold-soft); }
.hint-panel strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 14px; }
.hint-panel strong:not(:first-child) { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(20,37,61,.12); }
.hint-panel p, .hint-panel ol { margin: 0; color: #4c5868; font-size: 14px; line-height: 1.65; }
.hint-panel ol { padding-left: 21px; }
.submit-row { border-top: 1px solid var(--line); padding-top: 24px; }
.btn-submit { width: 100%; min-height: 50px; color: #fff; background: var(--navy); box-shadow: 0 10px 24px rgba(20,37,61,.18); }
.submit-row p { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.feedback { margin: 16px 0 0 40px; border-radius: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.feedback.good { border-color: #b9dfd0; background: var(--green-soft); }
.feedback.partial { border-color: #ecd493; background: #fff9e8; }
.feedback.weak { border-color: #edc5c7; background: var(--red-soft); }
.feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.feedback-head strong { font-size: 15px; }
.earned { padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; }
.feedback h4 { margin: 14px 0 6px; color: var(--navy); font-size: 14px; }
.feedback p { margin: 0; color: #445164; font-size: 14px; line-height: 1.7; }
.point-list { margin: 5px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.point-list li { position: relative; padding-left: 20px; color: #485568; font-size: 14px; line-height: 1.55; }
.point-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.point-list li.missed::before { content: "!"; color: var(--red); }
.answer-box { margin-top: 10px; padding: 11px 13px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(255,255,255,.72); }
.summary { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.summary h3 { margin: 0; font-size: 21px; }
.summary .big-score { color: var(--gold); font-size: 30px; font-weight: 900; }
.summary p { color: #cbd4e1; line-height: 1.65; margin: 10px 0 0; font-size: 14px; }
.summary .next-focus { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); color: #fff; }
.is-graded textarea { background: #f1f3f6; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; z-index: 50; padding: 12px 18px; border-radius: 9px; background: var(--navy); color: #fff; box-shadow: var(--shadow); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 920px) {
  .main-nav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 62px; z-index: 30; padding: 0 14px; background: var(--navy); justify-content: center; box-shadow: 0 -5px 20px rgba(12,25,42,.18); }
  .main-nav a { min-width: 94px; }
  .main-nav a::after { top: 0; bottom: auto; }
  .home-view { padding-bottom: 100px; }
  .home-intro { grid-template-columns: 1fr; }
  .home-intro::after { right: -15px; }
  .today-card { min-height: 132px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 176px; }
  .method-view { padding-bottom: 100px; }
  .method-hero { display: block; }
  .method-hero .btn { margin-top: 24px; }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-notes { grid-template-columns: 1fr; }
  .workspace { display: block; }
  .reading-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .article-meta { margin-bottom: 28px; }
  .streak { display: none; }
}
@media (max-width: 560px) {
  .topbar { height: 68px; padding: 0 16px; }
  .brand small { display: none; }
  .header-practice-btn { display: none; }
  .install-btn { min-height: 36px; padding: 0 11px; font-size: 13px; }
  .network-status { padding: 5px 8px; font-size: 12px; }
  .home-view { padding: 28px 16px 92px; }
  .home-intro { padding: 28px 22px; border-radius: 16px; }
  .home-intro h1 { font-size: 30px; }
  .learning-overview { padding: 20px 18px; }
  .overview-heading { display: block; }
  .overview-heading > span { display: block; margin-top: 7px; }
  .resume-card { align-items: flex-start; flex-direction: column; }
  .resume-card .btn { width: 100%; }
  .recent-list span { display: block; }
  .recent-list span small { display: block; margin-top: 2px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .home-section { margin-top: 36px; }
  .category-grid { grid-template-columns: 1fr; }
  .method-view { padding: 24px 16px 92px; }
  .method-hero { padding: 28px 22px; }
  .method-hero h1 { font-size: 30px; }
  .method-block { padding: 24px 18px; }
  .method-heading { display: block; }
  .method-heading h2 { margin-top: 5px; }
  .universal-steps, .command-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .method-step { min-height: 0; }
  .marking-guide { grid-template-columns: 1fr; gap: 12px; }
  .type-row { grid-template-columns: 42px 1fr; gap: 12px; }
  .reading-panel, .practice-panel { padding: 26px 18px 56px; }
  .article-copy { font-size: 17px; line-height: 1.95; }
  textarea, .feedback, .hint-actions, .hint-panel { width: 100%; margin-left: 0; }
  .question-nav button small { display: none; }
  .top-actions { gap: 8px; }
  .btn-primary { padding: 0 13px; }
}
