/* ==========================================================================
   顺发赛场 · 共享样式 /assets/site.css
   夜战画册：海河夜蓝底 · 珠宝色分区 · 粗野主义硬边 · 展览式留白
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --c-night: #0A1A2F;
  --c-deep: #0E3A3C;
  --c-orange: #FF6A1F;
  --c-green: #3DDC97;
  --c-wine: #7A1F35;
  --c-violet: #3B2A6B;
  --c-ivory: #F4F1EA;
  --c-steel: #8FA0B5;
  --c-silver: #C8D2DD;
  --c-ink: #061020;

  --f-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue Condensed",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --shell: min(1320px, calc(100% - 2.5rem));
  --hard-line: 2px solid var(--c-silver);
  --hard-shadow: 6px 6px 0 rgba(200, 210, 221, 0.22);
  --hard-shadow-hot: 6px 6px 0 rgba(255, 106, 31, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --mast-pad: 1.5rem;
}

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

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-night);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-nav-lock] { overflow: hidden; }

/* ---------- 3. 排版工具 ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: condensed;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display-xl {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.index-mark {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--c-steel);
}

.prose {
  max-width: 38rem;
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-silver);
}

.prose p + p { margin-top: 1.15rem; }

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section--deep { background: var(--c-deep); }
.section--wine { background: var(--c-wine); }
.section--violet { background: var(--c-violet); }

.section--ivory {
  background: var(--c-ivory);
  color: var(--c-night);
}

.section--ivory .lede,
.section--ivory .prose { color: #33465E; }

.grid {
  display: grid;
  gap: var(--gap, 1.5rem);
}

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

.rule {
  height: 2px;
  border: 0;
  background: var(--c-silver);
  opacity: 0.35;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border: 2px solid var(--c-silver);
  background: transparent;
  color: var(--c-ivory);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(200, 210, 221, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.btn--solid {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-ink);
}

.btn--solid:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-ink);
  box-shadow: 8px 8px 0 rgba(200, 210, 221, 0.45);
}

/* ---------- 6. 状态标签 ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.status--up { color: var(--c-green); }
.status--warn { color: #F09AAE; background: rgba(122, 31, 53, 0.35); }
.status--sport { color: var(--c-orange); }
.status--idle { color: var(--c-steel); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-steel);
}

.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--c-orange); }

.breadcrumb__sep {
  color: rgba(143, 160, 181, 0.5);
}

/* ---------- 8. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-deep);
  border: var(--hard-line);
  box-shadow: 8px 8px 0 rgba(200, 210, 221, 0.18);
}

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

.media-frame--slant {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.media-frame--dot {
  background-image: radial-gradient(rgba(200, 210, 221, 0.16) 1px, transparent 1px);
  background-size: 11px 11px;
}

/* ---------- 9. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--c-ink);
  background: var(--c-orange);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 10. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--c-night);
  border-bottom: var(--hard-line);
}

.masthead {
  position: relative;
  padding-block: var(--mast-pad);
  transition: padding 0.28s var(--ease);
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  max-height: 2.2rem;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), opacity 0.24s var(--ease);
}

.masthead__meta--end { color: var(--c-steel); letter-spacing: 0.2em; }

.masthead__core {
  margin-top: 0.6rem;
  text-align: center;
  transition: margin-top 0.28s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}

.brand__mark,
.brand__word {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(2.3rem, 6.4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  transition: font-size 0.28s var(--ease);
}

.brand__mark { color: var(--c-ivory); }
.brand__word { color: var(--c-orange); }

.brand:hover .brand__word { color: var(--c-green); }

.brand__line {
  margin-top: 0.35rem;
  max-height: 2.4rem;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-steel);
  transition: max-height 0.28s var(--ease), opacity 0.24s var(--ease),
    margin-top 0.28s var(--ease);
}

/* 移动端栏目开关 */
.nav-toggle {
  position: absolute;
  right: 0;
  top: calc(50% + 0.5rem);
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--c-silver);
  color: var(--c-ivory);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--c-orange);
}

.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 2px;
  background: var(--c-orange);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-orange);
  background: rgba(255, 106, 31, 0.14);
}

/* 栏目带 */
.site-nav {
  background: var(--c-deep);
  border-top: 1px solid rgba(200, 210, 221, 0.22);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav__item {
  border-left: 1px solid rgba(200, 210, 221, 0.18);
}

.site-nav__item:last-child {
  border-right: 1px solid rgba(200, 210, 221, 0.18);
}

.site-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.7rem 1.4rem 0.65rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ivory);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-nav__link::before {
  content: attr(data-flow);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-orange);
  opacity: 0.9;
}

