:root {
  --ink: #17233d;
  --muted: #667085;
  --paper: #fffdf7;
  --cream: #f7f4eb;
  --indigo: #4456c7;
  --indigo-dark: #2f3e9e;
  --mint: #c9f0de;
  --coral: #ff7f6a;
  --line: #dedccf;
  --shadow: 0 18px 55px rgba(44, 54, 103, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #f4b63f; outline-offset: 3px; }
.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; }

.site-header {
  max-width: 1160px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; background: var(--indigo); color: white; font-size: 18px; box-shadow: 4px 4px 0 #aeb6f7; }
.header-note { color: var(--muted); font-size: 14px; letter-spacing: .12em; }

.hero {
  max-width: 1100px;
  margin: 42px auto 36px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
}
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 15px; color: var(--indigo); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: 1.05; letter-spacing: -.06em; font-weight: 900; }
h1 span { color: var(--indigo); position: relative; }
h1 span::after { content: ""; position: absolute; left: 0; right: 2px; bottom: -8px; height: 7px; border-radius: 50%; background: var(--coral); transform: rotate(-1.5deg); }
.hero-description { max-width: 540px; margin: 30px 0 25px; color: #4c5870; font-size: 18px; line-height: 1.8; }
.steps { display: flex; align-items: center; gap: 12px; color: #4d5870; font-size: 14px; font-weight: 700; }
.steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7e9fb; color: var(--indigo); }
.steps i { width: 26px; border-top: 1px dashed #9ca3b5; }
.hero-sticker { flex: 0 0 auto; width: 175px; height: 175px; border-radius: 50%; background: var(--mint); display: grid; place-content: center; text-align: center; transform: rotate(5deg); box-shadow: 9px 9px 0 #89d9b5; border: 2px solid #6fc89f; }
.hero-sticker strong { font-size: 30px; letter-spacing: .08em; }
.hero-sticker span { margin-top: 8px; color: #307a59; font-weight: 800; letter-spacing: .08em; }

.workspace, .results, .daily-news, .daily-plan, .campus-library, .learning-shelf, .learning-paths { max-width: 1000px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.learning-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 52px; }
.learning-paths a { display: flex; flex-direction: column; gap: 5px; border: 1px solid #d5d8ed; border-radius: 15px; background: #f0f2ff; padding: 15px 17px; color: var(--ink); text-decoration: none; }
.learning-paths a:nth-child(2) { border-color: #bfe4d4; background: #e9f8f1; }
.learning-paths a:nth-child(3) { border-color: #f1d4ac; background: #fff4df; }
.learning-paths a:nth-child(4) { border-color: #efc6d3; background: #fff0f4; }
.learning-paths strong { font-size: 15px; }
.learning-paths span { color: var(--muted); font-size: 12px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading-row .eyebrow { margin-bottom: 4px; }
.section-note { color: var(--muted); font-size: 12px; }
.daily-plan { margin-bottom: 52px; }
.streak-badge { display: flex; align-items: center; gap: 9px; border-radius: 13px; background: #fff1cf; padding: 9px 13px; color: #855c08; }
.streak-badge strong { font-size: 26px; line-height: 1; }
.streak-badge span { max-width: 60px; font-size: 10px; line-height: 1.25; }
.daily-plan-grid { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.daily-checklist { display: grid; gap: 7px; padding: 22px; background: #eff1fd; }
.daily-checklist button { display: grid; grid-template-columns: 30px 1fr; gap: 1px 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.72); padding: 12px; text-align: left; cursor: pointer; }
.daily-checklist button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #9aa5e4; border-radius: 50%; color: var(--indigo); font-weight: 900; }
.daily-checklist button strong { font-size: 13px; }
.daily-checklist button small { color: var(--muted); font-size: 10px; }
.daily-checklist button.completed { background: #e3f6ec; }
.daily-checklist button.completed > span { border-color: #4ca77d; background: #4ca77d; color: white; }
.daily-phrase-card { padding: 25px 27px; }
.daily-label, .campus-category { display: inline-flex; border-radius: 99px; background: var(--mint); padding: 4px 9px; color: #276a4c; font-size: 10px; font-weight: 900; }
.daily-phrase-card > p { margin: 17px 0 5px; color: var(--muted); font-size: 14px; }
.daily-phrase-card > strong { display: block; font-size: 23px; line-height: 1.45; }
.daily-phrase-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.daily-phrase-card button, .campus-card-actions button { border: 1px solid #c8cce4; border-radius: 9px; background: white; padding: 8px 11px; color: var(--indigo-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.daily-phrase-card button:disabled, .campus-card-actions button:disabled { opacity: .48; cursor: not-allowed; }
.daily-phrase-jyutping { display: flex; flex-wrap: wrap; gap: 13px 9px; padding-top: 9px; }
.daily-news { margin-bottom: 48px; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.news-heading .eyebrow { margin-bottom: 5px; }
.history-toggle { border: 1px solid #c9c9c2; border-radius: 10px; background: transparent; padding: 8px 12px; color: var(--indigo); font-size: 13px; font-weight: 800; cursor: pointer; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.news-card { padding: 27px 29px; border-right: 1px solid var(--line); }
.news-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.news-meta span { border-radius: 99px; background: var(--mint); color: #246849; padding: 4px 9px; font-weight: 900; }
.news-card h3 { margin: 18px 0 12px; font-size: 24px; line-height: 1.35; }
.news-summary { margin: 0; color: #4d5870; line-height: 1.85; font-size: 15px; }
.news-source-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 17px; color: var(--muted); font-size: 12px; }
.news-source-row a { color: var(--indigo); font-weight: 800; }
.news-actions { display: flex; align-items: center; gap: 12px; margin-top: 21px; padding-top: 17px; border-top: 1px dashed var(--line); }
.news-actions > span { color: var(--muted); font-size: 11px; }
.news-speak-button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 9px 12px; background: var(--indigo); color: white; font-size: 13px; font-weight: 800; cursor: pointer; }
.news-speak-button:disabled { opacity: .48; cursor: not-allowed; }
.mark-read-button { border: 1px solid #b9c0e4; border-radius: 8px; background: white; padding: 7px 9px; color: var(--indigo-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.mark-read-button:disabled { border-color: #acd9c4; background: #e4f6ed; color: #28704d; }
.news-learning { min-width: 0; padding: 27px 25px; background: #f1f2fc; }
.news-reader-heading, .news-reader-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-learning-label { margin: 0; color: var(--indigo); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.news-reader-heading button { border: 0; background: transparent; padding: 5px; color: var(--indigo); font-size: 11px; font-weight: 800; cursor: pointer; }
.news-reader-heading button:disabled { opacity: .45; cursor: not-allowed; }
.news-reader-status { margin: 12px 0 16px; color: var(--muted); font-size: 11px; }
.news-reader-status label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.news-reader-status input { accent-color: var(--indigo); }
#news-token-list { display: grid; gap: 12px; padding: 2px; }
#news-token-list.show-all { max-height: 390px; overflow: auto; }
.news-sentence { display: grid; gap: 11px; border: 1px solid #d7daed; border-radius: 13px; background: rgba(255,255,255,.72); padding: 13px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.news-sentence.speaking { border-color: #8994e2; background: white; box-shadow: 0 0 0 3px rgba(68,86,199,.11); }
.news-sentence-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-sentence-label { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.news-sentence-speak { flex: 0 0 auto; border: 1px solid #bfc5e5; border-radius: 8px; background: white; padding: 6px 9px; color: var(--indigo-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.news-sentence-speak:disabled { opacity: .48; cursor: not-allowed; }
.news-reader-controls { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; margin-top: 14px; }
.news-reader-controls[hidden] { display: none; }
.news-reader-controls button { min-height: 38px; border: 1px solid #c4c9e5; border-radius: 9px; background: white; padding: 8px; color: var(--indigo-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.news-reader-controls button:disabled { opacity: .42; cursor: not-allowed; }
#news-replay-sentence { border-color: var(--indigo); background: var(--indigo); color: white; }
.news-token-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 10px; line-height: 1.15; }
.news-token-line .hanzi { font-size: 18px; }
.news-token-line .jyutping { font-size: 11px; }
.news-loading { color: var(--muted); font-size: 13px; }
.news-history { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.news-history h3 { margin: 0 0 12px; font-size: 15px; }
#news-history-list { display: grid; gap: 5px; max-height: 320px; overflow: auto; }
.history-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; width: 100%; border: 0; border-radius: 9px; background: transparent; padding: 9px 10px; text-align: left; cursor: pointer; }
.history-item:hover, .history-item.active { background: #eeeffb; }
.history-item time { color: var(--muted); font-size: 12px; }
.history-item span { font-size: 13px; font-weight: 700; }
.news-error { min-height: 18px; margin: 8px 0 0; color: #945b1f; font-size: 12px; }
.campus-library { margin-bottom: 52px; }
.campus-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.campus-filters button { border: 1px solid #c9c9c2; border-radius: 99px; background: transparent; padding: 7px 12px; color: var(--muted); font-size: 12px; cursor: pointer; }
.campus-filters button.active { border-color: var(--indigo); background: var(--indigo); color: white; font-weight: 800; }
.campus-phrase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.campus-phrase-card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); padding: 19px; box-shadow: 0 7px 22px rgba(44,54,103,.05); }
.campus-phrase-card.speaking { border-color: #8994e2; box-shadow: 0 0 0 3px rgba(68,86,199,.11); }
.campus-simplified { margin: 13px 0 4px; color: var(--muted); font-size: 12px; }
.campus-phrase-card h3 { margin: 0; font-size: 19px; line-height: 1.45; }
.campus-written { margin: 8px 0 0; color: #6f7583; font-size: 11px; }
.campus-card-actions { display: flex; gap: 7px; margin-top: 15px; }
.campus-pronunciation { display: flex; flex-wrap: wrap; gap: 13px 9px; margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--line); }
.phrase-token-line { display: contents; }
.campus-status { min-height: 18px; color: #945b1f; font-size: 12px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 30px; }
.panel-heading, .results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.step-label { color: var(--indigo); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.03em; }
.text-button, .clear-button { border: 0; background: transparent; color: var(--indigo); font-weight: 800; cursor: pointer; padding: 10px; }
.mode-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); background: #f2f1eb; border-radius: 12px; margin: 24px 0 15px; }
.mode-switch button { border: 0; background: transparent; border-radius: 9px; padding: 9px 14px; font-weight: 800; font-size: 14px; }
.mode-switch .active { color: var(--indigo); background: white; box-shadow: 0 2px 8px rgba(44,54,103,.08); }
.mode-switch button:disabled { color: #9a9eaa; cursor: not-allowed; }
.mode-switch small { margin-left: 5px; font-size: 10px; border: 1px solid #c9c9c2; border-radius: 99px; padding: 2px 5px; }
.mode-help { margin: -7px 0 14px; color: var(--muted); font-size: 12px; }
textarea { width: 100%; min-height: 190px; resize: vertical; border: 1.5px solid #d8d6cb; border-radius: 15px; background: #fff; color: var(--ink); padding: 19px 20px; line-height: 1.8; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
textarea::placeholder { color: #a0a5b1; }
textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(68,86,199,.09); outline: 0; }
.input-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.count { color: #858b98; font-size: 13px; }
.count.warning { color: #b14b38; font-weight: 800; }
.input-actions { display: flex; align-items: center; gap: 8px; }
.primary-button { border: 0; border-radius: 12px; color: white; background: var(--indigo); padding: 12px 19px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 var(--indigo-dark); transition: transform .15s, box-shadow .15s; }
.primary-button span { margin-left: 15px; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 0 var(--indigo-dark); }
.primary-button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--indigo-dark); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.message { margin: 16px 0 0; padding: 11px 13px; border-radius: 10px; font-size: 14px; }
.error-message { color: #8d3022; background: #fff0ed; border: 1px solid #ffc7bc; }
.success-message { color: #226344; background: #e5f7ee; border: 1px solid #afe4c9; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 55px; color: #687084; font-size: 13px; }
.privacy-note span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #28704d; background: #d8f2e5; font-weight: 900; }
.privacy-note p { margin: 0; }

.results { margin-top: 34px; margin-bottom: 75px; }
.results-heading { align-items: end; margin-bottom: 22px; }
.result-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.result-actions label { color: var(--muted); font-size: 13px; }
.result-actions select, .result-actions button { margin-left: 5px; border: 1px solid #cbc9bf; border-radius: 9px; background: var(--paper); padding: 8px 10px; font-size: 13px; cursor: pointer; }
.speech-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.speech-controls label { color: var(--muted); font-size: 12px; }
.speech-controls select { margin-left: 4px; max-width: 190px; border: 1px solid #cbc9bf; border-radius: 8px; background: var(--paper); padding: 7px 8px; color: var(--ink); font-size: 12px; }
.speech-controls select:disabled, .result-actions select:disabled { opacity: .55; cursor: not-allowed; }
.speech-status { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #7a5c24; font-size: 13px; }
.speech-status.ready { color: #28704d; }
.speech-status span { font-size: 11px; }
.sentence-list { display: grid; gap: 14px; }
.sentence-card { display: grid; grid-template-columns: 52px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 25px rgba(44,54,103,.06); }
.sentence-card.speaking { border-color: #8994e2; box-shadow: 0 0 0 3px rgba(68,86,199,.11), 0 8px 25px rgba(44,54,103,.08); }
.news-card .speaking { border-radius: 7px; background: #fff0b8; box-shadow: 0 0 0 4px #fff0b8; }
.sentence-number { display: grid; place-items: start center; padding-top: 25px; background: #eeeffb; color: var(--indigo); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sentence-content { min-width: 0; padding: 24px; }
.written-reference { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #f3f1e9; color: var(--muted); font-size: 13px; line-height: 1.6; }
.written-reference strong { color: var(--ink); }
.token-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px 12px; line-height: 1.15; }
.token { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.practice-token { cursor: pointer; }
.jyutping-hidden .practice-token:not(.revealed) .jyutping { visibility: hidden; }
.jyutping-hidden .practice-token:not(.revealed)::after { content: "点一下看粤拼"; position: absolute; left: 0; bottom: -2px; color: #8b91a0; font-size: 8px; white-space: nowrap; }
.save-word-button { position: absolute; top: -12px; right: -10px; z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border: 0; border-radius: 50%; background: #fff4cf; padding: 0; color: #b67b00; font-size: 13px; line-height: 1; cursor: pointer; opacity: .42; }
.token:hover .save-word-button, .save-word-button:focus-visible, .save-word-button.saved { opacity: 1; }
.hanzi { font-size: 21px; font-weight: 800; letter-spacing: .04em; white-space: pre-wrap; }
.jyutping { display: flex; gap: 5px; min-height: 15px; color: #556078; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.punctuation { align-self: flex-start; margin-left: -8px; }
.punctuation .hanzi { color: #6f7583; }
.change-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.change-list strong { margin-right: 2px; color: var(--ink); }
.change-list span { border: 1px solid #cfd4f0; border-radius: 99px; background: #f2f3ff; color: var(--indigo-dark); padding: 4px 8px; }
.tone-1 { color: #d04c37; }.tone-2 { color: #d17814; }.tone-3 { color: #897000; }.tone-4 { color: #25805a; }.tone-5 { color: #3474a8; }.tone-6 { color: #7053a6; }
.sentence-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 15px; border-top: 1px dashed #d9d7cd; }
.speak-button { border: 0; border-radius: 9px; padding: 9px 12px; background: #e9ebfb; color: var(--indigo-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.speak-button span { margin-right: 6px; }
.speak-button:disabled { opacity: .48; cursor: not-allowed; }
.unknown-note, .result-warning { color: #945b1f; font-size: 12px; }
.result-warning { margin: 13px 0; }
.tone-legend { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.tone-legend strong { color: var(--ink); margin-right: 5px; }
.tone-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; font-weight: 900; }
.tone-bg-1 { background:#d04c37 }.tone-bg-2 { background:#d17814 }.tone-bg-3 { background:#897000 }.tone-bg-4 { background:#25805a }.tone-bg-5 { background:#3474a8 }.tone-bg-6 { background:#7053a6 }
.tone-legend small { margin-left: 5px; }
.learning-shelf { margin-bottom: 50px; }
.shelf-actions { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.shelf-actions button { border: 0; background: transparent; color: #a04435; font-size: 11px; cursor: pointer; }
.shelf-help { margin: -5px 0 15px; color: var(--muted); font-size: 12px; }
.wordbook-list, .history-list { display: grid; gap: 9px; }
.shelf-empty { border: 1px dashed #c9c9c2; border-radius: 13px; margin: 0; padding: 22px; color: var(--muted); text-align: center; font-size: 13px; }
.word-card, .history-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 15px 17px; }
.word-card.mastered { border-color: #b7dfcc; background: #eff9f4; }
.word-card h3, .history-card h3 { margin: 0; font-size: 17px; }
.word-reading { margin: 4px 0; color: var(--indigo); font: 800 12px/1.3 ui-monospace, Consolas, monospace; }
.word-source, .history-card p { max-width: 650px; margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.word-actions, .history-card > div:last-child { display: flex; flex: 0 0 auto; gap: 6px; }
.word-actions button, .history-card button { border: 1px solid #c8cbe0; border-radius: 8px; background: white; padding: 7px 9px; color: var(--indigo-dark); font-size: 11px; cursor: pointer; }
.word-actions button:disabled { opacity: .48; }
.danger-text { color: #a04435 !important; }
.history-card span { color: #777e8d; font-size: 10px; }
.history-card h3 { max-width: 650px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learning-toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 340px; border-radius: 12px; background: #263463; padding: 12px 16px; color: white; box-shadow: 0 10px 35px rgba(23,35,61,.25); font-size: 13px; }
footer { border-top: 1px solid var(--line); max-width: 1000px; margin: auto; padding: 25px 24px 40px; display: flex; justify-content: space-between; gap: 20px; color: #777e8d; font-size: 12px; }
footer strong { color: var(--ink); }

@media (max-width: 720px) {
  .site-header { padding: 18px 20px; }
  .header-note { display: none; }
  .hero { margin-top: 18px; padding: 18px 22px; justify-content: flex-start; }
  .hero-sticker { display: none; }
  h1 { font-size: 51px; }
  .hero-description { font-size: 16px; }
  .steps { gap: 7px; font-size: 12px; }
  .steps i { width: 12px; }
  .workspace, .results, .daily-news, .daily-plan, .campus-library, .learning-shelf, .learning-paths { padding-left: 15px; padding-right: 15px; }
  .learning-paths { grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 38px; }
  .learning-paths a { padding: 11px 14px; }
  .section-heading-row { align-items: flex-start; }
  .daily-plan-grid { grid-template-columns: 1fr; }
  .daily-checklist { padding: 15px; }
  .daily-phrase-card { padding: 21px 18px; }
  .campus-phrase-list { grid-template-columns: 1fr; }
  .daily-news { margin-bottom: 38px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-card { padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-learning { padding: 22px 18px; }
  .news-sentence { padding: 12px 10px; }
  .news-reader-controls button { min-height: 42px; padding: 8px 5px; }
  .news-card h3 { font-size: 21px; }
  .news-actions { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: 100px 1fr; }
  .panel { padding: 21px 17px; border-radius: 18px; }
  .panel-heading, .results-heading { align-items: flex-start; }
  .text-button { padding-right: 0; font-size: 13px; }
  textarea { min-height: 180px; padding: 15px; font-size: 16px; }
  .input-footer { align-items: flex-end; }
  .results-heading { flex-direction: column; }
  .result-actions { justify-content: flex-start; }
  .sentence-card { grid-template-columns: 38px 1fr; }
  .sentence-content { padding: 20px 16px; }
  .token-line { gap: 15px 10px; }
  .hanzi { font-size: 20px; }
  .privacy-note { align-items: flex-start; padding: 0 12px; }
  .word-card, .history-card { align-items: flex-start; flex-direction: column; }
  .word-actions, .history-card > div:last-child { flex-wrap: wrap; }
  .word-source, .history-card p, .history-card h3 { max-width: 100%; }
  .learning-toast { left: 15px; right: 15px; bottom: 15px; max-width: none; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
