/* ==========================================================================
   博万看台 · /assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、按钮、容器、基础组件
   ========================================================================== */

/* ---------- 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, ul, ol, li, figure, figcaption,
blockquote, dl, dd, fieldset {
  margin: 0;
}

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 矿物与信号色 */
  --ink: #0B1224;
  --ink-2: #111C33;
  --line: #22304A;
  --paper: #F3EFE6;
  --rock: #8E99AB;
  --rock-light: #C9D1DE;
  --orange: #FF6B2C;
  --cyan: #25D0E6;
  --cyan-deep: #0E7C8A;
  --yellow: #F2D24B;
  --moss: #6F8F6A;
  --clay: #B86B4B;
  --sand: #E8E2D6;
  --ink-text: #141A24;

  /* 结构 */
  --rail: 88px;
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2.4vw, 32px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .45);
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, .5);

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { max-width: 68ch; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. 排版工具 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .92;
}
.display--xl { font-size: clamp(40px, 7vw, 96px); }
.display--lg { font-size: clamp(32px, 4.6vw, 64px); }
.display--md { font-size: clamp(24px, 3vw, 40px); }

.t-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--rock-light);
  max-width: 62ch;
}

.stack > * + * { margin-top: clamp(14px, 2vw, 24px); }

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

@media (min-width: 1024px) {
  .shell {
    padding-left: calc(var(--rail) + 40px);
    padding-right: clamp(24px, 4vw, 64px);
  }
}

.section { padding-block: clamp(48px, 6vw, 96px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.zone-light {
  background: var(--sand);
  color: var(--ink-text);
  border-block: 1px solid rgba(20, 26, 36, .12);
}
.zone-light .lede { color: #4A5265; }
.zone-light a { color: var(--cyan-deep); }
.zone-light a:hover { text-decoration: underline; }

.zone-deep { background: var(--ink-2); }

/* ---------- 6. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease),
    color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn-signal {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
}
.btn-signal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .5);
}
.btn-signal:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
}

/* ---------- 8. 卡片 / 标签 / 面包屑 ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.card:hover {
  border-color: rgba(37, 208, 230, .55);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--rock);
}
.tag--live {
  border-color: var(--orange);
  color: var(--orange);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rock);
  padding-block: 20px;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 9. 图片容器基础 ---------- */
.media-figure { margin: 0; }

.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow-hard);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--rock);
  max-width: 60ch;
}

/* ---------- 10. 筛选按钮 ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rock);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}
.filter-btn:hover {
  color: var(--paper);
  border-color: var(--rock);
}
.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 18, 36, .96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.site-header[data-open] {
  background: var(--ink-2);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

/* 左侧品牌轨道 */
.header-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 10px;
  background: var(--ink-2);
  border-right: 1px solid var(--line);
}

.rail-mark {
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}

.rail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--yellow);
}

/* 头部主体 */
.header-body {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 36px);
  min-height: clamp(72px, 7vw, 96px);
  padding: 12px var(--gutter) 12px clamp(18px, 3vw, 40px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--paper);
  transition: color 160ms var(--ease);
}
.brand:hover .brand-name { color: var(--orange); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--rock);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--rock);
  transition: color 160ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 600;
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 右侧工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
}

.header-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--rock);
  white-space: nowrap;
  max-width: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  animation: bowan-pulse 2s var(--ease) infinite;
}

@keyframes bowan-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 44, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 107, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 28, 51, .8);
  color: var(--paper);
}

.nav-toggle-bars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--paper);
  transition: background-color 160ms var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--cyan));
  transition: width 80ms linear;
}

/* 跳至主内容 */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* 头部响应式 */
@media (max-width: 1023px) {
  .header-inner { grid-template-columns: 1fr; }

  .header-rail { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    padding: 8px var(--gutter) 28px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease),
      visibility 180ms var(--ease);
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    color: var(--paper);
    border-bottom: 1px solid rgba(34, 48, 74, .85);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--orange);
    box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 14px;
    border-bottom-color: rgba(255, 107, 44, .5);
  }
}

@media (max-width: 767px) {
  .header-body {
    gap: 10px;
    padding-inline: 16px;
    min-height: 68px;
  }
  .brand-name { font-size: 18px; letter-spacing: .08em; }
  .brand-sub { font-size: 9px; letter-spacing: .12em; }
  .header-live-text { display: none; }
  .header-tools .btn-signal { padding: 10px 14px; font-size: 12px; }
}

@media (max-width: 479px) {
  .header-tools .btn-signal { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--ink-2);
  border-top: 3px solid var(--orange);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(32px, 4vw, 56px);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  max-width: none;
}

.footer-brandline {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
  max-width: 32ch;
}

.footer-hours {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--rock);
  max-width: none;
}

.footer-feedback {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.footer-feedback:hover {
  border-color: var(--cyan);
  background: rgba(37, 208, 230, .08);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
  max-width: none;
}

.footer-col li + li { margin-top: 10px; }

.footer-col a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  opacity: .82;
  overflow-wrap: anywhere;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}
.footer-col a:hover {
  opacity: 1;
  color: var(--cyan);
}

.footer-col--contact a { font-family: var(--font-mono); font-size: 13px; }

.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(11, 18, 36, .55);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--rock);
  max-width: none;
}

.footer-mini {
  font-size: 12px;
  color: var(--rock);
  max-width: none;
}

.footer-rule-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-rule-links a {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--rock);
  transition: color 160ms var(--ease);
}
.footer-rule-links a:hover { color: var(--cyan); }

@media (min-width: 1024px) {
  .footer-top { padding-left: calc(var(--rail) + 40px); }
  .footer-base-inner { padding-left: calc(var(--rail) + 40px); }
}

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .live-dot { animation: none; }
  .card:hover { transform: none; }
  .btn-signal:hover { transform: none; }
  .scroll-progress-bar { transition: none; }
}