.site-nav__link:hover {
  background: rgba(255, 106, 31, 0.12);
  color: #FFFFFF;
}

.site-nav__link[aria-current="page"] {
  background: rgba(255, 106, 31, 0.16);
  color: #FFFFFF;
  box-shadow: inset 0 -3px 0 var(--c-orange);
}

/* 滚动后压缩为细条 */
.site-header[data-compact="true"] { --mast-pad: 0.5rem; }

.site-header[data-compact="true"] .masthead__meta,
.site-header[data-compact="true"] .brand__line {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.site-header[data-compact="true"] .masthead__core { margin-top: 0; }

.site-header[data-compact="true"] .brand__mark,
.site-header[data-compact="true"] .brand__word {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
}

.site-header[data-compact="true"] .site-nav__link {
  padding-block: 0.45rem;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 7rem;
  padding-block: 0 1.6rem;
  background:
    linear-gradient(180deg, rgba(59, 42, 107, 0.4) 0%, rgba(10, 26, 47, 0) 42%),
    #050D18;
  border-top: var(--hard-line);
  color: var(--c-steel);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--c-orange) 0 26%,
    var(--c-green) 26% 38%,
    var(--c-violet) 38% 100%
  );
}

.footer-crest {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: end;
  padding-block: 3.4rem 2.6rem;
  border-bottom: 1px solid rgba(200, 210, 221, 0.18);
}

.footer-crest__brand {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ivory);
}

.footer-crest__line {
  margin-top: 0.9rem;
  max-width: 34rem;
  line-height: 1.8;
  color: var(--c-steel);
}

.footer-crest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.footer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.4rem 3rem;
  padding-block: 2.6rem;
  border-bottom: 1px solid rgba(200, 210, 221, 0.18);
}

.footer-map__title,
.footer-contact__title {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.footer-map__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1.6rem;
  margin-top: 1.1rem;
  font-size: 15px;
}

.footer-map__list a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.footer-map__list a:hover {
  color: var(--c-ivory);
  border-bottom-color: var(--c-orange);
  transform: translateX(3px);
}

.footer-contact__list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 1.1rem;
  margin-top: 1.1rem;
  font-size: 14px;
}

.footer-contact__list dt { color: var(--c-steel); white-space: nowrap; }
.footer-contact__list dd { color: var(--c-ivory); overflow-wrap: anywhere; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  padding-top: 1.4rem;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(143, 160, 181, 0.9);
}

/* ---------- 12. 滚动进度与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(143, 160, 181, 0.16);
  pointer-events: none;
}

.scroll-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-orange), var(--c-green));
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--c-silver);
  background: var(--c-night);
  color: var(--c-ivory);
  font-size: 11px;
  letter-spacing: 0.2em;
  box-shadow: 4px 4px 0 rgba(255, 106, 31, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s linear, box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--c-green);
  box-shadow: 4px 4px 0 var(--c-green);
}

.to-top__arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--c-orange);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-crest,
  .footer-body {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 900px) {
  :root { --shell: calc(100% - 2rem); }

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

  .masthead__core { text-align: left; padding-right: 6.5rem; }

  .brand__mark,
  .brand__word { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 85;
    border-top: var(--hard-line);
    border-bottom: var(--hard-line);
    border-left: 0;
    background: var(--c-night);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.34s var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: 78vh;
    overflow-y: auto;
  }

  .site-nav__list { flex-direction: column; }

  .site-nav__item {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 210, 221, 0.16);
  }

  .site-nav__item:last-child { border-right: 0; }

  .site-nav__link {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.95rem 1.1rem;
    font-size: 16px;
  }

  .site-nav__link::before { display: none; }

  .site-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-orange); }

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

@media (max-width: 620px) {
  body { font-size: 16px; }

  .masthead__meta { font-size: 10.5px; }

  .masthead__meta--end { display: none; }

  .masthead__core { padding-right: 5.6rem; }

  .btn {
    padding: 0.66rem 1rem;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

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

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

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

  .footer-contact__list dt { margin-top: 0.5rem; }

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

  .to-top { right: 0.8rem; bottom: 0.8rem; }
}

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

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .scroll-progress,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; }
}
