/* Zhizheng: quiet reading surfaces, one focused daily-practice entry. */
:root {
  --navy:#183f35; --navy2:#245344; --ink:#203c33; --muted:#61736b;
  --teal:#286951; --teal-dark:#1c513e; --mint:#e9f1ec;
  --paper:#f5f7f5; --line:#dfe6df; --radius:18px;
}
body {font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif; -webkit-font-smoothing:antialiased;}
button,a,input,select {touch-action:manipulation;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid #9c6c28;outline-offset:4px;}
.sidebar {width:224px;padding:34px 18px 26px;background:#fff;color:var(--ink);border-right:1px solid var(--line);}
.brand {color:var(--ink);gap:12px;margin:0 10px 44px;font-family:"STSong","SimSun",serif;font-size:30px;letter-spacing:1px;}
.brand-mark {width:45px;height:48px;border:0;border-radius:12px 12px 3px 12px;background:var(--navy);color:#fff;font-size:27px;}
.brand small {font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:var(--muted);font-size:12px;letter-spacing:0;margin-top:4px;}
.side-label {font-size:12px;letter-spacing:0;color:var(--muted);padding-left:16px;margin-bottom:12px;}
.sidebar nav {gap:6px;}
.sidebar nav button {position:relative;color:#53695e;padding:13px 16px;gap:13px;border-radius:9px;font-size:15px;min-height:48px;}
.sidebar nav button>span {width:21px;height:22px;min-width:21px;display:inline-flex;align-items:center;}
.sidebar nav svg {width:21px;height:21px;}
.sidebar nav button:hover {background:#f3f6f3;color:var(--teal-dark);}
.sidebar nav button.active {background:var(--mint);color:var(--teal-dark);font-weight:600;}
.sidebar nav button.active::before {left:0;height:18px;width:3px;background:var(--teal);}
.sidebar nav i {background:#dce9df;color:#375a46;font-size:12px;}
.side-bottom {padding:25px 14px 0;}
.side-quote {font-size:17px;color:#486152;line-height:1.9;}
.side-bottom p {color:var(--muted);font-size:12px;}
.local-status {color:var(--muted);border-color:var(--line);font-size:12px;line-height:1.8;margin-top:20px;padding-top:18px;}
.workspace {margin-left:224px;}
.topbar {height:72px;background:var(--paper);padding:0 42px;border-bottom:1px solid var(--line);color:#4c6356;}
.top-actions {gap:18px;}
.top-location {display:flex;align-items:center;gap:12px;}
.mobile-brand {display:none;}
.course-tag {font-size:13px;color:var(--muted);}
.account-entry {border:1px solid #ccdad0;background:#fff;border-radius:8px;min-height:40px;padding:7px 15px;}
.account-entry:hover {background:var(--mint);}
.icon-btn {width:36px;height:36px;border-radius:50%;color:#526c5d;border-color:#d1dcd2;}
main {max-width:1280px;padding:32px 42px 48px;min-height:calc(100vh - 130px);}
h1 {font-size:30px;line-height:1.45;font-weight:650;letter-spacing:0;margin-bottom:9px;}
h2 {font-size:20px;font-weight:650;}
.page-heading {display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:22px;}
.page-heading h1 {font-size:25px;margin:0;}
.page-heading .subtitle {margin:0;font-size:14px;}
.subtitle {font-size:15px;line-height:1.8;}
.hero {grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr);gap:34px;align-items:center;background:var(--navy);border:0;padding:32px 36px;margin:0 0 24px;border-radius:18px;}
.hero-label {display:block;font-size:13px;color:#c1d6c7;margin-bottom:15px;}
.hero h2 {font-family:"STSong","SimSun",serif;font-weight:600;font-size:36px;line-height:1.5;letter-spacing:1px;color:#fff;margin-bottom:15px;}
.hero p {font-size:15px;line-height:1.9;color:#cfdfd3;margin-bottom:22px;}
.hero .btn {color:var(--navy);background:#f5f8ed;border:1px solid #f5f8ed;gap:25px;border-radius:8px;padding:12px 18px;}
.hero .btn:hover {background:#e1ebd9;border-color:#e1ebd9;}
.hero .btn span {font-size:20px;line-height:1;}
.hero .quality-note {font-size:12px;color:#b5cebe;margin:14px 0 0;}
.study-note {background:#f8faf4;padding:22px 23px 18px;border-radius:4px 14px 14px 4px;border-left:4px solid #b5cda9;color:var(--ink);align-self:center;}
.note-caption {display:block;font-size:13px;color:#5e735c;padding-bottom:16px;border-bottom:1px solid #dfe6d8;}
.term-pair {padding-top:16px;}
.term-pair>span {font-size:12px;color:#61715c;line-height:1.7;display:block;}
.hero .term-pair p {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:17px;line-height:1.8;color:var(--ink);margin:5px 0 0;}
.term-pair b {font-size:14px;font-weight:600;color:#365d43;box-shadow:inset 0 -7px #dce8c9;}
.term-pair p>span {color:#93a28b;}
.note-source {display:block;border-top:1px solid #dfe6d8;padding-top:14px;margin-top:19px;color:#65775c;font-size:12px;}
.stats-row {gap:0;background:#fff;border:1px solid var(--line);border-radius:12px;margin:24px 0 30px;padding:19px 0;}
.stat {padding:0 24px;background:none;border:0;border-radius:0;min-width:0;}
.stat+.stat {border-left:1px solid var(--line);}
.stat .label {font-size:13px;color:#5b6e61;}
.stat strong {font-family:"Segoe UI","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums;font-size:30px;font-weight:600;letter-spacing:0;margin:4px 0;}
.stat small {font-size:12px;line-height:1.6;color:#6a7a6c;}
.section-title {margin:28px 0 16px;}
.section-title>span {font-size:13px;}
.mode-grid {gap:14px;}
.mode-card {display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 18px;border-radius:12px;padding:22px;transition:border-color .15s,background .15s;}
.mode-card:hover {box-shadow:none;background:#fafcf9;border-color:#8eaf96;}
.mode-icon {grid-row:1/4;width:44px;height:44px;border-radius:10px;font-size:22px;margin:2px 0 0;background:#eaf2ec;color:#2e6948;}
.mode-card:nth-child(2) .mode-icon {background:#eff1e4;color:#617432;}
.mode-card:nth-child(3) .mode-icon {background:#edf0f3;color:#4b657b;}
.mode-card:nth-child(4) .mode-icon {background:#f6eee4;color:#956433;}
.mode-card h3 {font-size:18px;margin-bottom:0;}
.mode-card p {font-size:14px;line-height:1.8;margin:6px 0 13px;}
.card-foot {grid-column:2;gap:8px;font-size:12px;color:#687d6d;}
.card-foot b {font-size:12px;color:#42674d;}
.panel {border-radius:12px;padding:24px;}
.two-col {grid-template-columns:1.2fr 1fr;gap:20px;margin-top:22px;}
.note-list {gap:16px;line-height:1.8;}
.note-list b {color:#728565;font-size:13px;line-height:1.95;}
.track {height:4px;background:#ebf0e9;}
.track span {background:#7b9f76;}
.btn {border-radius:8px;min-height:46px;font-size:15px;}
.btn.small {min-height:40px;}
.btn.secondary {border-color:#d3ded4;}
.pill {min-height:44px;border-radius:7px;padding:10px 16px;}
.pill.selected {background:var(--mint);border-color:#8fac97;}
.field select,.search {border-color:#d2ddd3;border-radius:8px;min-height:48px;font-size:16px;}
.form-grid {gap:22px;margin:28px 0;}
.settings-foot {padding-top:24px;}
.notice {background:#ebf1e9;border-left-color:#89a681;color:#536b54;padding:16px 20px;line-height:1.8;}
.quiz-shell {max-width:860px;}
.quiz-card {padding:32px 38px;border-radius:16px;box-shadow:0 3px 18px #19392b05;}
.quiz-progress {height:4px;background:#dfe8dc;margin-bottom:24px;}
.question-meta {gap:12px;font-size:14px;line-height:1.8;}
.badge {background:var(--mint);color:var(--teal-dark);font-size:13px;}
.star {min-height:40px;}
.question-text {font-size:23px;line-height:1.95;font-weight:500;letter-spacing:0;margin:24px 0 28px;}
.option {border-radius:9px;padding:15px 19px;min-height:66px;}
.option b {background:#edf2ed;color:#56705c;}
.option.selected {background:#f0f6ef;}
.option.correct {border-color:#3d8056;background:#eff7ef;}
.option.correct b {background:#3d8056;}
.feedback {border-radius:9px;line-height:1.9;padding:22px;background:#eff6ee;border-color:#d9e6d6;}
.feedback.wrong {background:#fdf7ee;border-color:#e9ddca;}
.feedback.wrong .feedback-title {color:#865a22;}
.source {color:#61755f;font-size:13px;}
.source-links {gap:10px 16px;}
.source-links a,.source-links button {min-height:36px;display:inline-flex;align-items:center;font-size:14px;text-underline-offset:4px;}
.review-card {border-radius:10px;padding:20px 24px;}
.review-card summary {font-size:17px;line-height:1.9;}
.review-head {font-size:13px;}
.review-card summary::after {font-size:13px;margin-top:12px;}
.review-card[open] {border-color:#9bb09a;}
.result-hero {background:#e8f0e4;border-radius:16px;}
.result-caption {font-size:14px;}
.score-ring>div {background:#e8f0e4;}
.empty {padding:48px 22px;border-radius:12px;}
.resume {border-color:#a8bda5;border-radius:10px;background:#f0f5ec;}
.account-body input {border-color:#c9d6cb;border-radius:8px;min-height:48px;}
.account-body {padding:26px 30px 30px;}
.account-tabs .pill {flex:1;}
.account-note {color:#596d60;}
.account-body h2 {font-size:23px;}
#account-dialog {border-radius:16px;}
.dialog-head {padding:18px 24px;}
dialog::backdrop {background:#10281fc2;}
.link-button {min-height:36px;}
footer {font-size:12px;color:#68796b;padding-bottom:24px;line-height:1.8;}
#toast {left:calc(50% + 112px);}
@media(min-width:1500px) {.hero{padding:36px 42px;}.hero h2{font-size:40px;}}
@media(max-width:1150px) {
  .sidebar{width:200px;padding:30px 12px;}.workspace{margin-left:200px;}
  .topbar{padding:0 28px;}main{padding:28px;}.page-heading{display:block;}.page-heading .subtitle{margin-top:7px;}
  .hero{gap:24px;padding:28px;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);}.hero h2{font-size:32px;}
  .study-note{padding:20px 18px;}.hero .term-pair p{font-size:16px;}.stat{padding:0 18px;}
  .two-col{grid-template-columns:1fr;}.mode-card{padding:20px;gap:0 13px;}#toast{left:calc(50% + 100px);}
}
@media(max-width:900px) and (min-width:621px) {
  .sidebar{width:78px;padding:25px 10px;}.workspace{margin-left:78px;}.brand{margin:0 5px 30px;}
  .sidebar nav button{font-size:0;gap:0;justify-content:center;padding:14px 8px;}
  .sidebar nav button>span{width:23px;height:23px;}.sidebar nav svg{width:23px;height:23px;}
  .hero{gap:20px;}.hero h2{font-size:30px;}.mode-card{grid-template-columns:1fr;}.mode-icon{grid-row:auto;margin-bottom:14px;}
  .card-foot{grid-column:1;}.stat{padding:0 14px;}#toast{left:calc(50% + 39px);}
}
@media(max-width:620px) {
  .sidebar{inset:auto 0 0;width:100%;height:calc(68px + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);border:0;border-top:1px solid #d4dfd3;background:#fff;}
  .sidebar nav{gap:0;}.sidebar nav button{font-size:0;min-height:0;padding:8px 0 6px;gap:0;line-height:1.2;border-radius:0;}
  .sidebar nav button>span{width:21px;height:21px;min-width:21px;justify-content:center;}
  .sidebar nav button::after{font-size:12px;line-height:1.5;margin-top:4px;letter-spacing:0;}
  .sidebar nav button.active{background:#edf4ed;}.sidebar nav button.active::before{display:none;}
  .workspace{margin-left:0;padding-bottom:calc(68px + env(safe-area-inset-bottom));}
  .topbar{height:62px;padding:0 18px;background:#fff;}.top-actions{gap:8px;}
  .topbar #breadcrumb{font-size:14px;}.account-entry{font-size:13px;padding:7px 10px;min-height:44px;}
  .mobile-brand{display:block;background:none;padding:0;color:var(--ink);font-family:"STSong","SimSun",serif;font-size:23px;min-height:44px;}
  .topbar #breadcrumb{font-size:12px;color:var(--muted);}
  .top-location{gap:9px;}
  .icon-btn{width:44px;height:44px;font-size:16px;}main{padding:24px 18px 32px;}
  h1{font-size:26px;}.page-heading{margin-bottom:20px;}.page-heading h1{font-size:24px;}.page-heading .subtitle{font-size:14px;margin-top:6px;}
  .hero{display:block;padding:26px;border-radius:14px;margin-bottom:20px;}.hero-label{font-size:12px;margin-bottom:12px;}
  .hero h2{font-size:32px;line-height:1.5;letter-spacing:.5px;}.hero p{font-size:14px;line-height:1.85;margin-bottom:20px;}
  .hero .btn{width:100%;justify-content:space-between;padding:11px 16px;min-height:48px;}
  .hero .quality-note{font-size:12px;margin-top:13px;}.study-note{display:none;}.desktop-break{display:none;}
  .stats-row{padding:0;gap:0;margin:20px 0 26px;}.stat{padding:16px 18px;}
  .stat:nth-child(3){border-left:0;}.stat:nth-child(n+3){border-top:1px solid var(--line);}
  .stat strong{font-size:28px;margin:3px 0;}.stat small{font-size:12px;}.stat .label{font-size:13px;}
  .section-title{gap:12px;margin-top:25px;}.section-title h2{font-size:18px;}.section-title>span{font-size:12px;}
  .mode-grid{gap:12px;}.mode-card{padding:20px 17px;grid-template-columns:38px minmax(0,1fr);gap:0 14px;}
  .mode-icon{width:38px;height:40px;font-size:21px;}.mode-card h3{font-size:17px;}.mode-card p{font-size:14px;margin:5px 0 11px;}
  .card-foot{font-size:12px;}.card-foot b{font-size:12px;}.panel{padding:21px 19px;}.two-col{gap:16px;}
  .form-grid{gap:18px;margin:24px 0;}.pill{font-size:14px;padding:9px 12px;}.settings-foot .btn{min-height:48px;}
  .quiz-top{margin-bottom:15px;}.quiz-top .btn{font-size:14px;}.quiz-top p{font-size:13px;}
  .quiz-card{padding:23px 19px;border-radius:12px;}.quiz-progress{margin-bottom:18px;}.question-meta{font-size:13px;gap:6px;}
  .question-meta .star{font-size:13px;min-height:44px;}.question-text{font-size:20px;line-height:1.95;margin:20px 0 24px;}
  .option{min-height:64px;padding:13px 12px;font-size:16px;gap:10px;}.option.selected,.option.correct,.option.incorrect{padding:12px 11px;}
  .option b{width:26px;height:28px;}.quiz-actions{justify-content:flex-end;}.quiz-actions .btn{min-height:48px;min-width:140px;}
  .feedback{padding:18px 16px;}.feedback p{font-size:16px;}.source{font-size:13px;}.source-links a,.source-links button{min-height:44px;}
  .review-card{padding:18px;}.review-card summary{font-size:16px;}.review-head{font-size:12px;}
  .count-line{font-size:13px;}.account-body{padding:22px;}.account-body h2{font-size:22px;}.dialog-head{padding:15px 20px;}
  .account-tabs .pill{min-height:44px;}.note-list{font-size:14px;}.mini-caption{font-size:12px;line-height:1.8;}
  footer{font-size:12px;padding:0 20px 22px;}.backup-actions .btn{min-height:44px;}
  #toast{left:50%;bottom:calc(84px + env(safe-area-inset-bottom));}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
