/* ==========================================================================
   万合足球CN · 共享样式 /assets/site.css
   堆叠面板骨架 · 悬浮胶囊导航 · 夜间球场看台配色
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: #0B1F16;
  background-image:
    linear-gradient(rgba(140, 255, 228, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 228, .035) 1px, transparent 1px),
    radial-gradient(circle at 12% -8%, rgba(25, 240, 195, .12), transparent 46%),
    radial-gradient(circle at 92% 2%, rgba(108, 92, 231, .16), transparent 44%);
  background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  color: #F4FBF7;
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

p { overflow-wrap: break-word; }

#main-content { scroll-margin-top: 108px; }

/* ---------- variables ---------- */
:root {
  --c-pitch: #0B1F16;
  --c-grass-deep: #10382A;
  --c-grass-mid: #1B5A41;
  --c-cyan: #19F0C3;
  --c-cyan-soft: #8CFFE4;
  --c-orange: #FF7A2F;
  --c-violet: #6C5CE7;
  --c-violet-soft: #B4AAFF;
  --c-white: #F4FBF7;
  --c-mist: #A9C4B8;
  --c-paper: #E8EDEA;
  --c-paper-ink: #0B1F16;

  --line-soft: rgba(140, 255, 228, .14);
  --line-mid: rgba(140, 255, 228, .28);
  --glass: rgba(16, 56, 42, .68);
  --glass-strong: rgba(11, 31, 22, .95);

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas,
    "Liberation Mono", monospace;

  --shell: 1320px;
  --pad: clamp(16px, 3vw, 32px);
  --radius-pill: 999px;
  --radius-panel: 22px;
  --radius-sm: 12px;

  --step-fast: 180ms;
  --step-mid: 220ms;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- 跳至内容 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -170%);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-cyan);
  color: var(--c-pitch);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform var(--step-mid) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ==========================================================================
   头部 · 悬浮胶囊导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px var(--pad) 0;
  transition: padding var(--step-mid) var(--ease);
}

.site-header[data-condensed] { padding-top: 8px; }

.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: rgba(140, 255, 228, .10);
  pointer-events: none;
}

.scroll-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
  box-shadow: 0 0 14px rgba(25, 240, 195, .55);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 26px 52px -38px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(244, 251, 247, .06);
  transition: padding var(--step-mid) var(--ease), background var(--step-mid) var(--ease),
    border-color var(--step-mid) var(--ease);
}

.site-header[data-condensed] .header-shell {
  padding-top: 6px;
  padding-bottom: 6px;
  background: var(--glass-strong);
  border-color: var(--line-mid);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  transition: transform var(--step-fast) var(--ease);
}

.brand:hover { transform: translateX(4px); }

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--c-cyan);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(25, 240, 195, .30) 0 21%, transparent 22%),
    linear-gradient(90deg,
      transparent calc(50% - .5px),
      rgba(25, 240, 195, .60) calc(50% - .5px),
      rgba(25, 240, 195, .60) calc(50% + .5px),
      transparent calc(50% + .5px));
  box-shadow: 0 0 0 4px rgba(25, 240, 195, .07);
  transition: box-shadow var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
}

.brand:hover .brand__mark {
  border-color: var(--c-cyan-soft);
  box-shadow: 0 0 0 5px rgba(25, 240, 195, .14);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--c-white);
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--c-cyan-soft);
  transition: opacity var(--step-mid) var(--ease);
}

.site-header[data-condensed] .brand__tagline { opacity: 0; }

/* 栏目轨道 */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--c-mist);
  white-space: nowrap;
  transition: color var(--step-fast) var(--ease), background var(--step-fast) var(--ease),
    border-color var(--step-fast) var(--ease), transform var(--step-fast) var(--ease);
}

.main-nav a:hover {
  color: var(--c-white);
  background: rgba(25, 240, 195, .10);
  border-color: var(--line-mid);
  transform: translateX(4px);
}

