:root {
  --ink: #2a2722;
  --ink-soft: #4a453c;
  --mute: #7a7368;
  --line: #e6e4de;
  --paper: #f4f3ee;
  --white: #fffcf7;
  --cell: #ffe566;
  --cell-ink: #1a1600;
  --excel: #217346;
  --sky: #0ea5e9;
  --orange: #ff7700;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
  --max: 1120px;
  --nav-h: 64px;
  --header: calc(var(--nav-h) + env(safe-area-inset-top));
  --sans: "HarmonyOS_Sans_SC_Bold", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "LXGW WenKai", "霞鹜文楷", "PingFang SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
section, #enroll, #price, #path, #dash, #why, #top {
  scroll-margin-top: var(--header);
}
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 19px;
  font-weight: 500;
  padding-top: var(--header);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: clip;
  word-break: break-word;
}

img { max-width: 100%; height: auto; display: block; }
.cta-mobi { display: none; }
a { color: inherit; text-decoration: none; }
button, .btn, h1, h2, h3, .brand, .nav-links, .kicker, .tag, .price,
.why-card .num, .pipe .step, .path-no, summary, .mark {
  font-family: var(--sans);
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 40;
  background: rgba(244, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: 0; font-size: 17px;
  min-width: 0; flex: 0 1 auto;
}
.brand-text { min-width: 0; line-height: 1.25; }
.mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--cell); color: var(--cell-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px #111;
}
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 18px; color: var(--mute); font-size: 16px; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-cta { flex-shrink: 0; }
.nav-cta-short { display: none; }
.nav-links a:hover { color: var(--ink); }
.nav-home {
  background: var(--cell);
  color: var(--cell-ink) !important;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px #111;
}
.nav-home:hover { filter: brightness(1.05); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 10px 8px;
  border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: #111; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  border: 0;
  padding: 0;
  background: rgba(20, 18, 14, .32);
}
.ghost {
  font-size: 15px; color: var(--mute); font-family: var(--serif);
  background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px dashed #b8b2a6;
}
.ghost:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer;
  background: #111; color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 16px; font-weight: 700;
}
.btn:hover { background: #000; }
.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-line {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #111;
}
.btn-line:hover { background: #111; color: #fff; }

/* hero */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(#cfcbc0 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px; color: var(--mute);
  max-width: 100%;
}
.dot-fire { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

h1 {
  margin: 22px 0 18px;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.cell {
  display: inline-block;
  background: var(--cell);
  padding: 0 10px 2px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px #111;
  transform: rotate(-0.4deg);
}
.lead {
  max-width: 38em;
  color: var(--ink-soft);
  font-size: 21px;
  margin: 0 0 52px;
}

/* workbook canvas */
.canvas {
  position: relative;
  background: var(--white);
  border: 1px solid #ddd9cf;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  max-width: 100%;
  min-width: 0;
}
.thumbs-rail {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.thumbs-viewport {
  overflow: hidden;
  min-width: 0;
}
.thumbs {
  display: flex;
  gap: 8px;
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.thumbs button {
  flex: 0 0 calc((100% - 24px) / 4);
  border: 0; padding: 0; background: #efece4;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 16/9;
  box-shadow: inset 0 0 0 1px #e0dcd2;
}
.thumbs button.is-on { box-shadow: inset 0 0 0 2px #111; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rail-arrow {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #111; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}
.rail-arrow:hover { background: #333; }

.stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/9;
  cursor: zoom-in;
  touch-action: pan-y;
}
.stage-slides { position: absolute; inset: 0; }
.stage-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.stage-slides img.is-on { opacity: 1; }
.stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); color: #111;
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 2;
}
.stage-arrow.prev { left: 12px; }
.stage-arrow.next { right: 12px; }
.zoom-hint {
  position: absolute; right: 14px; bottom: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 4px 8px; border-radius: 999px;
  pointer-events: none;
}
.dots {
  display: flex; justify-content: center; gap: 7px;
  margin: 10px 0 0;
}
.dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: 0; background: #cfc9bb; padding: 0; cursor: pointer;
}
.dots button.is-on { background: #111; width: 18px; border-radius: 999px; }

.formula {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #faf8f2;
  border: 1px solid #e7e3d8;
  border-radius: 12px;
  padding: 8px 8px 8px 10px;
}
.fx {
  font-size: 15px; font-weight: 700;
  color: var(--excel);
}
.fx-text {
  font-size: 15px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0;
}
.tags button {
  border: 1px solid #ddd8cc;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 15px;
  color: var(--mute);
  cursor: pointer;
}
.tags button.is-on {
  background: #111; color: #fff; border-color: #111;
}

.trust {
  padding: 28px 0 8px;
  text-align: center;
  color: var(--mute);
  font-size: 16px;
}
.trust-row {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  color: var(--ink-soft);
  font-size: 16px;
}
.trust-row b { font-weight: 600; }

/* sections */
section { padding: 72px 0; }
.kicker {
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 10px; font-weight: 700;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1.28;
}
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 0 28px; font-size: 19px; }

.why {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-grid > *, .pipe > *, .gallery > *, .split > *, .fit > * { min-width: 0; }
.why-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.why-card .num {
  font-size: 32px; font-weight: 700;
  letter-spacing: 0;
}
.why-card h3 { margin: 8px 0 8px; font-size: 20px; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pipe article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  min-height: 210px;
}
.pipe .step {
  font-size: 13px; color: var(--mute);
}
.pipe h3 { margin: 8px 0 8px; font-size: 20px; }
.pipe p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* cases */
.cases { background: #111; color: #eee; }
.cases .kicker, .cases .sub { color: #9a9a9a; }
.cases h2 { color: #fff; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery button {
  margin: 0; padding: 0; border: 0;
  background: #1b1b1b;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  color: #eee;
  border: 1px solid #2a2a2a;
}
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gallery span {
  display: block; padding: 10px 12px 12px;
  font-size: 16px; color: #ddd;
}
.gallery-note { color: #9a9a9a; font-size: 15px; margin: 14px 0 0; }

/* path */
.path-list { display: grid; gap: 0; }
.path-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.path-item:last-child { border-bottom: 1px solid var(--line); }
.path-no {
  font-size: 14px; color: var(--mute); padding-top: 6px;
}
.path-item h3 { margin: 0 0 6px; font-size: 22px; }
.path-item p { margin: 0; color: var(--ink-soft); }

/* teacher + price */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.tag {
  display: inline-block;
  background: var(--cell);
  color: var(--cell-ink);
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px #111;
}
.price {
  font-size: 60px; font-weight: 700; letter-spacing: 0; line-height: 1;
}
.price small { font-size: 18px; color: var(--mute); font-weight: 700; margin-left: 6px; }
.deliver li { margin: 8px 0; color: var(--ink-soft); }
.fit { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.fit h3 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #111; }
.fit .no h3 { border-bottom-color: #ccc; color: var(--mute); }
.fit li { margin: 8px 0; color: var(--ink-soft); }

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary { cursor: pointer; font-weight: 700; list-style: none; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* enroll */
.enroll {
  background: #111;
  color: #eee;
  padding: 80px 0;
}
.enroll-box {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 28px;
  align-items: center;
  background: #191919;
  border: 1px solid #2c2c2c;
  border-radius: 22px;
  padding: 28px;
}
.enroll h2 { color: #fff; }
.enroll .btn { background: var(--cell); color: #111; }
.enroll .btn:hover { background: #ffe04a; }
.qr { text-align: center; max-width: 220px; }
.qr img {
  width: 156px; height: 156px;
  background: #fff; padding: 8px; border-radius: 12px;
  margin: 0 auto 8px;
}
.qr-hint {
  font-size: 14px;
  line-height: 1.45;
  color: #eee;
}
.qr-id { margin-top: 4px; font-size: 13px; color: #b8b8b8 !important; }
.foot {
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--mute);
  font-size: 15px;
}
.foot a:hover { color: var(--ink); text-decoration: underline; }
.copy-wx {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.copy-wx:hover { color: var(--ink); }
.copy-wx-on-dark { color: #ffe566; border-bottom-color: #ffe566; }
.copy-wx-on-dark:hover { color: #fff; }
.copy-wx.is-copied { border-bottom-style: solid; }
.copy-wx-tip { font-size: 13px; color: #9a9488; margin-left: 6px; }
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(88px, env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  z-index: 90;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.copy-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 55;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #111; color: #fff;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
}
.totop.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.totop:hover { background: #333; }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px 40px;
  background: rgba(8, 8, 8, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .38s ease, visibility .38s, background .38s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(8, 8, 8, .88);
}
.lightbox figure {
  margin: 0;
  max-width: min(1400px, 100%);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}
.lightbox.is-open figure {
  transform: none;
  opacity: 1;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transition: opacity .28s ease;
}
.lightbox img.is-swap { opacity: 0; }
.lightbox figcaption {
  color: #ddd; text-align: center; margin-top: 12px; font-size: 15px;
}
.lb-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font-size: 26px; cursor: pointer;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font-size: 30px; cursor: pointer;
}
.lb-arrow.prev { left: max(12px, env(safe-area-inset-left)); }
.lb-arrow.next { right: max(12px, env(safe-area-inset-right)); }

@media (max-width: 1180px) {
  .ghost { display: none; }
  .nav-links { gap: 10px; font-size: 14px; }
  .brand { font-size: 15px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}

@media (max-width: 1024px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(244, 243, 238, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(20, 20, 20, .08);
    padding: 8px 20px 18px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
  }
  .nav.is-open .nav-links {
    max-height: min(80vh, 520px);
    opacity: 1;
    pointer-events: auto;
    padding: 8px 20px 18px;
  }
  .nav:not(.is-open) .nav-links { padding-top: 0; padding-bottom: 0; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--ink);
    width: 100%;
    text-align: left;
    background: none;
    border-left: 0; border-right: 0; border-top: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-links a.nav-home {
    justify-content: center;
    margin: 6px 0 10px;
    border-radius: 999px;
    border-bottom: 0;
    box-shadow: inset 0 0 0 1.5px #111;
    background: var(--cell);
  }
  .nav.is-open ~ .nav-mask,
  body:has(.nav.is-open) .nav-mask { display: block; }
}

@media (max-width: 980px) {
  :root { --nav-h: 56px; }
  .why-grid, .gallery, .fit { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .path-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .nav-inner { min-height: 56px; padding: 8px 0; gap: 8px; }
  .brand { font-size: 14px; flex: 1 1 auto; }
  .brand-text { max-width: 11em; }
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  .hero { padding: 40px 0 28px; }
  h1 { font-size: clamp(24px, 6.4vw, 34px); }
  .lead { font-size: 17px; margin-bottom: 36px; }
  .badge { font-size: 13px; border-radius: 12px; white-space: normal; line-height: 1.45; }
  .canvas { padding: 10px; border-radius: 16px; }
  .thumbs-rail { grid-template-columns: 40px 1fr 40px; gap: 6px; }
  .rail-arrow { width: 40px; height: 40px; }
  .formula { grid-template-columns: 28px 1fr; }
  .formula .btn { display: none; }
  .fx-text { font-size: 13px; }
  .tags { gap: 6px; }
  .tags button { font-size: 14px; padding: 7px 11px; }
  .pipe, .enroll-box { grid-template-columns: 1fr; }
  .price { font-size: 42px; }
  .price small { display: block; margin: 8px 0 0; }
  section { padding: 40px 0; }
  .enroll { padding: 44px 0 64px; }
  .enroll-box { padding: 20px; text-align: center; }
  .enroll-box .btn { width: 100%; max-width: 280px; }
  .stage-arrow { width: 40px; height: 40px; font-size: 22px; }
  .stage-arrow.prev { left: 8px; }
  .stage-arrow.next { right: 8px; }
  .lightbox { padding: 64px 16px 28px; }
  .zoom-hint { display: none; }
  .cta-desk { display: none; }
  .cta-mobi { display: inline; }
  .foot { padding-bottom: 88px; }
  .totop { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 20px); }
  body { font-size: 17px; }
  .why-grid, .gallery, .split, .fit, .pipe { grid-template-columns: 1fr; }
  .pipe article { min-height: 0; }
  .trust { font-size: 15px; }
  .trust-row { gap: 8px 14px; font-size: 15px; }
  .btn { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .nav-home { padding: 5px 10px; font-size: 13px; }
  .qr img { width: 140px; height: 140px; }
  .lb-arrow { top: auto; bottom: 18px; transform: none; }
  .lb-arrow.prev { left: 18%; }
  .lb-arrow.next { right: 18%; }
  .lightbox img { max-height: calc(100vh - 180px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  .sub { font-size: 17px; }
}

@media (max-width: 400px) {
  .brand-text { font-size: 12px; line-height: 1.2; max-width: 8.6em; }
  .mark { width: 24px; height: 24px; font-size: 11px; border-radius: 8px; }
  .btn { padding: 10px 12px; font-size: 14px; }
  .nav-home { padding: 4px 8px; font-size: 12px; }
}

/* iPad 竖屏 / 横屏中间档：双栏保留，避免既不像桌面也不像手机 */
@media (min-width: 700px) and (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid article:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(28px, 4vw, 40px); }
  section { padding: 52px 0; }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a, .btn, .tags button, .rail-arrow, .stage-arrow, .lb-arrow, .lb-close, .totop {
    min-height: 44px;
  }
  .dots button { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumbs, .stage-slides img, .lightbox, .lightbox figure, .lightbox img {
    transition: none;
  }
}
