/* ============================================================
   Site Kit CSS — instantly-weiki
   Deep Space / Neon Green / Signal Orange
   速度感 · 数据流 · Bento 信息板
   ============================================================ */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --deep-space: #0A1128;
  --deep-space-2: #0D1635;
  --deep-space-3: #132247;
  --neon-green: #39FF14;
  --signal-orange: #FF6E40;
  --warm-paper: #F5EFE6;
  --ink-muted: #9AA8BC;
  --text-glow: #F0F7FF;
  --border-grid: rgba(57, 255, 20, 0.25);
  --shadow-deep: rgba(0, 0, 0, 0.45);

  --font-head: 'Rajdhani', 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --header-h: 72px;
  --container-max: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 40px var(--shadow-deep);
  --speed-gradient: linear-gradient(90deg, transparent, var(--neon-green) 45%, var(--signal-orange) 80%, transparent);
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-glow);
  background-color: var(--deep-space);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- 3. 排版基础 ---------- */
::selection {
  background: rgba(57, 255, 20, 0.25);
  color: var(--text-glow);
}

/* ---------- 4. 工具类 ---------- */
.container {
  width: min(100% - 40px, var(--container-max));
  margin-inline: auto;
}

.main-content {
  min-height: 60vh;
  position: relative;
}

/* ---------- 5. 聚焦可见 ---------- */
:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- 6. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--neon-green);
  color: var(--deep-space);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 7. 阅读进度条 ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  pointer-events: none;
}

.progress-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-green), var(--signal-orange));
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
  transition: width 120ms ease-out;
}

/* ---------- 8. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-grid);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(57, 255, 20, 0.025) 18px 19px);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--speed-gradient);
  opacity: 0.55;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  transition: height 0.3s ease;
}

/* ---------- 9. 品牌 ---------- */
.site-brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  flex-shrink: 0;
  position: relative;
  padding-left: 14px;
}

.site-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--signal-orange);
  transform: skewX(-18deg);
  box-shadow: 0 0 8px rgba(255, 110, 64, 0.5);
}

.site-brand__zh {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-glow);
  white-space: nowrap;
}

.site-brand__en {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--neon-green);
  white-space: nowrap;
}

/* ---------- 10. LIVE 状态 ---------- */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.live-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-status__text {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--neon-green);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(57, 255, 20, 0); }
}

/* ---------- 11. 导航 ---------- */
.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__idx {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--neon-green);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text-glow);
}

.site-nav__link:hover .site-nav__idx {
  opacity: 1;
  transform: translateY(-1px);
}

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

.site-nav__link[aria-current="page"] .site-nav__idx {
  color: var(--signal-orange);
  opacity: 1;
}

.site-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
  transform: skewX(-30deg);
}

/* ---------- 12. 页头动作区 ---------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 命令搜索按钮 */
.cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cmd-btn:hover {
  border-color: var(--neon-green);
  color: var(--text-glow);
  background: rgba(57, 255, 20, 0.12);
}

.cmd-btn__icon {
  color: var(--neon-green);
}

.cmd-btn__label {
  letter-spacing: 0.5px;
}

.cmd-btn__key {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--neon-green);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ---------- 13. 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--signal-orange);
  color: var(--deep-space);
}

.btn--primary:hover {
  transform: translateY(-2px) skewX(-3deg);
  filter: drop-shadow(0 10px 20px rgba(255, 110, 64, 0.45));
}

.btn--ghost {
  background: transparent;
  color: var(--text-glow);
  border: 1px solid var(--border-grid);
}

.btn--ghost:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  transform: translateY(-2px);
}

.btn--cta {
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  filter: drop-shadow(0 4px 12px rgba(255, 110, 64, 0.3));
}

.btn--cta:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 26px rgba(255, 110, 64, 0.5));
}

