/* ===== NG体育 共享样式 /assets/site.css ===== */

/* ---- 变量 ---- */
:root {
  --space-900: #0A1428;
  --panel: #10243E;
  --paper: #F4EFE6;
  --paper-dim: #E7DCCB;
  --ink: #1C2D3A;
  --signal-orange: #F97316;
  --gold: #E5B63E;
  --cyan: #4DD0E1;
  --green: #2FB57F;
  --red: #E4573D;
  --font-headline: "Archivo Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Space Mono", "Roboto Mono", monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --content-max: 1280px;
  --header-h: 76px;
  --shadow-header: 0 8px 24px rgba(10, 20, 40, 0.35);
}

/* ---- Reset & 基础 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  min-height: 60vh;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--signal-orange);
  text-decoration-color: currentColor;
}

p { margin-bottom: 1em; }

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

/* ---- 工具类 ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 2000;
  background: var(--signal-orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}

.skip-link:hover {
  color: #fff;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

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

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5,
.on-dark h6 {
  color: var(--paper);
}

.on-dark a {
  color: var(--gold);
  text-decoration-color: rgba(229, 182, 62, 0.4);
}

.on-dark a:hover {
  color: var(--signal-orange);
}

/* ---- 网格 ---- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

@media (max-width: 767px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-12 {
    grid-column: span 12;
  }
}

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse 60% 120% at 50% -20%, rgba(77, 208, 225, 0.08), transparent),
    var(--space-900);
  border-bottom: 1px solid rgba(16, 36, 62, 0.9);
  box-shadow: var(--shadow-header);
}

.header-frame {
  max-width: var(--content-max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.header-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--signal-orange), var(--gold));
  transition: width 0.15s linear;
}

/* ---- 品牌 ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel);
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px solid rgba(244, 239, 230, 0.25);
  border-radius: 6px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  white-space: nowrap;
}

/* ---- 导航 ---- */
.site-nav {
  margin: 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(244, 239, 230, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--signal-orange);
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(16, 36, 62, 0.55);
  text-decoration: none;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(0.6);
}

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

.nav-link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--gold);
}

.header-cta {
  flex-shrink: 0;
}

/* ---- 按钮 ---- */
.door-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--signal-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.door-btn::before {
  content: "";
  display: block;
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.9;
}

.door-btn:hover {
  transform: translateX(-2px);
  background: #e85d09;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.door-btn:active {
  transform: translateX(0) scale(0.98);
}

.door-btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.door-btn-secondary::before {
  background: var(--gold);
}

.door-btn-secondary:hover {
  background: rgba(229, 182, 62, 0.1);
  color: var(--gold);
  box-shadow: none;
}

.door-btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.door-btn-sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
}

/* ---- 移动端导航 ---- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 2px solid rgba(244, 239, 230, 0.25);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: rgba(229, 182, 62, 0.6);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

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

@media (max-width: 767px) {
  .site-header {
    --header-h: 64px;
  }

  .header-frame {
    padding: 0 16px;
    min-height: 64px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--space-900);
    border-top: 1px solid rgba(16, 36, 62, 0.8);
    box-shadow: 0 16px 32px rgba(10, 20, 40, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 16px 24px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    color: rgba(244, 239, 230, 0.9);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    color: var(--paper);
    background: rgba(16, 36, 62, 0.75);
  }

  .nav-link[aria-current="page"] {
    color: var(--gold);
    background: rgba(229, 182, 62, 0.08);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-frame {
    padding: 0 20px;
    gap: 16px;
  }

  .header-cta {
    display: none;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

/* ---- 页脚 ---- */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 80% 100% at 50% 120%, rgba(77, 208, 225, 0.06), transparent),
    var(--space-900);
  color: var(--paper);
  border-top: 3px solid var(--gold);
}

