/* ============================================================
   乐鱼体育 · 战术室  /assets/site.css
   共享外壳：reset · 变量 · 中文排版 · 页头 · 页脚 · 基础组件
   ============================================================ */

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

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

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

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

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

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

button { background: none; border: 0; }

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --navy:  #07141F;
  --board: #0F2438;
  --grid:  #1B3A52;
  --ice:   #E9F2F7;
  --cyan:  #25D6EC;
  --mint:  #2FDCA6;
  --coral: #FF5A36;
  --amber: #FFC24B;
  --steel: #93AABB;
  --violet:#7C63FF;

  --ink:        #05101A;
  --board-deep: #0A1A28;

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

  /* 字号阶梯 56 / 40 / 32 / 24 / 20 / 17 / 15 / 13 */
  --fs-1: 56px;
  --fs-2: 40px;
  --fs-3: 32px;
  --fs-4: 24px;
  --fs-5: 20px;
  --fs-6: 17px;
  --fs-7: 15px;
  --fs-8: 13px;

  /* 尺寸 */
  --maxw:   1320px;
  --pad-x:  clamp(16px, 4vw, 40px);
  --rail-h: 46px;
  --gap-s:  12px;
  --gap-m:  24px;
  --gap-l:  48px;

  /* 材质 */
  --shadow-hard: 5px 5px 0 0 rgba(3, 10, 16, 0.85);
  --shadow-soft: 0 18px 40px -28px rgba(0, 0, 0, 0.9);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --rail-h: 56px; }
}

/* ---------- 3. 基础中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ice);
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgba(27, 58, 82, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 82, 0.30) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ice);
}

h1 { font-size: clamp(34px, 5.2vw, var(--fs-1)); }
h2 { font-size: clamp(24px, 3vw, var(--fs-3)); }
h3 { font-size: var(--fs-5); line-height: 1.35; }
h4 { font-size: var(--fs-6); line-height: 1.4; }

p { max-width: 68ch; }

p + p { margin-top: 0.9em; }

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

a {
  color: var(--cyan);
  text-decoration-color: rgba(37, 214, 236, 0.42);
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

a:hover { text-decoration-color: var(--cyan); }

.mono,
code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
}

.mono { color: var(--steel); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 200;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: var(--fs-8);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

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

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

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

.stack-sm > * + * { margin-top: var(--gap-s); }
.stack-md > * + * { margin-top: var(--gap-m); }
.stack-lg > * + * { margin-top: var(--gap-l); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--grid);
  margin-bottom: var(--gap-m);
}

.section-head__index {
  font-family: var(--mono);
  font-size: var(--fs-8);
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.section-head__title { font-size: var(--fs-3); }

.section-head__note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--fs-8);
  color: var(--steel);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--board);
  --btn-fg: var(--ice);
  --btn-bd: var(--grid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: var(--fs-7);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 2px;
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 rgba(3, 10, 16, 0.9);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 rgba(3, 10, 16, 0.9);
}

.btn--primary {
  --btn-bg: var(--coral);
  --btn-fg: #180500;
  --btn-bd: #180500;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cyan);
  --btn-bd: var(--cyan);
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-bg: rgba(37, 214, 236, 0.10);
  transform: none;
  box-shadow: none;
}

.btn--sm { padding: 9px 14px; font-size: var(--fs-8); }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(7, 20, 31, 0.6);
  border: 1px solid var(--grid);
  border-radius: 2px;
}

.tag--cyan   { color: var(--cyan);  border-color: rgba(37, 214, 236, 0.55); }
.tag--mint   { color: var(--mint);  border-color: rgba(47, 220, 166, 0.55); background: rgba(47, 220, 166, 0.10); }
.tag--coral  { color: var(--coral); border-color: rgba(255, 90, 54, 0.6);   background: rgba(255, 90, 54, 0.12); }
.tag--amber  { color: var(--amber); border-color: rgba(255, 194, 75, 0.6);  background: rgba(255, 194, 75, 0.10); }
.tag--violet { color: var(--violet);border-color: rgba(124, 99, 255, 0.6);  background: rgba(124, 99, 255, 0.12); }

/* ---------- 8. 面板 / 卡片 / 资料结构 ---------- */
.panel {
  position: relative;
  padding: var(--gap-m);
  background: var(--board);
  border: 2px solid var(--grid);
  box-shadow: var(--shadow-hard);
}

