/* =========================================================
   /assets/site.css — C7南宮 呼号站 共享外壳
   夜间电台控制台 × 旧式收藏夹
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: #070B14;
}

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

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

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

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

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

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #070B14;
  --panel: #0E1729;
  --panel-2: #17233A;
  --steel: #2A3A57;
  --cyan: #35E0D0;
  --cyan-deep: #1B3A44;
  --orange: #FF7A2F;
  --sand: #C9A86A;
  --white: #E8EEF7;
  --muted: #8FA0B8;

  --line: #16223A;
  --line-soft: rgba(42, 58, 87, 0.55);

  --rail-w: 104px;
  --bar-h: 64px;
  --bar-h-stuck: 48px;

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t-base: 0.3s var(--ease);
}

/* ---------- base typography ---------- */
body {
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2.4rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.01em; }

p { max-width: 42em; }

strong { color: var(--white); font-weight: 700; }

::selection { background: var(--cyan); color: #04121a; }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.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: 10px; left: 10px;
  z-index: 200;
  pointer-events: auto;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04121a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform var(--t-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* ---- 品牌轨道 ---- */
.site-header__rail {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 20px;
  pointer-events: auto;
  background:
    linear-gradient(180deg, #101B2F 0%, #0C1526 46%, #0A1220 100%);
  border-right: 1px solid var(--line);
}

.site-header__rail::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 42%;
  background: linear-gradient(180deg, rgba(53, 224, 208, 0.55), transparent);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.brand__lamp {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.14), 0 0 12px rgba(53, 224, 208, 0.85);
  animation: lamp-breathe 3.2s ease-in-out infinite;
}

@keyframes lamp-breathe {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.14), 0 0 12px rgba(53, 224, 208, 0.85);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(53, 224, 208, 0.05), 0 0 5px rgba(53, 224, 208, 0.45);
  }
}

.brand__call {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand__rail {
  width: 18px;
  flex: 1 1 auto;
  min-height: 28px;
  background-image:
    repeating-linear-gradient(180deg, var(--steel) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(42, 58, 87, 0.8), rgba(42, 58, 87, 0));
  background-size: 10px 100%, 1px 100%;
  background-position: center top, center top;
  background-repeat: no-repeat;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.36em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--white);
}

.brand__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  color: var(--sand);
}

/* ---- 频道条 ---- */
.site-header__bar {
  position: absolute;
  top: 0; left: var(--rail-w); right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 28px;
  pointer-events: auto;
  background: rgba(7, 11, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: height var(--t-base), background var(--t-base);
}

.site-header__bar.is-stuck {
  height: var(--bar-h-stuck);
  background: rgba(7, 11, 20, 0.96);
}

.bar__progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 62%, var(--sand) 100%);
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ---- 导航 ---- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-radius: 2px;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__link::before {
  content: "";
  flex: 0 0 auto;
  width: 2px;
  height: 10px;
  background: var(--steel);
  transition: height var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(53, 224, 208, 0.07);
}

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

.nav__link[aria-current="page"]::before {
  height: 18px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(53, 224, 208, 0.75);
}

/* ---- 移动端展开按钮 ---- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--steel);
  border-radius: 2px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: border-color var(--t-fast), color var(--t-fast);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars i {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cyan);
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-fast);
}

.nav-toggle__bars i:nth-child(2) { width: 68%; }

.site-header__bar[data-open="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.site-header__bar[data-open="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
  width: 0;
}
.site-header__bar[data-open="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: linear-gradient(180deg, #0B1424 0%, #0E1729 100%);
  border-top: 1px solid var(--steel);
}

.site-footer__scale {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 11px);
  background-position: left center;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}

.site-footer__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.site-footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-transform: uppercase;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.foot-brand__lamp {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 224, 208, 0.8);
}

.foot-brand__call {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.foot-brand__name {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-footer__addr {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 26em;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 15px;
  color: var(--muted);
  transition: color var(--t-fast), transform var(--t-fast);
}

.foot-links a::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 8px; height: 1px;
  background: var(--steel);
  transition: width var(--t-fast), background var(--t-fast);
}

.foot-links a:hover { color: var(--cyan); transform: translateX(2px); }
.foot-links a:hover::before { width: 12px; background: var(--cyan); }

.site-footer__mail {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.02em;
  word-break: break-all;
  border-bottom: 1px dashed rgba(53, 224, 208, 0.4);
  padding-bottom: 2px;
}

.site-footer__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer__base {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.site-footer__copy,
.site-footer__filing {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================
   SHARED UTILITIES
   ========================================================= */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

