/* ==========================================================================
   必一体育 · /assets/site.css
   夜场战术板体系：深墨绿机身 + 荧光青柠导航 + 奶油档案纸信息区
   ========================================================================== */

:root {
  /* 夜场墨绿 */
  --ink: #07211B;
  /* 战术板深绿 */
  --ink-2: #0B2F27;
  /* 更深的板缝 */
  --ink-3: #051814;
  /* 荧光青柠 */
  --lime: #C8FF3D;
  --lime-soft: rgba(200, 255, 61, 0.10);
  --lime-line: rgba(200, 255, 61, 0.32);
  /* 信号橙 */
  --signal: #FF6B2C;
  /* 金属灰 */
  --metal: #8C9793;
  /* 雾青 */
  --mist: #4F6F66;
  --mist-soft: #7C9A92;
  /* 奶油档案纸 */
  --paper: #F3EBDD;
  /* 深棕黑 */
  --espresso: #1B1410;
  /* 红橙点色 */
  --ruby: #D94A2B;
  /* 纯白 */
  --white: #FFFFFF;
  /* 浅体文字 */
  --text-dim: #C3D2CD;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    "SF Mono", Menlo, Consolas, monospace;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shell-max: 1240px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--white); }
hr { border: 0; height: 1px; background: rgba(79, 111, 102, 0.45); margin: 40px 0; }
table { border-collapse: collapse; }

/* ---------- 2. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: top 0.22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: var(--ink);
  outline-offset: 2px;
}

/* ---------- 3. 版心与通用栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1440px; }

.grid-2,
.grid-3,
.grid-12 {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
}

.stack > * + * { margin-top: 16px; }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  border-bottom: 1px solid rgba(79, 111, 102, 0.45);
  box-shadow: 0 22px 46px -34px #000000;
}

.header-ribbon {
  background: var(--ink-2);
  border-bottom: 1px solid rgba(79, 111, 102, 0.35);
  height: 42px;
  overflow: hidden;
  transition: height 0.3s var(--ease), opacity 0.24s ease;
}

.site-header.is-scrolled .header-ribbon {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.ribbon-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--metal);
}

.ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  white-space: nowrap;
}

.ribbon-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
  animation: lime-breathe 2.6s ease-in-out infinite;
}

.ribbon-brand {
  color: var(--metal);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes lime-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.04); }
}

.header-nav-bar {
  position: relative;
  background: var(--ink);
}

.nav-bar-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--white);
}
.brand-lockup:hover { color: var(--white); }

.brand-glyph {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(7, 33, 27, 0.28);
  transition: transform 0.28s var(--ease);
}

.brand-lockup:hover .brand-glyph { transform: rotate(-7deg) scale(1.05); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--white);
}

.brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist-soft);
}

.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--lime);
  background: var(--lime-soft);
}

.nav-link[aria-current="page"] {
  color: var(--lime);
  background: rgba(200, 255, 61, 0.06);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.6);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 44, 0.58);
  background: rgba(255, 107, 44, 0.11);
  color: #FFD9C7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--espresso);
}

.header-cta-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  transition: background-color 0.22s ease;
  animation: signal-beat 2.4s ease-in-out infinite;
}

.header-cta:hover .header-cta-dot { background: var(--espresso); }

@keyframes signal-beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.5); }
  55% { box-shadow: 0 0 0 5px rgba(255, 107, 44, 0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 13px;
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(200, 255, 61, 0.18); }
.nav-toggle[aria-expanded="true"] { background: var(--lime); border-color: var(--lime); }

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.26s var(--ease), opacity 0.18s ease, background-color 0.2s ease;
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--signal));
  pointer-events: none;
  z-index: 130;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
  border-top: 1px solid rgba(79, 111, 102, 0.45);
  color: var(--paper);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime) 0%, rgba(200, 255, 61, 0) 46%, rgba(255, 107, 44, 0.75) 100%);
}

.footer-inner {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 64px 24px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--white);
}
.footer-brand-link:hover { color: var(--white); }

.footer-brand-glyph {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand-name {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-tagline {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-note {
  margin: 14px 0 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--metal);
}

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

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

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-links a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lime);
  transform: translateX(3px);
}

.footer-contact {
  margin-top: 44px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 28px;
  border-radius: var(--radius-md);
  background: rgba(7, 33, 27, 0.72);
  border: 1px solid rgba(79, 111, 102, 0.45);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-soft);
}

.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(79, 111, 102, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 13px;
  color: var(--metal);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-soft);
}

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

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible { color: var(--lime); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-soft);
}

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, transform 0.22s var(--ease);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover,
.btn--lime:focus-visible {
  background: #DCFF7A;
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--lime-line);
  color: var(--lime);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--lime-soft);
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn--signal {
  background: var(--signal);
  color: var(--espresso);
}
.btn--signal:hover,
.btn--signal:focus-visible {
  background: #FF8A56;
  color: var(--espresso);
  transform: translateY(-2px);
}

/* ---------- 7. 胶囊标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--signal {
  border-color: rgba(255, 107, 44, 0.55);
  background: rgba(255, 107, 44, 0.14);
  color: #FFB594;
}

.tag--metal {
  border-color: rgba(140, 151, 147, 0.45);
  background: rgba(140, 151, 147, 0.12);
  color: var(--metal);
}

.tag--ruby {
  border-color: rgba(217, 74, 43, 0.5);
  background: rgba(217, 74, 43, 0.14);
  color: #F2917A;
}

/* ---------- 8. 卡片与档案纸 ---------- */
.card {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid rgba(79, 111, 102, 0.42);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--lime-line);
  transform: translateY(-3px);
}

