/* ==========================================================================
   完美赛场 — 全站共享层  /assets/site.css
   夜场墨蓝底 + 战术板结构 + 侧边品牌轨道
   ========================================================================== */

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

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

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

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

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

a { color: inherit; text-decoration: none; }

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. tokens ---------- */
:root {
  /* 色彩 —— 体育场夜灯 */
  --ink:      #080F1E;
  --ink-deep: #050B16;
  --stand:    #10203A;
  --board:    #1C3350;
  --aqua:     #2BE0C8;
  --lime:     #8CFF5A;
  --orange:   #FF7A2F;
  --violet:   #7A5CFF;
  --white:    #EAF2FF;
  --mist:     #9DB0CC;
  --line:     #2A476B;
  --paper:    #F4F7FC;
  --paper-ink:#0C1729;

  /* 结构 */
  --rail-w:   72px;
  --bar-h:    64px;
  --container:1200px;
  --cut:      16px;
  --pad-x:    clamp(16px, 3vw, 40px);

  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. base ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  padding-left: var(--rail-w);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.02em;
  word-break: break-word;
}

p { word-break: break-word; }

::selection {
  background: var(--aqua);
  color: var(--ink);
}

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

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--container) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.rule-scale {
  height: 1px;
  width: 100%;
  border: 0;
  background-image: repeating-linear-gradient(
    90deg, var(--line) 0 1px, transparent 1px 12px
  );
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aqua);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--white);
}

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 62ch;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}

.paper-zone {
  background: var(--paper);
  color: var(--paper-ink);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--white);
  background: var(--stand);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease);
}

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

.btn--primary {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(43, 224, 200, .08);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

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

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item::after {
  content: "/";
  color: var(--line);
}

.breadcrumb__item:last-child::after { content: none; }

.breadcrumb__item a { color: var(--mist); transition: color .2s var(--ease); }
.breadcrumb__item a:hover { color: var(--aqua); }
.breadcrumb__item[aria-current="page"] { color: var(--white); }

/* ---------- 7. 切角卡片 ---------- */
.card-cut {
  position: relative;
  display: block;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--stand);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.card-cut:hover {
  box-shadow: inset 0 0 0 1px var(--aqua);
  background: var(--board);
}

/* ---------- 8. 图片占位容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 18% 8%, rgba(43, 224, 200, .18), transparent 58%),
    linear-gradient(180deg, var(--stand), var(--ink));
}

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

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg, rgba(234, 242, 255, .07) 0 1px, transparent 1px 14px
  );
}

/* ==========================================================================
   9. 头部
   ========================================================================== */
.site-header { position: relative; z-index: 80; }

.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 10px);
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 3px;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---- 左侧品牌轨道 ---- */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, #0A1730 0%, var(--ink) 44%, #060E1C 100%);
  border-right: 1px solid var(--line);
}

.brand-rail__mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1;
  padding: 10px 0 8px;
  color: var(--white);
  border-bottom: 2px solid var(--aqua);
  transition: color .2s var(--ease);
}

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

.brand-rail__rule {
  position: relative;
  flex: 1 1 auto;
  width: 1px;
  margin: 14px 0;
  background-image: repeating-linear-gradient(
    180deg, var(--line) 0 1px, transparent 1px 11px
  );
}

.brand-rail__rule::before,
.brand-rail__rule::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
}

.brand-rail__rule::before { top: 0; background: var(--aqua); }
.brand-rail__rule::after { bottom: 0; background: var(--orange); }

.brand-rail__top {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1;
  padding: 8px 0;
  color: var(--mist);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease),
              color .2s var(--ease);
}

.brand-rail__top[data-visible] { opacity: 1; visibility: visible; }
.brand-rail__top:hover { color: var(--aqua); }

/* ---- 顶部横条 ---- */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar-h);
  padding: 0 clamp(14px, 2.4vw, 32px);
  background: rgba(8, 15, 30, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar__left,
.header-bar__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-bar__left { gap: clamp(12px, 2vw, 30px); }
.header-bar__right { gap: 10px; flex: 0 0 auto; }

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
}