/* ---------- 14. 汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid var(--border-grid);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.12);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-glow);
  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);
}

/* ---------- 15. 搜索面板 ---------- */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  background: rgba(13, 22, 53, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-grid);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.search-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.search-panel__label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.search-panel__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-panel__link {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-glow);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-panel__link:hover {
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.12);
  color: var(--neon-green);
}

/* ---------- 16. 移动端导航（≤960px） ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .live-status {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 17, 40, 0.98);
    padding: 32px 28px 60px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 8px;
    font-size: 20px;
  }

  .site-nav__idx {
    font-size: 12px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 8px;
    right: auto;
    width: 42px;
    bottom: 6px;
  }
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--deep-space);
  border-top: 1px solid rgba(57, 255, 20, 0.15);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--signal-orange));
  opacity: 0.7;
}

.site-footer__slant {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: repeating-linear-gradient(-45deg, transparent 0 20px, rgba(57, 255, 20, 0.05) 20px 24px);
  pointer-events: none;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding: 60px 0 44px;
}

.site-footer__trust {
  max-width: 480px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-muted);
}

.site-footer__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-glow);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
  position: relative;
}

.site-footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--signal-orange);
}

.site-footer__linklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  font-size: 15px;
  color: var(--ink-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link:hover {
  color: var(--neon-green);
  transform: translateX(4px);
}

.site-footer__phone,
.site-footer__address {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(57, 255, 20, 0.1);
}

.site-footer__copy,
.site-footer__icp {
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer__security {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer__security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
}

/* 页脚响应式 */
@media (max-width: 960px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__security {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 60px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* ---------- 18. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

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

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

.breadcrumb__sep {
  color: var(--neon-green);
  font-size: 12px;
}

/* ---------- 19. 章节容器 ---------- */
.section {
  padding: 64px 0;
  position: relative;
}

.section-head {
  margin-bottom: 40px;
}

.section-head__sub {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 8px;
}

.section-head__title {
  font-size: 36px;
  color: var(--text-glow);
  letter-spacing: 1px;
}

.section-head__desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 640px;
}

/* ---------- 20. Bento 信息板 ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  background: linear-gradient(145deg, rgba(19, 34, 71, 0.55), rgba(13, 22, 53, 0.92));
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--speed-gradient);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.5);
}

/* ---------- 21. 响应式图片占位 ---------- */
.media-frame--16-9,
.media-frame--4-3,
.media-frame--square,
.media-frame--card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--deep-space-2);
  border-radius: var(--radius-md);
}

.media-frame--16-9 { aspect-ratio: 16 / 9; }
.media-frame--4-3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--card { aspect-ratio: 3 / 4; }

/* ---------- 22. 标签与数据数字 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
}

.tag[data-accent="signal"] {
  background: rgba(255, 110, 64, 0.08);
  border-color: rgba(255, 110, 64, 0.35);
  color: var(--signal-orange);
}

.data-num {
  font-family: 'Courier New', monospace;
  font-size: 34px;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

/* ---------- 23. 分割线 ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-grid), transparent);
  border: 0;
}

.divider--speed {
  height: 6px;
  border: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(57, 255, 20, 0.28) 10px 12px, transparent 12px 24px);
}

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

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

/* ---------- 25. 移动端细节调整 ---------- */
@media (max-width: 1100px) {
  .site-nav__link {
    padding: 10px 8px;
    font-size: 15px;
  }

  .cmd-btn__label {
    display: none;
  }

  .cmd-btn {
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 10px;
  }

  .site-brand__zh {
    font-size: 19px;
    letter-spacing: 2px;
  }

  .site-brand__en {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .btn--cta {
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    padding: 8px 14px;
    font-size: 13px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .cmd-btn__key {
    display: none;
  }

  .section-head__title {
    font-size: 28px;
  }

  .data-num {
    font-size: 26px;
  }
}

/* ---------- 26. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .live-status__dot {
    animation: none;
  }

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

  .site-nav,
  .search-panel {
    transition: none;
  }

  .btn--cta:hover,
  .btn--primary:hover {
    transform: none;
  }
}
