/* ============================================================
   平博看台 / PBO PLAY — 共享站点样式
   深夜看台墨绿 + 荧光信号黄绿 + 红黄牌功能色
   ============================================================ */

:root {
  --pitch-ink: #07130E;
  --pitch-deep: #0F2E22;
  --signal: #D8FF3E;
  --cold-white: #F4F7F1;
  --red-card: #E63B3B;
  --amber: #FFB000;
  --electric: #2BE4C0;
  --steel: #8B9A92;
  --charcoal: #141C18;
  --feature: #8B6CFF;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;

  --stroke: 3px;
  --hard-shadow: 7px 7px 0 var(--charcoal);
  --line-soft: 1px solid rgba(139, 154, 146, 0.22);
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cold-white);
  background:
    radial-gradient(110% 70% at 88% -8%, rgba(43, 228, 192, 0.07), transparent 62%),
    radial-gradient(95% 65% at 0% 0%, rgba(216, 255, 62, 0.05), transparent 58%),
    var(--pitch-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cold-white);
}

p { margin: 0 0 1em; }

img { max-width: 100%; }

ul, ol { margin: 0; }

a {
  color: var(--electric);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

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

/* ---------- 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

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

.rule {
  height: var(--stroke);
  border: 0;
  margin: 0;
  background: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: currentColor;
  flex: none;
}

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

/* ---------- 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--signal);
  color: var(--pitch-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 2px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
  transition: transform 0.18s ease-out;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--pitch-ink);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pitch-ink);
  background: var(--signal);
  border: 2px solid var(--charcoal);
  box-shadow: 5px 5px 0 var(--charcoal);
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
              background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.btn:hover {
  color: var(--pitch-ink);
  background: var(--cold-white);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--charcoal);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--charcoal);
}

.btn--ghost {
  color: var(--cold-white);
  background: transparent;
  border-color: var(--cold-white);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--pitch-ink);
  background: var(--cold-white);
  border-color: var(--cold-white);
  transform: none;
  box-shadow: 5px 5px 0 var(--charcoal);
}

/* ---------- 标签（红黄牌 / 专题） ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  border: 2px solid var(--charcoal);
  white-space: nowrap;
}

.tag--red { background: var(--red-card); color: #FFFFFF; }
.tag--amber { background: var(--amber); color: #241A00; }
.tag--purple { background: var(--feature); color: #0E0824; }
.tag--signal { background: var(--signal); color: var(--pitch-ink); }
.tag--outline {
  background: transparent;
  color: var(--cold-white);
  border-color: var(--steel);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background: var(--pitch-deep);
  border: var(--stroke) solid var(--charcoal);
  box-shadow: var(--hard-shadow);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

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

.breadcrumb li + li::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--steel);
}

.breadcrumb a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--electric);
  border-bottom-color: var(--electric);
}

/* ---------- 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--stroke) solid var(--charcoal);
  background:
    repeating-linear-gradient(135deg, rgba(216, 255, 62, 0.1) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--pitch-deep), var(--pitch-ink));
}

.img-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--band { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--pitch-ink);
  border-bottom: var(--stroke) solid var(--charcoal);
  box-shadow: inset 0 2px 0 var(--signal);
  transition: box-shadow 0.2s ease-out;
}

.site-header[data-stuck="true"] {
  box-shadow: inset 0 2px 0 var(--signal), 0 12px 0 -8px rgba(20, 28, 24, 0.95);
}

.header-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 6px clamp(18px, 4vw, 56px);
  background: var(--pitch-deep);
  border-bottom: 1px solid rgba(20, 28, 24, 0.85);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.rail-mark { color: var(--cold-white); }

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rail-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--signal);
  box-shadow: 0 0 0 2px rgba(216, 255, 62, 0.22);
}

.rail-cta {
  margin-left: auto;
  padding: 3px 12px 4px;
  background: var(--signal);
  color: var(--pitch-ink);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  transition: background 0.16s ease-out, color 0.16s ease-out;
}

.rail-cta:hover {
  background: var(--cold-white);
  color: var(--pitch-ink);
}

.scroll-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(139, 154, 146, 0.18);
}

.scroll-track-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--cold-white);
}

.brand:hover { color: var(--cold-white); }

.brand-mark {
  display: block;
  width: 10px;
  height: 36px;
  flex: none;
  background: var(--signal);
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 rgba(20, 28, 24, 0.9);
}

.brand-text { display: grid; gap: 4px; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.16s ease-out;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  text-decoration-color: var(--signal);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--charcoal);
  color: var(--cold-white);
  border: 2px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s ease-out, color 0.16s ease-out, background 0.16s ease-out;
}

.nav-toggle:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s ease-out;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--signal);
  color: var(--signal);
}

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

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

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

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li { display: flex; }

.nav-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 13px 9px;
  color: var(--cold-white);
  font-size: 14px;
  line-height: 1.15;
  text-decoration: none;
  border-left: var(--line-soft);
  border-bottom: 3px solid transparent;
  transition: background 0.16s ease-out, color 0.16s ease-out, border-color 0.16s ease-out;
}

.nav-list > li:last-child a {
  border-right: var(--line-soft);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--steel);
  transition: color 0.16s ease-out;
}

.nav-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--pitch-deep);
  border-bottom-color: var(--signal);
  color: var(--cold-white);
}

.nav-list a:hover .nav-index { color: var(--signal); }

.nav-list a[aria-current="page"] {
  background: var(--pitch-deep);
  border-bottom-color: var(--signal);
  color: var(--signal);
}

.nav-list a[aria-current="page"] .nav-index { color: var(--signal); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--pitch-deep);
  border-top: var(--stroke) solid var(--charcoal);
  color: var(--cold-white);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 46px,
    rgba(216, 255, 62, 0.05) 46px 48px
  );
}

.footer-canvas {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(32px, 5vw, 60px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(244, 247, 241, 0.16);
}

.footer-brand-block { min-width: 0; }

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-brandline::before {
  content: "";
  width: 20px;
  height: 3px;
  flex: none;
  background: var(--signal);
}

.footer-statement {
  margin: 16px 0 0;
  max-width: 20em;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--cold-white);
}

.footer-meter {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: 26px;
}

.meter-tick {
  display: block;
  width: 14px;
  height: 14px;
  background: rgba(244, 247, 241, 0.18);
}

.meter-tick--live {
  background: var(--signal);
  box-shadow: 3px 3px 0 rgba(20, 28, 24, 0.9);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  min-width: 0;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  border-bottom: 2px solid rgba(216, 255, 62, 0.28);
}

.footer-links {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--cold-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 154, 146, 0.16);
  transition: color 0.16s ease-out, padding-left 0.16s ease-out, border-color 0.16s ease-out;
}

.footer-links a::after {
  content: "›";
  color: var(--steel);
  transition: color 0.16s ease-out, transform 0.16s ease-out;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--signal);
  padding-left: 6px;
  border-bottom-color: var(--signal);
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  color: var(--signal);
  transform: translateX(3px);
}

.footer-contact { min-width: 0; }

.contact-row {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 154, 146, 0.16);
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cold-white);
  word-break: break-word;
}

.footer-note {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--steel);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 16px clamp(18px, 4vw, 56px) 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.footer-copy { margin: 0; }

.footer-icp {
  margin: 0;
  color: rgba(139, 154, 146, 0.92);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 154, 146, 0.4);
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--electric);
  border-bottom-color: var(--electric);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav-list a { padding: 8px 10px 9px; }
  .nav-label { font-size: 13.5px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    justify-content: flex-start;
    padding: 10px clamp(12px, 4vw, 20px) 16px;
    background: var(--pitch-ink);
    border-top: 2px solid var(--signal);
    border-bottom: var(--stroke) solid var(--charcoal);
    box-shadow: 0 14px 0 -6px rgba(20, 28, 24, 0.95);
  }

  .site-nav[data-open="true"] {
    display: block;
    animation: nav-drop 0.2s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list > li { display: block; }

  .nav-list a {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 6px;
    font-size: 16px;
    border-left: 0;
    border-bottom: 1px solid rgba(139, 154, 146, 0.16);
  }

  .nav-list > li:last-child a { border-right: 0; }

  .nav-list a[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--signal);
  }

  .nav-index { min-width: 24px; }

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

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

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .footer-canvas { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { margin-left: 0; }
}

@media (max-width: 560px) {
  .header-rail {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    gap: 6px 12px;
  }

  .rail-status { display: none; }
  .brand-sub { display: none; }
  .brand-mark { height: 30px; width: 8px; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-meter { gap: 4px; }
  .meter-tick { width: 12px; height: 12px; }
}

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