.card {
  position: relative;
  display: block;
  padding: var(--gap-m);
  color: inherit;
  background: var(--board);
  border: 2px solid var(--grid);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 2 / 3;
  padding: 16px;
  background: var(--board);
  border: 2px solid var(--grid);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.team-card__crest {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 56%;
  margin-inline: auto;
  font-family: var(--mono);
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--cyan);
  background: rgba(7, 20, 31, 0.75);
  border: 2px solid var(--grid);
  transition: transform 0.2s var(--ease);
}

.team-card:hover .team-card__crest { transform: scale(1.04); }

.team-card__name {
  font-size: var(--fs-5);
  font-weight: 800;
  text-align: center;
}

.team-card__meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: var(--fs-8);
  color: var(--steel);
  text-align: center;
}

.dossier {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  padding: var(--gap-m);
  background: rgba(15, 36, 56, 0.55);
  border: 2px solid var(--grid);
}

@media (min-width: 860px) {
  .dossier { grid-template-columns: minmax(180px, 260px) 1fr; gap: var(--gap-l); }
}

.dossier__index {
  font-family: var(--mono);
  font-size: var(--fs-8);
  letter-spacing: 0.1em;
  color: var(--steel);
}

.dossier__body > * + * { margin-top: 14px; }

.mono-spec {
  padding: 16px 18px;
  background: rgba(7, 20, 31, 0.72);
  border: 1px solid var(--grid);
  border-left: 3px solid var(--amber);
}

.mono-spec__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(27, 58, 82, 0.9);
  font-family: var(--mono);
  font-size: var(--fs-8);
  color: var(--ice);
}

.mono-spec__row:last-child { border-bottom: 0; }

.mono-spec__key { min-width: 8ch; color: var(--steel); }

.mono-spec__val { margin-left: auto; color: var(--ice); }

.index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.index-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: var(--fs-8);
  letter-spacing: 0.06em;
  color: var(--steel);
  border: 1px solid var(--grid);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.index-strip__item:hover,
.index-strip__item[aria-current="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 9. 分段标签页 ---------- */
.segments {
  border: 2px solid var(--grid);
  background: var(--board);
  box-shadow: var(--shadow-hard);
}

.segments__list {
  position: relative;
  display: flex;
  overflow-x: auto;
  background: rgba(7, 20, 31, 0.6);
  border-bottom: 2px solid var(--grid);
  scrollbar-width: thin;
}

.segments__tab {
  flex: 0 0 auto;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: var(--fs-8);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
  border-right: 1px solid var(--grid);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.segments__tab:hover {
  color: var(--cyan);
  background: rgba(37, 214, 236, 0.08);
}

.segments__tab[aria-selected="true"] { color: var(--ice); }

.segments__indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--coral);
  transition: transform 0.22s var(--ease), width 0.22s var(--ease);
}

.segments__panel { padding: var(--gap-m); }

.segments__panel[hidden] { display: none; }

.segments__panel:not([hidden]) { animation: panelIn 0.22s var(--ease) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 10. 图片容器 ---------- */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--board-deep);
  border: 2px solid var(--grid);
}

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

.figure__frame--wide   { aspect-ratio: 21 / 9; }
.figure__frame--square { aspect-ratio: 1 / 1; }
.figure__frame--tall   { aspect-ratio: 3 / 4; }
.figure__frame--team   { aspect-ratio: 2 / 3; }

.figure--placeholder .figure__frame {
  background-image:
    linear-gradient(to right, rgba(27, 58, 82, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 82, 0.55) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--board-deep);
}

.figure--placeholder .figure__frame::after {
  content: "图像位 / VISUAL SLOT";
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(147, 170, 187, 0.8);
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: var(--fs-8);
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  padding-block: 16px 0;
  font-family: var(--mono);
  font-size: var(--fs-8);
  letter-spacing: 0.06em;
  color: var(--steel);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--grid);
}

.breadcrumb a {
  color: var(--steel);
  text-decoration: none;
}

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

/* ---------- 12. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease),
              box-shadow 0.26s var(--ease);
}

.site-header.is-solid {
  background: rgba(7, 20, 31, 0.97);
  border-bottom-color: var(--grid);
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, 1);
}

/* 赛程索引条 */
.rail {
  height: var(--rail-h);
  background: rgba(15, 36, 56, 0.62);
  border-bottom: 1px solid var(--grid);
}

.site-header.is-solid .rail { background: rgba(15, 36, 56, 0.92); }

.rail__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail__inner::-webkit-scrollbar { display: none; }

.rail__label {
  flex: 0 0 auto;
  padding-right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--steel);
  white-space: nowrap;
  border-right: 1px solid var(--grid);
}

