/* ============================================================
   乐竞主站 · /assets/site.css
   共享外壳：命令栏 / 页脚 / 基础排版 / 通用组件
   ============================================================ */

:root {
  --ink: #0A1428;
  --surface: #101E34;
  --glass: #16283F99;
  --lime: #B8FF3D;
  --orange: #FF7B33;
  --silver: #C9D3DF;
  --white: #F4F7FB;
  --muted: #8EA2BA;
  --line: #2B3B53;
  --alert: #FF5D5D;

  --font-display: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --bar-h: 64px;
  --edge: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

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

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

a { color: inherit; }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--bar-h) + 12px);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 通用文字工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--lime);
  transition: width 0.28s ease;
}
[data-section].is-current .eyebrow::before { width: 48px; }

.rule {
  height: 1px;
  margin: clamp(24px, 4vw, 48px) 0;
  border: 0;
  background: var(--line);
}

/* ---------- 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.wrap--narrow { max-width: 880px; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  background: #CFFB78;
  border-color: #CFFB78;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn--sm {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 40, 63, 0.55);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tag--lime {
  border-color: rgba(184, 255, 61, 0.42);
  color: var(--lime);
}
.tag--orange {
  border-color: rgba(255, 123, 51, 0.42);
  color: var(--orange);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs a {
  color: var(--silver);
  text-decoration: none;
}
.crumbs a:hover { color: var(--lime); }
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

/* ---------- 响应式图片容器（页面阶段放置图片） ---------- */
.plate {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.plate__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(10, 20, 40, 0.84);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.plate--wide { aspect-ratio: 21 / 9; }
.plate--tall { aspect-ratio: 3 / 4; }
.plate--square { aspect-ratio: 1 / 1; }

/* ============================================================
   命令栏（头部）
   ============================================================ */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 20, 40, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.cmd-bar[data-stuck] {
  background: rgba(10, 20, 40, 0.97);
  box-shadow: 0 16px 34px -22px #000;
}

.cmd-bar__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  pointer-events: none;
  z-index: 2;
}

.cmd-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--bar-h);
  margin-inline: auto;
  padding: 10px var(--edge);
}

/* 品牌索引 */
.brand {
  display: grid;
  grid-template-areas:
    "idx name"
    "tag tag";
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  text-decoration: none;
  color: var(--white);
  line-height: 1.15;
}
.brand__index {
  grid-area: idx;
  justify-self: start;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.brand__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__tag {
  grid-area: tag;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* 玻璃胶囊导航 */
.site-nav { justify-self: center; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-nav__item { display: block; }
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.site-nav__link:hover {
  background: rgba(184, 255, 61, 0.1);
  color: var(--white);
}
.site-nav__no {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.site-nav__link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
}
.site-nav__link[aria-current="page"] .site-nav__no { color: #3C5A00; }

/* 状态与动作 */
.cmd-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 40, 63, 0.6);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.status-pill__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.18);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 40, 63, 0.7);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--lime);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.cmd-bar[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.cmd-bar[data-open] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}
.nav-toggle__label { line-height: 1; }

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(43, 59, 83, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 59, 83, 0.6) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  pointer-events: none;
}
.site-foot__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--edge) clamp(20px, 3vw, 32px);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.9fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.foot-mark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.foot-mark__cn {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--white);
}
.foot-mark__en {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
}
.foot-mark__en::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lime);
}
.foot-tag {
  margin: 16px 0 0;
  color: var(--silver);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.foot-legend {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.foot-legend__row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.foot-legend__key {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: var(--line);
}
.foot-legend__key--lime { background: var(--lime); }
.foot-legend__key--orange { background: var(--orange); }
.foot-legend__key--silver { background: var(--silver); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.foot-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.foot-col__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--lime);
  font-size: 10px;
  flex: none;
}
.foot-col__list {
  display: grid;
  gap: 10px;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.foot-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--line);
  transform: rotate(45deg);
  transition: background-color 0.18s ease;
}
.foot-link:hover { color: var(--white); }
.foot-link:hover::before { background: var(--lime); }

.foot-contact__list {
  display: grid;
  gap: 12px;
}
.foot-contact__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.foot-contact__key {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.foot-contact__val {
  color: var(--silver);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.foot-copy { margin: 0; white-space: nowrap; }
.foot-legal__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot-legal__list .foot-link { font-size: 11px; }
.foot-record { margin: 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .site-nav__link {
    padding: 6px 9px;
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-contact {
    grid-column: 1 / -1;
  }
  .foot-contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  :root { --bar-h: 58px; }

  .cmd-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 0;
    padding: 9px var(--edge);
  }
  .brand {
    order: 1;
    margin-right: auto;
  }
  .brand__tag { display: none; }
  .cmd-bar__meta {
    order: 2;
    margin-left: auto;
  }
  .status-pill { display: none; }
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .site-nav {
    order: 4;
    flex: 0 0 100%;
    display: none;
    justify-self: stretch;
  }
  .cmd-bar[data-open] .site-nav {
    display: block;
    padding: 6px 0 14px;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(16, 30, 52, 0.94);
  }
  .site-nav__link {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .site-nav__no { font-size: 11px; }

  .site-foot__grid {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .foot-contact__list {
    grid-template-columns: 1fr;
  }
  .site-foot__base {
    flex-direction: column;
    align-items: flex-start;
  }
  #main-content { scroll-margin-top: calc(var(--bar-h) + 8px); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-contact__row { grid-template-columns: 38px minmax(0, 1fr); }
  .foot-legal__list { gap: 8px 14px; }
}

@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;
  }
  .cmd-bar__progress { transition: none; }
  [data-section].is-current .eyebrow::before { width: 48px; }
}
