/* assets/site.css 共享样式 */
:root {
  --c-green: #00FF87;
  --c-blue: #00D4FF;
  --c-red: #FF3B30;
  --c-bg: #0A0E14;
  --c-surface: #141A23;
  --c-border: #2A3441;
  --c-text: #F5F7FA;
  --c-muted: #A0AEBF;
  --c-green-dim: rgba(0, 255, 135, 0.15);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-data: "Roboto Mono", "Courier New", monospace;
  --header-h: 64px;
  --content-w: 1440px;
  --space: clamp(1rem, 2vw, 2.5rem);
}

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

body,
h1,
h2,
h3,
h4,
ul,
p {
  margin: 0;
}

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

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

a:hover {
  color: var(--c-green);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 82% 0%, rgba(0, 212, 255, 0.10), transparent 32rem),
    radial-gradient(circle at 18% 100%, rgba(0, 255, 135, 0.07), transparent 28rem),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.24) 0, rgba(0, 0, 0, 0.24) 1px, transparent 1px, transparent 6px);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--c-green);
  color: var(--c-bg);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0.5rem;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-bar {
  position: relative;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.97);
  border-bottom: 1px solid var(--c-border);
}

.header-frame {
  position: relative;
  max-width: var(--content-w);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1;
}

.brand:hover .brand-name {
  color: var(--c-blue);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-transform: uppercase;
}

.brand-code {
  font-family: var(--font-data);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--c-green);
}

.header-tagline {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-muted);
  border-left: 1px solid var(--c-border);
  padding-left: 0.75rem;
  white-space: nowrap;
}

.site-nav-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:hover {
  color: var(--c-green);
  background: var(--c-green-dim);
  border-color: rgba(0, 255, 135, 0.3);
}

.site-nav a[aria-current="page"] {
  color: var(--c-green);
  background: linear-gradient(180deg, rgba(0, 255, 135, 0.14), rgba(0, 255, 135, 0));
  box-shadow: inset 0 -2px 0 var(--c-green);
}

.nav-league {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 1px solid var(--c-border);
  padding-left: 0.75rem;
}

.league-chip {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--c-blue);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.4);
  padding: 0.18rem 0.42rem;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: rgba(20, 26, 35, 0.6);
  transition: transform 0.16s ease;
}

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

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

.header-status {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2.5rem);
  top: calc(100% + 0.4rem);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-data);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
  animation: status-blink 1.8s infinite ease-in-out;
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* 侧轨 */
.frame-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0.75rem;
  z-index: 5;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.frame-rail--right {
  left: auto;
  right: 0.75rem;
}

.frame-rail::before {
  content: "";
  position: absolute;
  top: var(--header-h);
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--c-border) 8%, var(--c-border) 92%, transparent);
}

.frame-rail::after {
  content: attr(data-text);
  writing-mode: vertical-rl;
  font-family: var(--font-data);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--c-muted);
  text-transform: uppercase;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-blue) 55%, var(--c-red) 100%);
  z-index: 300;
  pointer-events: none;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--c-border);
  background: rgba(10, 14, 20, 0.97);
  margin-top: auto;
}

.footer-frame {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--space) clamp(1rem, 3vw, 3rem) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
}

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

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
}

.footer-about {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 46ch;
}

.footer-trust {
  margin-top: 0.85rem;
  font-family: var(--font-data);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--c-blue);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-green);
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.footer-nav,
.legal-nav,
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-nav a,
.legal-nav a {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-muted);
  padding: 0.12rem 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-nav a:hover,
.legal-nav a:hover {
  color: var(--c-green);
  padding-left: 0.2rem;
}

.contact-list li {
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.6;
  padding-left: 0.1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--c-border);
  padding: 1rem 0;
}

.copyright,
.footer-keywords,
.footer-serial {
  font-family: var(--font-data);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

.footer-keywords {
  color: var(--c-blue);
  letter-spacing: 0.03em;
}

.footer-serial {
  color: var(--c-green);
  text-align: right;
}

/* ===== 通用内容容器 ===== */
.main-content {
  width: 100%;
  flex: 1;
}

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  color: var(--c-green);
  border-color: var(--c-green);
  background: rgba(0, 255, 135, 0.08);
}

.btn-primary {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-bg);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-bg);
}

.btn-outline {
  background: transparent;
  border-color: var(--c-green);
  color: var(--c-green);
}

.btn-outline:hover {
  background: var(--c-green);
  color: var(--c-bg);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.1rem;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 255, 135, 0.4);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0.5rem 0 0.8rem;
}

.section-subtitle {
  color: var(--c-muted);
  max-width: 60ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 2rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-blue);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--c-border);
}

.data-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.data-value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-text);
}

.data-value--accent {
  color: var(--c-green);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  min-height: 8rem;
  background:
    linear-gradient(135deg, rgba(0, 255, 135, 0.1), rgba(0, 212, 255, 0.12)),
    var(--c-surface);
}

.media-frame[data-ratio="4-3"] {
  aspect-ratio: 4 / 3;
}

.media-frame[data-ratio="1-1"] {
  aspect-ratio: 1 / 1;
}

.media-frame::before {
  content: "IMG";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--c-muted);
}

.media-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.5rem;
  background: rgba(10, 14, 20, 0.75);
  font-family: var(--font-data);
  font-size: 0.62rem;
  color: var(--c-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 滚动显现 */
html.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition-property: opacity, transform;
  transition-duration: 0.6s, 0.6s;
  transition-delay: calc(var(--reveal-index, 0) * 70ms), calc(var(--reveal-index, 0) * 70ms);
}

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

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .header-tagline {
    display: none;
  }

  .frame-rail {
    display: none;
  }

  .nav-league {
    display: none;
  }

  .site-nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    background: rgba(10, 14, 20, 0.99);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem;
  }

  .site-nav-wrap[data-open] {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-toggle {
    display: flex;
  }

  .header-status {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .footer-serial {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }

  .nav-toggle-line,
  .site-nav a,
  .footer-nav a,
  .legal-nav a,
  .btn,
  .skip-link {
    transition: none;
  }

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