/* ==========================================================================
   千亿球友会 · 共享站点样式 /assets/site.css
   深夜球场战术板：暗场底 + 细刻度 + 玻璃层压实色层
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #05131F;
  --ink-800: #0B2334;
  --ink-700: #123349;
  --ink-600: #1E4A63;
  --lime-500: #B6F24A;
  --lime-300: #D6FF7A;
  --amber-500: #FFB454;
  --amber-200: #FFD79A;
  --white: #EAF2F6;
  --mist: #8FA6B4;
  --cyan: #7BD1E8;

  --bg: var(--ink-900);
  --fg: var(--white);

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

  --shell-w: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 2px;

  --gap-s: clamp(8px, 1.2vw, 14px);
  --gap-m: clamp(16px, 2.2vw, 28px);
  --gap-l: clamp(32px, 5vw, 72px);

  --edge: rgba(30, 74, 99, 0.85);
  --edge-soft: rgba(30, 74, 99, 0.55);
  --glass-bg: rgba(18, 51, 73, 0.52);
  --glass-edge: rgba(123, 209, 232, 0.2);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol { padding: 0; }

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

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

a { color: inherit; }

::selection {
  background: var(--lime-500);
  color: var(--ink-900);
}

[id] { scroll-margin-top: clamp(96px, 14vh, 148px); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 布局基础 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(36px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 4vw, 52px); }

.content { max-width: 74ch; }
.content > * + * { margin-top: 1em; }

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--ink-600), rgba(30, 74, 99, 0));
}

/* ---------- 4. 排版工具 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 1px;
  background: var(--lime-500);
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out,
              color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:active { transform: translateY(1px); }

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

.btn--ghost {
  background: transparent;
  border-color: var(--ink-600);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--lime-500);
  color: var(--lime-300);
}

.btn--amber {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
}
.btn--amber:hover {
  background: var(--amber-200);
  border-color: var(--amber-200);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 6. 标签 / 卡片 / 面板 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: rgba(18, 51, 73, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.tag--lime {
  background: var(--lime-500);
  border-color: var(--lime-500);
  color: var(--ink-900);
  font-weight: 700;
}
.tag--amber {
  background: rgba(255, 180, 84, 0.12);
  border-color: rgba(255, 180, 84, 0.55);
  color: var(--amber-200);
}
.tag--cyan {
  background: rgba(123, 209, 232, 0.1);
  border-color: rgba(123, 209, 232, 0.45);
  color: var(--cyan);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-800);
  transition: border-color 0.18s ease-out, background-color 0.18s ease-out;
}
.card:hover { border-color: rgba(182, 242, 74, 0.55); }

.card--glass {
  background: var(--glass-bg);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel {
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-700);
}

.glass {
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.4vw, 28px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-600);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.breadcrumb a:hover {
  color: var(--lime-300);
  border-bottom-color: var(--lime-500);
}
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 8. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--ink-700), var(--ink-800) 70%);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(190deg, rgba(5, 19, 31, 0.55), rgba(5, 19, 31, 0) 44%, rgba(5, 19, 31, 0.62));
}
.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 12px 14px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--white);
  background: linear-gradient(0deg, rgba(5, 19, 31, 0.88), rgba(5, 19, 31, 0));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--angled {
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* ---------- 9. 头部：跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: clamp(10px, 3vw, 24px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--lime-500);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease-out;
}
.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--ink-900);
  outline-offset: -4px;
}

/* ---------- 10. 头部：整体 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.98), rgba(5, 19, 31, 0.9));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(30, 74, 99, 0.35);
}

/* --- 上层窄带 --- */
.header-utility {
  background: var(--ink-800);
  border-bottom: 1px solid var(--edge-soft);
  font-family: var(--font-mono);
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  min-height: 38px;
  padding-block: 6px;
}
.header-utility__line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}
.header-utility__line::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(182, 242, 74, 0.15);
}
.header-utility__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.header-utility__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-utility__item + .header-utility__item::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-600);
}

/* --- 导航层 --- */
.site-nav {
  position: relative;
  background: var(--ink-900);
  border-bottom: 1px solid var(--edge-soft);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 64px;
  padding-block: 8px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  transition: opacity 0.18s ease-out;
}
.brand:hover { opacity: 0.86; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--lime-500);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-clip-path: polygon(30% 0, 70% 0, 100% 50%, 70% 100%, 30% 100%, 0 50%);
  clip-path: polygon(30% 0, 70% 0, 100% 50%, 70% 100%, 30% 100%, 0 50%);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}
