/* ============================================================
   云体育主站 · 共享样式 /assets/site.css
   深空蓝 + 云白 + 雾蓝为主，电光青与活力橙作数据高亮
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --deep: #0A1A2F;
  --deep-2: #0E2440;
  --cloud: #F8FBFF;
  --mist: #D9E6F2;
  --cyan: #22D3C5;
  --orange: #FF7A2F;
  --grey: #66788F;
  --teal: #0E6F78;
  --gold: #C9A45C;
  --green: #2FBF71;
  --red: #D94A4A;

  --rail-w: 0px;
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --pill: 999px;

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

  --shadow-soft: 0 22px 60px -46px rgba(10, 26, 47, 0.65);
  --shadow-lift: 0 26px 54px -34px rgba(10, 26, 47, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 2. Reset 与中文排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--cloud);
  color: var(--deep);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-nav-open { overflow: hidden; }

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

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.12rem); }

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: #0B5660; }

strong, b { font-weight: 800; }

::selection {
  background: rgba(34, 211, 197, 0.32);
  color: var(--deep);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.zone--deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--orange);
}

:where(#main-content) { scroll-margin-top: 88px; }
#main-content:focus { outline: none; }

/* ---------- 3. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.wrap--narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(42px, 6vw, 84px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  margin-block-end: clamp(20px, 3vw, 34px);
}

.zone { padding-block: clamp(40px, 5.5vw, 82px); position: relative; }

.zone--cloud {
  background: var(--cloud);
  color: var(--deep);
}

.zone--mist {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(34, 211, 197, 0.12), rgba(34, 211, 197, 0) 60%),
    linear-gradient(180deg, #F1F7FD 0%, var(--mist) 100%);
  color: var(--deep);
}

.zone--deep {
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(34, 211, 197, 0.18), rgba(34, 211, 197, 0) 58%),
    radial-gradient(90% 120% at 100% 8%, rgba(255, 122, 47, 0.14), rgba(255, 122, 47, 0) 55%),
    linear-gradient(170deg, #0E2440 0%, var(--deep) 55%, #071324 100%);
  color: var(--cloud);
}

.zone--deep .lede { color: rgba(248, 251, 255, 0.78); }
.zone--deep .muted { color: rgba(248, 251, 255, 0.6); }
.zone--deep a { color: #7FE7DE; }
.zone--deep a:hover { color: #B9FFF7; }

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* ---------- 4. 排版工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.zone--deep .eyebrow { color: rgba(34, 211, 197, 0.92); }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.72;
  color: #24384F;
  max-width: 62ch;
}

.muted { color: var(--grey); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(22px, 4vw, 38px) 0;
  background: linear-gradient(90deg, rgba(102, 120, 143, 0.38), rgba(102, 120, 143, 0));
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s linear, border-color 0.25s linear, color 0.25s linear;
}

.btn--primary {
  background: linear-gradient(100deg, #FF9A55 0%, var(--orange) 100%);
  color: var(--deep);
  box-shadow: 0 14px 28px -16px rgba(255, 122, 47, 0.95);
}

.btn--primary:hover {
  color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(255, 122, 47, 1);
}

.btn--ghost {
  background: rgba(248, 251, 255, 0.06);
  border-color: rgba(217, 230, 242, 0.28);
  color: var(--cloud);
}

.btn--ghost:hover {
  background: rgba(34, 211, 197, 0.16);
  border-color: rgba(34, 211, 197, 0.62);
  color: var(--cloud);
}

.btn--outline {
  background: #FFFFFF;
  border-color: rgba(10, 26, 47, 0.2);
  color: var(--deep);
}

.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--deep);
  color: var(--cloud);
  box-shadow: 0 14px 28px -18px rgba(10, 26, 47, 0.9);
}

.btn--teal:hover {
  background: var(--teal);
  color: var(--cloud);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- 6. 标签 / 面板 / 卡片 / 数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 5px 13px;
  border: 1px solid rgba(34, 211, 197, 0.42);
  border-radius: var(--pill);
  background: rgba(34, 211, 197, 0.13);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.tag--orange {
  border-color: rgba(255, 122, 47, 0.44);
  background: rgba(255, 122, 47, 0.14);
  color: #B44A0B;
}

.tag--gold {
  border-color: rgba(201, 164, 92, 0.5);
  background: rgba(201, 164, 92, 0.16);
  color: #8A6D2F;
}

.tag--ghost {
  border-color: rgba(102, 120, 143, 0.38);
  background: transparent;
  color: var(--grey);
}

.zone--deep .tag {
  border-color: rgba(34, 211, 197, 0.5);
  background: rgba(34, 211, 197, 0.16);
  color: #93F2E9;
}

.zone--deep .tag--orange {
  border-color: rgba(255, 122, 47, 0.55);
  background: rgba(255, 122, 47, 0.18);
  color: #FFB98C;
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(102, 120, 143, 0.16);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.panel--mist {
  border-color: rgba(102, 120, 143, 0.2);
  background: linear-gradient(160deg, #F1F7FD 0%, var(--mist) 100%);
}

.panel--deep {
  border-color: rgba(34, 211, 197, 0.3);
  background:
    radial-gradient(130% 120% at 0% 0%, #15405A 0%, rgba(21, 64, 90, 0) 62%),
    linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 100%);
  color: var(--cloud);
  box-shadow: 0 30px 70px -40px rgba(10, 26, 47, 0.95);
}

.panel--deep a { color: #7FE7DE; }

.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(102, 120, 143, 0.16);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  box-shadow: 0 18px 44px -40px rgba(10, 26, 47, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s linear;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 197, 0.45);
  box-shadow: var(--shadow-lift);
}

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

.stat__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--grey);
}

.zone--deep .stat__label { color: rgba(248, 251, 255, 0.55); }

/* ---------- 7. 图片容器基础规则 ---------- */
.frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #E7F0FA 0%, var(--mist) 55%, #C7DAEA 100%);
  box-shadow: inset 0 0 0 1px rgba(102, 120, 143, 0.16);
}

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

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0) 55%, rgba(10, 26, 47, 0.42) 100%);
}