.brand-lockup__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  white-space: nowrap;
}

.brand-lockup__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--aqua);
  white-space: nowrap;
}

.primary-nav { min-width: 0; }

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

.primary-nav__link {
  display: block;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--mist);
  white-space: nowrap;
  border-radius: 3px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.primary-nav__link:hover {
  color: var(--white);
  background: var(--board);
}

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

.version-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--violet);
  border: 1px solid rgba(122, 92, 255, .55);
  border-radius: 2px;
  padding: 4px 9px;
  white-space: nowrap;
}

.feedback-btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 8px 15px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease);
}

.feedback-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 122, 47, .08);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--aqua);
  border-color: var(--aqua);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---- 反馈面板 ---- */
.feedback-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 9, 18, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.feedback-scrim[data-open] { opacity: 1; visibility: visible; }

.feedback-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(380px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 22px 30px;
  overflow-y: auto;
  background: var(--stand);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s var(--ease);
}

.feedback-panel[data-open] { transform: none; visibility: visible; }

.feedback-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.feedback-panel__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aqua);
}

.feedback-panel__close {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.feedback-panel__close:hover {
  color: var(--white);
  border-color: var(--aqua);
}

.feedback-panel__lead {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-tag {
  font-size: 13px;
  padding: 8px 13px;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease);
}

.feedback-tag:hover { color: var(--white); border-color: var(--aqua); }

.feedback-tag[aria-pressed="true"] {
  color: var(--ink);
  background: var(--aqua);
  border-color: var(--aqua);
  font-weight: 600;
}

.feedback-panel__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feedback-mail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
  word-break: break-all;
}

.copy-email { align-self: flex-start; }

.feedback-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--lime);
  min-height: 18px;
}

/* ==========================================================================
   10. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding: clamp(36px, 5vw, 64px) var(--pad-x) 0;
  background: linear-gradient(180deg, #07101F 0%, var(--ink-deep) 100%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.3fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  max-width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(30px, 4vw, 52px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}

.footer-brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist);
  max-width: 28em;
}

.footer-links li + li { margin-top: 8px; }

.footer-links a {
  font-size: 14px;
  color: var(--mist);
  transition: color .2s var(--ease);
}

.footer-links a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact li + li { margin-top: 10px; }

.footer-contact__key {
  flex: 0 0 2.8em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--violet);
  padding-top: 2px;
}

.footer-contact__val { color: var(--white); }

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
  word-break: break-all;
}

.footer-note {
  font-size: 12px;
  line-height: 1.75;
  color: var(--mist);
  margin-top: 8px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-base .footer-note { margin-top: 0; }

.footer-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(42, 71, 107, .35);
  overflow: hidden;
}

.footer-progress__bar {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--aqua), var(--lime) 62%, var(--orange));
}

.footer-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg, var(--ink-deep) 0 1px, transparent 1px 9px
  );
}

/* ==========================================================================
   11. 显现动效
   ========================================================================== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

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

  .primary-nav {
    position: fixed;
    top: var(--bar-h);
    left: var(--rail-w);
    right: 0;
    z-index: 79;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 10px clamp(14px, 3vw, 24px) 22px;
    background: var(--stand);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease),
                visibility .22s var(--ease);
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .primary-nav__link {
    padding: 15px 12px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --rail-w: 54px; --bar-h: 58px; }

  .header-bar { padding: 0 14px; }
  .header-bar__left { gap: 12px; }
  .header-bar__right { gap: 8px; }
  .version-chip { display: none; }
  .feedback-btn { padding: 8px 12px; font-size: 12.5px; }
  .brand-lockup__meta { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-progress { height: 6px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle__text { display: none; }
}

/* ==========================================================================
   13. 偏好与降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .feedback-panel { transform: none !important; }
}
