@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-base: #000000;
  --bg-surface: #121212;
  --bg-card: #1a1a1a;
  --bg-elevated: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c8;
  --text-muted: #606878;
  --accent-blue: #3b82f6;
  --accent-neon: #00d4ff;
  --accent-gold: #f5c518;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;
  --border-color: #2a2a2a;
  --border-strong: #3a3a3a;
  --nav-width: 220px;
  --header-height: 60px;
  --radius: 4px;
  --border-width: 4px;
  --font-main: 'Be Vietnam Pro', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --glow-blue: 0 0 10px rgba(0, 212, 255, 0.4);
  --glow-gold: 0 0 10px rgba(245, 197, 24, 0.4);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 滚动补偿（固定侧栏导航）── */
section[id] {
  scroll-margin-top: 20px;
}

/* ═══════════════════════════
   HEADER & NAV
═══════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: var(--border-width) solid var(--border-strong);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.header-brand {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.brand-logo {
  max-width: 140px;
  height: auto;
  display: block;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-neon);
  text-shadow: var(--glow-blue);
  letter-spacing: 0.03em;
  display: block;
  line-height: 1.3;
}

.site-nav {
  flex: 1;
  padding: 16px 0;
}

.site-nav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav p a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  line-height: 1.4;
  align-items: center;
  display: flex;
}

.site-nav p a:hover,
.site-nav p a:focus {
  color: var(--accent-neon);
  border-left-color: var(--accent-neon);
  background: rgba(0, 212, 255, 0.06);
  text-shadow: var(--glow-blue);
  outline: none;
}

.site-nav p a:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: -2px;
}

/* ═══════════════════════════
   LAYOUT SHELL
═══════════════════════════ */
main {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

main > article.wrap {
  width: 100%;
}

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  border-bottom: var(--border-width) solid var(--border-strong);
}

.hero-article {
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
}

.hero-text {
  padding: 60px 48px 60px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--accent-neon);
  border: var(--border-width) solid var(--accent-neon);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  min-height: 48px;
}

.hero-cta:hover,
.hero-cta:focus {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-blue), inset 0 0 20px rgba(0, 212, 255, 0.05);
  outline: none;
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 3px;
}

/* Hero 右侧视觉 */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100vh;
  background: var(--bg-surface);
  border-left: var(--border-width) solid var(--border-strong);
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.08), inset 0 0 60px rgba(0, 212, 255, 0.04);
  position: absolute;
  animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes pulse-ring {
    0%, 100% { opacity: 0.4; }
  }
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 56px;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.badge-num {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-neon);
  text-shadow: var(--glow-blue);
  line-height: 1;
  letter-spacing: -0.05em;
}

.badge-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ═══════════════════════════
   ASIDE（左侧快捷栏）
═══════════════════════════ */
.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  position: relative;
}

/* aside 放在内容左侧：通过 DOM 顺序 + grid 实现 */
.site-aside {
  position: sticky;
  top: 0;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
  padding: 40px 20px;
  border-right: 2px solid var(--border-color);
  background: var(--bg-surface);
  flex-shrink: 0;
}

/* 重新排布 wrap 内的 aside 与 content-section */
.wrap {
  display: flex;
  flex-direction: column;
}

.wrap > .site-aside {
  display: none; /* 桌面端隐藏独立aside，在content-section grid里用 */
}

/* content-section 内部 grid 顺序 */
.content-section > .site-aside {
  display: block;
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-shadow: var(--glow-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.aside-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-nav li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav li a:hover,
.aside-nav li a:focus {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
  background: rgba(0, 212, 255, 0.05);
  outline: none;
}

/* ═══════════════════════════
   CONTENT SECTION
═══════════════════════════ */
.content-section {
  border-top: var(--border-width) solid var(--border-strong);
}

.content-article {
  padding: 56px 48px 64px;
  min-width: 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

/* ── page.content 内部排版 ── */
.page-content {
  max-width: 860px;
}

.page-content section {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.page-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: var(--border-width) solid var(--accent-neon);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 12px;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 1rem;
}

.page-content a {
  color: var(--accent-neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: border-color var(--transition), text-shadow var(--transition);
}

.page-content a:hover {
  border-bottom-color: var(--accent-neon);
  text-shadow: var(--glow-blue);
}

.page-content ul,
.page-content ol {
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.page-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--border-color);
  display: block;
  margin: 20px 0;
}

/* ── 卡片式子块 ── */
.page-content .card,
.page-content [class*="card"] {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.page-content .card:hover {
  border-color: var(--accent-neon);
}

/* ── 表格 ── */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.page-content th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-strong);
}

.page-content td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.page-content tr:hover td {
  background: var(--bg-surface);
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.site-footer {
  margin-left: 0;
  background: var(--bg-surface);
  border-top: var(--border-width) solid var(--border-strong);
  padding: 32px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.site-footer small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* ═══════════════════════════
   UTILITIES
═══════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════
   CONTENT SECTION GRID FIX
═══════════════════════════ */
/* wrap 包含：hero-section, content-section（content-section 内 grid aside + div）*/
.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
}

/* ═══════════════════════════
   RESPONSIVE — Tablet ≤1024px
═══════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --nav-width: 180px;
  }

  .hero-text {
    padding: 40px 32px 40px 36px;
  }

  .content-article {
    padding: 40px 32px 48px;
  }

  .content-section {
    grid-template-columns: 160px 1fr;
  }
}

/* ═══════════════════════════
   RESPONSIVE — Mobile ≤768px
═══════════════════════════ */
@media (max-width: 768px) {
  :root {
    --nav-width: 0px;
  }

  html {
    font-size: 16px;
  }

  /* ── 侧栏变顶栏 ── */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: var(--border-width) solid var(--border-strong);
    padding: 0 16px;
    overflow: visible;
    z-index: 200;
  }

  .header-brand {
    padding: 12px 0;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    margin-right: 12px;
    padding-right: 16px;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: 1rem;
  }

  .site-nav {
    flex: 1;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .site-nav p {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    white-space: nowrap;
  }

  .site-nav p a {
    padding: 0 12px;
    height: 56px;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 0.78rem;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-nav p a:hover,
  .site-nav p a:focus {
    border-left-color: transparent;
    border-bottom-color: var(--accent-neon);
  }

  section[id] {
    scroll-margin-top: 60px;
  }

  main {
    margin-left: 0;
    padding-top: 60px;
  }

  /* ── Hero ── */
  .hero-section {
    min-height: 100vh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 100vh;
  }

  .hero-text {
    padding: 48px 24px 32px;
    order: 1;
  }

  .hero-media {
    order: 2;
    min-height: 260px;
    border-left: none;
    border-top: var(--border-width) solid var(--border-strong);
  }

  .glow-ring {
    width: 200px;
    height: 200px;
  }

  .badge-num {
    font-size: 3.5rem;
  }

  /* ── Content ── */
  .content-section {
    grid-template-columns: 1fr;
  }

  .site-aside {
    position: static;
    max-height: none;
    padding: 24px 20px;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
  }

  .aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .aside-nav li a {
    font-size: 0.75rem;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    min-height: 36px;
    border-radius: 2px;
  }

  .content-article {
    padding: 32px 20px 48px;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════
   RESPONSIVE — Small ≤480px
═══════════════════════════ */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

  .page-content h2 {
    font-size: 1.2rem;
  }

  .page-content p {
    font-size: 0.95rem;
  }
}
