/* ============================================================
   云体育平台「CN」 Site Kit — Shared CSS
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --night-blue: #0B1D2E;
  --deep-navy: #061018;
  --metal-silver: #C8D0D8;
  --cool-gray: #6B7A8A;
  --neon-green: #00FF88;
  --ice-white: #F2F7FA;
  --sky-blue: #5B9BD5;
  --alert-red: #E53935;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Roboto Mono", SFMono-Regular, Consolas, monospace;

  --rail-width: 228px;
  --header-height-mobile: 64px;
  --content-max: 1180px;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

  --ease-base: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 160ms var(--ease-base);
  --transition-base: 320ms var(--ease-base);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--metal-silver);
  background-color: var(--night-blue);
  padding-left: var(--rail-width);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--sky-blue);
}

ul[class],
ol[class] {
  list-style: none;
}

#main-content {
  min-height: 70vh;
  outline: none;
}

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

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-3);
  z-index: 1000;
  padding: 10px 22px;
  background: var(--neon-green);
  color: var(--deep-navy);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: var(--space-3);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-width);
  right: 0;
  height: 3px;
  background: var(--neon-green);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 900;
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* ---------- Header / Side Rail ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  background: var(--deep-navy);
  border-right: 1px solid rgba(200, 208, 216, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4) var(--space-4);
  z-index: 200;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--neon-green) 0%,
    var(--sky-blue) 26%,
    rgba(91, 155, 213, 0.08) 46%,
    var(--neon-green) 76%,
    transparent 100%
  );
  opacity: 0.32;
  pointer-events: none;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--neon-green);
  color: var(--deep-navy);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--ice-white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand-caption {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--cool-gray);
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
}

.site-nav {
  margin-top: var(--space-5);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-item {
  display: block;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--metal-silver);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link::before {
  content: attr(data-nav-index);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cool-gray);
  min-width: 18px;
  letter-spacing: 0.04em;
}

.nav-link:hover {
  background: rgba(0, 255, 136, 0.07);
  color: var(--ice-white);
  border-left-color: var(--neon-green);
}

.nav-link[aria-current="page"] {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border-left-color: var(--neon-green);
  font-weight: 700;
}

.rail-axis {
  border-top: 1px solid rgba(200, 208, 216, 0.14);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rail-axis-line {
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), transparent);
  border-radius: var(--radius-pill);
}

.rail-axis-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cool-gray);
  letter-spacing: 0.12em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #07121e 0%, var(--deep-navy) 60%);
  border-top: 1px solid rgba(200, 208, 216, 0.12);
  padding: var(--space-6) 0 0;
  margin-top: var(--space-7);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--night-blue) 0%, var(--sky-blue) 30%, var(--neon-green) 70%, transparent 100%);
  opacity: 0.6;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background:
    radial-gradient(circle at 30% 30%, rgba(91, 155, 213, 0.16) 0 12%, transparent 16%),
    radial-gradient(circle at 70% 70%, rgba(91, 155, 213, 0.12) 0 9%, transparent 13%),
    radial-gradient(circle at 50% 40%, rgba(0, 255, 136, 0.08) 0 6%, transparent 10%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.4fr 1fr;
  gap: var(--space-5);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 1;
}

.footer-col {
  min-width: 0;
}

.footer-brand .brand-link {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-brand .brand-caption {
  font-size: 12px;
}

.footer-about {
  font-size: 14px;
  color: var(--metal-silver);
  margin-bottom: var(--space-3);
  max-width: 38ch;
}

.footer-trust {
  font-size: 12px;
  line-height: 1.7;
  color: var(--cool-gray);
  border-left: 3px solid var(--sky-blue);
  padding-left: var(--space-3);
  max-width: 42ch;
}

.footer-heading {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-blue);
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200, 208, 216, 0.14);
}

.footer-links,
.footer-linklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-linklist a {
  color: var(--metal-silver);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover,
.footer-linklist a:hover {
  color: var(--neon-green);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  font-size: 13px;
  color: var(--metal-silver);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.footer-contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cool-gray);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.footer-bottom {
  margin-top: var(--space-6);
  border-top: 1px solid rgba(200, 208, 216, 0.12);
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cool-gray);
  position: relative;
  z-index: 1;
}

.footer-copy,
.footer-icp {
  margin: 0;
}

/* ---------- Layout Components ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.section {
  padding: var(--space-6) 0;
}

.section-tight {
  padding: var(--space-4) 0;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--space-5);
  width: 180px;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

.page-title {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ice-white);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.page-subtitle {
  margin-top: var(--space-3);
  max-width: 62ch;
  font-size: 17px;
  color: var(--cool-gray);
}

/* ---------- Section Head ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.index-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.index-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--neon-green);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ice-white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section-desc {
  font-size: 14px;
  color: var(--cool-gray);
  max-width: 48ch;
}

/* ---------- Cover / First Screen ---------- */
.cover-headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ice-white);
  letter-spacing: 0.01em;
  max-width: 14ch;
  text-wrap: balance;
}

.cover-lead {
  margin-top: var(--space-4);
  font-size: 18px;
  line-height: 1.7;
  color: var(--cool-gray);
  max-width: 50ch;
}

