/* ==========================================================================
   亿兆看台 · 共享样式 /assets/site.css
   夜间球场大屏 × 海岛档案柜
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

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

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

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

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

/* ---------- 2. 变量与色彩体系 ---------- */
:root {
  --night: #061826;
  --pitch: #0B2C44;
  --cyan: #1FF2D1;
  --cyan-soft: rgba(31, 242, 209, 0.14);
  --cyan-line: rgba(31, 242, 209, 0.32);
  --sunset: #FF8A3D;
  --signal: #FF3B5C;
  --archive: #F4EFE4;
  --ink: #111827;
  --mist: #9AB6C6;
  --slate: #0E3A4A;
  --paper: #F8FBF7;
  --line: rgba(154, 182, 198, 0.18);
  --line-strong: rgba(31, 242, 209, 0.32);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shell: 1200px;
  --gutter: clamp(18px, 4.2vw, 56px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono",
    Consolas, "Liberation Mono", monospace;

  --shadow-deep: 0 30px 64px -30px rgba(4, 14, 22, 0.85);
}

/* ---------- 3. 中文排版基调 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0;
}

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }

p {
  max-width: 42em;
}

strong {
  font-weight: 800;
  color: var(--cyan);
}

.section--paper strong {
  color: var(--slate);
}

/* ---------- 4. 焦点可见性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--paper :focus-visible {
  outline-color: var(--slate);
}

.btn--primary:focus-visible {
  outline-color: var(--paper);
}

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

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 11px 26px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: var(--cyan);
  color: var(--night);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- 6. 刊头 / 头部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  background:
    radial-gradient(120% 200% at 50% -70%, rgba(31, 242, 209, 0.24), transparent 62%),
    linear-gradient(180deg, #061826 0%, #08202F 58%, #0B2C44 100%);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.95);
}

.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter) 10px;
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: none;
}

.masthead__meta--right {
  justify-content: flex-end;
  color: var(--cyan);
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.24);
  animation: signal-pulse 2.6s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.24);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 59, 92, 0);
    opacity: 0.62;
  }
}

.brandmark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 242, 209, 0.24);
  background: rgba(11, 44, 68, 0.62);
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.brandmark:hover {
  border-color: var(--cyan);
  background: rgba(31, 242, 209, 0.12);
  transform: translateY(-1px);
}

.brandmark__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--cyan) 0%, #0FB8A2 100%);
  color: var(--night);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: 0 12px 26px -14px var(--cyan);
}

.brandmark__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.brandmark__name {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brandmark__latin {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid var(--cyan-line);
  background: rgba(31, 242, 209, 0.09);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.26s ease, opacity 0.2s ease, background 0.22s ease;
}

.masthead[data-open="true"] .nav-toggle {
  background: var(--cyan);
  border-color: var(--cyan);
}

.masthead[data-open="true"] .nav-toggle__bar {
  background: var(--night);
}

.masthead[data-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.masthead[data-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.masthead[data-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 导航 */
.nav {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav__link {
  display: inline-block;
  padding: 9px 19px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--mist);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(31, 242, 209, 0.1);
  border-color: rgba(31, 242, 209, 0.3);
}

.nav__link[aria-current="page"] {
  color: var(--night);
  background: var(--cyan);
  font-weight: 800;
  box-shadow: 0 12px 28px -16px rgba(31, 242, 209, 0.95);
}

/* 刷新进度光条 */
.refresh-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(154, 182, 198, 0.16);
  overflow: hidden;
}

.refresh-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--sunset) 62%, var(--signal) 100%);
}