.card-title {
  margin: 0 0 10px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--white);
}

.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

.paper-card {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--espresso);
  box-shadow: 0 24px 46px -34px rgba(0, 0, 0, 0.9);
}

.paper-card .card-title { color: var(--espresso); }
.paper-card .card-text { color: #43372F; }
.paper-card a { color: var(--ruby); text-decoration: underline; text-underline-offset: 3px; }
.paper-card a:hover { color: #A83318; }
.paper-card h2,
.paper-card h3,
.paper-card h4 { color: var(--espresso); }

/* ---------- 9. 档案系装饰元素 ---------- */
.section-mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-mark::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, rgba(79, 111, 102, 0.7), rgba(79, 111, 102, 0));
}

.overline-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--metal);
}

.divider {
  height: 1px;
  border: 0;
  margin: 40px 0;
  background: rgba(79, 111, 102, 0.45);
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  border-left: 3px solid var(--ruby);
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.countdown[data-state="urgent"] {
  color: var(--signal);
  animation: urgent-pulse 1.8s ease-in-out infinite;
}

@keyframes urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--metal);
}

.breadcrumb a {
  color: var(--metal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--lime); }

.breadcrumb-sep {
  color: var(--mist);
  opacity: 0.8;
}

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

/* ---------- 11. 图片容器（页面阶段使用） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 111, 102, 0.42);
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(79, 111, 102, 0.16) 0,
    rgba(79, 111, 102, 0.16) 1px,
    transparent 1px,
    transparent 15px
  );
}

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

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.42);
}

/* ---------- 12. 显现协议 ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. 响应式 ---------- */
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.45fr);
    gap: 56px;
  }
  .footer-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-contact-item--wide { grid-column: span 1; }
}

@media (max-width: 1080px) {
  .nav-link { padding: 9px 9px; font-size: 14px; }
  .header-cta { padding: 8px 14px; font-size: 12.5px; }
  .nav-bar-inner { gap: 14px; }
}

@media (max-width: 900px) {
  .nav-bar-inner { flex-wrap: wrap; padding: 11px 20px; }

  .brand-lockup { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  .primary-nav { order: 4; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    padding: 12px 20px 22px;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(79, 111, 102, 0.55);
    box-shadow: 0 26px 44px -30px #000000;
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .primary-nav[data-open="true"] { display: block; animation: nav-drop 0.22s var(--ease); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    border: 1px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--lime-line);
    background: rgba(200, 255, 61, 0.08);
  }

  .nav-link[aria-current="page"]::after { display: none; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .ribbon-inner { justify-content: flex-start; }
  .ribbon-brand { display: none; }
}

@media (max-width: 780px) {
  .footer-inner { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-top { gap: 34px; }
  .footer-contact { margin-top: 32px; padding: 20px; }
  .footer-legal { gap: 12px 18px; }
  .to-top { margin-left: 0; }
  .site-footer { margin-top: 64px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-brand-name { font-size: 24px; }
  .footer-legal-links { gap: 6px 14px; }
  .footer-copy { width: 100%; }
}

@media (max-width: 430px) {
  .nav-bar-inner { padding: 10px 16px; gap: 10px; }
  .ribbon-inner { padding-inline: 16px; font-size: 10.5px; letter-spacing: 0.06em; }
  .brand-glyph { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; }
  .header-cta { padding: 7px 11px; font-size: 11.5px; gap: 6px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ---------- 14. 动效降级 ---------- */
@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;
  }

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .brand-lockup:hover .brand-glyph { transform: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  .footer-links a:hover { transform: none; }
}
