/* ============================================================
   电竞世界 · 版本数据台 / 共享外壳样式
   文件位置：/assets/site.css
   1 设计令牌 · 2 基础与排版 · 3 布局工具 · 4 按钮与控件
   5 内容基础件 · 6 头部 · 7 页脚 · 8 动效与可访问性
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0B1016;
  --bg-soft: #0F151C;
  --layer: #1A2228;
  --layer-deep: #141B22;
  --line: #3A464C;
  --line-soft: rgba(58, 70, 76, 0.55);
  --mute: #7F93A8;
  --ink: #EDE6D6;
  --moss: #6F8F6A;
  --clay: #B46A4A;
  --cyan: #3FF2D0;
  --violet: #B07CFF;
  --lava: #FF6B35;
  --glass: rgba(20, 28, 36, 0.72);
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sp-1: 24px;
  --sp-2: 48px;
  --sp-3: 96px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. 基础与排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 6% -8%, rgba(63, 242, 208, 0.10), transparent 62%),
    radial-gradient(820px 500px at 98% 2%, rgba(176, 124, 255, 0.10), transparent 58%),
    radial-gradient(760px 460px at 50% 106%, rgba(180, 106, 74, 0.09), transparent 64%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -6px 0 0 0;
  z-index: 60;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(237, 230, 214, 0.05) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.45;
  mix-blend-mode: screen;
}

@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: scanDrift 9s linear infinite; }
}

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

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

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--violet); }

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

::selection {
  background: var(--cyan);
  color: #06110F;
}

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

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(34px, 5.6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: #fff; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- 3. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

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

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

.hairline {
  height: 1px;
  border: 0;
  margin: var(--sp-1) 0;
  background: linear-gradient(90deg, rgba(63, 242, 208, 0.55), rgba(58, 70, 76, 0));
}

/* ---------- 4. 按钮与控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px 16px 8px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--lava);
  color: #0B1016;
  box-shadow: 0 12px 28px -14px rgba(255, 107, 53, 0.9);
}

.btn--primary:hover {
  background: #FF8154;
  color: #0B1016;
}

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

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--cyan {
  background: rgba(63, 242, 208, 0.12);
  border-color: rgba(63, 242, 208, 0.5);
  color: var(--cyan);
}

.btn--cyan:hover {
  background: rgba(63, 242, 208, 0.2);
  color: #06110F;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 6px 12px 6px 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(111, 143, 106, 0.55);
  border-radius: 4px;
  background: rgba(111, 143, 106, 0.12);
  color: #9DBE97;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(63, 242, 208, 0.45);
  background: rgba(63, 242, 208, 0.1);
}

.tag--lava {
  color: #FFB694;
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 34, 40, 0.6);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06110F;
  font-weight: 700;
}

/* ---------- 5. 内容基础件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(63, 242, 208, 0));
}

.breadcrumb { padding-block: 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

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

.breadcrumb__list li + li::before {
  content: "›";
  color: var(--line);
  font-family: var(--font-body);
}

.breadcrumb__link { color: var(--mute); }
.breadcrumb__link:hover { color: var(--cyan); }

.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--layer);
}

.panel--glass {
  background: var(--glass);
  border-color: rgba(63, 242, 208, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
}

.panel--cut { border-radius: 4px 22px 4px 22px; }

.note {
  padding: 14px 18px;
  border-left: 2px solid var(--clay);
  border-radius: 0 10px 10px 0;
  background: rgba(180, 106, 74, 0.08);
  color: #D8D2C4;
  font-size: 14.5px;
}

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

.stat__value {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 10px 22px 10px 10px;
  background:
    linear-gradient(150deg, rgba(63, 242, 208, 0.10), rgba(11, 16, 22, 0.9) 55%),
    var(--layer);
}

.media-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  z-index: 2;
  border-top: 2px solid rgba(63, 242, 208, 0.85);
  border-left: 2px solid rgba(63, 242, 208, 0.85);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 16, 22, 0.88), transparent);
  pointer-events: none;
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: rgba(237, 230, 214, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.chapter-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--line-soft);
}

.chapter-rail__link {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.chapter-rail__link:hover {
  background: rgba(63, 242, 208, 0.08);
  color: var(--ink);
}

.chapter-rail__link[aria-current="true"] {
  background: rgba(63, 242, 208, 0.1);
  color: var(--cyan);
  box-shadow: inset 2px 0 0 var(--cyan);
}

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cyan);
  color: #06110F;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #06110F;
  outline-offset: -4px;
}

.toprail {
  position: relative;
  z-index: 95;
  border-bottom: 1px solid rgba(58, 70, 76, 0.5);
  background: linear-gradient(90deg, rgba(11, 16, 22, 0.98), rgba(26, 34, 40, 0.92));
}

.toprail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  color: var(--mute);
  font-size: 11px;
}

.toprail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #B7C2CE;
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.toprail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 242, 208, 0.18);
  flex: 0 0 auto;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 242, 208, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(63, 242, 208, 0.06); }
}

@media (prefers-reduced-motion: no-preference) {
  .toprail__dot { animation: dotPulse 2.6s var(--ease) infinite; }
}

.toprail__meta {
  margin: 0;
  color: #5E6E7C;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.toprail__sep {
  margin-inline: 6px;
  color: var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 10px var(--gutter) 18px;
  background: linear-gradient(
    to bottom,
    rgba(11, 16, 22, 0.94),
    rgba(11, 16, 22, 0.55) 72%,
    rgba(11, 16, 22, 0)
  );
  transition: padding 0.25s var(--ease);
}

.site-header[data-scrolled] { padding-bottom: 14px; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(63, 242, 208, 0.2);
  border-radius: 6px 20px 6px 20px;
  background: linear-gradient(115deg, rgba(26, 34, 40, 0.94), rgba(11, 16, 22, 0.84));
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px -28px #000, inset 0 1px 0 rgba(237, 230, 214, 0.07);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header[data-scrolled] .site-header__inner {
  border-color: rgba(63, 242, 208, 0.42);
  box-shadow: 0 22px 50px -26px #000, inset 0 0 0 1px rgba(63, 242, 208, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(63, 242, 208, 0.5);
  border-radius: 4px 12px 4px 12px;
  background: rgba(63, 242, 208, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 14px rgba(63, 242, 208, 0.22);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand__sub {
  color: var(--mute);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 34, 40, 0.7);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

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

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars > span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

.primary-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

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

.primary-nav__item { flex: 0 0 auto; }

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: 7px;
  color: #A9B5C2;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.primary-nav__link:hover {
  background: rgba(63, 242, 208, 0.09);
  color: var(--ink);
}

.primary-nav__link[aria-current="page"] {
  background: rgba(63, 242, 208, 0.1);
  color: var(--cyan);
}

.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.quick-link {
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  color: var(--mute);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.quick-link:hover {
  border-bottom-color: rgba(63, 242, 208, 0.6);
  color: var(--cyan);
}

.scroll-meter {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 6px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(58, 70, 76, 0.55);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--lava));
  box-shadow: 0 0 12px rgba(63, 242, 208, 0.7);
  transition: width 0.1s linear;
}

@media (max-width: 1180px) {
  .header-actions .quick-link { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 5;
    display: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(63, 242, 208, 0.25);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(20, 28, 36, 0.98), rgba(11, 16, 22, 0.98));
    box-shadow: 0 30px 60px -30px #000;
  }

  .site-header[data-open] .primary-nav { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__link {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px dashed rgba(58, 70, 76, 0.55);
    border-radius: 8px;
    font-size: 15px;
  }

  .primary-nav__item:last-child .primary-nav__link { border-bottom: 0; }

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

@media (max-width: 720px) {
  .toprail__meta { display: none; }
}

@media (max-width: 560px) {
  .site-header__inner { padding: 8px 10px; gap: 8px; }
  .brand__sub { display: none; }
  .header-actions .btn { padding: 8px 12px; font-size: 12px; }
  .nav-toggle { padding: 8px 10px; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-3);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(15, 21, 28, 0.6), rgba(11, 16, 22, 0.98) 42%);
}

.site-footer__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(111, 143, 106, 0.16), transparent 70%),
    radial-gradient(560px 240px at 88% 8%, rgba(180, 106, 74, 0.14), transparent 70%),
    radial-gradient(700px 300px at 50% 118%, rgba(63, 242, 208, 0.10), transparent 68%);
}

.site-footer::before {
  content: "WORLD / ESPORTS";
  position: absolute;
  left: -2%;
  bottom: 72px;
  color: rgba(237, 230, 214, 0.035);
  font-family: var(--font-mono);
  font-size: clamp(48px, 12vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3.4vw, 48px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-brand__lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(63, 242, 208, 0.45);
  border-radius: 3px 10px 3px 10px;
  background: rgba(63, 242, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.footer-brand__slash {
  color: var(--line);
  font-weight: 400;
}

.footer-brand__blurb {
  max-width: 38ch;
  margin: 0;
  color: rgba(237, 230, 214, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.footer-brand__note {
  margin: 16px 0 0;
  color: var(--moss);
  font-size: 10.5px;
  letter-spacing: 0.2em;
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--moss);
  transform: rotate(45deg);
}

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

.footer-col__link {
  display: inline-block;
  color: rgba(237, 230, 214, 0.82);
  font-size: 14px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col__link:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(58, 70, 76, 0.45);
  border-radius: 8px;
  background: rgba(26, 34, 40, 0.5);
}

.contact-list__item--wide {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}

.contact-list__label {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.contact-list__value {
  color: rgba(237, 230, 214, 0.9);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.copy-btn {
  padding: 4px 8px;
  border: 1px solid rgba(63, 242, 208, 0.4);
  border-radius: 4px;
  background: rgba(63, 242, 208, 0.08);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover { background: rgba(63, 242, 208, 0.2); }

.copy-btn[data-state="done"] {
  border-color: rgba(111, 143, 106, 0.7);
  background: rgba(111, 143, 106, 0.18);
  color: #A9CFA2;
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--mute);
  font-size: 12px;
}

.footer-legal__copy { margin: 0; }

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

.legal-links__link {
  border-bottom: 1px solid transparent;
  color: var(--mute);
  font-size: 12px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-links__link:hover {
  border-bottom-color: rgba(63, 242, 208, 0.5);
  color: var(--cyan);
}

.footer-legal__icp {
  margin: 0 0 0 auto;
  color: #5E6E7C;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(12px, 3vw, 26px);
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(63, 242, 208, 0.4);
  border-radius: 999px;
  background: rgba(11, 16, 22, 0.86);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--cyan);
  background: rgba(63, 242, 208, 0.12);
}

.to-top__arrow {
  font-size: 14px;
  line-height: 1;
}

.to-top__text { white-space: nowrap; }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer::before { bottom: 120px; }
  .footer-legal__icp { margin-left: 0; }
  .to-top__text { display: none; }
  .to-top { padding: 11px 13px; }
}

/* ---------- 8. 动效与可访问性 ---------- */
[data-reveal] {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

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

@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;
  }

  body::before { animation: none; }
  .toprail__dot { animation: none; }
  .btn:hover { transform: none; }
  .footer-col__link:hover { transform: none; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
}
