/* Hekouwang Terminal 3.0 — bilingual + fonts + motion (Tailwind via CDN) */
@font-face {
  font-family: 'HKW Sans SC';
  src: url('../fonts/hkw-sans-sc-subset.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-display: Syne, 'HKW Sans SC', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --text: #f3eee6;
  --text2: #c9bdb0;
  --text3: #9a8d80;
  --surface: #1a1714;
  --surface2: #12100e;
  --border: rgba(243, 238, 230, 0.1);
  --border2: rgba(243, 238, 230, 0.14);
  --accent2: #e8915a;
  --shadow: 0 24px 80px -40px rgba(0,0,0,0.7);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-static { animation: none !important; }
  .ambient-orb { animation: none !important; }
  .hero-sheen::after { animation: none !important; }
}

/* Bilingual: default EN; .lang-zh shows ZH */
html .zh { display: none; }
html.lang-zh .en { display: none; }
html.lang-zh .zh { display: inline; }
html.lang-zh span.zh,
html.lang-zh a.zh,
html.lang-zh b.zh,
html.lang-zh strong.zh,
html.lang-zh em.zh,
html.lang-zh code.zh,
html.lang-zh small.zh { display: inline; }
html.lang-zh p.zh,
html.lang-zh div.zh,
html.lang-zh li.zh,
html.lang-zh h1.zh,
html.lang-zh h2.zh,
html.lang-zh h3.zh,
html.lang-zh figcaption.zh,
html.lang-zh summary.zh,
html.lang-zh label.zh { display: block; }
html.lang-zh .zh.block { display: block; }
html.lang-zh .zh.flex { display: flex; }
html.lang-zh .zh.inline-flex { display: inline-flex; }
html.lang-zh .zh.grid { display: grid; }
html .zh.block { display: none; }
html.lang-zh .zh.block { display: block; }
html .en.block { display: block; }
html.lang-zh .en.block { display: none; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
.site-main {
  overflow-x: clip;
  max-width: 100%;
}

/* Film grain — premium atmosphere without flat black */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brand mark — reference: [icon] 会勇禾口王 | 写作技能 → 会勇禾口王 | 终端工作台 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
  color: inherit;
}
.brand-mark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 6px 18px -10px rgba(184, 90, 40, 0.85);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease;
}
.brand-mark:hover img {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 28px -10px rgba(232, 145, 90, 0.75);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  line-height: 1.1;
}
.brand-mark .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3eee6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark .brand-div {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  flex: none;
  background: rgba(243, 238, 230, 0.28);
}
.brand-mark .brand-product {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #9a8d80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark .brand-sub {
  display: none; /* legacy; lockup replaces stacked sub */
}

/* Value micro-icons */
.value-ico {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: rgba(232, 145, 90, 0.1);
  border: 1px solid rgba(232, 145, 90, 0.22);
  color: #f0b48a;
}
.value-ico svg {
  width: 1rem;
  height: 1rem;
}

/* Hero dual-line brand */
.hero-brand-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8915a;
}
.hero-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #f3eee6;
}
.hero-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.55em;
}
.hero-lockup .brand-part {
  font-weight: 800;
  color: #f3eee6;
}
.hero-lockup .brand-sep {
  font-weight: 400;
  color: rgba(243, 238, 230, 0.28);
  transform: translateY(-0.04em);
}
.hero-lockup .brand-product {
  font-weight: 600;
  color: #c9bdb0;
}
.hero-brand-title .line-product {
  display: block;
  color: #f0b48a;
}

::selection {
  background: rgba(232, 145, 90, 0.35);
  color: #f3eee6;
}

/* Progress */
#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, #d4723a, #f0b48a);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(232, 145, 90, 0.55);
}

/* Soft pointer glow */
#pointer-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(212, 114, 58, 0.14) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
}
#pointer-glow.on { opacity: 1; }
@media (pointer: coarse) {
  #pointer-glow { display: none; }
}

