/* ==========================================================================
   DOU赛场 · Site Kit /assets/site.css
   夜光赛场 × 数据仪表盘 · 墨绿夜幕 / 奶油纸底 / 青柠强调 / 暖橙斜切
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--obsidian);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 主色板 */
  --ink: #071A15;         /* 墨绿夜幕 */
  --panel: #0C2A22;       /* 深墨绿面板 */
  --moss: #1B4A3D;        /* 苔绿描边 */
  --cream: #F3EEDF;       /* 奶油纸底 */
  --paper: #FBF8EE;       /* 纸白 */
  --lime: #C6F24A;        /* 荧光青柠 */
  --orange: #FF6A2B;      /* 暖橙 */
  --grey: #9AA8A3;        /* 冷灰 */
  --grey-deep: #5C6A64;   /* 奶油底上的辅助灰 */
  --obsidian: #12100C;    /* 砚黑 */

  /* 结构 */
  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  /* 字体 */
  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 动效 */
  --dur: 0.45s;
  --ease: cubic-bezier(0.3, 0.7, 0.2, 1);
  --shadow-pill: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-panel: 0 34px 70px -36px rgba(0, 0, 0, 0.95);
}

/* ---------- 3. 中文排版与通用文本 ---------- */
strong, b { font-weight: 800; }

p { max-width: 38em; }

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* ---------- 4. 容器 / 网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.section {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0;
}

.section--dark { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }

.section__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.section__title {
  margin-top: 12px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--obsidian);
}

.section--dark .section__title { color: var(--paper); }

/* ---------- 5. 可访问性基础 ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.22s var(--ease);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(198, 242, 74, 0.95);
}

.btn--lime:hover { background: #D7FF62; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--moss);
}

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

.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #FF8352; }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #0E2A23; }

/* ---------- 7. 头部浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 13px 0;
  background: rgba(7, 26, 21, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 74, 61, 0.75);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-stuck {
  padding: 6px 0;
  background: rgba(7, 26, 21, 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 品牌浮岛 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 2px rgba(18, 16, 12, 0.14);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand__name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--grey);
}

/* 导航胶囊浮岛 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--moss);
  border-radius: var(--radius-pill);
  background: var(--panel);
  box-shadow: var(--shadow-pill);
}

.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: #D5E2DC;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--lime);
  background: rgba(198, 242, 74, 0.1);
}

.nav__link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

/* 操作岛 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--moss);
  border-radius: 16px;
  background: var(--panel);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle__bars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.26s var(--ease), top 0.26s var(--ease),
    background 0.2s 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;
  background: var(--lime);
  transform: rotate(45deg);
}

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

/* 移动底部胶囊坞 */
.dock { display: none; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 26px;
  background: var(--ink);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 62%;
  height: 190%;
  background: radial-gradient(circle at 70% 30%, rgba(198, 242, 74, 0.13), rgba(198, 242, 74, 0) 62%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27, 74, 61, 0.55) 1px, transparent 1px);
  background-size: 100% 92px;
  opacity: 0.3;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-rail {
  position: relative;
  height: 22px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.footer-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(27, 74, 61, 0.75) 34%, rgba(27, 74, 61, 0));
}

.footer-rail::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--moss) 0 1px, rgba(27, 74, 61, 0) 1px 34px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.brand--footer { color: var(--paper); }

.footer-tagline {
  margin-top: 18px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-tagline::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.footer-col__title::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.footer-list { display: grid; gap: 4px; }

.footer-list__link {
  display: inline-block;
  padding: 5px 0;
  color: #B7C6BF;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.footer-list__link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 32px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(27, 74, 61, 0.9);
}

.footer-contact__label {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-contact__line {
  font-size: 14.5px;
  line-height: 1.7;
  color: #C8D5CF;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.footer-contact__note {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--grey);
  max-width: 60em;
}

.footer-meta {
  margin-top: clamp(24px, 3.4vw, 38px);
  padding-top: 18px;
  border-top: 1px solid rgba(27, 74, 61, 0.9);
}

.footer-meta__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. 基础组件 ---------- */
/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.breadcrumbs li { display: flex; align-items: center; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--moss);
  font-weight: 700;
}

.breadcrumbs a {
  color: #C9D6D0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumbs a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.breadcrumbs--light { color: var(--grey-deep); }
.breadcrumbs--light a { color: var(--ink); }
.breadcrumbs--light a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.breadcrumbs--light li + li::before { color: rgba(18, 16, 12, 0.35); }

/* 分段切换 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--moss);
  border-radius: var(--radius-pill);
  background: var(--panel);
}

.tab {
  appearance: none;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #C9D6D0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.25s var(--ease);
}

.tab:hover { color: var(--lime); }

.tab[aria-selected="true"] {
  background: var(--lime);
  color: var(--ink);
}

.tabs--light {
  background: var(--paper);
  border-color: rgba(18, 16, 12, 0.16);
}

.tabs--light .tab { color: var(--grey-deep); }
.tabs--light .tab:hover { color: var(--obsidian); }

.tabs--light .tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--lime);
}

.tabpanel[hidden] { display: none; }
.tabpanel:focus-visible { outline-offset: 6px; }

/* 展签式卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(18, 16, 12, 0.13);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--obsidian);
}

.card--dark {
  border-color: var(--moss);
  background: var(--panel);
  color: var(--cream);
}

.card__index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.card__title {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.card__desc {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey-deep);
}

.card--dark .card__desc { color: #B9C7C0; }

/* 路径标签 */
.path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(27, 74, 61, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(27, 74, 61, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey-deep);
  font-variant-numeric: tabular-nums;
}

/* 图片容器基础规则 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--film { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media--slant {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 26, 21, 0.74);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1139px) {
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 10px);
    margin-left: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--moss);
    border-radius: 26px;
    background: rgba(8, 32, 26, 0.985);
    box-shadow: var(--shadow-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav__link {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 16.5px;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

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

@media (max-width: 720px) {
  body { padding-bottom: 88px; }

  .brand__mark { width: 36px; height: 36px; font-size: 11.5px; border-radius: 11px; }
  .brand__name { font-size: 15.5px; }
  .header-actions .btn--lime { padding: 10px 14px; font-size: 13px; }

  .dock {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 80;
    display: flex;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--moss);
    border-radius: var(--radius-pill);
    background: rgba(12, 42, 34, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 46px -22px rgba(0, 0, 0, 0.95);
  }

  .dock__link {
    flex: 1 1 0;
    padding: 11px 6px;
    border-radius: var(--radius-pill);
    color: #CFDBD5;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.22s var(--ease), color 0.22s var(--ease);
  }

  .dock__link[aria-current="page"] {
    background: var(--lime);
    color: var(--ink);
  }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { font-size: 21px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .header-actions .btn--lime { padding: 9px 12px; font-size: 12.5px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 14px; }
}

/* ---------- 11. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .btn:hover { transform: none; }
  .nav { transition: none; }
  .site-header__progress { transition: none; }
}