.footer-frame {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 32px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-trust {
  color: rgba(244, 239, 230, 0.65);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0;
}

.footer-title {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-link-list,
.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-link-list a {
  color: rgba(244, 239, 230, 0.85);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link-list a:hover {
  color: var(--signal-orange);
  padding-left: 4px;
}

.footer-contact-list li {
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.55);
}

@media (max-width: 767px) {
  .footer-frame {
    padding: 40px 20px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-frame {
    padding: 48px 24px 24px;
  }
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.65);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(244, 239, 230, 0.35);
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--signal-orange);
}

.breadcrumb [aria-current="page"] {
  color: rgba(244, 239, 230, 0.75);
}

.breadcrumb-light {
  color: rgba(28, 45, 58, 0.65);
}

.breadcrumb-light li:not(:last-child)::after {
  color: rgba(28, 45, 58, 0.3);
}

.breadcrumb-light a {
  color: var(--signal-orange);
}

.breadcrumb-light a:hover {
  color: var(--ink);
}

.breadcrumb-light [aria-current="page"] {
  color: rgba(28, 45, 58, 0.7);
}

/* ---- 章节与文字组件 ---- */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-orange);
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.on-dark .section-kicker {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(28, 45, 58, 0.8);
  max-width: 720px;
}

.on-dark .section-lead {
  color: rgba(244, 239, 230, 0.75);
}

.keyline {
  height: 1px;
  border: none;
  background: linear-gradient(to right, transparent, rgba(249, 115, 22, 0.4), transparent);
  margin: 24px 0;
}

/* ---- 面板与数据 ---- */
.panel-card {
  position: relative;
  background: var(--panel);
  color: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 182, 62, 0.12);
  padding: 28px;
  overflow: hidden;
}

.panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 48px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--signal-orange);
}

.panel-card-title {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  margin-bottom: 12px;
}

.panel-card-body {
  color: rgba(244, 239, 230, 0.85);
  font-size: 0.9375rem;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-dim);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}

.on-dark .data-chip {
  background: var(--panel);
  color: var(--paper);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.status-dot[data-status="stale"] {
  background: var(--red);
}

.status-dot[data-status="pending"] {
  background: var(--gold);
}

.data-value {
  font-family: var(--font-data);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.on-dark .data-value {
  color: var(--gold);
}

.data-label {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 45, 58, 0.55);
}

.on-dark .data-label {
  color: rgba(244, 239, 230, 0.6);
}

/* ---- 图片占位 ---- */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--paper-dim);
  overflow: hidden;
  min-height: 240px;
}

.img-frame::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 45, 58, 0.45);
  padding: 16px;
  text-align: center;
}

.img-frame-on-dark {
  background: var(--panel);
}

.img-frame-on-dark::after {
  color: rgba(244, 239, 230, 0.4);
}

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 45, 58, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(28, 45, 58, 0.08);
}

.table-wrap th {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--space-900);
  color: var(--paper);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover {
  background: rgba(229, 182, 62, 0.08);
}

/* ---- 装饰 ---- */
.door-shape {
  position: relative;
  width: 64px;
  height: 96px;
  border-radius: 16px 16px 10px 10px;
  border: 3px solid var(--gold);
  background: var(--panel);
  flex-shrink: 0;
}

.door-shape::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-orange);
}

/* ---- 页面开门光效 ---- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 40, 0.85) 0%,
    rgba(16, 36, 62, 0.92) 44%,
    rgba(229, 182, 62, 0.4) 50%,
    rgba(16, 36, 62, 0.92) 56%,
    rgba(10, 20, 40, 0.85) 100%
  );
  opacity: 1;
  clip-path: inset(50% 0 50% 0);
  animation: door-open 0.55s ease-out 0.05s forwards;
}

@keyframes door-open {
  0% {
    clip-path: inset(50% 0 50% 0);
    opacity: 1;
  }
  35% {
    clip-path: inset(30% 0 30% 0);
    opacity: 0.9;
  }
  70% {
    clip-path: inset(0 0 0 0);
    opacity: 0.6;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

/* ---- 左右门框边线 ---- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  z-index: 900;
  pointer-events: none;
  background: transparent;
}

@media (min-width: 1024px) {
  body {
    background-image:
      linear-gradient(to right, rgba(10, 20, 40, 0.92) 0 6px, transparent 6px),
      linear-gradient(to left, rgba(10, 20, 40, 0.92) 0 6px, transparent 6px);
    background-size: 8px 100%, 8px 100%;
    background-position: left top, right top;
    background-repeat: no-repeat;
  }
}

/* ---- 焦点状态 ---- */
:focus-visible {
  outline: 3px solid var(--signal-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(229, 182, 62, 0.45);
  border-radius: var(--radius-sm);
}

/* ---- 减少动态偏好 ---- */
@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;
  }

  body::before {
    display: none;
  }

  .header-progress-fill,
  .site-nav,
  .nav-toggle-line,
  .door-btn,
  .nav-link {
    transition: none;
  }
}
