/* ==========================================================================
   皇冠真人主站 — 共享样式 /assets/site.css
   母题：赛场指挥室 × 赛事档案库
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

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

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

a { color: inherit; }

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

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

/* ---------- tokens ---------- */
:root {
  --bg-deep: #061812;
  --bg-panel: #0C1012;
  --bg-indigo: #0E1F33;
  --bg-wine: #2B0F1A;

  --gold: #D9B451;
  --cyan: #3FE0D0;
  --turf: #4FAE63;
  --amber: #E0913C;

  --text: #C3CCC6;
  --title: #EFF4F1;

  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(217, 180, 81, 0.24);
  --line-soft: rgba(195, 204, 198, 0.14);
  --grid-line: rgba(255, 255, 255, 0.032);

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

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

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

/* ---------- base ---------- */
body {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 100%;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--title);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-stretch: condensed;
}

h1 { font-size: clamp(30px, 5.2vw, 58px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }

p { max-width: 72ch; }

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

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

main { display: block; }

#main-content { scroll-margin-top: 24px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 22px;
  background: var(--cyan);
  color: #04120E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   头部：居中刊头
   ========================================================================== */
.masthead {
  position: relative;
  z-index: 80;
  background:
    radial-gradient(130% 150% at 50% -45%, rgba(63, 224, 208, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(14, 31, 51, 0.96) 0%, rgba(6, 24, 18, 1) 80%);
  border-bottom: 1px solid var(--line-soft);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 180, 81, 0.55), transparent);
  pointer-events: none;
}

/* 顶部数据条 */
.data-strip {
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
}

.data-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 30px);
  min-height: 36px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(195, 204, 198, 0.72);
}

.data-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.data-strip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 3px rgba(79, 174, 99, 0.16);
  transform: translateY(-1px);
}

.data-strip__label { color: rgba(195, 204, 198, 0.46); }

.data-strip__value {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* 品牌报头 */
.masthead__brand {
  position: relative;
  display: block;
  text-align: center;
  padding-block: clamp(22px, 3.6vw, 40px) clamp(16px, 2.4vw, 26px);
}

.masthead__brand::before,
.masthead__brand::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(24px, 8vw, 118px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 180, 81, 0.5));
  pointer-events: none;
}

.masthead__brand::before { left: var(--gutter); }
.masthead__brand::after { right: var(--gutter); transform: scaleX(-1); }

.brand-lockup {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
}

.brand-name {
  display: block;
  color: var(--title);
  font-size: clamp(26px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.16em;
  font-stretch: condensed;
}

.brand-sub {
  display: block;
  margin-top: 12px;
  color: rgba(195, 204, 198, 0.68);
  font-size: clamp(10px, 1.25vw, 12px);
  letter-spacing: 0.22em;
}

.brand-sub::before,
.brand-sub::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: clamp(14px, 3vw, 42px);
  height: 1px;
  background: var(--line);
  margin-inline: 12px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(63, 224, 208, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4px) 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(-4px) rotate(-45deg);
}

/* 栏目索引 */
.nav-rail {
  position: relative;
  border-top: 1px solid var(--line-soft);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 14px clamp(9px, 1.6vw, 20px);
  color: rgba(195, 204, 198, 0.86);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: clamp(9px, 1.6vw, 20px);
  right: clamp(9px, 1.6vw, 20px);
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--title);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover::after { transform: scaleX(1); }

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

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

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 84px);
}

.section--indigo { background: var(--bg-indigo); }
.section--wine { background: var(--bg-wine); }
.section--panel { background: var(--bg-panel); }

.section--cut {
  background-image: linear-gradient(
    112deg,
    transparent 0 49.86%,
    rgba(217, 180, 81, 0.16) 49.86% 50.06%,
    transparent 50.06% 100%
  );
}

/* 文字建筑 */
.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.coord::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.display {
  color: var(--title);
  font-size: clamp(38px, 8vw, 104px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-stretch: condensed;
}

.lede {
  max-width: 64ch;
  color: rgba(195, 204, 198, 0.9);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, var(--gold), transparent 72%);
  opacity: 0.6;
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }

/* 面板 */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  padding: clamp(18px, 2.4vw, 30px);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.panel:hover { border-color: var(--cyan); }

