/* =========================================================
   威廉体育台 · 共享样式表 /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, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

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

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

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

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

/* ---------- 2. token ---------- */
:root {
  --ink: #101314;
  --ink-2: #171B1C;
  --ink-3: #1E2324;

  --green: #0C3B2E;
  --green-deep: #072A20;
  --green-lift: #12513F;

  --amber: #F2A03D;
  --amber-light: #FFC46B;
  --volt: #2BD2FF;
  --paper: #F4F1E8;
  --paper-ink: #1A1712;
  --grey: #6E7A76;
  --ok: #35D07F;
  --warn: #E4572E;

  --rule: rgba(110, 122, 118, 0.34);
  --rule-strong: rgba(110, 122, 118, 0.62);
  --rule-paper: rgba(244, 241, 232, 0.16);

  --font-display: "Oswald", "Archivo Narrow", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --wrap: 1280px;
  --gap: 24px;
  --nav-h: 66px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* 全站底层坐标网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(244, 241, 232, 0.022) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, rgba(244, 241, 232, 0.022) 0 1px, transparent 1px 80px);
}

#main-content {
  position: relative;
  z-index: 1;
  display: block;
}

::selection { background: var(--amber); color: #101314; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: 17px; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 4. skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--volt);
  color: #04222B;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 5. 框架式页头 ---------- */
.frame-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  border-top: 4px solid var(--green);
}

.frame-nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  min-height: var(--nav-h);
}

/* 品牌坐标锚点 */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 22px;
  border-right: 1px solid var(--rule);
  flex: 0 0 auto;
}

.brand-lockup__coord {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--grey);
  align-self: center;
  padding: 4px 0;
}

.brand-lockup__mark { display: block; }

.brand-lockup__name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--paper);
  white-space: nowrap;
}

.brand-lockup__line {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.6;
  color: var(--amber);
  white-space: nowrap;
}

.brand-lockup__meta {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey);
  white-space: nowrap;
}

/* 导航 */
.frame-nav__nav {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.nav-list__item { display: flex; }

.nav-list__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 15px;
  color: rgba(244, 241, 232, 0.7);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-list__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.18s var(--ease);
}

.nav-list__link:hover {
  color: var(--paper);
  background: rgba(12, 59, 46, 0.55);
}

.nav-list__link:hover::before { transform: scaleY(1); }

.nav-list__link[aria-current="page"] { color: var(--paper); }

.nav-list__link[aria-current="page"]::before {
  transform: scaleY(1);
  background: var(--amber);
}

.nav-list__index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--grey);
}

.nav-list__label {
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 右上角工具 */
.frame-nav__utility {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--rule);
  flex: 0 0 auto;
}

.nav-quick {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: var(--volt);
  color: #04222B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-quick:hover {
  background: var(--amber-light);
  color: #1A1206;
}

.utility-link {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(110, 122, 118, 0.5);
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.utility-link:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  color: var(--paper);
}

.nav-toggle__marks { display: block; width: 22px; }

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

/* 底部轮次刻度线 */
.frame-nav__scale {
  height: 9px;
  border-top: 1px solid rgba(110, 122, 118, 0.2);
  background-image: repeating-linear-gradient(
    to right,
    rgba(110, 122, 118, 0.5) 0 1px,
    transparent 1px 32px
  );
  opacity: 0.85;
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  border-top: 4px solid var(--amber);
}

.site-foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 36px 40px;
}

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

.foot-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--amber);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-paper);
}

.foot-address {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(244, 241, 232, 0.72);
  max-width: 26ch;
}

.foot-coord {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--volt);
}

.foot-list li + li { margin-top: 1px; }