.main-nav a[aria-current="page"] {
  color: var(--c-pitch);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  font-weight: 600;
}

/* 右侧工具区 */
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.version-badge {
  padding: 6px 12px;
  border: 1px solid rgba(25, 240, 195, .34);
  border-radius: var(--radius-pill);
  background: rgba(25, 240, 195, .08);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.pill-action {
  padding: 8px 16px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  background: rgba(244, 251, 247, .04);
  color: var(--c-white);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease),
    transform var(--step-fast) var(--ease);
}

.pill-action:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateX(4px);
}

.site-header[data-condensed] .pill-action { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  color: var(--c-white);
  font-size: 13.5px;
  cursor: pointer;
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease),
    background var(--step-fast) var(--ease);
}

.nav-toggle:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(25, 240, 195, .08);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--step-mid) var(--ease), opacity var(--step-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5.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(-5.5px) rotate(-45deg);
}

/* ==========================================================================
   页脚 · 斜切画板
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(120% 90% at 6% 0%, rgba(25, 240, 195, .10), transparent 55%),
    radial-gradient(90% 80% at 96% 8%, rgba(108, 92, 231, .16), transparent 62%),
    linear-gradient(180deg, var(--c-grass-deep) 0%, #0a1b13 74%, #08160f 100%);
  clip-path: polygon(0 52px, 100% 0, 100% 100%, 0 100%);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
}

.footer-brand__link {
  display: inline-block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--c-white);
  transition: color var(--step-fast) var(--ease);
}

.footer-brand__link:hover { color: var(--c-cyan); }

.footer-brand__tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--c-cyan-soft);
}

.footer-brand__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-mist);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--c-cyan-soft);
}

.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  background: var(--c-cyan);
}

.footer-col__list li + li { margin-top: 9px; }

.footer-col__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease),
    transform var(--step-fast) var(--ease);
}

.footer-col__list a:hover {
  color: var(--c-white);
  border-color: var(--c-cyan);
  transform: translateX(4px);
}

.footer-contact__list li {
  display: grid;
  gap: 2px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(169, 196, 184, .72);
}

.footer-contact__value {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-white);
  overflow-wrap: break-word;
}

.footer-contact__value.num {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: -.01em;
  color: var(--c-cyan);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--c-mist);
}

.footer-base__item { margin: 0; }

.footer-base__copy,
.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.footer-base__icp { color: rgba(169, 196, 184, .82); }

/* ==========================================================================
   布局原语
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow { max-width: 900px; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.grid--aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.divider-slant {
  position: relative;
  height: clamp(28px, 4vw, 48px);
  margin: clamp(28px, 4vw, 56px) 0;
  border: 0;
  overflow: hidden;
}

.divider-slant::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-mid), transparent 72%);
}

.divider-slant::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(70px, 14vw, 180px);
  height: 100%;
  background: linear-gradient(120deg, rgba(25, 240, 195, .30), rgba(108, 92, 231, .06));
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   排版
   ========================================================================== */
.display-xl {
  font-size: clamp(40px, 6.5vw, 104px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--c-white);
}

.display-lg {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-white);
}

.heading {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--c-white);
}

.eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-cyan-soft);
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 1.75;
  color: var(--c-mist);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  font-size: 1.12em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 16px;
  margin-bottom: clamp(18px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--c-cyan);
}

.section-head__title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--c-white);
}

/* ==========================================================================
   面板 / 按钮 / 标签 / 路径
   ========================================================================== */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: var(--c-grass-deep);
  transition: border-color var(--step-fast) var(--ease), background var(--step-fast) var(--ease),
    transform var(--step-fast) var(--ease);
}