/* Nav glass */
#site-nav {
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}
#site-nav.is-stuck {
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 0.85);
}
#site-nav .mh-nav a {
  position: relative;
}
#site-nav .mh-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: #e8915a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
#site-nav .mh-nav a:hover::after,
#site-nav .mh-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Site footer — two-tier layout (brand + meta / copyright + links) */
.site-footer {
  padding: 46px 0 30px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  background: linear-gradient(180deg, rgba(243, 238, 230, 0.03), rgba(7, 6, 5, 0) 60%);
}
.site-footer-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .site-footer-inner { padding: 0 2rem; }
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.site-footer .footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.site-footer .footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.site-footer .footer-brand b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.site-footer .footer-brand > div > span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text3);
}
.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.site-footer .footer-k {
  font: 700 8.5px/1 var(--mono);
  letter-spacing: 0.13em;
  color: var(--text3);
}
.site-footer .footer-col > span:last-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  align-items: center;
}
.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  position: relative;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .footer-links a:hover {
  color: var(--text);
}
.site-footer .footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: #e8915a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
.site-footer .footer-links a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 680px) {
  .site-footer { padding: 34px 0 24px; }
  .site-footer .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
    padding-bottom: 20px;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .site-footer .footer-brand b { font-size: 12.5px; }
  .site-footer .footer-k { font-size: 8px; letter-spacing: 0.08em; }
  .site-footer .footer-col > span:last-child { font-size: 11.5px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal-child] {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal-child].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* Ambient orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform, opacity;
}
.ambient-orb--a {
  width: 48vw;
  height: 48vw;
  max-width: 640px;
  max-height: 640px;
  top: -12%;
  right: -8%;
  background: rgba(212, 114, 58, 0.22);
  animation: orbDriftA 14s ease-in-out infinite alternate;
}
.ambient-orb--b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 18%;
  left: -10%;
  background: rgba(232, 145, 90, 0.1);
  animation: orbDriftB 18s ease-in-out infinite alternate;
}
@keyframes orbDriftA {
  0% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  100% { transform: translate(-6%, 8%) scale(1.12); opacity: 0.9; }
}
@keyframes orbDriftB {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(10%, -6%) scale(1.18); opacity: 0.75; }
}

/* Hero entrance */
.hero-copy > * {
  opacity: 0;
  transform: translateY(28px);
}
.hero-copy.is-ready > * {
  animation: heroRise 0.95s var(--ease-out-expo) both;
}
.hero-copy.is-ready > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy.is-ready > *:nth-child(2) { animation-delay: 0.2s; }
.hero-copy.is-ready > *:nth-child(3) { animation-delay: 0.32s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-media {
  opacity: 0;
  transform: translateY(36px) scale(0.96);
}
.hero-media.is-ready {
  animation: heroMediaIn 1.15s 0.28s var(--ease-out-expo) both;
}
@keyframes heroMediaIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero image sheen + hover physics */
.hero-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2px 2px 0 0;
  box-shadow:
    0 0 0 1px rgba(232, 145, 90, 0.18),
    0 40px 100px -48px rgba(212, 114, 58, 0.55),
    0 24px 80px -40px rgba(0, 0, 0, 0.85);
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 5, 0.35) 100%);
}
.hero-sheen {
  position: relative;
  overflow: hidden;
}
.hero-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(243, 238, 230, 0.08) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheenSweep 7s ease-in-out 1.5s infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes sheenSweep {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
.hero-frame img {
  transition: transform 1.1s var(--ease-out-expo), filter 0.7s ease;
  transform-origin: center top;
}
.hero-frame:hover img {
  transform: scale(1.03);
  filter: brightness(1.06) contrast(1.04);
}

/* Magnetic CTA */
.btn-mag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-mag::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(240, 180, 138, 0.35), transparent 40%, rgba(212, 114, 58, 0.25));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.btn-mag:hover::before { opacity: 1; }
.btn-mag--solid:hover {
  box-shadow: 0 12px 40px -16px rgba(243, 238, 230, 0.45);
}
.btn-mag--ember:hover {
  box-shadow: 0 14px 44px -14px rgba(212, 114, 58, 0.65);
}

/*
 * Capability strip — intentionally NOT a scrolling marquee.
 * A max-content track makes scrollWidth > clientWidth; macOS “Always show
 * scrollbars” then paints a thumb even under overflow:hidden/clip.
 * Static centered line stays within the viewport → no scrollbar possible.
 */