.frame--wide { aspect-ratio: 21 / 9; }
.frame--square { aspect-ratio: 1 / 1; }

.frame--deep {
  background:
    radial-gradient(120% 120% at 12% 0%, #16405A 0%, rgba(22, 64, 90, 0) 62%),
    linear-gradient(160deg, var(--deep-2), var(--deep) 70%);
}

.frame--plain::after { content: none; }

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  font-size: 0.82rem;
  color: var(--grey);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  color: rgba(102, 120, 143, 0.55);
}

.crumbs__link {
  color: var(--teal);
  text-decoration: none;
}

.crumbs__link:hover { text-decoration: underline; }

.zone--deep .crumbs,
.zone--deep .crumbs__item + .crumbs__item::before { color: rgba(248, 251, 255, 0.5); }
.zone--deep .crumbs__link { color: #7FE7DE; }

/* ---------- 9. 头部：移动端顶栏 + 抽屉 ---------- */
.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--cloud);
  color: var(--deep);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 18px 40px -20px rgba(10, 26, 47, 0.8);
  transform: translateY(-180%);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  color: var(--cloud);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 197, 0.2), rgba(34, 211, 197, 0) 55%),
    linear-gradient(165deg, #0B1E36 0%, var(--deep) 62%, #0C2C3C 100%);
  border-block-end: 1px solid rgba(217, 230, 242, 0.14);
}

.site-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand:hover { color: inherit; }

.brand__mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--cyan) 0%, #3E8CFF 52%, var(--orange) 100%);
  box-shadow: 0 10px 22px -12px rgba(34, 211, 197, 0.95),
    inset 0 0 0 1px rgba(248, 251, 255, 0.45);
  transition: transform 0.32s var(--ease);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background: var(--deep);
  transform: rotate(45deg);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cloud);
}

.brand:hover .brand__mark { transform: rotate(-9deg) scale(1.05); }

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

.brand__name {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(34, 211, 197, 0.9);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 13px;
  border: 1px solid rgba(217, 230, 242, 0.26);
  border-radius: var(--pill);
  background: rgba(248, 251, 255, 0.06);
  color: var(--cloud);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.25s linear, border-color 0.25s linear;
}

.nav-toggle:hover {
  background: rgba(34, 211, 197, 0.16);
  border-color: rgba(34, 211, 197, 0.62);
}

.nav-toggle__label { line-height: 1; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cloud);
  transition: background-color 0.2s linear;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cloud);
  transition: transform 0.26s var(--ease), top 0.26s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 96px 20px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(34, 211, 197, 0.18), rgba(34, 211, 197, 0) 60%),
    linear-gradient(170deg, #08172A 0%, var(--deep) 58%, #0B2C3B 100%);
  transform: translateX(-104%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.42s var(--ease), opacity 0.3s linear, visibility 0.42s linear;
}

.site-header[data-open="true"] .site-header__drawer {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.site-nav {
  display: flex;
  flex-direction: column;
}

.site-nav__label {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: rgba(34, 211, 197, 0.88);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--pill);
  color: rgba(248, 251, 255, 0.76);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s linear, color 0.25s linear,
    transform 0.25s var(--ease), box-shadow 0.25s linear;
}

.site-nav__link:hover {
  color: #FFFFFF;
  background: rgba(248, 251, 255, 0.07);
  transform: translateX(3px);
}

.site-nav__link[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(100deg, rgba(34, 211, 197, 0.26), rgba(34, 211, 197, 0.03));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 197, 0.5);
}

