/* ==========================================================================
   微玩体育合作伙伴 — 共享站点样式 /assets/site.css
   框架式导航 · 堆叠面板 · 竞技数据实验室配色
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #061426;
  --panel: #0B223D;
  --raised: #12345A;
  --steel: #2E527A;
  --cyan: #24E0FF;
  --teal: #0E8FA8;
  --orange: #FF7A1A;
  --ice: #EAF6FF;
  --mist: #9DB6D0;
  --white: #FFFFFF;

  --gutter: clamp(14px, 4vw, 40px);
  --maxw: 1280px;
  --frame: 2px;
  --shadow-hard: 6px 6px 0 0 rgba(2, 9, 18, 0.85);
  --shadow-lift: 9px 9px 0 0 rgba(2, 9, 18, 0.9);

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 150px;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--white); }
table { border-collapse: collapse; width: 100%; }

/* ---------- 3. 页面基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(36, 224, 255, 0.06), rgba(6, 20, 38, 0) 340px),
    repeating-linear-gradient(90deg, rgba(46, 82, 122, 0.16) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(46, 82, 122, 0.1) 0 1px, transparent 1px 120px);
  background-attachment: fixed;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: #02121f; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 12px 18px;
  background: var(--cyan);
  color: #02121f;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid #02121f;
  box-shadow: var(--shadow-hard);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); color: #02121f; }

/* ---------- 4. 排版层级 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--ice);
}
h1 { font-size: clamp(42px, 6.6vw, 92px); }
h2 { font-size: clamp(28px, 3.8vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
h4 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; letter-spacing: 0.03em; }
strong { color: var(--white); font-weight: 700; }
small { font-size: 0.82em; color: var(--mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.prose { color: var(--ice); }
.prose p { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--cyan); }
.prose ul, .prose ol { max-width: 70ch; padding-left: 1.1em; margin-top: 0.6em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

/* ---------- 5. 容器 ---------- */
.wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-shadow: 4px 4px 0 0 rgba(2, 9, 18, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ice);
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--steel);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover {
  color: var(--ice);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(2, 9, 18, 0.86);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 rgba(2, 9, 18, 0.7);
}
.btn--primary {
  background: var(--orange);
  border-color: #FFB072;
  color: #1A0D00;
}
.btn--primary:hover {
  background: #FF8E3B;
  border-color: var(--orange);
  color: #1A0D00;
}
.btn--ghost {
  background: rgba(14, 143, 168, 0.12);
  border-color: var(--teal);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(36, 224, 255, 0.16);
  border-color: var(--cyan);
  color: var(--white);
}
.favorite-link {
  padding: 10px 14px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* ---------- 7. 头部框架导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, #071A2E 0%, #061426 100%);
  border-bottom: 1px solid rgba(46, 82, 122, 0.85);
}

.header-frame {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(11, 34, 61, 0.97), rgba(6, 20, 38, 0.98));
  border-left: var(--frame) solid var(--steel);
  border-right: var(--frame) solid var(--steel);
  border-bottom: var(--frame) solid var(--steel);
  box-shadow: 0 22px 40px -34px rgba(0, 0, 0, 0.95);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 13px clamp(14px, 2.4vw, 26px);
  border-bottom: 1px solid rgba(46, 82, 122, 0.7);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: var(--ice);
}
.brand:hover { color: var(--ice); }

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 7px;
  background: var(--raised);
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 0 rgba(2, 9, 18, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.brand-mark span { display: block; width: 6px; background: var(--cyan); }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 26px; background: var(--orange); }
.brand-mark span:nth-child(3) { height: 17px; }
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  border-color: var(--white);
  box-shadow: 4px 4px 0 0 rgba(36, 224, 255, 0.5);
  transform: translateY(-2px);
}

.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-line {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--ice);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-descriptor {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 头部右侧元信息 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(14, 143, 168, 0.14);
  border: 1px solid var(--teal);
  white-space: nowrap;
}
.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(36, 224, 255, 0.18);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ice);
  background: var(--raised);
  border: 2px solid var(--steel);
  box-shadow: 3px 3px 0 0 rgba(2, 9, 18, 0.85);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease;
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #02121f;
}
.nav-toggle-bars { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(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(-5px) rotate(-45deg); }

/* 导航：六格等宽框架 */
.site-nav {
  display: block;
  background: linear-gradient(180deg, rgba(18, 52, 90, 0.5), rgba(11, 34, 61, 0.88));
}
.nav-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.nav-list li {
  border-right: 1px solid rgba(46, 82, 122, 0.75);
}
.nav-list li:last-child { border-right: 0; }

.nav-list a {
  position: relative;
  display: block;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--mist);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease, background-color 180ms ease;
}
.nav-list a:hover {
  color: var(--ice);
  background: rgba(36, 224, 255, 0.08);
}
.nav-list a:hover::before { transform: scaleX(1); }
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(36, 224, 255, 0.13);
  font-weight: 700;
}
.nav-list a[aria-current="page"]::before {
  transform: scaleX(1);
  background: var(--orange);
}
.nav-list a[aria-current="page"]:hover { color: var(--white); }