.marquee {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-block: 1px solid rgba(243, 238, 230, 0.08);
  background: rgba(12, 11, 10, 0.7);
  overflow: hidden;
  contain: paint;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-static {
  margin: 0;
  padding: 0 1.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8d80;
  line-height: 1;
}
.marquee-static em {
  font-style: normal;
  color: #e8915a;
  margin: 0 0.55rem;
}

/* Editorial engines */
.engine-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(243, 238, 230, 0.1);
}
.engine-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.35rem 1rem;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid rgba(243, 238, 230, 0.1);
}
.engine-row code {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #e8915a;
  background: rgba(232, 145, 90, 0.08);
  border: 1px solid rgba(232, 145, 90, 0.18);
  padding: 0.2rem 0.5rem;
}
.engine-idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #9a8d80;
  padding-top: 0.35rem;
}
.engine-row h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3eee6;
}
.engine-row p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9a8d80;
}
@media (min-width: 720px) {
  .engine-row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 1.25rem;
  }
  .engine-row code {
    grid-column: auto;
    margin-top: 0.2rem;
  }
}

/* Spec sheet */
.spec-wrap {
  overflow-x: auto;
  border: 1px solid rgba(243, 238, 230, 0.1);
  background: #0c0b0a;
  scrollbar-width: thin;
}
.spec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}
.spec-table th,
.spec-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(243, 238, 230, 0.08);
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  color: #c9bdb0;
}
.spec-table thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8d80;
  background: #12100e;
}
.spec-table thead th.is-pro { color: #e8915a; }
.spec-table tbody th {
  width: 18%;
  color: #f3eee6;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.spec-table td:last-child {
  color: #f3eee6;
  background: rgba(212, 114, 58, 0.045);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

/* Scenes */
.scene-grid {
  display: grid;
  gap: 1px;
  background: rgba(243, 238, 230, 0.1);
  border: 1px solid rgba(243, 238, 230, 0.1);
}
@media (min-width: 800px) {
  .scene-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.scene-grid article {
  background: #0c0b0a;
  padding: 1.35rem 1.15rem 1.5rem;
  min-height: 100%;
}
.scene-grid article.is-accent {
  background:
    linear-gradient(180deg, rgba(212, 114, 58, 0.14), rgba(12, 11, 10, 0.2) 55%),
    #0c0b0a;
}
.scene-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8915a;
}
.scene-grid h3 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
}
.scene-grid article p:last-child {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #9a8d80;
}

/* Protocol */
.protocol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.protocol li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(243, 238, 230, 0.1);
}
.protocol li:last-child { border-bottom: 1px solid rgba(243, 238, 230, 0.1); }
.protocol li > span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #e8915a;
  line-height: 1;
}
.protocol h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3eee6;
}
.protocol p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9a8d80;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MINIMAL LANDING — Apple-style full-bleed sections, one idea each
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-full {
  padding-top: 4rem;
}
.hero-headline {
  text-wrap: balance;
}

/* Compare frame */
.compare-frame {
  transition: box-shadow 0.6s ease, transform 0.7s var(--ease-out-expo);
}
.compare-frame:hover {
  box-shadow: 0 40px 100px -40px rgba(212, 114, 58, 0.45);
  transform: translateY(-4px);
}
.compare-labels span {
  letter-spacing: 0.08em;
}
.compare-images {
  align-items: stretch;
}
.compare-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 1323;
  object-fit: fill;
  vertical-align: top;
}

/* Scene card */
.scene-card {
  transition: border-color 0.35s ease, box-shadow 0.5s ease, transform 0.6s var(--ease-out-expo);
}
.scene-card:hover {
  border-color: rgba(232, 145, 90, 0.55);
  box-shadow: 0 30px 80px -30px rgba(212, 114, 58, 0.5);
  transform: translateY(-6px);
}

/* Scene reel (homepage block 01) */
.scene-reel {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  background: #070605;
}
.scene-reel__video {
  aspect-ratio: 3244 / 2160;
  object-fit: cover;
}

/* Rule cards for Agent protocol */
.rule-card {
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out-expo);
}
.rule-card:hover {
  border-color: rgba(232, 145, 90, 0.35);
  transform: translateY(-3px);
}
.rule-num {
  display: flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 145, 90, 0.12);
  border: 1px solid rgba(232, 145, 90, 0.25);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8915a;
}

