/* ==========================================================================
   欧宝体育入口 · 共享样式表 /assets/site.css
   高原夜蓝 · 堆叠面板 · 冷底暖点
   ========================================================================== */

/* ---------------------------------------------------------------
   1. Reset
   --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

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

/* ---------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------- */
:root {
  /* 色彩 */
  --night: #0A1128;
  --panel: #121C3D;
  --line: #22335F;
  --ice: #F4F7FF;
  --mist: #8E9CC0;
  --red: #C8102E;
  --red-deep: #7E0A1D;
  --cyan: #35D0C0;
  --cyan-deep: #0F7C72;
  --amber: #FF9F1C;
  --pure: #FFFFFF;
  --ink: #D9E1F5;

  /* 圆角 */
  --r-panel: 24px;
  --r-card: 16px;
  --r-pill: 999px;

  /* 间距阶梯 */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 48px;
  --sp-5: 96px;

  /* 布局 */
  --shell: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------
   3. 基础排版
   --------------------------------------------------------------- */
body {
  min-height: 100%;
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 620px at 10% -8%, rgba(53, 208, 192, 0.10), transparent 62%),
    radial-gradient(900px 540px at 98% 2%, rgba(200, 16, 46, 0.13), transparent 60%),
    radial-gradient(760px 420px at 48% 108%, rgba(255, 159, 28, 0.07), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ice);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--ice);
}

h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.14rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.16rem, 1.02rem + 0.6vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--ink); }

strong { color: var(--ice); font-weight: 700; }

::selection { background: rgba(53, 208, 192, 0.3); color: var(--pure); }

/* ---------------------------------------------------------------
   4. 无障碍与焦点
   --------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04231F;
  font-size: 0.9rem;
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   5. 布局容器与网格
   --------------------------------------------------------------- */
.shell {
  width: min(var(--shell), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: var(--sp-5); }
.section--tight { padding-block: var(--sp-4); }
.section--flush-top { padding-top: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.stack { display: grid; gap: var(--sp-3); }
.stack--tight { gap: var(--sp-2); }
.stack--loose { gap: var(--sp-4); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: var(--sp-3);
}

/* ---------------------------------------------------------------
   6. 文本层级
   --------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}

.lede {
  max-width: 42em;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--mist);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.sec-head__index {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.sec-head__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.sec-head__note {
  margin-left: auto;
  font-size: 0.86rem;
  color: var(--mist);
}

.prose {
  max-width: 42em;
  color: var(--ink);
}

.prose > * + * { margin-top: 1em; }

.prose h2, .prose h3 { margin-top: 1.8em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 208, 192, 0.42);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul { display: grid; gap: 0.55em; }

.prose ul li {
  position: relative;
  padding-left: 1.25em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

/* ---------------------------------------------------------------
   7. 通用组件
   --------------------------------------------------------------- */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--pure);
}

.btn--red:hover { background: #DE1638; border-color: #DE1638; }
.btn--red:active { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(1px); }

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04231F;
  font-weight: 700;
}

.btn--cyan:hover { background: #4EE0D1; border-color: #4EE0D1; }
.btn--cyan:active { background: var(--cyan-deep); border-color: var(--cyan-deep); color: var(--ice); transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ice);
}

.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--ghost:active { transform: translateY(1px); }

.btn--sm { padding: 9px 18px; font-size: 0.84rem; }

/* --- 胶囊 --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--mist);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pill:hover {
  color: var(--ice);
  border-color: var(--cyan);
  background: rgba(53, 208, 192, 0.09);
}

.pill:active { transform: translateY(1px); }

.pill[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04231F;
  font-weight: 700;
}

.pill[aria-current="page"]:hover { background: var(--cyan); color: #04231F; }

/* --- 标签 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(142, 156, 192, 0.4);
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.tag--cyan { border-color: rgba(53, 208, 192, 0.45); color: var(--cyan); }
.tag--amber { border-color: rgba(255, 159, 28, 0.48); color: var(--amber); }
.tag--red { border-color: rgba(200, 16, 46, 0.55); color: #FF6B84; }

/* --- 面板与卡片 --- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-3);
}

.panel--raised {
  box-shadow: inset 0 1px 0 rgba(244, 247, 255, 0.07),
              0 22px 46px -30px rgba(0, 0, 0, 0.92);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--cyan);
  background: #14224A;
  transform: translateY(-2px);
}

/* --- 数据 --- */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.num--xl { font-size: 2rem; }
.num--lg { font-size: 1.25rem; }
.num--amber { color: var(--amber); }
.num--white { color: var(--pure); }
.num--cyan { color: var(--cyan); }

.stat { display: grid; gap: 4px; }

.stat__k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.stat__v {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1.1;
}

.stat--lg .stat__v { font-size: 2rem; color: var(--pure); }

/* --- 表格 --- */
.data-table {
  width: 100%;
  font-size: 0.92rem;
}