.rail__item {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  overflow: hidden;
  color: var(--steel);
  background: rgba(7, 20, 31, 0.55);
  border: 1px solid var(--grid);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.rail__item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(37, 214, 236, 0.38), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.rail__item:hover,
.rail__item:focus-visible {
  color: var(--ice);
  border-color: var(--cyan);
}

.rail__item:hover::after,
.rail__item:focus-visible::after {
  opacity: 1;
  animation: railScan 0.7s var(--ease);
}

.rail__item.is-active {
  color: var(--ice);
  border-color: rgba(255, 90, 54, 0.75);
  background: rgba(255, 90, 54, 0.13);
}

@keyframes railScan {
  from { left: -70%; }
  to   { left: 140%; }
}

.rail__code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.rail__item.is-active .rail__code { color: var(--coral); }

.rail__name {
  font-size: var(--fs-8);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rail__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
}

/* 品牌与导航行 */
.masthead {
  position: relative;
  padding-block: 12px;
  transition: padding 0.24s var(--ease);
}

.site-header.is-solid .masthead { padding-block: 8px; }

@media (min-width: 768px) {
  .masthead { padding-block: 16px; }
  .site-header.is-solid .masthead { padding-block: 10px; }
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: var(--board);
  border: 2px solid var(--cyan);
  box-shadow: 3px 3px 0 0 rgba(37, 214, 236, 0.22);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-size: var(--fs-6);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ice);
}

.brand__tag {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

@media (min-width: 560px) {
  .brand__tag { display: block; }
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 13px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ice);
  background: var(--board);
  border: 2px solid var(--grid);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease);
}

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

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

/* 主导航（移动端为下拉面板） */
.site-nav {
  position: absolute;
  top: calc(100% + 2px);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--board-deep);
  border: 2px solid var(--grid);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
              visibility 0.2s linear;
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

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

.site-nav__list a {
  display: block;
  padding: 11px 12px;
  font-size: var(--fs-6);
  font-weight: 700;
  color: var(--ice);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.site-nav__list a:hover {
  color: var(--cyan);
  background: rgba(37, 214, 236, 0.07);
  border-left-color: var(--grid);
}

.site-nav__list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(37, 214, 236, 0.09);
  border-left-color: var(--cyan);
}

.site-nav__tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--grid);
}

/* 工具链接 */
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: rgba(7, 20, 31, 0.5);
  border: 1px solid var(--grid);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.tool:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(37, 214, 236, 0.09);
}

.tool--fees {
  color: var(--amber);
  border-color: rgba(255, 194, 75, 0.5);
}

.tool--fees:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.masthead__tools { display: none; }

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

/* 桌面导航形态 */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav__list { flex-direction: row; align-items: center; gap: 2px; }

  .site-nav__list a {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav__list a:hover {
    background: transparent;
    border-left: 0;
    border-bottom-color: var(--grid);
  }

  .site-nav__list a[aria-current="page"] {
    background: transparent;
    border-left: 0;
    border-bottom-color: var(--cyan);
  }

  .site-nav__tools { display: none; }

  .masthead__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
  }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  color: var(--ice);
  background-color: #050F17;
  background-image:
    linear-gradient(to right, rgba(27, 58, 82, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 82, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 2px solid var(--grid);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--gap-l) var(--pad-x) 36px;
}

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

@media (min-width: 1100px) {
  .footer__inner {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

.footer__brand { max-width: 42ch; }

.footer__wordmark {
  font-size: var(--fs-5);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ice);
}

.footer__closing {
  margin-top: 10px;
  font-size: var(--fs-7);
  color: var(--mint);
}

.footer__note {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.footer__head {
  position: relative;
  margin-bottom: 14px;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer__head::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--grid);
}

.footer__list { display: flex; flex-direction: column; gap: 9px; }

.footer__list a {
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer__list a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer__list--mono li {
  font-family: var(--mono);
  font-size: var(--fs-8);
  line-height: 1.7;
  color: var(--steel);
  word-break: break-word;
}

.footer__address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.75;
  color: var(--steel);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.footer__cta:hover {
  color: var(--ink);
  background: var(--cyan);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--pad-x) 28px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: var(--fs-8);
  color: var(--steel);
}

.footer__copy { margin: 0; max-width: none; }

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal-list a {
  color: var(--steel);
  text-decoration: none;
}

.footer__legal-list a:hover { color: var(--cyan); }

.footer__icp { margin: 0 0 0 auto; max-width: none; color: var(--steel); }

@media (max-width: 619px) {
  .footer__icp { margin-left: 0; }
}

/* ---------- 14. 显现动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

html.js [data-reveal].is-visible,
[data-reveal] {
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

/* ---------- 15. 减弱动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .card:hover,
  .team-card:hover,
  .btn:hover { transform: none; }

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