/* Terminal chrome tweaks */
.term-chrome .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(243, 238, 230, 0.15);
}
.term-chrome .sc {
  font-family: var(--mono);
}
.term-chrome .sc .p { color: #9a8d80; }
.term-chrome .sc .o { color: #f0b48a; }
.term-chrome .sc .c { color: #9a8d80; }

/* Value cells hover */
.value-cell {
  position: relative;
  transition: background 0.4s ease, transform 0.5s var(--ease-out-expo);
}
.value-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 145, 90, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.value-cell:hover {
  background: #14110e;
  z-index: 1;
}
.value-cell:hover::after { opacity: 1; }
.value-cell h3 {
  letter-spacing: -0.02em;
}
.value-cell .font-mono {
  opacity: 0.95;
}

/* Path cards */
.path-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.55s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.55s ease;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 145, 90, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.9);
}
.path-card:hover::before { opacity: 1; }
.path-card--pro:hover {
  border-color: rgba(232, 145, 90, 0.55);
  box-shadow: 0 30px 80px -36px rgba(212, 114, 58, 0.55);
}

/* Terminal chrome */
.term-chrome {
  background: linear-gradient(180deg, #1f1a16 0%, #14110e 100%);
  border: 1px solid rgba(243, 238, 230, 0.08);
  box-shadow: 0 24px 80px -32px rgba(0, 0, 0, 0.75);
  transition: box-shadow 0.5s ease, border-color 0.35s ease, transform 0.6s var(--ease-out-expo);
}
.term-chrome:hover {
  border-color: rgba(232, 145, 90, 0.22);
  box-shadow: 0 28px 90px -30px rgba(212, 114, 58, 0.35);
  transform: translateY(-2px);
}
.term-chrome .dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
  background: #4a4038;
}
.term-chrome .dots i:nth-child(1) { background: #c45c4a; }
.term-chrome .dots i:nth-child(2) { background: #c9a227; }
.term-chrome .dots i:nth-child(3) { background: #5a9e6f; }

.sc .p { color: #e8915a; }
.sc .o { color: #f3eee6; }
.sc .ok { color: #7dcea0; }
.sc .paidline { color: #e8915a; }
.sc .cm { color: #9a8d80; }

/* Lang toggle pressed */
#btn-en[aria-pressed='true'],
#btn-zh[aria-pressed='true'] {
  background: rgba(232, 145, 90, 0.18);
  color: #f0b48a;
}

/* Mobile nav */
#mobile-nav:not(.open) { display: none; }
#mobile-nav.open { display: block; animation: heroRise 0.35s var(--ease-out-expo); }

/* FAQ */
details {
  transition: background 0.3s ease;
}
details[open] {
  background: rgba(232, 145, 90, 0.04);
}
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary .faq-plus {
  transition: transform 0.35s var(--ease-out-expo), color 0.25s ease;
}
details[open] summary .faq-plus {
  transform: rotate(45deg);
  color: #e8915a;
}
details .faq-a {
  overflow: hidden;
}

/* Docs prose inside Tailwind shell */
.prose-hkw h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: Syne, 'HKW Sans SC', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3eee6;
}
.prose-hkw h2:first-child { margin-top: 0; }
.prose-hkw p,
.prose-hkw li {
  color: #c9bdb0;
  line-height: 1.7;
}
.prose-hkw ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0 1.25rem; }
.prose-hkw li + li { margin-top: 0.4rem; }
.prose-hkw a { color: #e8915a; text-decoration: underline; text-underline-offset: 3px; }
.prose-hkw a:hover { color: #f0b48a; }
.prose-hkw code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85em;
  color: #f0b48a;
  background: rgba(232, 145, 90, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}
.prose-hkw pre.sc {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #e4dcd0;
  overflow-x: auto;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0;
}
.prose-hkw .ask {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid #d4723a;
  background: rgba(212, 114, 58, 0.06);
  color: #c9bdb0;
  font-size: 0.95rem;
}
.prose-hkw .ask .lb {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8915a;
  margin-bottom: 0.35rem;
}

/* Capability table */
.cap-table th,
.cap-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(243, 238, 230, 0.08);
  vertical-align: top;
  text-align: left;
}
.cap-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8d80;
  background: rgba(243, 238, 230, 0.03);
}
.cap-table td.v { color: #e4dcd0; }
.cap-table td.y { color: #c9bdb0; }
.cap-table td.n { color: #9a8d80; }

/* Docs comparison tables */
.tablewrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid rgba(243, 238, 230, 0.1); }
.tablewrap table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.875rem; }
.tablewrap th,
.tablewrap td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(243, 238, 230, 0.08);
  border-right: 1px solid rgba(243, 238, 230, 0.06);
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
  color: #c9bdb0;
}
.tablewrap th:last-child,
.tablewrap td:last-child { border-right: 0; }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8d80;
  background: rgba(243, 238, 230, 0.03);
}
.tablewrap td:last-child { color: #e4dcd0; }

.pillgrid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 首页「从你的场景开始」：固定三列（双类提高优先级，覆盖 auto-fill） */
.pillgrid.pillgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .pillgrid.pillgrid--3 { grid-template-columns: 1fr; } }
.pill {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(243, 238, 230, 0.1);
  background: rgba(26, 23, 20, 0.7);
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.35s var(--ease-out-expo);
}
.pill:hover { border-color: rgba(232, 145, 90, 0.35); transform: translateY(-2px); }
.pill .t { font-family: Syne, 'HKW Sans SC', sans-serif; font-weight: 700; color: #f3eee6; }
.pill .d { margin-top: 0.35rem; font-size: 0.85rem; color: #9a8d80; }
.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.tag-free { color: #7dcea0; background: rgba(125, 206, 160, 0.12); }
.tag-paid { color: #e8915a; background: rgba(232, 145, 90, 0.12); }
.muted { color: #9a8d80; font-size: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: #f3eee6; color: #070605; }
.btn-pro { background: #d4723a; color: #070605; }
.fig { margin: 1rem 0; border: 1px solid rgba(243,238,230,0.1); overflow: hidden; }
.fig .hd { display:flex; justify-content:space-between; padding:0.5rem 0.75rem; font-family:'IBM Plex Mono',monospace; font-size:0.65rem; color:#9a8d80; border-bottom:1px solid rgba(243,238,230,0.08); background:#12100e; }
.fig img { width:100%; display:block; }
.fig .cap { padding:0.65rem 0.85rem; font-size:0.85rem; color:#c9bdb0; }

/* Terminal coverage page — comparison and rows */
.cmp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 640px) {
  .cmp { grid-template-columns: 1fr; }
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}
.row {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(243, 238, 230, 0.1);
  border-radius: 8px;
  background: rgba(26, 23, 20, 0.5);
}
.row.v {
  border-left: 3px solid #e8915a;
}
.row .sq {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a8d80;
  background: rgba(243, 238, 230, 0.05);
  border-radius: 6px;
}
.row .tt {
  font-family: Syne, 'HKW Sans SC', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f3eee6;
  margin-bottom: 0.5rem;
}
.row .ds {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #c9bdb0;
}
.h2sub {
  margin-top: 2.5rem;
}
.prose-hkw h2 + .tablewrap,
.prose-hkw h2 + p,
.prose-hkw h2 + .rows {
  margin-top: 1rem;
}
.prose-hkw figure {
  margin: 2rem 0;
}
.prose-hkw .ask {
  margin: 2rem 0;
}
.mh-nav a:hover { color: #f3eee6; }
.mh-nav a[aria-current="page"] { color: #f3eee6; }
.toggle button { border:0; background:transparent; cursor:pointer; }

/* Lightbox — click-to-zoom for content images */
img.zoomable {
  cursor: zoom-in;
}
img.zoomable:focus-visible {
  outline: 2px solid rgba(232, 145, 90, 0.7);
  outline-offset: 3px;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7, 6, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out-expo), visibility 0.28s;
}
#lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#lightbox .lb-stage {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox .lb-img {
  display: block;
  max-width: 96vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(243, 238, 230, 0.08),
    0 32px 90px -28px rgba(0, 0, 0, 0.9);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-out-expo);
  cursor: zoom-out;
}
#lightbox.open .lb-img {
  transform: scale(1);
}
#lightbox .lb-cap {
  position: absolute;
  left: 50%;
  bottom: -2.2rem;
  transform: translateX(-50%);
  max-width: min(90vw, 720px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #c9bdb0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lightbox .lb-close,
#lightbox .lb-prev,
#lightbox .lb-next {
  position: absolute;
  border: 1px solid rgba(243, 238, 230, 0.12);
  background: rgba(18, 16, 14, 0.75);
  color: #f3eee6;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}
#lightbox .lb-close:hover,
#lightbox .lb-prev:hover,
#lightbox .lb-next:hover {
  background: rgba(232, 145, 90, 0.2);
  border-color: rgba(232, 145, 90, 0.4);
}
#lightbox .lb-close {
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 1.25rem;
  line-height: 1;
}
#lightbox .lb-prev,
#lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.1rem;
}
#lightbox .lb-prev { left: 0.75rem; }
#lightbox .lb-next { right: 0.75rem; }
#lightbox .lb-prev:hover,
#lightbox .lb-next:hover {
  transform: translateY(-50%) scale(1.05);
}
#lightbox .lb-count {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #c9bdb0;
}
body.lb-lock {
  overflow: hidden;
}
@media (max-width: 640px) {
  #lightbox .lb-prev,
  #lightbox .lb-next {
    width: 2.15rem;
    height: 2.15rem;
  }
  #lightbox .lb-cap { bottom: -1.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Terminal block copy button (site.js injects into each pre.sc)
   ═══════════════════════════════════════════════════════════════════════════ */
.sc-wrap {
  position: relative;
}
.sc-wrap .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #9a8d80;
  background: rgba(18, 16, 14, 0.92);
  border: 1px solid rgba(243, 238, 230, 0.14);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.sc-wrap:hover .copy-btn,
.sc-wrap .copy-btn:focus-visible,
.sc-wrap .copy-btn.done {
  opacity: 1;
}
.sc-wrap .copy-btn:hover {
  color: #f0b48a;
  border-color: rgba(232, 145, 90, 0.45);
  background: rgba(232, 145, 90, 0.12);
}
.sc-wrap .copy-btn.done {
  color: #7dcea0;
  border-color: rgba(125, 206, 160, 0.4);
}
.sc-wrap .copy-btn:focus-visible {
  outline: 2px solid rgba(232, 145, 90, 0.7);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .sc-wrap .copy-btn { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Compare slider — free (base, left) vs paid (overlay, right)
   value 越大 paid 露出越多；透明 range 铺满作为操作层（拖动/键盘均可）
   ═══════════════════════════════════════════════════════════════════════════ */
.compare-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2048 / 1323; /* fallback；JS 按图片真实比例覆写 */
  background: #0c0b0a;
}
.compare-slider:focus-within {
  outline: 2px solid rgba(232, 145, 90, 0.7);
  outline-offset: 2px;
}
.compare-slider .cmp-base,
.compare-slider .cmp-top {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.compare-slider .cmp-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.compare-slider .cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* JS 按 range value 同步 */
  width: 2px;
  margin-left: -1px;
  background: rgba(243, 238, 230, 0.9);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
}
.compare-slider .cmp-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.85);
  border: 1px solid rgba(243, 238, 230, 0.5);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
}
.compare-slider .cmp-grip::before,
.compare-slider .cmp-grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid #f3eee6;
  border-right: 2px solid #f3eee6;
}
.compare-slider .cmp-grip::before {
  left: 0.52rem;
  transform: translateY(-50%) rotate(-135deg);
}
.compare-slider .cmp-grip::after {
  right: 0.52rem;
  transform: translateY(-50%) rotate(45deg);
}
.compare-slider .cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: pan-y;
}
.compare-slider.is-anim .cmp-overlay,
.compare-slider.is-anim .cmp-handle {
  transition: clip-path 0.15s ease, left 0.15s ease; /* reduced-motion 下 JS 不加 is-anim */
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer version badge — gen-site-meta.py 写入，勿在 HTML 里手改
   ═══════════════════════════════════════════════════════════════════════════ */
.ver-badge {
  margin-left: 0.6rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(243, 238, 230, 0.14);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #9a8d80;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Living terminal — 真 HTML/CSS 渲染的假终端窗。颜色变量由
   gen-site-themes.py css 产出（docs/assets/t-live.css）。chrome 保持站点
   深色观感不随主题变，只有 .tl-body 区域吃主题色；换装靠 data-tlive 切
   变量组，transition 做渐变。
   ═══════════════════════════════════════════════════════════════════════════ */
.t-live {
  overflow: hidden;
  border: 1px solid rgba(243, 238, 230, 0.08);
  border-radius: 10px;
  background: var(--t-bg);
  color: var(--t-fg);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85), 0 12px 36px -16px rgba(0, 0, 0, 0.6);
  text-align: left;
  transition: background-color 0.45s ease, color 0.45s ease;
}
.tl-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(243, 238, 230, 0.06);
  background: rgba(18, 16, 14, 0.88); /* 站点深色，不随主题变 */
}
.tl-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(243, 238, 230, 0.15); /* 同 .term-chrome .dots i */
}
.tl-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #9a8d80; /* ash-400，固定不随主题 */
}
.tl-body {
  margin: 0;
  padding: 1rem 1.1rem;
  white-space: pre;
  overflow-x: auto;
  transition: background-color 0.45s ease, color 0.45s ease;
}
/* 终端内容语义色（变量来自 t-live.css） */
.tl-body .tl-p    { color: var(--t-a2); }
.tl-body .tl-dir  { color: var(--t-a4); }
.tl-body .tl-b    { font-weight: 700; }
.tl-body .tl-git  { color: var(--t-a5); }
.tl-body .tl-exe  { color: var(--t-a2); }
.tl-body .tl-num  { color: var(--t-a3); }
.tl-body .tl-add  { color: var(--t-a10); background: color-mix(in srgb, var(--t-a10) 12%, transparent); }
.tl-body .tl-del  { color: var(--t-a9); background: color-mix(in srgb, var(--t-a9) 12%, transparent); }
.tl-body .tl-err  { color: var(--t-a9); }
.tl-body .tl-warn { color: var(--t-a3); }
.tl-body .tl-ok   { color: var(--t-a2); }
.tl-cur {
  color: var(--t-cur);
  background: var(--t-cur);
  animation: tl-blink 1.1s steps(2) infinite;
}
@keyframes tl-blink {
  50% { opacity: 0; }
}

/* 主题圆点 switcher */
.t-live-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.t-dot {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-dot:hover { transform: scale(1.25); }
.t-dot.is-active { box-shadow: 0 0 0 2px #d4723a; }
.t-dot:focus-visible {
  outline: 2px solid rgba(232, 145, 90, 0.7);
  outline-offset: 2px;
}

/* 画廊试穿：色卡高亮 + 滚动时终端 sticky 常驻 */
.tcard.is-trying {
  border-color: rgba(232, 145, 90, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(212, 114, 58, 0.45), 0 24px 60px -30px rgba(212, 114, 58, 0.5);
}
.tl-sticky { position: static; }
@media (min-width: 768px) {
  .tl-sticky {
    position: sticky;
    top: 5.5rem;
    z-index: 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-live,
  .tl-body { transition: none; }
  .tl-cur { animation: none; }
  .t-dot { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Floating TOC — 文档页右侧浮动目录（toc.js 注入，宽屏才显示）
   ═══════════════════════════════════════════════════════════════════════════ */
.toc-float {
  display: none;
}
@media (min-width: 1440px) {
  /* 有 TOC 时文档网格升为三列：侧栏 / 正文 / 目录——目录在流内，不会压正文 */
  .docgrid.has-toc {
    grid-template-columns: 220px minmax(0, 1fr) 190px;
  }
  .toc-float {
    display: block;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow: auto;
    font-size: 0.78rem;
    color: #9a8d80; /* ash-400 */
  }
  .toc-float__title {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f655c; /* ash-500 */
    margin: 0 0 0.5rem;
  }
  .toc-float ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .toc-float li {
    border-left: 2px solid transparent;
  }
  .toc-float a {
    display: block;
    padding: 0.3rem 0 0.3rem 0.6rem;
    color: #9a8d80; /* ash-400 */
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.2s ease;
  }
  .toc-float a:hover {
    color: #c9bdb0; /* 提亮 */
  }
  .toc-float li.is-active {
    border-left-color: #d4723a;
  }
  .toc-float li.is-active a {
    color: #f3eee6; /* ash-100 */
  }
}
