/* ==========================================================================
   /assets/site.css — 乐竞中文官方内容站 · 共享样式表
   记号：夜场深绿底 / 战术网格叠加 / 8° 斜切 / 等宽数字 / 荧光青描边
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --night: #0B1F16;
  --lamp: #08120E;
  --turf: #143A2A;
  --mint: #35F2C0;
  --orange: #FF7A2F;
  --white: #E8EEEA;
  --grey: #A7B6AE;
  --stone: #6D7F76;
  --violet: #8A7CFF;
  --alert: #D95C4A;

  --line: rgba(167, 182, 174, .18);
  --line-strong: rgba(53, 242, 192, .34);
  --grid-line: rgba(232, 238, 234, .045);

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

  --rail: 1380px;
  --gutter: clamp(18px, 4vw, 60px);
  --head-h: 70px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --t: 200ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scroll-behavior: smooth;
}

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

ul[class],
ol[class] { padding-left: 0; list-style: none; }

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }

::selection { background: var(--mint); color: var(--lamp); }

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

/* ---------- 3. 中文排版与底纹 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; }

.h-hero,
.h-display,
.h-section,
.h-sub {
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  transform: skewX(-1.6deg);
  transform-origin: left center;
  text-wrap: balance;
}

.h-hero { font-size: clamp(38px, 7.4vw, 76px); }
.h-display { font-size: clamp(30px, 5.2vw, 56px); }
.h-section { font-size: clamp(24px, 3.2vw, 40px); }
.h-sub { font-size: clamp(19px, 2vw, 30px); }

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--grey);
}
.prose strong { color: var(--white); font-weight: 700; }
.prose a { color: var(--mint); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mint);
}

.side-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--stone);
}

/* ---------- 4. 数字体系 ---------- */
.num,
.stat-value {
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--white);
}

.num-xl { font-size: clamp(48px, 9vw, 96px); line-height: .96; }
.num-lg { font-size: clamp(34px, 6vw, 64px); line-height: 1; }

.unit {
  font-family: var(--sans);
  font-size: .4em;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--grey);
  margin-left: .28em;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--stone);
  text-transform: uppercase;
}
.stat-value { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.stat-value--mint { color: var(--mint); }
.stat-value--orange { color: var(--orange); }

/* ---------- 5. 容器 / 网格 / 节奏 ---------- */
.wrap {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4.4vw, 56px); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.section-title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.section-note { font-size: 12.5px; color: var(--stone); letter-spacing: .04em; }

/* ---------- 6. 通用按钮 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--lamp);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  padding-right: 30px;
}
.btn--primary:hover { background: #FF8E4D; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--mint);
}
.btn--ghost:hover { background: rgba(53, 242, 192, .1); color: var(--white); border-color: var(--mint); }

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--stone);
}
.crumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.crumbs-list li { display: flex; align-items: center; gap: 9px; }
.crumbs-list li + li::before { content: "/"; color: var(--stone); opacity: .7; }
.crumbs a { color: var(--grey); text-decoration: none; transition: color 160ms var(--ease); }
.crumbs a:hover { color: var(--mint); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 8. 卡片 / 标签 / 图像容器 ---------- */
.card {
  position: relative;
  background: var(--turf);
  border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 26px);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.card:hover { border-color: var(--line-strong); }

.card--quiet { background: rgba(20, 58, 42, .45); }

.card--slope {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.card-title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.card-text { font-size: 14px; line-height: 1.75; color: var(--grey); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  font-size: 11.5px;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grey);
  white-space: nowrap;
}
.tag--mint { border-color: var(--line-strong); color: var(--mint); }
.tag--violet { border-color: rgba(138, 124, 255, .42); color: var(--violet); }
.tag--alert { border-color: rgba(217, 92, 74, .5); color: var(--alert); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--turf);
  border: 1px solid var(--line);
}
.media-frame > img,
.media-frame > svg,
.media-frame > .media-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(232, 238, 234, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 238, 234, .06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 9. 数据表 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 13.5px;
  border-top: 1px solid var(--line-strong);
}
.data-table caption {
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--stone);
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.data-table thead th {
  font-size: 11.5px;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color 160ms var(--ease); }