/* 滚动进度 */
.read-meter {
  position: relative;
  height: 3px;
  background: rgba(46, 82, 122, 0.36);
  overflow: hidden;
}
.read-meter-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 62%, var(--orange) 100%);
  transition: width 80ms linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  background: linear-gradient(180deg, #05121F 0%, #030D18 100%);
  border-top: 3px solid var(--steel);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: min(320px, 42%);
  height: 3px;
  background: var(--orange);
}

.footer-frame {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 2.6vw, 34px) 0;
  border-left: 2px solid rgba(46, 82, 122, 0.55);
  border-right: 2px solid rgba(46, 82, 122, 0.55);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}

.footer-brand-line {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ice);
  max-width: 24ch;
}
.footer-note {
  margin-top: 16px;
  padding-left: 14px;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  border-left: 2px solid var(--teal);
}

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

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

.footer-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(46, 82, 122, 0.8);
}

.footer-list { display: grid; gap: 10px; font-size: 14.5px; }
.footer-list a {
  position: relative;
  display: inline-block;
  color: var(--mist);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-list a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: translateY(-50%) scale(0);
  transition: transform 160ms ease;
}
.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::before { transform: translateY(-50%) scale(1); }

.footer-list--contact { gap: 12px; font-size: 13.5px; line-height: 1.6; }
.footer-contact-value {
  font-family: var(--font-num);
  font-size: 13.5px;
  color: var(--ice);
  word-break: break-word;
  user-select: all;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  margin-top: clamp(26px, 4vw, 46px);
  padding: 18px 0 24px;
  border-top: 1px solid rgba(46, 82, 122, 0.7);
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}
.footer-copy { max-width: none; }
.footer-icp { color: var(--mist); }
.footer-meta { color: var(--cyan); }

/* ---------- 9. 通用组件 ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 52, 90, 0.94), rgba(11, 34, 61, 0.97));
  border: var(--frame) solid var(--steel);
  box-shadow: var(--shadow-hard);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.panel:hover { border-color: rgba(36, 224, 255, 0.55); }
.panel--flat {
  background: var(--panel);
  box-shadow: none;
  border-color: rgba(46, 82, 122, 0.75);
}

.crumbs { font-family: var(--font-num); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: var(--steel);
}
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(18, 52, 90, 0.7);
  border: 1px solid var(--steel);
}
.tag--orange {
  color: var(--orange);
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.6);
}

.stat-value {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(36, 224, 255, 0.32);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 可复用图片容器 */
.media-frame {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--frame) solid var(--steel);
  background:
    radial-gradient(120% 90% at 15% 8%, rgba(36, 224, 255, 0.2), transparent 62%),
    linear-gradient(135deg, var(--raised) 0%, var(--panel) 58%, var(--ink) 100%);
  box-shadow: var(--shadow-hard);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(36, 224, 255, 0.14) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(36, 224, 255, 0.09) 0 1px, transparent 1px 30px);
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 10. 显现协议 ---------- */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}
[data-js="on"] [data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand-line { max-width: none; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 180px; }

  .nav-toggle { display: inline-flex; }

  .header-bar {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .brand { order: 1; flex: 1 1 60%; }
  .nav-toggle { order: 2; }
  .header-meta {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-nav { display: none; }
  .site-nav[data-open] { display: block; }

  .nav-list { grid-template-columns: 1fr; }
  .nav-list li {
    border-right: 0;
    border-bottom: 1px solid rgba(46, 82, 122, 0.7);
  }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a {
    padding: 14px 18px;
    text-align: left;
    font-size: 15.5px;
  }
  .nav-list a::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .nav-list a:hover::before,
  .nav-list a[aria-current="page"]::before { transform: scaleY(1); }

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-mark { width: 40px; height: 40px; padding: 6px; }
  .brand-mark span { width: 5px; }
  .brand-descriptor { letter-spacing: 0.14em; }
  .version-badge { font-size: 11px; padding: 6px 9px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-base { justify-content: flex-start; gap: 6px 18px; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  .brand-line { font-size: 17px; }
  .brand-descriptor { font-size: 10.5px; }
  .header-meta .favorite-link { display: none; }
  .btn { padding: 10px 15px; font-size: 13px; }
}

/* ---------- 12. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark { transform: none; }
  [data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
