:root {
  --paper: #fffaf0;
  --surface: #f5e7cf;
  --ink: #2b2118;
  --muted: #786657;
  --red: #c83b2d;
  --jade: #36756d;
  --blue: #2f7180;
  --gold: #c88b2c;
  --line: rgba(70,45,25,.15);
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
.guide-header { position: sticky; z-index: 50; top: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,250,240,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.guide-wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; }
.guide-mark { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 8px; font-size: 14px; }
.guide-nav { display: flex; align-items: center; gap: 7px; }
.guide-nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.guide-nav a:hover { color: var(--red); }
.guide-nav a.active { color: white; background: var(--ink); }
.guide-home { color: white !important; background: var(--red); }
.guide-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.channel-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: end; padding: 86px 0 54px; border-bottom: 1px solid var(--line); }
.channel-kicker { margin: 0 0 16px; color: var(--red); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.channel-hero h1 { max-width: 850px; margin: 0; font-family: var(--serif); font-size: clamp(58px, 8vw, 112px); font-weight: 400; line-height: .82; letter-spacing: -.06em; }
.channel-hero h1 em { color: var(--red); font-style: italic; font-weight: 400; }
.channel-hero-aside { padding-bottom: 7px; }
.channel-hero-aside p { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.verified-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--jade); background: rgba(54,117,109,.09); border-radius: 999px; font-size: 11px; font-weight: 650; }
.verified-note::before { content: ""; width: 7px; height: 7px; background: var(--jade); border-radius: 50%; }
.progress-panel { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 26px 0 14px; padding: 22px 24px; color: white; background: var(--ink); border-radius: 22px; }
.progress-copy { display: grid; gap: 9px; }
.progress-copy strong { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.progress-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.15); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .25s ease; }
.progress-count { color: #e7d9ca; font-size: 12px; }
.reset-button { min-height: 38px; padding: 0 12px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; cursor: pointer; font-size: 11px; }
.prep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 14px 0 82px; }
.prep-card { position: relative; min-height: 360px; display: flex; flex-direction: column; padding: 30px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.prep-card:first-child { grid-column: span 2; min-height: 330px; color: white; background: linear-gradient(135deg, #9d3027, #c64a35 58%, #d18b36); border: 0; }
.prep-card-number { color: var(--red); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.prep-card:first-child .prep-card-number { color: #ffd794; }
.prep-card h2 { max-width: 680px; margin: auto 0 14px; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.prep-card > p { max-width: 760px; margin: 0 0 21px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.prep-card:first-child > p { color: rgba(255,255,255,.8); }
.prep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.prep-actions a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--red); background: rgba(200,59,45,.07); border-radius: 999px; font-size: 11px; font-weight: 650; }
.prep-card:first-child .prep-actions a { color: var(--ink); background: white; }
.check-label { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; background: rgba(54,117,109,.08); border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 650; }
.prep-card:first-child .check-label { background: rgba(255,255,255,.14); }
.check-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--jade); }
.sequence { margin-bottom: 24px; padding: 70px 54px; color: white; background: var(--blue); border-radius: 30px; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 44px; align-items: end; margin-bottom: 38px; }
.section-heading p { margin: 0; color: #f4c36b; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 400; line-height: .92; }
.sequence-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.sequence article { padding: 28px 24px 0 0; }
.sequence article + article { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); }
.sequence span { color: #f4c36b; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.sequence h3 { margin: 42px 0 12px; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.sequence p { margin: 0; color: #d6e5e6; font-size: 14px; line-height: 1.6; }
.source-note { margin: 0 0 70px; padding: 22px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.source-note a { color: var(--red); font-weight: 650; }
.phrase-tools { position: sticky; z-index: 20; top: 78px; display: grid; grid-template-columns: minmax(230px,.8fr) 1.8fr; gap: 12px; margin: 26px 0 22px; padding: 12px; background: rgba(255,253,248,.93); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(70,45,25,.08); backdrop-filter: blur(18px); }
.phrase-search { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border-radius: 12px; }
.phrase-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 13px; }
.phrase-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.phrase-filters::-webkit-scrollbar { display: none; }
.phrase-filters button { flex: 0 0 auto; min-height: 42px; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 650; }
.phrase-filters button.active { color: white; background: var(--ink); border-color: var(--ink); }
.phrase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 82px; }
.phrase-card { min-height: 260px; display: grid; grid-template-rows: auto 1fr auto; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.phrase-card[hidden] { display: none; }
.phrase-context { margin: 0; color: var(--red); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.phrase-chinese { align-self: center; margin: 20px 0 5px; font-family: "Songti SC", "STSong", var(--serif); font-size: clamp(39px, 5vw, 62px); font-weight: 500; line-height: 1; }
.phrase-pinyin { margin: 0 0 9px; color: var(--jade); font-size: 14px; font-weight: 600; }
.phrase-english { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.speak-button { width: 46px; height: 46px; display: grid; place-items: center; justify-self: end; color: white; background: var(--red); border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; }
.speak-button:hover { background: #aa2f24; }
.speak-button.playing { background: var(--jade); }
.phrase-empty { margin: 10px 0 82px; padding: 42px; color: var(--muted); border: 1px dashed var(--line); border-radius: 22px; text-align: center; }
.audio-status { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; color: white; background: var(--ink); border-radius: 999px; box-shadow: 0 16px 40px rgba(0,0,0,.2); font-size: 12px; }
.guide-footer { width: min(1180px, calc(100% - 48px)); min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.guide-footer a:last-child { color: var(--red); font-weight: 650; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(200,59,45,.38); outline-offset: 3px; }
@media (max-width: 820px) {
  .guide-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 14px 9px; }
  .guide-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .guide-nav::-webkit-scrollbar { display: none; }
  .guide-nav a { background: rgba(96,61,29,.06); }
  .guide-nav a.active { background: var(--ink); }
  .guide-main { width: min(100% - 28px, 680px); }
  .channel-hero { grid-template-columns: 1fr; gap: 28px; padding: 58px 0 38px; }
  .channel-hero h1 { font-size: clamp(56px, 17vw, 86px); }
  .prep-grid { grid-template-columns: 1fr; }
  .prep-card:first-child { grid-column: auto; }
  .sequence { padding: 54px 26px; border-radius: 24px; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .sequence-grid { grid-template-columns: 1fr; }
  .sequence article { padding: 26px 0; }
  .sequence article + article { padding-left: 0; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; }
  .sequence h3 { margin-top: 24px; }
  .phrase-tools { position: static; grid-template-columns: 1fr; }
  .phrase-grid { grid-template-columns: 1fr; }
  .guide-footer { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; padding: 30px 0; }
}
@media (max-width: 430px) {
  .guide-wordmark > span:last-child { display: none; }
  .progress-panel { grid-template-columns: 1fr; }
  .reset-button { width: fit-content; }
  .prep-card { min-height: 340px; padding: 24px; }
  .phrase-card { min-height: 240px; padding: 22px; }
}
