/* ===== 设计变量 ===== */
:root {
  --bg-deep: #0A1128;
  --bg-panel: #14213D;
  --bg-elev: #1A2C4D;
  --green: #00FF88;
  --orange: #FF6B00;
  --white: #F0F4F8;
  --muted: #A0B0C0;
  --line: #2A3A5A;
  --black: #000000;
  --red: #E63946;
  --teal: #00B4D8;
  --container-w: 1240px;
  --header-h: 76px;
  --radius: 6px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --font-display: "Arial Black", "Franklin Gothic Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(0, 255, 136, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(0, 180, 216, 0.04) 0%, transparent 50%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: var(--green);
  color: var(--bg-deep);
}

/* ===== 排版 ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1875rem);
}

h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--teal);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 2rem 0;
}

/* ===== 正文容器 ===== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 2rem;
}

.section {
  padding: 4rem 0;
}

#main-content {
  display: block;
  padding-top: var(--header-h);
}

/* ===== 网格 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===== 焦点可见 ===== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== 跳过链接 ===== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--bg-deep);
  font-weight: 900;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled="true"] {
  background-color: rgba(10, 17, 40, 0.94);
  background-image:
    linear-gradient(rgba(42, 58, 90, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 90, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  z-index: 20;
  will-change: width;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.4rem;
  background: var(--green);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 5px;
  letter-spacing: -0.03em;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  right: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

/* ===== 汉堡按钮 ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 40, 0.5);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.18);
}

.btn-primary:hover {
  background: transparent;
  color: var(--green);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: var(--shadow-lg);
}

.card-accent {
  border-top: 4px solid var(--orange);
}

/* ===== 章节标签 ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 3px;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.tag-hot {
  color: var(--orange);
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.08);
}

/* ===== 数据组件 ===== */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.data-row dd {
  text-align: right;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.stat-unit {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

/* ===== 图片容器 ===== */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem 0.7rem;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.9), transparent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.breadcrumbs .separator {
  color: var(--line);
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  margin-top: 4rem;
  padding-top: 3.5rem;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(42, 58, 90, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 90, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  border-top: 6px solid var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-about {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 34rem;
}

.trust-statement {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--green);
  background: rgba(0, 255, 136, 0.06);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-contact {
  font-size: 0.92rem;
}

.footer-title {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-line {
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-line strong {
  color: var(--white);
}

.footer-legal {
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--green);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.5rem;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

.icp-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ===== 滚动显现 ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem 2rem 1.25rem;
    background: rgba(10, 17, 40, 0.98);
    border-top: 3px solid var(--green);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(42, 58, 90, 0.6);
    border-bottom-color: transparent;
  }

  .nav-links a[aria-current="page"] {
    color: var(--green);
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 600px) {
  .navbar {
    padding: 0 1.25rem;
    gap: 1rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 1.25rem;
  }
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover {
    transform: none;
  }
}