.site-nav__link[aria-current="page"]:hover { transform: none; }

.site-nav__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(217, 230, 242, 0.4);
}

.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--orange); }

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-meter {
  position: relative;
  height: 4px;
  margin-block-start: 4px;
  border-radius: var(--pill);
  background: rgba(217, 230, 242, 0.16);
  overflow: hidden;
}

.rail-meter__fill {
  position: absolute;
  inset: 0;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--orange), var(--cyan));
  background-size: 200% 100%;
}

.rail-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(248, 251, 255, 0.5);
}

.scroll-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: rgba(217, 230, 242, 0.12);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 0.12s linear;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(40px, 6vw, 64px) clamp(18px, 4vw, 40px) 22px;
  color: rgba(248, 251, 255, 0.76);
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(34, 211, 197, 0.16), rgba(34, 211, 197, 0) 55%),
    radial-gradient(100% 120% at 100% 8%, rgba(255, 122, 47, 0.13), rgba(255, 122, 47, 0) 55%),
    linear-gradient(180deg, var(--deep) 0%, #071324 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 197, 0) 0%, var(--cyan) 28%, var(--orange) 72%, rgba(255, 122, 47, 0) 100%);
  opacity: 0.85;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand--footer .brand__name { font-size: 1.14rem; }
.brand--footer .brand__sub { color: rgba(34, 211, 197, 0.85); }
.brand--footer:hover { color: inherit; }

.footer-lede {
  margin: 0;
  max-width: 36ch;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(248, 251, 255, 0.64);
}

.footer-nav__title,
.footer-contact__title {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: rgba(34, 211, 197, 0.88);
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s linear, transform 0.2s var(--ease);
}

.footer-nav__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(34, 211, 197, 0.6);
  transform: rotate(45deg);
  transition: background-color 0.2s linear;
}

.footer-nav__link:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-nav__link:hover::before { background: var(--orange); }

.footer-contact__item {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.62;
}

.footer-contact__key {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(248, 251, 255, 0.44);
}

.footer-contact__val {
  color: rgba(248, 251, 255, 0.86);
  word-break: break-word;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  width: 100%;
  max-width: 1220px;
  margin: 30px auto 0;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(217, 230, 242, 0.14);
  font-size: 0.8rem;
  color: rgba(248, 251, 255, 0.5);
}

.footer-copy { margin: 0; }

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- 11. 返回顶部 / 显现 ---------- */
.to-top {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--cyan), #23A9C9);
  color: #06202B;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 34px -16px rgba(10, 26, 47, 0.75),
    inset 0 0 0 1px rgba(248, 251, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s linear;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { transform: translateY(-3px); }

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-spy-link][aria-current] {
  color: var(--deep);
  font-weight: 800;
}

/* ---------- 12. 平板 / 桌面 ---------- */
@media (min-width: 640px) {
  .site-header__drawer { padding-inline: 28px; }
  .header-actions { flex-direction: row; flex-wrap: wrap; }
  .header-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.25fr 1fr; }
  .site-footer__inner > .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  :root { --rail-w: 268px; }

  body { padding-inline-start: var(--rail-w); }

  .site-header {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: var(--rail-w);
    height: 100dvh;
    padding: 26px 20px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-block-end: 0;
    border-inline-end: 1px solid rgba(217, 230, 242, 0.16);
  }

  .site-header__bar {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .nav-toggle { display: none; }

  .site-header__drawer {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    gap: 22px;
    padding: 26px 0 0;
    overflow: visible;
    background: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .brand__mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand__mark::before { inset: 11px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: 0.66rem; }

  .site-nav__link { padding: 11px 14px; font-size: 0.95rem; }

  .header-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    margin-block-start: auto;
  }

  .header-actions .btn { flex: 0 0 auto; }

  .scroll-progress { height: 4px; }

  .to-top {
    inset-inline-end: 24px;
    inset-block-end: 24px;
    width: 54px;
    height: 54px;
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1.15fr;
    gap: 40px;
  }

  .site-footer__inner > .footer-contact { grid-column: auto; }

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

/* ---------- 13. 动态与动效偏好 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rail-meter__fill {
    animation: rail-drift 7s linear infinite;
  }

  @keyframes rail-drift {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
  }
}

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

  html.has-js [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-meter__fill { animation: none; }
  .card:hover,
  .btn:hover,
  .site-nav__link:hover,
  .footer-nav__link:hover { transform: none; }
}
