/* ==========================================================================
   Hanzi landing (hanzi.html) — 2026-09 redesign
   Source: Figma file "Mr.Wang Chinese — hanzi.html".
   Replaces assets/hanzi-landing.css on this page (that file is no longer
   linked anywhere). Everything is scoped to body.dna-page, so no other page
   is affected. The site-wide nav size lives in assets/site-nav.css.

   Palette  coral  #FA6A6D  (deep #C23F46)   blue #6AA6FA (deep #3F7FD8)
            purple #956AFA                    ink #1F1A1A / #4A4040 / #7A6B6B
   Motion   hero: three slides in turn (2026-11-01), every 6s — characters coral, Reading blue,
            HSK Test purple — the colour fading with the slide (assets/home-hero.js); each faded
            picture belongs to one colour; reviews scroll 90s
   ========================================================================== */

body.dna-page.site-ui {
  --hc-coral:#FA6A6D;  --hc-coral-rgb:250,106,109;
  --hc-coral-deep:#C23F46; --hc-coral-deep-rgb:194,63,70;
  --hc-blue:#6AA6FA;   --hc-blue-rgb:106,166,250;
  --hc-blue-deep:#3F7FD8;  --hc-blue-deep-rgb:63,127,216;
  --hc-purple:#956AFA; --hc-purple-rgb:149,106,250;
  --hc-ink:#1F1A1A; --hc-body:#4A4040; --hc-muted:#7A6B6B;
  --hc-tint:#FFF1F0; --hc-tint-2:#FFE3E1; --hc-wash:#FFF5F4;
}

