/* ============================================================
   狂座车服 · 全站共享样式
   ============================================================ */

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--color-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--color-blue); }
a:hover { color: var(--color-orange); }
figure { margin: 0; }

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul[class], ol[class] { list-style: none; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

#main-content { scroll-margin-top: 88px; outline: none; }
[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 2. Design Tokens ---------- */
:root {
  /* 品牌色板 */
  --color-deep: #2C3E50;
  --color-warm: #EAECEE;
  --color-card: #FFFFFF;
  --color-orange: #E67E22;
  --color-yellow: #F1C40F;
  --color-teal: #1ABC9C;
  --color-rose: #E74C3C;
  --color-blue: #3498DB;
  --color-success: #2ECC71;
  --color-warning: #E74C3C;

  /* 可读性加深色 */
  --color-orange-dark: #B94A00;
  --color-teal-dark: #0E6655;
  --color-blue-dark: #1F618D;
  --color-rose-dark: #B03A2E;

  /* 文字与线条 */
  --text-main: #2C3E50;
  --text-muted: #6B7A7D;
  --text-invert: #FDFEFE;
  --border-color: #BDC3C7;
  --border-light: #DCE1E5;

  /* 布局 */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 48px);

  /* 效果 */
  --shadow-sm: 0 1px 2px rgba(44, 62, 80, 0.07);
  --shadow-md: 0 5px 14px rgba(44, 62, 80, 0.09);
  --shadow-lg: 0 14px 30px rgba(44, 62, 80, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;
}

/* ---------- 3. Utilities ---------- */
.mono { font-family: var(--font-mono); }
.u-muted { color: var(--text-muted); }
.u-small { font-size: .82rem; }
.u-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }

/* ---------- 4. Layout & Breadcrumb ---------- */
.content-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .6rem;
  font-size: .82rem;
  color: var(--text-muted);
  padding: .9rem 0;
}
.breadcrumb a { color: var(--color-teal); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-orange); }
.breadcrumb-sep { color: var(--border-color); }

/* ---------- 5. Skip Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--color-orange-dark);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 6. Header ---------- */
.site-header {
  position: relative;
  background: var(--color-deep);
  color: var(--text-invert);
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.25);
  z-index: 100;
}

.header-edge {
  display: flex;
  height: 5px;
}
.edge-seg { flex: 1; height: 100%; }
.edge-seg.is-orange { background: var(--color-orange); }
.edge-seg.is-yellow { background: var(--color-yellow); }
.edge-seg.is-teal { background: var(--color-teal); }
.edge-seg.is-blue { background: var(--color-blue); }
.edge-seg.is-rose { background: var(--color-rose); }

.header-frame {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  min-height: 76px;
}

.header-brand { margin-right: auto; }

.brand-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand-mark {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-deep);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.4;
  padding: .12rem .6rem;
  border-radius: 5px;
  letter-spacing: .06em;
}
.brand-caption {
  font-size: .76rem;
  color: rgba(253, 254, 254, 0.68);
  letter-spacing: .05em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(253, 254, 254, 0.74);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .03em;
}
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.meta-dot.is-new { background: var(--color-teal); }
.meta-dot.is-update { background: var(--color-rose); }
.meta-dot.is-done { background: var(--color-blue); }

.header-nav { margin-left: .25rem; }
.nav-list { display: flex; gap: .2rem; }

.nav-item a {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .65rem .75rem;
  border-radius: 6px 6px 0 0;
  color: rgba(253, 254, 254, 0.74);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nav-item a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-item a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-bottom-color: var(--color-orange);
}
.nav-item a[aria-current="page"] .nav-index { color: var(--color-yellow); }
.nav-index {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: .04em;
}

.nav-toggle { display: none; }

@media (max-width: 1160px) {
  .header-meta { display: none; }
}

@media (max-width: 920px) {
  .header-frame { min-height: 64px; flex-wrap: wrap; gap: .5rem; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    padding: .4rem .75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
  }
  .nav-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 15px;
  }
  .nav-toggle-bar {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-text { font-size: .78rem; letter-spacing: .03em; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-deep);
    box-shadow: 0 14px 24px rgba(44, 62, 80, 0.22);
    padding: .5rem var(--container-pad) 1.1rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .header-nav[data-open="true"] { display: block; }

  .nav-list { flex-direction: column; gap: .1rem; }
  .nav-item a {
    display: flex;
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 8px;
    border-bottom: none;
    font-size: 1rem;
  }
  .nav-item a[aria-current="page"] {
    background: var(--color-orange-dark);
    border-bottom-color: transparent;
  }
  .nav-item a[aria-current="page"] .nav-index { color: rgba(255, 255, 255, 0.85); }
  .nav-item a:hover { background: rgba(255, 255, 255, 0.10); }
  .nav-item a[aria-current="page"]:hover { background: var(--color-orange-dark); }
}