.panel--glass {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 数字锚点 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--mono);
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  margin-left: 6px;
  font-size: 0.36em;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(195, 204, 198, 0.7);
}

/* 数据表 */
.data-table {
  width: 100%;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(195, 204, 198, 0.62);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody tr { transition: background-color 0.16s var(--ease); }
.data-table tbody tr:hover { background: rgba(63, 224, 208, 0.05); }

.data-table__num {
  font-family: var(--mono);
  color: var(--title);
}

/* 索引列表 */
.index-list {
  display: grid;
  gap: 0;
}

.index-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.index-item:hover {
  color: var(--title);
  padding-left: 8px;
}

.index-item__num {
  min-width: 46px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.index-item__title { font-weight: 600; }

.index-item__meta {
  margin-left: auto;
  font-size: 12px;
  color: rgba(195, 204, 198, 0.55);
  white-space: nowrap;
}

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.status-tag--archived { color: var(--turf); }
.status-tag--review { color: var(--amber); }
.status-tag--pending { color: rgba(195, 204, 198, 0.6); }

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}

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

.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--tall { aspect-ratio: 2 / 3; }

.media-frame--tactical::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(63, 224, 208, 0.13) 34px 35px),
    linear-gradient(180deg, transparent 55%, rgba(6, 24, 18, 0.74) 100%);
  pointer-events: none;
}

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(239, 244, 241, 0.86);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn--solid {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn--solid:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120E;
}

.btn--quiet {
  border-color: rgba(63, 224, 208, 0.4);
  color: var(--cyan);
}

.btn--quiet:hover {
  background: rgba(63, 224, 208, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 面包屑 */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(195, 204, 198, 0.6);
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(217, 180, 81, 0.55);
}

.breadcrumbs a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumbs a:hover { color: var(--cyan); }

/* 正文 */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }

.prose ul > li {
  position: relative;
  padding-left: 18px;
}

.prose ul > li + li { margin-top: 0.5em; }

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.prose--center { margin-inline: auto; }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: linear-gradient(180deg, rgba(14, 31, 51, 0.92), rgba(6, 24, 18, 1));
  border-top: 1px solid var(--line);
  color: rgba(195, 204, 198, 0.82);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 224, 208, 0.45),
              rgba(217, 180, 81, 0.45), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 52px);
  padding-block: clamp(38px, 5.5vw, 68px) clamp(26px, 3.8vw, 44px);
}

.footer-brand__name {
  color: var(--title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-brand__sub {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(195, 204, 198, 0.66);
}

.footer-brand__region {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}

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

.footer-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: rgba(195, 204, 198, 0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s var(--ease);
}

.footer-links a:hover { color: var(--title); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-service {
  max-width: 92ch;
  padding-bottom: clamp(20px, 3vw, 32px);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(195, 204, 198, 0.6);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: clamp(18px, 2.6vw, 26px) clamp(26px, 3.6vw, 40px);
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  max-width: none;
  font-size: 12.5px;
  color: rgba(195, 204, 198, 0.62);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(195, 204, 198, 0.6);
}

.footer-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.footer-meta__label { color: rgba(195, 204, 198, 0.4); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .masthead__brand::before,
  .masthead__brand::after { display: none; }

  .masthead__brand { padding-block: clamp(20px, 5vw, 30px) clamp(14px, 3vw, 20px); }

  .brand-name {
    font-size: clamp(22px, 6.4vw, 34px);
    letter-spacing: 0.12em;
  }

  .brand-sub {
    margin-top: 9px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    padding: 15px var(--gutter);
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .nav-link::after {
    left: var(--gutter);
    right: auto;
    bottom: 12px;
    width: 24px;
  }

  .nav-rail[data-nav-ready] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.24s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-rail[data-nav-ready][data-open] {
    max-height: 70vh;
    opacity: 1;
    overflow-y: auto;
  }

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

@media (max-width: 640px) {
  .data-strip__inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .data-strip__inner::-webkit-scrollbar { display: none; }

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

  .footer-base { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .nav-toggle__text { display: none; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
  }

  .nav-rail[data-nav-ready] { transition: none; }
  .scroll-progress { display: none; }
}