.foot-list a,
.foot-contact a,
.foot-contact span {
  display: inline-block;
  font-size: 13.5px;
  line-height: 2;
  color: rgba(244, 241, 232, 0.76);
  border-bottom: 1px solid transparent;
  word-break: break-all;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.foot-list a:hover,
.foot-contact a:hover {
  color: var(--amber-light);
  border-bottom-color: var(--amber-light);
}

.foot-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-paper);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(244, 241, 232, 0.56);
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.foot-legal__line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.foot-legal__year {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ---------- 7. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow { max-width: 860px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.section-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.section-anno {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--grey);
  align-self: start;
}

/* ---------- 8. 面板 / 标签 / 按钮 / 数据 ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 24px;
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(26, 23, 18, 0.16);
}

.panel--green {
  background: var(--green);
  border-color: var(--rule-paper);
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--grey);
}

.tag--amber { border-color: rgba(242, 160, 61, 0.6); color: var(--amber); }
.tag--volt  { border-color: rgba(43, 210, 255, 0.6); color: var(--volt); }
.tag--ok    { border-color: rgba(53, 208, 127, 0.6); color: var(--ok); }
.tag--warn  { border-color: rgba(228, 87, 46, 0.6); color: var(--warn); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary { background: var(--amber); color: #1A1206; }
.btn--primary:hover { background: var(--amber-light); }

.btn--volt { background: var(--volt); color: #04222B; }
.btn--volt:hover { background: #68E0FF; }

.btn--green {
  background: var(--green);
  color: var(--paper);
  border-color: rgba(244, 241, 232, 0.2);
}
.btn--green:hover { background: var(--green-lift); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 232, 0.36);
}
.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 232, 0.08);
}

.btn--block { width: 100%; }

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
}

.stat__num--amber { color: var(--amber); }
.stat__num--volt  { color: var(--volt); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grey);
}

/* ---------- 9. 正文 / 面包屑 ---------- */
.prose {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 241, 232, 0.8);
}

.prose p + p { margin-top: 18px; }
.prose strong { color: var(--paper); font-weight: 600; }

.prose a {
  color: var(--amber);
  border-bottom: 1px solid rgba(242, 160, 61, 0.5);
}
.prose a:hover { border-color: var(--amber); }

.prose--paper { color: #2A2721; }
.prose--paper strong { color: #100E0A; }

.breadcrumb { margin: 0 0 28px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.breadcrumb__link {
  color: var(--grey);
  transition: color 0.18s var(--ease);
}
.breadcrumb__link:hover { color: var(--amber); }

.breadcrumb__sep { color: rgba(110, 122, 118, 0.55); }
.breadcrumb__current { color: var(--paper); }

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--ink-2) 100%);
  border: 1px solid var(--rule);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(244, 241, 232, 0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(244, 241, 232, 0.05) 0 1px, transparent 1px 40px);
}

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

.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--3x4  { aspect-ratio: 3 / 4; }

.media-frame__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

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

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

/* ---------- 12. 桌面收紧 ---------- */
@media (max-width: 1240px) and (min-width: 1080px) {
  .nav-list__link { padding: 10px 10px; }
  .nav-list__label { font-size: 12.5px; }
  .brand-lockup__coord { display: none; }
}

/* ---------- 13. 移动 / 平板 ---------- */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }

  .frame-nav__inner { padding: 0 18px; }

  .brand-lockup__coord { display: none; }
  .brand-lockup__meta { display: none; }

  .frame-nav__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-deep);
    border-top: 1px solid var(--rule);
    border-bottom: 4px solid var(--green);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 8px 18px 26px;
  }

  .frame-nav__nav[data-open] { display: flex; }

  .nav-list { display: block; margin-left: 0; }

  .nav-list__item { display: block; border-bottom: 1px solid rgba(244, 241, 232, 0.1); }

  .nav-list__link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 16px 8px;
    color: rgba(244, 241, 232, 0.84);
  }

  .nav-list__link::before { top: 0; bottom: 0; }

  .nav-list__index { font-size: 10.5px; color: var(--amber); }

  .nav-list__label { font-size: 18px; font-weight: 500; }

  .frame-nav__utility {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 20px 0 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-quick {
    height: 44px;
    justify-content: center;
    font-size: 13.5px;
  }

  .utility-link { align-self: flex-start; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }

  .site-foot__inner { padding: 44px 20px 24px; }
  .site-foot { margin-top: 56px; }

  .foot-legal { margin-top: 34px; }
  .foot-legal__year { margin-left: 0; }

  .wrap { padding: 0 20px; }
  .section-head__note { margin-left: 0; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }

  .brand-lockup__name { font-size: 18px; }
  .brand-lockup__line { font-size: 9px; letter-spacing: 0.18em; }

  .frame-nav__scale { height: 7px; }

  .panel { padding: 18px; }
  .btn { width: 100%; }
}

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

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

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

  .nav-list__link::before { transition: none; }
}