@media (max-width: 560px) {
  .brand-caption { display: none; }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  background: var(--color-deep);
  color: rgba(253, 254, 254, 0.7);
  margin-top: 4rem;
}

.footer-frame {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem var(--container-pad) 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem 2rem;
}

.footer-brand-mark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
  position: relative;
  padding-left: .7rem;
}
.footer-brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: .35rem;
  height: .66em;
  background: var(--color-yellow);
  border-radius: 2px;
}
.footer-brand-word {
  margin-top: .4rem;
  font-size: .82rem;
  color: rgba(253, 254, 254, 0.58);
  letter-spacing: .04em;
}

.footer-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: .8rem;
}

.footer-nav ul,
.footer-legal ul { list-style: none; }
.footer-nav li,
.footer-legal li { margin-bottom: .25rem; }

.footer-nav a,
.footer-legal a {
  display: inline-block;
  padding: .3rem 0;
  color: rgba(253, 254, 254, 0.72);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s ease, padding-left .15s ease;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-yellow);
  padding-left: .3rem;
}

.footer-contact {
  font-style: normal;
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(253, 254, 254, 0.72);
}
.footer-contact p { margin: .25rem 0; }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.2rem var(--container-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  font-size: .8rem;
  color: rgba(253, 254, 254, 0.58);
}

.footer-bottom p { margin: 0; }

.footer-top {
  font-size: .8rem;
  color: rgba(253, 254, 254, 0.66);
  padding: .3rem .85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color .15s, color .15s;
}
.footer-top:hover { color: var(--color-yellow); background: rgba(255, 255, 255, 0.1); }

.footer-edge { display: flex; height: 5px; }
.footer-edge .edge-seg { flex: 1; height: 100%; }

