:root {
  --brand: #e63946;
  --brand-dark: #b02a37;
  --brand-light: #ff8a5c;
  --brand-soft: #fff0ee;
  --ink: #1d1d1f;
  --sub: #5a5a5f;
  --line: #e6e6ea;
  --bg: #ffffff;
  --soft: #f7f7f9;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px -4px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 12px 28px -16px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}

a:hover {
  text-decoration: underline;
  color: var(--brand);
}

img,
svg {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(230, 57, 70, 0.18);
  color: var(--brand-dark);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Layout ============ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

header.site:hover {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--ink);
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(230, 57, 70, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo:hover .mark {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 20px -8px rgba(230, 57, 70, 0.85);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 15px;
}

.nav ul a {
  color: var(--sub);
  position: relative;
  padding: 4px 0;
  display: inline-block;
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav ul a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav ul a:hover::after {
  transform: scaleX(1);
}

.nav-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #f2545f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(230, 57, 70, 0.9);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(230, 57, 70, 0.95);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.22s var(--ease);
}

.menu-toggle:hover {
  background: var(--soft);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #fff5f3 0%, #fff 55%, #fef7f5 100%);
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 138, 92, 0.55), transparent 70%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.35), transparent 70%);
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.hero h1 .hl {
  color: var(--brand);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  margin-top: 16px;
  color: var(--sub);
  font-size: 16px;
}

.hero .cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-visual:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 32px 60px -28px rgba(230, 57, 70, 0.45);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--sub);
  padding: 14px 0;
}

.breadcrumb a {
  color: var(--sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ============ TOC ============ */
.toc {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 24px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.toc strong {
  font-size: 15px;
  color: var(--ink);
}

.toc ol {
  margin: 8px 0 0 18px;
  font-size: 14px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  margin: 2px 0;
}

.toc a {
  color: #333;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.toc a:hover {
  color: var(--brand);
  padding-left: 3px;
  text-decoration: none;
}

/* ============ Sections ============ */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

h2 .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  vertical-align: middle;
}

h3 {
  font-size: 19px;
  margin: 26px 0 8px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

h4 {
  font-size: 16px;
  margin: 18px 0 6px;
  color: var(--brand-dark);
  font-weight: 700;
}

p {
  margin: 10px 0;
  color: #2b2b30;
  transition: color 0.35s var(--ease);
}

.muted {
  color: var(--sub);
  font-size: 14px;
}

/* ============ Grid & Cards ============ */
.grid {
  display: grid;
  gap: 20px;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
}

.card h4 {
  margin-top: 0;
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card:hover .ico {
  transform: scale(1.08) rotate(-4deg);
}

/* ============ Stats ============ */
.stat {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.stat b {
  font-size: 30px;
  color: var(--brand);
  font-weight: 800;
}

/* ============ Article List ============ */
.article-item {
  border-bottom: 1px dashed var(--line);
  padding: 16px 0;
  transition: padding-left 0.3s var(--ease), border-color 0.35s var(--ease);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  padding-left: 8px;
}

.article-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.article-item h3 a {
  color: var(--ink);
  transition: color 0.22s var(--ease);
}

.article-item h3 a:hover {
  color: var(--brand);
  text-decoration: none;
}

.article-item .meta {
  font-size: 13px;
  color: var(--sub);
  margin: 4px 0;
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: var(--shadow-md);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  background: var(--card);
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  user-select: none;
}

.faq-q:hover {
  background: var(--soft);
}

.faq-a {
  padding: 0 18px 16px;
  color: #3a3a40;
  font-size: 15px;
  display: none;
  animation: faqFade 0.32s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q {
  color: var(--brand);
}

.chev {
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  color: var(--sub);
  flex-shrink: 0;
}

.faq-item.open .chev {
  transform: rotate(180deg);
  color: var(--brand);
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Steps ============ */
.steps {
  counter-reset: s;
  list-style: none;
  margin-top: 12px;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 52px;
  transition: transform 0.3s var(--ease);
}

.steps li:hover {
  transform: translateX(3px);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 14px -8px rgba(230, 57, 70, 0.9);
  transition: transform 0.3s var(--ease);
}

.steps li:hover::before {
  transform: scale(1.1);
}

.steps li b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

/* ============ Table ============ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  transition: background-color 0.25s var(--ease), border-color 0.35s var(--ease);
}

th {
  background: var(--soft);
  font-weight: 700;
  color: var(--ink);
}

tbody tr {
  transition: background-color 0.22s var(--ease);
}

tbody tr:hover {
  background: rgba(230, 57, 70, 0.04);
}

/* ============ Quote ============ */
.quote {
  border-left: 4px solid var(--brand);
  background: var(--soft);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: #333;
  transition: transform 0.3s var(--ease), background-color 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.quote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ============ Search ============ */
.search-box {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  max-width: 420px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.35s var(--ease);
}

.search-box input::placeholder {
  color: var(--sub);
  opacity: 0.8;
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.14);
}

.search-box button {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--brand), #f2545f);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  box-shadow: 0 6px 14px -8px rgba(230, 57, 70, 0.9);
}

.search-box button:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  transform: translateY(-1px);
}

.search-box button:active {
  transform: translateY(0);
}

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, #141416 0%, #0f0f11 100%);
  color: #c9c9cf;
  padding: 48px 0 24px;
  font-size: 14px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.6), transparent);
}

.footer a {
  color: #d9d9df;
  transition: color 0.22s var(--ease);
}

.footer a:hover {
  color: var(--brand-light);
  text-decoration: none;
}

.footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin: 6px 0;
  transition: transform 0.22s var(--ease);
}

.footer li:hover {
  transform: translateX(3px);
}

.footer p {
  color: #c9c9cf;
  margin: 6px 0;
}

.copy {
  border-top: 1px solid #2a2a2e;
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8d8d95;
}

/* ============ To Top ============ */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 120;
  box-shadow: 0 10px 24px -8px rgba(230, 57, 70, 0.85);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  backdrop-filter: blur(6px);
}