/* ── Page frame ─────────────────────────────────────────────────────────── */
body.dna-page.site-ui .dna-main.hz-home { --hz-gutter:80px; background:#F8F8F8; overflow-x:clip; }
body.dna-page.site-ui .hz-home .hz-wrap {
  position:relative; z-index:1;
  width:calc(100% - var(--hz-gutter) * 2); max-width:1200px;
  margin-inline:auto; padding:0;
}

/* ── Launch notice: one dark line under the nav, scrolling right to left ────
      Sits outside the sticky header on purpose: it scrolls away with the page
      and leaves --mw-header-h (and every layout measured from it) untouched.
      Dark ink reads against all three hero colours as they cycle. */
body.dna-page.site-ui .hz-home .hz-notice {
  position:relative; overflow:hidden;
  background:var(--hc-ink); color:#fff;
}
body.dna-page.site-ui .hz-home .hz-notice-sr {
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
body.dna-page.site-ui .hz-home .hz-notice-track {
  display:flex; width:max-content;
  animation:hcNotice 90s linear infinite;   /* ~42px a second */
}
body.dna-page.site-ui .hz-home .hz-notice:hover .hz-notice-track { animation-play-state:paused; }
body.dna-page.site-ui .hz-home .hz-notice-group { display:flex; flex:none; }
body.dna-page.site-ui .hz-home .hz-notice-group span {
  display:flex; align-items:center; gap:28px; padding:0 28px 0 0;
  font:600 15px/42px var(--t-ui); letter-spacing:.02em; white-space:nowrap;
}
body.dna-page.site-ui .hz-home .hz-notice-group span::after {   /* a coral star between repeats */
  content:"\2726"; color:var(--hc-coral); font-size:13px;
}
@keyframes hcNotice {                 /* one full group */
  from { transform:translate3d(0,0,0); }
  to   { transform:translate3d(-50%,0,0); }
}
@media (max-width:640px) {
  body.dna-page.site-ui .hz-home .hz-notice-group span { gap:20px; padding-right:20px; font-size:14px; line-height:36px; }
}

/* ── Hero: three slides, each in its own colour (2026-11-01, Yi) ──────────
      The colour follows the slide (data-slide, set by assets/home-hero.js):
      0 the characters coral, 1 Reading blue, 2 the HSK mock tests purple.
      --hz-deep is the same hue carried deep enough for type on white: the
      slide's button and the chosen dot take it. */
body.dna-page.site-ui .hz-home .hz-open {
  position:relative; isolation:isolate; overflow:hidden;
  padding:132px 0 150px;           /* the numbers band overlaps the last 40px */
  background:var(--hc-coral); --hz-deep:var(--hc-coral-deep);
  transition:background-color .9s ease-in-out;
}
body.dna-page.site-ui .hz-home .hz-open[data-slide="1"] { background-color:var(--hc-blue); --hz-deep:#2B62B3; }     /* 6.0:1 on white */
body.dna-page.site-ui .hz-home .hz-open[data-slide="2"] { background-color:var(--hc-purple); --hz-deep:#6B46C1; }   /* 6.4:1 on white */
body.dna-page.site-ui .hz-home .hz-open::before,
body.dna-page.site-ui .hz-home .hz-open::after { content:none; }

/* Faded pictures: the characters (coral) have two, the calligraphy sheet and the oracle bone (Yi, 2026-11-02: "把这个
   背景图挪到汉字页" … "汉字页有两张背景图"; the oracle bone had been the HSK slide's, which now has none); Reading has
   the open book. The oracle bone is anchored behind the video as the layout stacks. */
body.dna-page.site-ui .hz-home .hz-hero-art { position:absolute; inset:0; z-index:0; pointer-events:none; user-select:none; }
body.dna-page.site-ui .hz-home .hz-hero-pic { position:absolute; display:block; max-width:none; height:auto; transition:opacity .9s ease-in-out; }
body.dna-page.site-ui .hz-home .hz-hero-pic-oracle {
  left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(620px,120%); z-index:-1; opacity:.06; pointer-events:none; user-select:none;
}
body.dna-page.site-ui .hz-home .hz-hero-pic-sheet {
  left:calc(50% - 776px); top:-101px; width:816px; opacity:.06;
}
/* Reading: an open book with its pages flying (Yi, 2026-11-02: "把文件里的open book with flying 放进reading部分的背景里";
   D:\网站建设\网站素材\网站首页素材\Open Book with Flying Pages.png). At half strength (Yi: "透明度降低50%，图形往左
   挪动"), at the foot of the slide: the book under the drawing of a text and reaching out left of it, its pages flying
   up behind it. Its left part is clear: its first page stays right of the words (34px at 1440 wide) and the pills. */
body.dna-page.site-ui .hz-home .hz-hero-pic-books {
  right:max(-40px,calc(50% - 520px)); bottom:40px; width:min(1000px,70vw); opacity:0;
}
body.dna-page.site-ui .hz-home .hz-open:not([data-slide="0"]) :is(.hz-hero-pic-oracle, .hz-hero-pic-sheet) { opacity:0; }
body.dna-page.site-ui .hz-home .hz-open[data-slide="1"] .hz-hero-pic-books { opacity:.5; }

/* The slides lie on top of each other in one grid cell, so the hero keeps the
   height of the tallest and nothing below it moves when they change. A hidden
   slide is visibility:hidden: out of the tab order and the accessibility tree. */
body.dna-page.site-ui .hz-home .hz-slides { display:grid; }
body.dna-page.site-ui .hz-home .hz-slide {
  grid-area:1 / 1; min-width:0; opacity:0; visibility:hidden;
  transition:opacity .6s ease, visibility 0s linear .6s;
}
body.dna-page.site-ui .hz-home .hz-slide.is-on { opacity:1; visibility:visible; transition:opacity .6s ease .15s; }

/* The slide's way in: a white pill in the slide's deep colour. */
body.dna-page.site-ui .hz-home .hz-hero-btn {
  display:inline-flex; align-items:center; gap:10px; margin-top:32px; padding:15px 28px;
  border-radius:999px; background:#fff; color:var(--hz-deep);
  font:600 18px/1 var(--hz-ui); text-decoration:none;
  box-shadow:0 14px 28px -16px rgba(31,26,26,.45);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.dna-page.site-ui .hz-home .hz-hero-btn:hover { transform:translateY(-1px); box-shadow:0 18px 32px -16px rgba(31,26,26,.55); }
body.dna-page.site-ui .hz-home .hz-hero-btn:focus-visible,
body.dna-page.site-ui .hz-home .hz-hero-dot:focus-visible,
body.dna-page.site-ui .hz-home .hz-hero-pause:focus-visible { outline:3px solid #fff; outline-offset:3px; }

/* The slide controls: one labelled pill per slide (the chosen one white, with
   a line that fills while it waits to turn) and a pause button. */
body.dna-page.site-ui .hz-home .hz-hero-nav { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:56px; }
body.dna-page.site-ui .hz-home .hz-hero-nav[hidden] { display:none; }
body.dna-page.site-ui .hz-home .hz-hero-dot {
  position:relative; overflow:hidden; min-height:42px; padding:0 18px;
  border:1px solid rgba(255,255,255,.6); border-radius:999px; background:rgba(255,255,255,.14);
  color:#fff; font:600 15px/1 var(--hz-ui); cursor:pointer;
  transition:background-color .3s ease, color .3s ease;
}
body.dna-page.site-ui .hz-home .hz-hero-dot:hover { background:rgba(255,255,255,.26); }
body.dna-page.site-ui .hz-home .hz-hero-dot[aria-current="true"] { background:#fff; border-color:#fff; color:var(--hz-deep); }
body.dna-page.site-ui .hz-home .hz-hero-bar {
  position:absolute; left:0; bottom:0; width:100%; height:3px; background:var(--hz-deep);
  transform:scaleX(0); transform-origin:left center; opacity:.55;
}
body.dna-page.site-ui .hz-home .hz-hero-dot.is-run .hz-hero-bar { animation:hcHeroBar 6s linear forwards; }
body.dna-page.site-ui .hz-home .hz-open.is-held .hz-hero-bar { animation-play-state:paused; }
body.dna-page.site-ui .hz-home .hz-open.is-stopped .hz-hero-bar { display:none; }
@keyframes hcHeroBar { to { transform:scaleX(1); } }
body.dna-page.site-ui .hz-home .hz-hero-pause {
  display:grid; place-items:center; width:42px; height:42px; padding:0;
  border:1px solid rgba(255,255,255,.6); border-radius:50%; background:rgba(255,255,255,.14);
  color:#fff; cursor:pointer;
}
body.dna-page.site-ui .hz-home .hz-hero-pause:hover { background:rgba(255,255,255,.26); }
body.dna-page.site-ui .hz-home .hz-hero-pause svg { width:18px; height:18px; fill:currentColor; }
body.dna-page.site-ui .hz-home .hz-hero-pause .hz-icon-play,
body.dna-page.site-ui .hz-home .hz-hero-pause[aria-pressed="true"] .hz-icon-pause { display:none; }
body.dna-page.site-ui .hz-home .hz-hero-pause[aria-pressed="true"] .hz-icon-play { display:block; }

/* A small drawing of the page a slide opens, in the video's frame (16:9).
   Everything inside is sized from the frame's own width (cqw), so it scales
   as one piece from a phone to a wide screen. */
body.dna-page.site-ui .hz-home .hz-shot {
  --shot:var(--hz-deep);
  position:relative; overflow:hidden; display:flex; flex-direction:column;
  width:100%; aspect-ratio:16 / 9; container-type:inline-size;
  border-radius:28px; background:#fff;
  box-shadow:0 1px 2px rgba(31,26,26,.08),0 28px 50px -30px rgba(31,26,26,.5);
  font-family:var(--hz-ui); color:var(--hc-ink); text-align:left;
}
body.dna-page.site-ui .hz-home .hz-slide-read .hz-shot { --shot:#2B62B3; --shot-tint:#ECF3FE; }
body.dna-page.site-ui .hz-home .hz-slide-hsk .hz-shot { --shot:#6B46C1; --shot-tint:#F2ECFD; }
body.dna-page.site-ui .hz-home .hz-shot [lang="zh-CN"] { font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif; }
body.dna-page.site-ui .hz-home .hz-shot-bar {
  display:flex; align-items:center; gap:1.2cqw; padding:2.4cqw 3.4cqw;
  border-bottom:1px solid #F0EDE4; font:600 2.5cqw/1.2 var(--hz-ui); color:var(--hc-body);
}
body.dna-page.site-ui .hz-home .hz-shot-bar i { width:1.5cqw; height:1.5cqw; border-radius:50%; background:#E6E1DA; }
body.dna-page.site-ui .hz-home .hz-shot-bar span { margin-left:1.2cqw; margin-right:auto; color:var(--shot); letter-spacing:.04em; text-transform:uppercase; }
body.dna-page.site-ui .hz-home .hz-shot-bar em {
  padding:.8cqw 1.8cqw; border-radius:999px; background:var(--shot-tint); color:var(--shot);
  font-style:normal; font-size:2.2cqw;
}
body.dna-page.site-ui .hz-home .hz-shot-bar em.is-clock { background:#F6F3EA; color:var(--hc-ink); font-variant-numeric:tabular-nums; }
body.dna-page.site-ui .hz-home .hz-shot-body {
  flex:1; min-height:0; display:grid; grid-template-columns:1.08fr 1fr; gap:2.6cqw; padding:3cqw 3.4cqw;
}
body.dna-page.site-ui .hz-home .hz-shot-text { min-width:0; }
body.dna-page.site-ui .hz-home .hz-shot-text b { display:block; margin-bottom:1.2cqw; font-size:3.4cqw; font-weight:700; }
body.dna-page.site-ui .hz-home .hz-shot-text p { margin:0 0 .9cqw; font-size:2.75cqw; line-height:1.75; }
body.dna-page.site-ui .hz-home .hz-shot-text .hz-shot-py { color:var(--hc-muted); font-size:2.2cqw; line-height:1.5; }
body.dna-page.site-ui .hz-home .hz-shot-text .hz-shot-en { color:var(--shot); font-size:2.2cqw; line-height:1.5; }
body.dna-page.site-ui .hz-home .hz-shot-q {
  min-width:0; align-self:start; padding:2.2cqw 2.4cqw; border:1px solid #EFEBE3; border-radius:2.6cqw; background:#FFFDFB;
}
body.dna-page.site-ui .hz-home .hz-shot-q small { display:block; margin-bottom:1.2cqw; color:var(--shot); font:600 2.1cqw/1.2 var(--hz-ui); }
body.dna-page.site-ui .hz-home .hz-shot-q p { display:flex; gap:1.2cqw; margin:0 0 1.6cqw; font-size:2.6cqw; line-height:1.5; }
body.dna-page.site-ui .hz-home .hz-shot-q p span {
  flex:none; display:grid; place-items:center; min-width:3.6cqw; height:3.6cqw; padding:0 .6cqw;
  border-radius:.9cqw; background:#F6F3EA; font:700 1.9cqw/1 var(--hz-ui);
}
body.dna-page.site-ui .hz-home .hz-shot-opts { display:flex; gap:1.2cqw; }
body.dna-page.site-ui .hz-home .hz-shot-opts span,
body.dna-page.site-ui .hz-home .hz-shot-q li {
  padding:1cqw 1.8cqw; border:1px solid #E7E4DA; border-radius:1.6cqw; font-size:2.3cqw; line-height:1.3;
}
body.dna-page.site-ui .hz-home .hz-shot-q ul { display:grid; gap:1cqw; margin:0; padding:0; list-style:none; }
body.dna-page.site-ui .hz-home .hz-shot-q li { display:flex; align-items:center; gap:1.2cqw; }
body.dna-page.site-ui .hz-home .hz-shot-q li b { font:700 1.9cqw/1 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui .hz-home .hz-shot-qs { display:grid; gap:1.4cqw; align-self:start; min-width:0; }
body.dna-page.site-ui .hz-home .hz-shot-qs .hz-shot-q { padding:1.6cqw 2.2cqw; }
body.dna-page.site-ui .hz-home .hz-shot-qs .hz-shot-q p { margin-bottom:1.2cqw; }
body.dna-page.site-ui .hz-home .hz-shot-opts .is-on { border-color:var(--shot); background:var(--shot-tint); color:var(--shot); }
body.dna-page.site-ui .hz-home .hz-shot-progress { margin-top:2.4cqw; }
body.dna-page.site-ui .hz-home .hz-shot-progress small { display:block; margin-bottom:1cqw; color:var(--hc-muted); font:600 2cqw/1.2 var(--hz-ui); }
body.dna-page.site-ui .hz-home .hz-shot-progress i { display:block; height:1.1cqw; border-radius:999px; background:#EEEAF6; overflow:hidden; }
body.dna-page.site-ui .hz-home .hz-shot-progress b { display:block; height:100%; border-radius:999px; background:var(--shot); }
body.dna-page.site-ui .hz-home .hz-shot-parts { display:flex; gap:1cqw; margin-top:2.2cqw; }
body.dna-page.site-ui .hz-home .hz-shot-parts span {
  padding:.8cqw 1.6cqw; border:1px solid #E7E4DA; border-radius:999px; color:var(--hc-muted); font:600 2cqw/1.2 var(--hz-ui);
}
body.dna-page.site-ui .hz-home .hz-shot-parts .is-done { color:#177D43; border-color:#BFE6CD; background:#E6F6EC; }
body.dna-page.site-ui .hz-home .hz-shot-parts .is-on { color:var(--shot); border-color:var(--shot); background:var(--shot-tint); }
body.dna-page.site-ui .hz-home .hz-shot .is-right { border-color:#2F9E5C; background:#E6F6EC; color:#177D43; }
body.dna-page.site-ui .hz-home .hz-shot .is-right b { color:#177D43; }

body.dna-page.site-ui .hz-home .hz-hero-grid {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:64px; align-items:center;
}
body.dna-page.site-ui .hz-home .hz-hero-copy { min-width:0; }
body.dna-page.site-ui .hz-home .hz-open :is(h1, .hz-hero-h) {
  max-width:none; margin:0;
  font:700 clamp(44px,5vw,72px)/1.06 var(--hz-display);
  letter-spacing:-.035em; color:#fff;
}
body.dna-page.site-ui .hz-home .hz-open .hz-hero-lede {
  max-width:520px; margin:24px 0 0;
  font:400 22px/1.5 var(--hz-ui); color:rgba(255,255,255,.9);
}

/* Video slot (16:9). The play symbol is decorative until a video exists. */
body.dna-page.site-ui .hz-home .hz-video { position:relative; isolation:isolate; min-width:0; width:100%; margin:0; }
body.dna-page.site-ui .hz-home .hz-video-frame {
  position:relative; overflow:hidden; isolation:isolate;
  width:100%; aspect-ratio:16 / 9;
  border:1px solid rgba(var(--hc-coral-rgb),.2); border-radius:28px;
  background:
    radial-gradient(ellipse 60% 70% at 22% 18%,rgba(255,255,255,.6),rgba(255,255,255,0) 65%),
    linear-gradient(135deg,#fff,var(--hc-tint-2));
  box-shadow:0 1px 2px rgba(var(--hc-coral-rgb),.1),0 28px 50px -32px rgba(var(--hc-coral-rgb),.4);
}
body.dna-page.site-ui .hz-home .hz-video-frame::before {
  content:""; position:absolute; z-index:-1; inset:16px;
  border:1px solid rgba(255,255,255,.6); border-radius:18px; pointer-events:none;
}
body.dna-page.site-ui .hz-home .hz-video-placeholder {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
body.dna-page.site-ui .hz-home .hz-video-icon {
  display:grid; place-items:center; width:84px; height:84px;
  border:1px solid rgba(var(--hc-coral-rgb),.2); border-radius:34px;
  background:rgba(255,255,255,.8);
  box-shadow:0 8px 22px -14px rgba(var(--hc-coral-deep-rgb),.3);
  color:rgba(var(--hc-coral-deep-rgb),.8);
}
body.dna-page.site-ui .hz-home .hz-video-icon svg { width:28px; height:28px; }
body.dna-page.site-ui .hz-home .hz-video-frame > video {
  position:absolute; inset:0; display:block; width:100%; height:100%;
  object-fit:contain; background:var(--hc-ink);
}

/* ── Learn / Practice section: numbers band + open book ─────────────────── */
body.dna-page.site-ui .hz-home .hz-book-section {
  position:relative; z-index:2; display:flow-root;   /* keeps the band's -40px from dragging the section's background up over the hero */
  padding:0 var(--hz-gutter);
  background:rgba(255,255,255,.6);
  scroll-margin-top:100px;
}

/* Three lists of numbers, one per slide of the opening (2026-11-01): they lie on
   top of each other in one grid cell and change with the slide (home-hero.js),
   each in its slide's colour. Without the script the first shows. */
body.dna-page.site-ui .hz-home .hz-stats-band { position:relative; z-index:3; margin-top:-40px; display:grid; }
body.dna-page.site-ui .hz-home .hz-stats {
  --stat:var(--hc-coral-deep); --stat-rgb:var(--hc-coral-rgb); --stat-deep-rgb:var(--hc-coral-deep-rgb);
  grid-area:1 / 1; width:100%;
  display:flex; align-items:center;
  max-width:1141px; min-height:102px; margin:0 auto; padding:0 32px;
  list-style:none; background:#fff;
  border:1px solid rgba(var(--stat-rgb),.2); border-radius:999px;
  box-shadow:0 2px 6px rgba(31,26,26,.1),0 14px 32px -10px rgba(var(--stat-deep-rgb),.3);
  opacity:0; visibility:hidden; transition:opacity .6s ease, visibility 0s linear .6s;
}
body.dna-page.site-ui .hz-home .hz-stats.is-on { opacity:1; visibility:visible; transition:opacity .6s ease .15s; }
body.dna-page.site-ui .hz-home .hz-stats[data-for="1"] { --stat:#2B62B3; --stat-rgb:var(--hc-blue-rgb); --stat-deep-rgb:var(--hc-blue-deep-rgb); }
body.dna-page.site-ui .hz-home .hz-stats[data-for="2"] { --stat:#6B46C1; --stat-rgb:var(--hc-purple-rgb); --stat-deep-rgb:107,70,193; }
body.dna-page.site-ui .hz-home .hz-stats li {
  position:relative; flex:1 1 0; min-width:0;
  display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap;
  gap:0 8px; padding:12px; text-align:center;
}
body.dna-page.site-ui .hz-home .hz-stats li + li::before {
  content:""; position:absolute; left:0; top:50%;
  width:1px; height:40px; margin-top:-20px;
  background:rgba(var(--stat-rgb),.2);
}
body.dna-page.site-ui .hz-home .hz-stats strong {
  font:600 32px/1.25 var(--hz-ui); letter-spacing:-.5px; color:var(--stat);
}
body.dna-page.site-ui .hz-home .hz-stats span { font:500 17px/1.25 var(--hz-ui); color:var(--hc-body); }

/* The book is drawn at 1160×560 and scales as one piece: every length inside
   is N × --u, where --u is 1/1160 of the book's own width. */
body.dna-page.site-ui .hz-home .hz-book {
  --u:calc(100cqw / 1160);
  position:relative; z-index:2;
  width:min(1160px,100%); aspect-ratio:1160 / 560;
  margin:112px auto -38px;         /* sits a little into the reviews band */
  container-type:inline-size;
}
body.dna-page.site-ui .hz-home .hz-book-cover {
  position:absolute; left:0; right:0; top:calc(16 * var(--u)); bottom:0;
  border-radius:calc(24 * var(--u));
  background:linear-gradient(180deg,#E4545A,#C23F46);
  box-shadow:0 2px 6px rgba(0,0,0,.1),0 26px 50px -18px rgba(var(--hc-coral-deep-rgb),.3);
}
body.dna-page.site-ui .hz-home .hz-book-art {
  position:absolute; inset:0; display:block; width:100%; height:100%; overflow:visible;
}

body.dna-page.site-ui .hz-home .hz-book-page {
  position:absolute; top:calc(125 * var(--u));
  width:calc(468 * var(--u)); height:calc(362 * var(--u));
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
body.dna-page.site-ui .hz-home .hz-book-learn {
  left:calc(56 * var(--u));
  --topic-n:var(--hc-coral); --topic-rule:rgba(var(--hc-coral-rgb),.16); --page-focus:var(--hc-coral-deep);
  --btn-a:var(--hc-coral); --btn-b:var(--hc-coral-deep); --btn-rgb:var(--hc-coral-deep-rgb);
}
body.dna-page.site-ui .hz-home .hz-book-hsk {
  left:calc(636 * var(--u));
  --topic-n:var(--hc-blue); --topic-rule:rgba(var(--hc-blue-rgb),.16); --page-focus:var(--hc-blue-deep);
  --btn-a:var(--hc-blue); --btn-b:var(--hc-blue-deep); --btn-rgb:var(--hc-blue-deep-rgb);
}
body.dna-page.site-ui .hz-home .hz-book-page h2 {
  margin:0;
  font:700 calc(48 * var(--u))/calc(58 * var(--u)) var(--hz-display);
  letter-spacing:-.02em; color:var(--hc-ink);
}
body.dna-page.site-ui .hz-home .hz-book-page > p {
  max-width:none; margin:calc(10 * var(--u)) 0 0;
  font:400 calc(19 * var(--u))/calc(28 * var(--u)) var(--hz-ui); color:var(--hc-body);
}
/* Page contents: a quiet numbered table of contents, not buttons — the
   button at the foot of each page is the one link (Characters → learn.html,
   HSK → hsk.html; 2026-11-02, Yi: Learn and Practice merged, the right page is
   HSK). Numbers and rules take the page's colour: coral on Characters, blue on
   HSK. Five rows on the left now, so the rows sit a little closer than before. */
body.dna-page.site-ui .hz-home .hz-topics {
  width:calc(300 * var(--u)); max-width:100%;
  margin:calc(12 * var(--u)) auto 0; padding:0; list-style:none; text-align:left;
}
body.dna-page.site-ui .hz-home .hz-topics li {
  display:flex; align-items:baseline; gap:calc(14 * var(--u));
  padding:calc(6 * var(--u)) calc(4 * var(--u));
  border-bottom:1px solid var(--topic-rule);
  font:500 calc(17 * var(--u))/1.35 var(--hz-ui); color:var(--hc-body);
}
body.dna-page.site-ui .hz-home .hz-topics li:first-child { border-top:1px solid var(--topic-rule); }
body.dna-page.site-ui .hz-home .hz-topic-n {
  flex:0 0 auto; min-width:calc(22 * var(--u));
  font:600 calc(13 * var(--u))/1 var(--hz-ui); letter-spacing:.08em; color:var(--topic-n);
}
body.dna-page.site-ui .hz-home .hz-book-btn:focus-visible { outline:2px solid var(--page-focus); outline-offset:3px; }
body.dna-page.site-ui .hz-home .hz-book-btn {
  display:inline-flex; align-items:center; gap:calc(10 * var(--u));
  height:calc(48 * var(--u)); margin-top:auto; padding:0 calc(28 * var(--u));
  border-radius:999px;
  background:linear-gradient(170deg,var(--btn-a),var(--btn-b));
  box-shadow:0 12px 24px -12px rgba(var(--btn-rgb),.4);
  color:#fff; font:600 calc(16 * var(--u))/1 var(--hz-ui); white-space:nowrap;
  text-decoration:none; transition:transform .15s ease,box-shadow .15s ease;
}
body.dna-page.site-ui .hz-home .hz-book-btn:hover {
  transform:translateY(-1px); box-shadow:0 16px 28px -12px rgba(var(--btn-rgb),.55);
}

/* ── Reviews ────────────────────────────────────────────────────────────── */
body.dna-page.site-ui .hz-home .hz-reviews {
  position:relative; z-index:1; padding:88px 0 104px; background:var(--hc-wash);
}
body.dna-page.site-ui .hz-home .hz-reviews-head {
  display:flex; align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap; gap:24px 40px; margin-bottom:44px;
}
body.dna-page.site-ui .hz-home .hz-eyebrow {
  display:flex; align-items:center; gap:10px; margin:0;
  font:500 12px/1.25 var(--hz-ui); letter-spacing:.18em; text-transform:uppercase;
  color:var(--hc-muted);
}
body.dna-page.site-ui .hz-home .hz-eyebrow::before {
  content:""; flex:0 0 24px; height:2px; border-radius:1px;
  background:linear-gradient(90deg,var(--hc-coral),rgba(var(--hc-coral-rgb),.2));
}
body.dna-page.site-ui .hz-home .hz-reviews h2 {
  margin:14px 0 0; font:700 48px/1.18 var(--hz-display);
  letter-spacing:-.025em; color:var(--hc-ink);
}
body.dna-page.site-ui .hz-home .hz-review-btn {
  display:inline-flex; align-items:center; gap:8px; padding:12px 22px;
  border:1px solid rgba(var(--hc-coral-rgb),.3); border-radius:999px;
  background:#fff; color:var(--hc-coral-deep);
  font:600 15px/1.25 var(--hz-ui); white-space:nowrap; cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
body.dna-page.site-ui .hz-home .hz-review-btn:hover { background:var(--hc-tint); border-color:rgba(var(--hc-coral-rgb),.5); }
body.dna-page.site-ui .hz-home .hz-review-btn:focus-visible { outline:2px solid var(--hc-coral-deep); outline-offset:3px; }

/* The viewport clips sideways only; the padding keeps card shadows visible. */
body.dna-page.site-ui .hz-home .hz-reviews-viewport {
  margin:-10px 0 -36px; padding:10px 0 36px;
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin;
}
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-looping { overflow:hidden; }
body.dna-page.site-ui .hz-home .hz-reviews-track {
  display:flex; width:max-content; margin:0; padding:0; list-style:none;
}
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-looping .hz-reviews-track {
  animation:hcMarquee 90s linear infinite;
}
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-looping:hover .hz-reviews-track,
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-looping:focus-within .hz-reviews-track {
  animation-play-state:paused;
}
@keyframes hcMarquee {                /* one full set of ten cards */
  from { transform:translate3d(0,0,0); }
  to   { transform:translate3d(-50%,0,0); }
}

/* Reduced motion: the row stands still, the scrollbar is hidden and two arrow
   buttons step through the cards (see the script in index.html). */
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-manual { scrollbar-width:none; scroll-snap-type:x mandatory; }
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-manual::-webkit-scrollbar { display:none; }
body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-manual .hz-review { scroll-snap-align:start; }
body.dna-page.site-ui .hz-home .hz-reviews-nav { display:flex; justify-content:center; gap:12px; margin-top:28px; }
body.dna-page.site-ui .hz-home .hz-reviews-nav[hidden] { display:none; }
body.dna-page.site-ui .hz-home .hz-reviews-arrow {
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:1px solid rgba(var(--hc-coral-rgb),.3); border-radius:50%;
  background:#fff; color:var(--hc-coral-deep); cursor:pointer;
  box-shadow:0 6px 16px -10px rgba(var(--hc-coral-deep-rgb),.35);
  transition:background .15s ease,border-color .15s ease,opacity .15s ease;
}
body.dna-page.site-ui .hz-home .hz-reviews-arrow:hover:not(:disabled) { background:var(--hc-tint); border-color:rgba(var(--hc-coral-rgb),.5); }
body.dna-page.site-ui .hz-home .hz-reviews-arrow:disabled { opacity:.35; cursor:default; box-shadow:none; }
body.dna-page.site-ui .hz-home .hz-reviews-arrow:focus-visible { outline:2px solid var(--hc-coral-deep); outline-offset:3px; }
body.dna-page.site-ui .hz-home .hz-reviews-arrow svg { width:20px; height:20px; }

body.dna-page.site-ui .hz-home .hz-review {
  --c:var(--hc-coral-rgb); --ci:var(--hc-coral);
  flex:0 0 auto; display:flex; flex-direction:column; gap:16px;
  width:384px; min-height:264px; margin:0 24px 0 0; padding:26px 32px 30px;
  border:1px solid rgba(var(--c),.2); border-radius:28px; background:#fff;
  box-shadow:0 1px 2px rgba(var(--c),.1),0 18px 34px -24px rgba(var(--c),.4);
}
body.dna-page.site-ui .hz-home .hz-review.is-blue   { --c:var(--hc-blue-rgb);   --ci:var(--hc-blue); }
body.dna-page.site-ui .hz-home .hz-review.is-purple { --c:var(--hc-purple-rgb); --ci:var(--hc-purple); }
body.dna-page.site-ui .hz-home .hz-review-quote {
  display:block; height:48px; overflow:visible;
  font:700 72px/72px var(--hz-display); color:var(--ci);
}
body.dna-page.site-ui .hz-home .hz-review-text {
  flex:1; max-width:none; margin:0;
  font:400 17px/1.6 var(--hz-ui); color:var(--hc-body);
}
body.dna-page.site-ui .hz-home .hz-review-who { display:flex; align-items:center; gap:12px; }
body.dna-page.site-ui .hz-home .hz-review-avatar {
  display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px;
  border-radius:50%; background:rgba(var(--c),.1); color:var(--ci);
}
body.dna-page.site-ui .hz-home .hz-review-avatar svg { width:22px; height:22px; }
body.dna-page.site-ui .hz-home .hz-review-name { display:flex; flex-direction:column; gap:2px; min-width:0; }
body.dna-page.site-ui .hz-home .hz-review-name b { font:600 16px/1.25 var(--hz-ui); color:var(--hc-ink); }
body.dna-page.site-ui .hz-home .hz-review-name small { font:400 13px/1.25 var(--hz-ui); color:var(--hc-muted); }

/* ── Sticky footer: short pages still push the footer to the viewport bottom ─ */
body.dna-page.site-ui { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; }
body.dna-page.site-ui > .dna-main { flex:1 0 auto; }
body.dna-page.site-ui > .site-footer.hz-footer { flex:0 0 auto; }

/* ── Footer (this page) ─────────────────────────────────────────────────── */
body.dna-page.site-ui .site-footer.hz-footer {
  max-width:none; margin:0; padding:76px 0 48px; border:0;
  background:linear-gradient(135deg,var(--hc-coral),#C8434A);
  color:#fff; text-align:left; font:400 16px/1.5 var(--hz-ui);
}
body.dna-page.site-ui .hz-footer-inner { width:calc(100% - 160px); max-width:1200px; margin:0 auto; }
body.dna-page.site-ui .hz-footer-cols {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto;
  gap:40px 80px; align-items:start;
}
body.dna-page.site-ui .hz-footer .hz-footer-name {
  margin:0; font:700 30px/1.25 var(--hz-display); letter-spacing:-.4px; color:#fff;
}
body.dna-page.site-ui .hz-footer .hz-footer-tag {
  margin:16px 0 0; font:400 16px/1.5 var(--hz-ui); color:rgba(255,255,255,.8);
}
body.dna-page.site-ui .hz-footer-col { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
body.dna-page.site-ui .hz-footer .hz-footer-col h2 {
  margin:0 0 2px; font:600 20px/1.25 var(--hz-ui); letter-spacing:0; color:#fff;
}
body.dna-page.site-ui .hz-footer .hz-footer-col :is(a,button) {
  display:inline-flex; align-items:center; gap:10px; padding:0; border:0; background:none;
  color:rgba(255,255,255,.92); font:400 16px/1.25 var(--hz-ui);
  text-decoration:none; cursor:pointer;
}
body.dna-page.site-ui .hz-footer .hz-footer-col :is(a,button):hover { color:#fff; text-decoration:underline; text-underline-offset:3px; }
body.dna-page.site-ui .hz-footer .hz-footer-col svg { flex:0 0 18px; width:18px; height:18px; }
body.dna-page.site-ui .hz-footer .hz-footer-rule {
  height:1px; margin:44px 0; border:0; background:rgba(255,255,255,.2);
}
body.dna-page.site-ui .hz-footer .hz-footer-bottom {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  font:400 14px/1.3 var(--hz-ui); color:rgba(255,255,255,.8);
}

/* ── Compact footer on the stroke practice/test pages ───────────────────────
   Those pages are short and task-focused, so the landing page's tall footer
   (76/48 padding, 30px name) ends up competing with the exercise card. Same
   design, ~40% less height. index.html keeps the generous version.          */
body.dna-page.site-ui.sp-page .site-footer.hz-footer { padding:32px 0 24px; font-size:15px; }
body.dna-page.site-ui.sp-page .hz-footer-cols { gap:28px 64px; }
body.dna-page.site-ui.sp-page .hz-footer .hz-footer-name { font-size:24px; }
body.dna-page.site-ui.sp-page .hz-footer .hz-footer-tag { margin-top:10px; font-size:15px; }
body.dna-page.site-ui.sp-page .hz-footer-col { gap:8px; }
body.dna-page.site-ui.sp-page .hz-footer .hz-footer-col h2 { font-size:17px; }
body.dna-page.site-ui.sp-page .hz-footer .hz-footer-col :is(a,button) { font-size:15px; }
body.dna-page.site-ui.sp-page .hz-footer .hz-footer-rule { margin:20px 0; }

/* ── Coral accents on the shared chrome (this page only) ────────────────── */
body.dna-page .site-header .mw-nav-link.is-current { color:var(--hc-coral-deep); }
body.dna-page .mw-fb-fab {
  background:linear-gradient(135deg,var(--hc-coral) 0%,var(--hc-coral-deep) 100%);
  border-color:rgba(var(--hc-coral-rgb),.3);
  box-shadow:0 14px 32px -8px rgba(var(--hc-coral-deep-rgb),.4),0 2px 6px rgba(var(--hc-coral-deep-rgb),.2);
}
body.dna-page .mw-fb-fab:hover {
  background:linear-gradient(135deg,var(--hc-coral-deep) 0%,#A8323A 100%);
  box-shadow:0 18px 38px -8px rgba(var(--hc-coral-deep-rgb),.5),0 4px 10px rgba(var(--hc-coral-deep-rgb),.22);
}

/* ── Hover-capable pointers only ───────────────────────────────────────── */
@media (hover:none) {
  body.dna-page.site-ui .hz-home .hz-book-btn:hover { transform:none; }
}

/* ── ≤1199px ──────────────────────────────────────────────────────────── */
@media (max-width:1199px) {
  body.dna-page.site-ui .dna-main.hz-home { --hz-gutter:48px; }
  body.dna-page.site-ui .hz-home .hz-open { padding:112px 0 110px; }
  body.dna-page.site-ui .hz-home .hz-hero-grid { gap:40px; }
  body.dna-page.site-ui .hz-footer-inner { width:calc(100% - 96px); }
}
/* Numbers band: from here each figure wraps as a short centred line. */
@media (max-width:1100px) {
  body.dna-page.site-ui .hz-home .hz-stats { padding:0 16px; }
  body.dna-page.site-ui .hz-home .hz-stats li { display:block; padding:16px 10px; line-height:1.3; }
  body.dna-page.site-ui .hz-home .hz-stats strong { font-size:28px; }
  body.dna-page.site-ui .hz-home .hz-stats span { font-size:15px; }
}

/* ── ≤1023px: hero stacks ──────────────────────────────────────────────── */
@media (max-width:1023px) {
  body.dna-page.site-ui .hz-home .hz-open { padding:72px 0 88px; }
  body.dna-page.site-ui .hz-home .hz-hero-grid { grid-template-columns:1fr; gap:40px; }
  body.dna-page.site-ui .hz-home .hz-open :is(h1, .hz-hero-h) { font-size:60px; }
  body.dna-page.site-ui .hz-home :is(.hz-video, .hz-shot) { max-width:560px; }
  body.dna-page.site-ui .hz-home .hz-hero-nav { margin-top:40px; }
  body.dna-page.site-ui .hz-home .hz-hero-pic-sheet { left:-60px; top:-80px; width:min(816px,92vw); }
  /* the slide stacked: the book smaller, at the foot on the right, beside the drawing and the pills */
  body.dna-page.site-ui .hz-home .hz-hero-pic-books { right:56px; width:min(560px,62vw); }
  body.dna-page.site-ui .hz-footer-cols { grid-template-columns:repeat(2,minmax(0,auto)); justify-content:start; }
  body.dna-page.site-ui .hz-footer-brand { grid-column:1 / -1; }
}

/* ── ≤1099px: the open book would shrink its text too far, so the two pages
      become two page-cards (side by side, then stacked below 768px). ───── */
@media (max-width:1099px) {
  body.dna-page.site-ui .hz-home .hz-book {
    --u:1px;
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px;
    width:100%; max-width:1000px; aspect-ratio:auto; container-type:normal;
    margin:80px auto 0;
  }
  body.dna-page.site-ui .hz-home .hz-book-cover,
  body.dna-page.site-ui .hz-home .hz-book-art { display:none; }
  body.dna-page.site-ui .hz-home .hz-book-page {
    position:relative; left:auto; top:auto; width:auto; height:auto;
    padding:40px 28px 36px;
    border:1px solid #EEE1DD; border-radius:22px; background:#FFFDFB;
    box-shadow:0 4px 0 #F3E8E5,0 8px 0 #EBDDD9,0 12px 0 #E3D2CE,
               0 26px 44px -26px rgba(var(--hc-coral-deep-rgb),.35);
  }
  body.dna-page.site-ui .hz-home .hz-topics { margin-bottom:28px; }
  body.dna-page.site-ui .hz-home .hz-book-section { padding-bottom:72px; }
  body.dna-page.site-ui .hz-home .hz-reviews { padding-top:72px; }
}
@media (max-width:767px) {
  body.dna-page.site-ui .hz-home .hz-book { grid-template-columns:minmax(0,1fr); max-width:560px; gap:40px; }
}

/* ── ≤639px: phones ────────────────────────────────────────────────────── */
@media (max-width:639px) {
  body.dna-page.site-ui .dna-main.hz-home { --hz-gutter:24px; }
  body.dna-page.site-ui .hz-home .hz-hero-pic-books { display:none; }  /* no room beside the words on a phone */
  body.dna-page.site-ui .hz-home .hz-open { padding:48px 0 72px; }
  body.dna-page.site-ui .hz-home .hz-open :is(h1, .hz-hero-h) { font-size:clamp(38px,10.5vw,54px); }
  body.dna-page.site-ui .hz-home .hz-hero-btn { margin-top:24px; padding:14px 24px; font-size:17px; }
  body.dna-page.site-ui .hz-home .hz-shot { border-radius:22px; }
  body.dna-page.site-ui .hz-home .hz-hero-nav { gap:8px; margin-top:32px; }
  body.dna-page.site-ui .hz-home .hz-hero-dot { min-height:40px; padding:0 14px; font-size:14px; }
  body.dna-page.site-ui .hz-home .hz-hero-pause { width:40px; height:40px; }
  body.dna-page.site-ui .hz-home .hz-open .hz-hero-lede { margin-top:18px; font-size:18px; }
  body.dna-page.site-ui .hz-home .hz-video-frame { border-radius:22px; }
  body.dna-page.site-ui .hz-home .hz-video-frame::before { inset:10px; border-radius:13px; }
  body.dna-page.site-ui .hz-home .hz-video-icon { width:60px; height:60px; border-radius:24px; }
  body.dna-page.site-ui .hz-home .hz-video-icon svg { width:22px; height:22px; }

  body.dna-page.site-ui .hz-home .hz-stats {
    flex-direction:column; align-items:stretch; justify-content:center; min-height:0;
    padding:6px 20px; border-radius:28px;
  }
  body.dna-page.site-ui .hz-home .hz-stats li { padding:14px 4px; }
  body.dna-page.site-ui .hz-home .hz-stats li + li::before {
    left:0; right:0; top:0; width:auto; height:1px; margin:0;
  }
  body.dna-page.site-ui .hz-home .hz-book { margin-top:56px; }
  body.dna-page.site-ui .hz-home .hz-book-page { padding:32px 20px 30px; }

  body.dna-page.site-ui .hz-home .hz-reviews { padding:56px 0 72px; }
  body.dna-page.site-ui .hz-home .hz-reviews-head { margin-bottom:32px; }
  body.dna-page.site-ui .hz-home .hz-reviews h2 { font-size:36px; }
  body.dna-page.site-ui .hz-home .hz-review {
    width:min(320px,calc(100vw - 72px)); min-height:0; margin-right:16px; padding:22px 24px 26px;
  }

  body.dna-page.site-ui .site-footer.hz-footer { padding:56px 0 36px; }
  body.dna-page.site-ui .hz-footer-inner { width:calc(100% - 48px); }
  body.dna-page.site-ui .hz-footer-cols { grid-template-columns:1fr; gap:32px; }
  body.dna-page.site-ui .hz-footer .hz-footer-rule { margin:32px 0; }
}
@media (max-width:479px) {
  body.dna-page.site-ui .hz-home .hz-book-page h2 { font-size:40px; line-height:48px; }
  body.dna-page.site-ui .hz-home .hz-book-page > p { font-size:17px; line-height:26px; }
}

/* ── Reduced motion: the colour fade stays (no movement); the reviews stop
      scrolling and can be swiped sideways instead (the script skips the loop). */
@media (prefers-reduced-motion:reduce) {
  /* the slides still turn and fade (no movement); the line filling in the chosen pill is movement, so it goes */
  body.dna-page.site-ui .hz-home .hz-hero-bar { display:none; }
  body.dna-page.site-ui .hz-home .hz-hero-btn { transition:none; }
  body.dna-page.site-ui .hz-home .hz-notice-track { animation:none; width:auto; justify-content:center; }
  body.dna-page.site-ui .hz-home .hz-notice-group:last-child,
  body.dna-page.site-ui .hz-home .hz-notice-group span:not(:first-child) { display:none; }
  body.dna-page.site-ui .hz-home .hz-notice-group span { padding:10px 16px; line-height:1.4; white-space:normal; text-align:center; }
  body.dna-page.site-ui .hz-home .hz-notice-group span::after { content:none; }
  body.dna-page.site-ui .hz-home .hz-reviews-track { animation:none !important; }
  body.dna-page.site-ui .hz-home .hz-reviews-viewport.is-looping { overflow-x:auto; }
  body.dna-page.site-ui .hz-home .hz-book-btn { transition:none; }
}