/* ---------- Cards ---------- */
.panel-card {
  position: relative;
  background: var(--deep-navy);
  border: 1px solid rgba(200, 208, 216, 0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.panel-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 255, 136, 0.28);
}

.panel-card-highlight {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.07), rgba(6, 16, 24, 0.4) 55%);
  border-color: rgba(0, 255, 136, 0.22);
}

.panel-card-with-fold {
  padding-top: calc(var(--space-5) + var(--space-3));
}

.corner-fold {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 0;
  border-top: 44px solid rgba(0, 255, 136, 0.9);
  border-right: 44px solid transparent;
  border-top-left-radius: var(--radius-xl);
  pointer-events: none;
}

/* ---------- Pills ---------- */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pill-tag-neutral {
  background: rgba(200, 208, 216, 0.08);
  border-color: rgba(200, 208, 216, 0.2);
  color: var(--metal-silver);
}

.pill-tag-red {
  background: rgba(229, 57, 53, 0.12);
  border-color: rgba(229, 57, 53, 0.35);
  color: #ff8a80;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--neon-green);
  color: var(--deep-navy);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  background: transparent;
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.12);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(200, 208, 216, 0.35);
  color: var(--metal-silver);
}

.btn-ghost:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.06);
}

/* ---------- Data Table ---------- */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 208, 216, 0.12);
  background: var(--deep-navy);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: 560px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(6, 16, 24, 0.9);
  color: var(--cool-gray);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(200, 208, 216, 0.16);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(200, 208, 216, 0.08);
  color: var(--metal-silver);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(0, 255, 136, 0.06);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.mono-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ice-white);
}

.data-card-red,
.data-card-yellow,
.data-card-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.data-card-red::before,
.data-card-yellow::before,
.data-card-green::before {
  content: "";
  width: 9px;
  height: 12px;
  border-radius: 2px;
}

.data-card-red {
  color: #ff8a80;
}

.data-card-red::before {
  background: var(--alert-red);
}

.data-card-yellow {
  color: #f0c75e;
}

.data-card-yellow::before {
  background: #e8b53d;
}

.data-card-green {
  color: var(--neon-green);
}

.data-card-green::before {
  background: var(--neon-green);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: var(--space-4);
  color: var(--cool-gray);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--cool-gray);
  font-size: 16px;
}

.breadcrumb a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--cool-gray);
}

/* ---------- Image Frame ---------- */
.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(91, 155, 213, 0.14) 0%, transparent 40%),
    linear-gradient(315deg, rgba(0, 255, 136, 0.05) 0%, rgba(6, 16, 24, 0.55) 60%);
  border: 1px solid rgba(200, 208, 216, 0.16);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  min-height: 160px;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(91, 155, 213, 0.06) 14px 15px
  );
  pointer-events: none;
  z-index: 0;
}

.image-frame::after {
  content: attr(data-img-label);
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cool-gray);
  background: rgba(6, 16, 24, 0.8);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 208, 216, 0.18);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.image-frame:hover::after {
  opacity: 1;
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame[data-ratio="wide"] {
  aspect-ratio: 21 / 9;
}

.image-frame[data-ratio="square"] {
  aspect-ratio: 1 / 1;
}

.image-frame[data-ratio="portrait"] {
  aspect-ratio: 4 / 5;
}

/* ---------- Decorations & Text ---------- */
.angle-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--cool-gray);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: var(--space-5) 0;
}

.angle-divider::before,
.angle-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(200, 208, 216, 0.15);
}

.angle-divider::after {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.4), rgba(200, 208, 216, 0.1));
}

.text-accent {
  color: var(--neon-green);
}

/* ---------- Responsive: Tablet & Mobile ---------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--header-height-mobile);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-height-mobile);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    border-right: none;
    border-bottom: 1px solid rgba(200, 208, 216, 0.14);
  }

  .site-header::before {
    width: 100%;
    height: 3px;
    top: 0;
    bottom: auto;
    left: 0;
    background: linear-gradient(
      90deg,
      var(--neon-green) 0%,
      var(--sky-blue) 30%,
      transparent 70%
    );
    opacity: 0.5;
  }

  .site-header .brand {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-header .brand-link {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
  }

  .site-header .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: none;
  }

  .site-header .brand-name {
    font-size: 15px;
    white-space: nowrap;
  }

  .site-header .brand-caption {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(200, 208, 216, 0.3);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
  }

  .nav-toggle:hover {
    border-color: var(--neon-green);
  }

  .nav-toggle[aria-expanded="true"] {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--neon-green);
  }

  .nav-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--metal-silver);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--deep-navy);
    border-right: 1px solid rgba(200, 208, 216, 0.14);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    padding: var(--space-4) var(--space-3);
    margin-top: 0;
    z-index: 210;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 16px;
  }

  .nav-link::before {
    font-size: 12px;
  }

  .rail-axis {
    display: none;
  }

  .scroll-progress {
    left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }

  .footer-bottom {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  .footer-brand .brand-link {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --space-5: 32px;
    --space-6: 48px;
  }

  .container,
  .page-header,
  .footer-grid,
  .footer-bottom {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .page-header::before {
    right: var(--space-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .page-title {
    font-size: 32px;
  }

  .brand-name {
    font-size: 15px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