.panel--glass {
  border-color: var(--line-mid);
  background: linear-gradient(160deg, rgba(27, 90, 65, .52), rgba(11, 31, 22, .66));
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.panel--flat { background: rgba(16, 56, 42, .58); }

.panel--slant {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.panel:hover {
  border-color: var(--line-mid);
  transform: translateX(4px);
}

.panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-cyan-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--step-fast) var(--ease), background var(--step-fast) var(--ease),
    border-color var(--step-fast) var(--ease), transform var(--step-fast) var(--ease);
}

.btn--primary {
  background: var(--c-cyan);
  color: var(--c-pitch);
}

.btn--primary:hover {
  background: var(--c-cyan-soft);
  transform: translateX(4px);
}

.btn--ghost {
  border-color: var(--line-mid);
  background: rgba(244, 251, 247, .03);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateX(4px);
}

.btn--alert {
  border-color: rgba(255, 122, 47, .48);
  background: rgba(255, 122, 47, .08);
  color: var(--c-orange);
}

.btn--alert:hover {
  background: var(--c-orange);
  color: var(--c-pitch);
  transform: translateX(4px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(244, 251, 247, .03);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--c-mist);
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease),
    background var(--step-fast) var(--ease), transform var(--step-fast) var(--ease);
}

.chip:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateX(4px);
}

.chip--cyan {
  color: var(--c-cyan);
  border-color: rgba(25, 240, 195, .40);
  background: rgba(25, 240, 195, .09);
}

.chip--orange {
  color: var(--c-orange);
  border-color: rgba(255, 122, 47, .42);
  background: rgba(255, 122, 47, .09);
}

.chip--violet {
  color: var(--c-violet-soft);
  border-color: rgba(108, 92, 231, .52);
  background: rgba(108, 92, 231, .14);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-mist);
}

.crumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumb__item + .crumb__item::before {
  content: "/";
  color: rgba(169, 196, 184, .5);
}

.crumb a {
  border-bottom: 1px solid transparent;
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
}

.crumb a:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(25, 240, 195, .35);
  transition: color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease),
    transform var(--step-fast) var(--ease);
}

.link-arrow::after { content: "\2192"; }

.link-arrow:hover {
  color: var(--c-cyan-soft);
  border-color: var(--c-cyan-soft);
  transform: translateX(4px);
}

.list-flat li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--c-mist);
}

.list-flat li + li { margin-top: 8px; }

.list-flat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--c-cyan);
}

/* ==========================================================================
   图片容器（页面阶段放置占位图使用）
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(27, 90, 65, .55), rgba(11, 31, 22, .85));
}

.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 255, 228, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 228, .10) 1px, transparent 1px);
  background-size: 36px 36px;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-cyan-soft);
  background: linear-gradient(180deg, transparent, rgba(8, 22, 15, .92));
}

/* ==========================================================================
   可访问性
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-cyan-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(220px, .9fr) minmax(0, 2.6fr);
  }
}

@media (min-width: 1080px) {
  .grid--aside {
    grid-template-columns: 264px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .main-nav a {
    padding: 9px 11px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .site-header { padding-top: 12px; }

  .header-shell {
    gap: 10px;
    padding: 8px 10px 8px 14px;
  }

  .nav-toggle { display: inline-flex; }

  .pill-action { display: none; }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 70;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .95);
    transition: max-height var(--step-mid) var(--ease), opacity var(--step-fast) var(--ease);
  }

  .main-nav[data-open] {
    max-height: min(70vh, 560px);
    overflow: auto;
    opacity: 1;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .main-nav a:hover { transform: none; }

  .site-header[data-condensed] .header-shell {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 620px) {
  .brand__tagline { display: none; }

  .brand__mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .brand__name { font-size: 15px; }

  .version-badge {
    padding: 5px 9px;
    font-size: 10px;
  }

  .nav-toggle { padding: 7px 12px; }

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

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .brand:hover,
  .panel:hover,
  .chip:hover,
  .btn:hover,
  .pill-action:hover,
  .link-arrow:hover,
  .main-nav a:hover,
  .footer-col__list a:hover {
    transform: none;
  }
}