.section {
  padding-block: 72px;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid--asym { grid-template-columns: 5fr 7fr; }
.grid--asym-alt { grid-template-columns: 7fr 5fr; }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--cyan);
}

.rule {
  border: 0;
  height: 1px;
  width: 100%;
  background: var(--line-soft);
  margin: 0;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn::before {
  content: "";
  flex: 0 0 auto;
  width: 3px; height: 14px;
  background: currentColor;
  opacity: 0.5;
  transition: height var(--t-fast), opacity var(--t-fast);
}

.btn:hover::before { height: 20px; opacity: 0.9; }
.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--cyan);
  color: #04121a;
}

.btn--signal:hover { background: #5FF0E3; }

.btn--orange {
  background: var(--orange);
  color: #1A0C02;
}

.btn--orange:hover { background: #FF9455; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--steel);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, 0.06);
}

/* ---- 面板 ---- */
.panel {
  position: relative;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--steel);
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---- 批次标签 ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sand);
  background: rgba(201, 168, 106, 0.09);
  border: 1px solid rgba(201, 168, 106, 0.42);
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--t-fast);
}

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

.breadcrumb__sep {
  color: var(--steel);
  user-select: none;
}

.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---- 视觉容器（供页面放内联 SVG / 界面切片） ---- */
.media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 62%, #0A1220 100%);
  border: 1px solid var(--steel);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(53, 224, 208, 0.07) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

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

.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---- 滚动显现协议 ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav__link { padding: 8px 8px; font-size: 13px; gap: 6px; }
  .site-header__bar { padding: 0 18px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }

  body {
    padding-left: 0;
    padding-top: 56px;
    font-size: 16px;
  }

  .site-header {
    inset: 0 0 auto 0;
    height: 56px;
    display: flex;
    align-items: stretch;
    pointer-events: auto;
    background: #0C1526;
    border-bottom: 1px solid var(--line);
  }

  .site-header__rail {
    position: static;
    width: auto;
    height: auto;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px;
    background: transparent;
    border-right: 0;
  }

  .site-header__rail::after { display: none; }

  .brand {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    width: auto;
    min-height: 0;
  }

  .brand__lamp { width: 8px; height: 8px; }
  .brand__call { font-size: 22px; }
  .brand__rail { display: none; }

  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .brand__note {
    writing-mode: horizontal-tb;
    font-size: 11px;
    letter-spacing: 0.18em;
    padding-left: 8px;
    border-left: 1px solid var(--steel);
  }

  .site-header__bar {
    position: static;
    height: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 12px 0 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header__bar.is-stuck { height: auto; background: transparent; }

  .bar__progress { display: none; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px 0 16px;
    background: #0C1526;
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .site-header__bar[data-open="true"] .nav { display: block; }

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

  .nav__link {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(42, 58, 87, 0.45);
    border-radius: 0;
  }

  .nav__link::before { width: 2px; height: 12px; }
  .nav__link[aria-current="page"]::before { height: 20px; }
  .nav__link:hover { background: rgba(53, 224, 208, 0.05); }

  .site-footer { margin-top: 64px; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 20px 32px;
  }

  .site-footer__base {
    padding: 18px 20px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wrap { padding-inline: 20px; }
  .section { padding-block: 48px; }

  .grid--asym,
  .grid--asym-alt { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand__note { display: none; }
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle__text { font-size: 12px; letter-spacing: 0.08em; }
  h1 { font-size: 2.1rem; }
  .panel { padding: 20px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@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;
    transition-delay: 0ms !important;
  }

  .brand__lamp,
  .foot-brand__lamp {
    animation: none;
    opacity: 1;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-header__bar { transition: none; }
  .bar__progress { transition: none; }
}