.data-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--mist);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(34, 51, 95, 0.7);
  color: var(--ink);
}

.data-table tbody tr { transition: background-color var(--dur) var(--ease); }
.data-table tbody tr:hover { background: rgba(53, 208, 192, 0.06); }
.data-table .num { color: var(--amber); }
.data-table .num--white { color: var(--pure); }

/* --- 时间轴 --- */
.timeline {
  position: relative;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) 2px var(--sp-2);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.timeline__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line), var(--cyan-deep) 45%, var(--red-deep));
}

.timeline__item {
  position: relative;
  flex: 0 0 auto;
  min-width: 168px;
  padding-top: 26px;
}

/* --- 图片容器 --- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(155deg, #16224A 0%, #0D1631 62%, var(--night) 100%);
}

.media > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16-9 { aspect-ratio: 16 / 9; }
.media--4-3 { aspect-ratio: 4 / 3; }
.media--3-2 { aspect-ratio: 3 / 2; }
.media--1-1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0) 42%, rgba(10, 17, 40, 0.88) 100%);
  pointer-events: none;
}

.media__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
}

/* --- 面包屑 --- */
.breadcrumb { margin-block: var(--sp-3); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* --- 延伸链接 --- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
}

.link-more::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.link-more:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------
   8. 页头
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.985), rgba(10, 17, 40, 0.9));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 62%, var(--red));
  transition: width 120ms linear;
}

/* 上层品牌带 */
.brand-band {
  overflow: hidden;
  max-height: 140px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(18, 28, 61, 0.92), rgba(10, 17, 40, 0.55));
  transition: max-height 300ms var(--ease), opacity 200ms var(--ease), border-color 200ms var(--ease);
}

.site-header[data-scrolled="true"] .brand-band {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.brand-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 14px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brandmark__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(53, 208, 192, 0.35);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(53, 208, 192, 0.18), rgba(200, 16, 46, 0.18));
  color: var(--cyan);
}

.brandmark__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}

.brandmark__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.brandmark__tag {
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-band__aux {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.aux-mail {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.aux-copy {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  color: var(--mist);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.aux-copy:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 208, 192, 0.08);
}

.aux-copy[data-copied="true"] {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 159, 28, 0.1);
}

/* 下层栏目行 */
.nav-bar { position: relative; }

.nav-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: 12px;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ice);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

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

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[data-open="true"] {
  border-color: var(--cyan);
  background: rgba(53, 208, 192, 0.1);
}

.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-bar__aside {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--mist);
}

.nav-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.16);
}

/* ---------------------------------------------------------------
   9. 页脚
   --------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--sp-5);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 28, 61, 0.58), var(--night) 58%);
  overflow: hidden;
}

.footer-ridge {
  display: block;
  width: 100%;
  line-height: 0;
}

.footer-ridge svg {
  width: 100%;
  height: 84px;
}

.footer-inner { padding-block: var(--sp-4) var(--sp-3); }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.brandmark--footer .brandmark__glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-top__note {
  flex: 1 1 260px;
  max-width: 46ch;
  font-size: 0.9rem;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-block: var(--sp-4) var(--sp-3);
}

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

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--mist);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-col--contact { grid-column: span 1; }

.footer-contact { gap: 12px; }

.footer-contact__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: baseline;
}

.footer-contact__key {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan-deep);
}

.footer-contact__val {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.footer-mail,
.footer-tel {
  font-family: var(--mono);
  letter-spacing: -0.01em;
  color: var(--ice);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mist);
}

.footer-legal { flex: 1 1 320px; }

.footer-note {
  flex: 1 1 240px;
  color: var(--mist);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  flex: 1 1 100%;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(142, 156, 192, 0.75);
}

/* ---------------------------------------------------------------
   10. 响应式
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-bar__aside { display: none; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --sp-5: 64px; --sp-4: 36px; }

  body { background-attachment: scroll; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.95);
    transition: max-height 300ms var(--ease);
  }

  .primary-nav[data-open="true"] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
  }

  .primary-nav__list .pill {
    justify-content: flex-start;
    padding: 13px 18px;
  }

  .nav-bar__inner { justify-content: space-between; }

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

/* 平板区间：栏目保持横向滑动，右端渐隐 */
@media (min-width: 640px) and (max-width: 899px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .primary-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 0 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }

  .primary-nav__list .pill {
    padding: 9px 18px;
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .aux-mail { display: none; }
  .brand-band__inner { gap: var(--sp-2); }
  .footer-top__note { flex-basis: 100%; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 599px) {
  .shell { width: min(var(--shell), 100% - 2rem); }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brandmark__tag { display: none; }
  .panel { padding: 18px; }
  .card { padding: 16px; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }

  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-legal, .footer-note { flex-basis: auto; }
}

@media (max-width: 420px) {
  .brand-band__aux .btn { padding: 8px 14px; font-size: 0.78rem; }
}

/* ---------------------------------------------------------------
   11. 动效降级
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .scroll-meter__fill { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}