#toTop:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 30px -8px rgba(230, 57, 70, 0.95);
}

#toTop:active {
  transform: translateY(0) scale(1);
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ Dark Mode ============ */
body.dark {
  --ink: #e8e8ec;
  --sub: #a0a0a8;
  --line: #2c2c32;
  --bg: #151517;
  --soft: #1e1e22;
  --card: #1c1c20;
  --glass: rgba(28, 28, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --brand-soft: rgba(230, 57, 70, 0.16);
  --shadow-sm: 0 2px 8px -4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

body.dark header.site {
  background: rgba(21, 21, 23, 0.82);
}

body.dark .card,
body.dark .faq-item,
body.dark .faq-q {
  background: var(--card);
}

body.dark .hero {
  background: linear-gradient(160deg, #1e1a1a 0%, #151517 55%, #1a1617 100%);
}

body.dark .hero::before {
  background: radial-gradient(circle, rgba(255, 138, 92, 0.22), transparent 70%);
}

body.dark .hero::after {
  background: radial-gradient(circle, rgba(230, 57, 70, 0.2), transparent 70%);
}

body.dark .btn {
  background: var(--card);
  color: var(--ink);
}

body.dark .btn.primary {
  background: linear-gradient(135deg, var(--brand), #f2545f);
  color: #fff;
}

body.dark .hero-visual {
  background: var(--card);
}

body.dark p {
  color: #cfcfd6;
}

body.dark .faq-a {
  color: #b8b8c0;
}

body.dark .toc a {
  color: #d0d0d6;
}

body.dark .toc a:hover {
  color: var(--brand-light);
}

body.dark .article-item h3 a {
  color: var(--ink);
}

body.dark .article-item h3 a:hover {
  color: var(--brand-light);
}

body.dark .quote {
  color: #d6d6dc;
}

body.dark th {
  background: #232327;
}

body.dark tbody tr:hover {
  background: rgba(230, 57, 70, 0.08);
}

body.dark .search-box input {
  background: var(--card);
  color: var(--ink);
}

body.dark .menu-toggle:hover {
  background: var(--soft);
}

body.dark .logo:hover {
  color: var(--ink);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer .cols {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav ul {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero {
    padding: 36px 0 32px;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  section {
    padding: 44px 0;
  }
  h2 {
    font-size: 22px;
  }
  h3 {
    font-size: 18px;
  }
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .toc ol {
    columns: 1;
  }
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .search-box {
    max-width: 100%;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  th,
  td {
    white-space: normal;
    min-width: 120px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 23px;
    line-height: 1.45;
  }
  .hero .lead {
    font-size: 15px;
  }
  .hero .cta {
    gap: 10px;
  }
  .hero .cta .btn {
    flex: 1;
    text-align: center;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 17px;
  }
  section {
    padding: 36px 0;
  }
  .card {
    padding: 16px;
  }
  .steps li {
    padding-left: 44px;
  }
  .steps li::before {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .copy {
    flex-direction: column;
    gap: 6px;
  }
  #toTop {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box button {
    width: 100%;
  }
  .toc {
    padding: 14px 16px;
  }
  .faq-q {
    padding: 14px 16px;
    font-size: 14px;
  }
  .faq-a {
    padding: 0 16px 14px;
    font-size: 14px;
  }
  .quote {
    padding: 12px 14px;
  }
}

/* ============ Reduced Motion ============ */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  header.site,
  #toTop,
  .search-box,
  .nav-tools,
  .hero-visual {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  section {
    page-break-inside: avoid;
  }
}