/* ---------- 7. 通用结构 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(38px, 6vw, 82px);
  padding-bottom: clamp(38px, 6vw, 82px);
}

.section--paper {
  background: var(--archive);
  color: var(--ink);
  --line: rgba(17, 24, 39, 0.14);
  --line-strong: rgba(14, 58, 74, 0.3);
}

.section--pitch {
  background: linear-gradient(180deg, #0B2C44 0%, #08202F 100%);
}

.section--paper p {
  color: #1F2937;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section--paper .eyebrow {
  background: rgba(14, 58, 74, 0.08);
  border-color: rgba(14, 58, 74, 0.22);
  color: var(--slate);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 27px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  transition: transform 0.18s ease, background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cyan);
  color: var(--night);
  box-shadow: 0 18px 36px -20px rgba(31, 242, 209, 0.95);
}

.btn--primary:hover {
  background: #56F8DF;
}

.btn--sunset {
  background: var(--sunset);
  color: #1A0E05;
  box-shadow: 0 18px 36px -22px rgba(255, 138, 61, 0.95);
}

.btn--sunset:hover {
  background: #FFA166;
}

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

.btn--ghost:hover {
  background: rgba(31, 242, 209, 0.12);
  border-color: var(--cyan);
}

.section--paper .btn--ghost {
  border-color: rgba(17, 24, 39, 0.24);
  color: var(--ink);
}

.section--paper .btn--ghost:hover {
  background: rgba(17, 24, 39, 0.06);
  border-color: var(--ink);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding-top: 18px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(154, 182, 198, 0.5);
}

.breadcrumb__link {
  color: var(--mist);
  transition: color 0.18s ease;
}

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

.breadcrumb__current {
  color: var(--paper);
}

.section--paper .breadcrumb__current {
  color: var(--ink);
}

.section--paper .breadcrumb__list {
  color: rgba(17, 24, 39, 0.6);
}

/* ---------- 10. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
}

/* ---------- 11. 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 242, 209, 0.2);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 120% at 18% 8%, rgba(31, 242, 209, 0.22), transparent 58%),
    linear-gradient(135deg, #0B2C44 0%, #0E3A4A 55%, #061826 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(31, 242, 209, 0.1) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.55;
}

.media > img,
.media > picture > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 24, 38, 0.8);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: none;
}

.section--paper .media__caption {
  color: rgba(17, 24, 39, 0.62);
}

/* ---------- 12. 滚动显现协议 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.62s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.has-js [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 5vw, 68px) 0 28px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(90% 130% at 10% 0%, rgba(31, 242, 209, 0.17), transparent 58%),
    radial-gradient(75% 110% at 94% 6%, rgba(255, 138, 61, 0.14), transparent 60%),
    linear-gradient(180deg, #08202F 0%, #061826 56%, #04121C 100%);
}

.footer__signal {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan) 22%,
    var(--sunset) 62%,
    var(--signal) 100%
  );
  opacity: 0.92;
}

.footer__wrap {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer__brand {
  min-width: 0;
}

.footer__brand .brandmark {
  justify-self: start;
}

.footer__tagline {
  margin: 18px 0 22px;
  max-width: 24em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer__col {
  min-width: 0;
}

.footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mist);
}

.footer__list--contact {
  gap: 14px;
}

.footer__link {
  color: var(--mist);
  transition: color 0.18s ease;
}

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

.footer__label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(154, 182, 198, 0.72);
}

.footer__value {
  display: block;
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.6;
  word-break: break-word;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: clamp(28px, 4vw, 50px);
  padding-top: 20px;
  border-top: 1px solid rgba(154, 182, 198, 0.16);
}

.footer__legal {
  max-width: 46em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: rgba(154, 182, 198, 0.82);
}

/* ---------- 14. 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* ---------- 15. 响应式：移动端刊头 ---------- */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 118px;
  }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px var(--gutter);
    gap: 12px;
  }

  .masthead__meta {
    display: none;
  }

  .brandmark {
    justify-self: start;
    padding: 5px 16px 5px 6px;
    gap: 10px;
  }

  .brandmark__name {
    font-size: 18px;
  }

  .brandmark__glyph {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 11px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0 var(--gutter);
    border-top: 1px solid rgba(31, 242, 209, 0.16);
    transition:
      max-height 0.36s cubic-bezier(0.3, 0.8, 0.3, 1),
      opacity 0.22s ease,
      padding 0.3s ease;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0 18px;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    text-align: left;
  }

  .masthead[data-open="true"] .nav {
    max-height: 560px;
    opacity: 1;
    visibility: visible;
  }

  .grid--2,
  .grid--3,
  .grid--split {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

/* ---------- 16. 响应式：小屏 ---------- */
@media (max-width: 560px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .brandmark__latin {
    display: none;
  }

  .brandmark__name {
    font-size: 17px;
  }

  .btn {
    width: 100%;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }

  .footer__meta {
    flex-direction: column;
  }
}

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

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .signal-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.28);
  }

  .btn:hover,
  .brandmark:hover {
    transform: none;
  }
}