.data-table tbody tr:nth-child(even) { background: rgba(20, 58, 42, .5); }
.data-table tbody tr:hover { background: rgba(53, 242, 192, .08); }
.data-table .num { color: var(--mint); }

/* ---------- 10. 显现 ---------- */
[data-reveal] {
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- 11. 头部 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 120;
  padding: 11px 20px;
  background: var(--mint);
  color: var(--lamp);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 14px; }

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.site-head[data-solid] {
  background-color: rgba(8, 18, 14, .94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.head-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--rail);
  min-height: var(--head-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-mark {
  width: 10px;
  height: 28px;
  flex: none;
  background: linear-gradient(180deg, var(--mint), var(--violet));
  clip-path: polygon(0 0, 100% 0, 100% 66%, 0 100%);
}
.brand-stack { display: flex; flex-direction: column; line-height: 1; }
.brand-cn {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--white);
}
.brand-sub {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--stone);
  transition: color 180ms var(--ease);
}
.brand:hover .brand-sub { color: var(--mint); }

.primary-nav {
  display: flex;
  align-items: center;
  margin-left: 12px;
  flex: 0 1 auto;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px 11px;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--grey);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-aux { display: none; }

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.season-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 58, 42, .5);
}
.season-chip {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--grey);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.season-chip:hover { color: var(--white); }
.season-chip[aria-pressed="true"] {
  background: var(--orange);
  color: var(--lamp);
  font-weight: 700;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--grey);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.tool-link:hover { color: var(--white); border-color: var(--line); }
.tool-key { white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--lamp);
  background: var(--mint);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grey);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.nav-toggle:hover { color: var(--white); border-color: var(--line-strong); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-toggle-label { font-size: 13px; letter-spacing: .12em; }

/* ---------- 12. 页脚 ---------- */
.site-foot {
  position: relative;
  overflow: hidden;
  background: var(--lamp);
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 14px;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--violet) 46%, var(--orange));
  opacity: .85;
}

.foot-rail {
  position: relative;
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 58px) var(--gutter) 26px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(0, 2.7fr);
  gap: 44px;
}

.foot-brand-note {
  margin-top: 18px;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--stone);
}

.foot-contact {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.foot-contact-line { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-contact-key {
  flex: 0 0 5.6em;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--stone);
}
.foot-contact-line dd { color: var(--grey); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}

.foot-col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mint);
}

.foot-list { display: flex; flex-direction: column; gap: 10px; }

.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--grey);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.foot-link::before {
  content: "";
  flex: none;
  width: 12px;
  height: 1px;
  background: var(--stone);
  transition: background-color 160ms var(--ease);
}
.foot-link:hover { color: var(--white); }
.foot-link:hover::before { background: var(--orange); }

.foot-base {
  margin-top: clamp(32px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12.5px;
  color: var(--stone);
}
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
}
.foot-copy { font-family: var(--mono); letter-spacing: .04em; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .tool-link { padding: 7px 9px; font-size: 12.5px; }
  .nav-link { padding: 9px 11px 11px; }
}

@media (max-width: 1080px) {
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

@media (max-width: 960px) {
  :root { --head-h: 62px; }

  body { background-size: 68px 68px; }

  .nav-toggle { display: inline-flex; }
  .season-switch,
  .tool-link { display: none; }

  .primary-nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 12px var(--gutter) 26px;
    background: rgba(8, 18, 14, .97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms linear;
  }
  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item + .nav-item { border-top: 1px solid var(--line); }
  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 16.5px;
    color: var(--white);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--mint); }

  .nav-aux {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
  }
  .nav-aux-link {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--grey);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
  }
  .nav-aux-link:hover { color: var(--mint); border-color: var(--line-strong); }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
}

@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .foot-contact-line { flex-direction: column; gap: 2px; }
  .foot-contact-key { flex: none; }
}

/* ---------- 14. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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