@media (max-width: 900px) {
  .footer-frame { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-frame { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--color-warm);
  color: var(--text-main);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { box-shadow: var(--shadow-md); }
.btn-primary { background: var(--color-orange-dark); color: #fff; }
.btn-primary:hover { background: var(--color-orange); }
.btn-outline { background: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--color-teal); color: var(--color-teal); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }

[data-filter],
[data-tab] {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--color-card);
  color: var(--text-main);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
[data-filter]:hover,
[data-tab]:hover { border-color: var(--color-teal); color: var(--color-teal); box-shadow: var(--shadow-sm); }
[data-filter].is-active,
[data-tab].is-active {
  background: var(--color-teal-dark);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- 9. Card Grid & Card ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--color-orange); }
.card-sub { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.card-foot {
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------- 10. Image Frame ---------- */
.img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--color-warm);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.img-frame .img-placeholder {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  padding: .3rem .7rem;
  background: rgba(255, 255, 255, 0.6);
}
.img-frame img,
.img-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-caption {
  padding: .4rem .75rem;
  background: var(--color-warm);
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- 11. Tile Matrix ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 1rem;
}
.tile {
  display: block;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile.is-orange { background: var(--color-orange-dark); border-color: transparent; color: #fff; }
.tile.is-yellow { background: var(--color-yellow); border-color: transparent; color: var(--color-deep); }
.tile.is-teal { background: var(--color-teal-dark); border-color: transparent; color: #fff; }
.tile.is-blue { background: var(--color-blue-dark); border-color: transparent; color: #fff; }
.tile.is-warm { background: var(--color-warm); border-color: var(--border-color); }
.tile.is-orange .tile-count,
.tile.is-teal .tile-count,
.tile.is-blue .tile-count { color: rgba(255, 255, 255, 0.85); }
.tile.is-yellow .tile-count { color: rgba(44, 62, 80, 0.75); }
.tile-title { display: block; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.tile-count {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  opacity: .85;
}

/* ---------- 12. List Rows ---------- */
.list-rows {
  background: var(--color-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.list-row {
  display: flex;
  align-items: center;
  gap: .8rem 1.2rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--color-card);
  text-decoration: none;
  color: var(--text-main);
  transition: background-color .15s ease;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(26, 188, 156, 0.05); }

/* ---------- 13. Tags & Badges ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1.5;
  background: var(--color-warm);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  white-space: nowrap;
}
.tag.is-orange { background: rgba(230, 126, 34, 0.14); border-color: transparent; color: #9A3E00; }
.tag.is-yellow { background: rgba(241, 196, 15, 0.18); border-color: transparent; color: #7A6200; }
.tag.is-teal { background: rgba(26, 188, 156, 0.12); border-color: transparent; color: #0E6655; }
.tag.is-blue { background: rgba(52, 152, 219, 0.12); border-color: transparent; color: #1F618D; }
.tag.is-rose { background: rgba(231, 76, 60, 0.10); border-color: transparent; color: #A93226; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .65rem;
  font-size: .74rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--color-warm);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  line-height: 1.4;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-badge.is-new { background: rgba(26, 188, 156, 0.10); border-color: transparent; color: #0E6655; }
.status-badge.is-updating { background: rgba(231, 76, 60, 0.10); border-color: transparent; color: #A93226; }
.status-badge.is-done { background: rgba(52, 152, 219, 0.12); border-color: transparent; color: #1F618D; }
.status-badge.is-warning { background: rgba(231, 76, 60, 0.14); border-color: transparent; color: #A93226; }
.status-badge.is-success { background: rgba(46, 204, 113, 0.12); border-color: transparent; color: #1E8449; }
.status-badge.is-corner {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.price-tag {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  background: var(--color-warm);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  white-space: nowrap;
}
.price-tag.is-strong {
  background: rgba(230, 126, 34, 0.14);
  border-color: transparent;
  color: #9A3E00;
}

/* ---------- 14. Sequence Numbers ---------- */
.seq-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  min-width: 2.4em;
}
.seq-num.is-top { color: var(--color-orange-dark); }
.seq-num.is-teal { color: var(--color-teal-dark); }

/* ---------- 15. Metric & Index Bars ---------- */
.metric-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--color-warm);
  overflow: hidden;
}
.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-teal);
}
.metric-bar > span.is-orange { background: var(--color-orange); }
.metric-bar > span.is-yellow { background: var(--color-yellow); }
.metric-bar > span.is-blue { background: var(--color-blue); }
.metric-bar > span.is-rose { background: var(--color-rose); }

.index-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-warm);
}
.index-bar > span { flex: 1; height: 100%; }
.index-bar > span.ib-orange { background: var(--color-orange); }
.index-bar > span.ib-yellow { background: var(--color-yellow); }
.index-bar > span.ib-teal { background: var(--color-teal); }
.index-bar > span.ib-blue { background: var(--color-blue); }
.index-bar > span.ib-rose { background: var(--color-rose); }

/* ---------- 16. Horizontal Rail ---------- */
.rail {
  display: flex;
  gap: .7rem 1rem;
  overflow-x: auto;
  padding: .3rem .3rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.rail > * {
  flex: 0 0 auto;
  width: min(78vw, 240px);
  scroll-snap-align: start;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* ---------- 17. Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--color-card);
}
.table-wrap .data-table { min-width: 640px; }
.data-table th,
.data-table td {
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  background: var(--color-warm);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.data-table td:first-child { font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.is-highlight td { background: rgba(230, 126, 34, 0.05); }
.data-table tr.is-highlight td:first-child { box-shadow: inset 3px 0 0 var(--color-orange); }

/* ---------- 18. Section Headings ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  margin: 2.8rem 0 1.25rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--color-deep);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  letter-spacing: .05em;
}
.section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.section-note {
  margin-left: auto;
  font-size: .82rem;
  color: var(--text-muted);
}

.note-col {
  max-width: 34em;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--color-yellow);
  padding-left: 1rem;
  margin: 1rem 0;
}
.note-col .note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-orange-dark);
  margin-bottom: .2rem;
}

.section-block {
  background: var(--color-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}

/* ---------- 19. Split Hero ---------- */
.split-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
  min-height: 380px;
}
.split-panel {
  padding: clamp(1.4rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .8rem;
}
.split-panel.is-deep {
  background: var(--color-deep);
  color: var(--text-invert);
}
.split-panel.is-deep h1,
.split-panel.is-deep h2,
.split-panel.is-deep h3 { color: #fff; }
.split-panel.is-warm {
  background: var(--color-card);
  color: var(--text-main);
  border-left: 3px solid var(--color-yellow);
}
@media (max-width: 800px) {
  .split-hero { grid-template-columns: 1fr; min-height: 0; }
  .split-panel.is-warm { border-left: none; border-top: 3px solid var(--color-yellow); }
}

/* ---------- 20. Vertical Label ---------- */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .24em;
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