.brand__line {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 导航列表 */
.nav-list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(2px, 0.9vw, 14px);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list__item { flex: 0 0 auto; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 8px;
  border-bottom: 2px solid transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.nav-link__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 0.18s ease-out;
}
.nav-link:hover {
  color: var(--lime-300);
  border-bottom-color: rgba(182, 242, 74, 0.45);
}
.nav-link:hover .nav-link__index { color: var(--lime-300); }

.nav-link[aria-current="page"] {
  color: var(--lime-500);
  border-bottom-color: var(--lime-500);
}
.nav-link[aria-current="page"] .nav-link__index { color: var(--lime-500); }

/* CTA */
.site-nav__cta {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  padding: 10px 18px;
  white-space: nowrap;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: rgba(18, 51, 73, 0.6);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s ease-out, color 0.18s ease-out;
}
.nav-toggle:hover {
  border-color: var(--lime-500);
  color: var(--lime-300);
}
.nav-toggle__text { line-height: 1; }
.nav-toggle__bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s ease-out;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease-out;
}
.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }

.site-nav[data-open] .nav-toggle__bar { background: transparent; }
.site-nav[data-open] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.site-nav[data-open] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime-500), var(--cyan));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  border-top: 1px solid var(--ink-600);
  color: var(--white);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(123, 209, 232, 0.055) 0 1px, transparent 1px 88px);
}
.site-footer > .shell {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 76px) clamp(24px, 4vw, 40px);
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(182, 242, 74, 0.35);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--lime-500);
}
.footer-brand__name {
  margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.footer-brand__line {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--lime-500);
  text-transform: uppercase;
}
.footer-col__list {
  display: grid;
  gap: 2px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer-col__list a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.footer-col__list a:hover {
  color: var(--lime-300);
  border-bottom-color: var(--lime-500);
}

.footer-contact {
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--edge-soft);
  border-bottom: 1px solid var(--edge-soft);
}
.footer-contact__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.95;
  color: var(--white);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 8px;
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: clamp(16px, 3vw, 26px) clamp(24px, 4vw, 36px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-base__copy,
.footer-base__icp,
.footer-base__link {
  margin: 0;
}
.footer-base__link a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(182, 242, 74, 0.4);
  color: var(--lime-500);
  text-decoration: none;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.footer-base__link a:hover {
  color: var(--lime-300);
  border-bottom-color: var(--lime-300);
}

/* ---------- 12. 进场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 13. 响应式：平板 ---------- */
@media (max-width: 1180px) {
  .nav-link { font-size: 14px; padding: 10px 6px; }
  .brand__name { font-size: 16px; }
}

@media (max-width: 1024px) {
  .site-nav__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  .brand { flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; }

  .nav-list {
    order: 3;
    flex: 1 1 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--edge-soft);
  }
  .site-nav[data-open] .nav-list { display: flex; }

  .nav-list__item + .nav-list__item { border-top: 1px solid rgba(30, 74, 99, 0.45); }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 4px;
    border-bottom-width: 2px;
    font-size: 15px;
  }

  .site-nav__cta {
    order: 4;
    flex: 1 1 100%;
    flex-basis: 100%;
    margin: 10px 0;
  }

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

/* ---------- 14. 响应式：手机 ---------- */
@media (max-width: 720px) {
  .header-utility__inner {
    justify-content: flex-start;
    min-height: 32px;
    padding-block: 5px;
  }
  .header-utility__line { display: none; }
  .header-utility__links {
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .header-utility__item + .header-utility__item::before {
    margin-right: 2px;
  }

  .site-nav__inner { min-height: 58px; padding-block: 7px; }
  .brand__mark { width: 32px; height: 32px; font-size: 11px; }
  .brand__name { font-size: 15px; letter-spacing: 0.04em; }
  .brand__line { font-size: 9px; letter-spacing: 0.12em; }

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

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { font-size: 11px; letter-spacing: 0.03em; }
}

@media (max-width: 520px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .btn { padding: 11px 18px; font-size: 13px; }
  .site-nav__cta { font-size: 13px; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@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;
  }

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

  .btn:active { transform: none; }

  .scroll-progress { transition: none; }
}
