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

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --c-bg: #0D1B2A;
  --c-surface: #1A1A2E;
  --c-accent: #00F5D4;
  --c-accent-dim: rgba(0,245,212,0.15);
  --c-accent-glow: rgba(0,245,212,0.4);
  --c-text: #e8eaf0;
  --c-text-muted: #8a9ab5;
  --c-line: rgba(0,245,212,0.18);
  --c-card-line: #00F5D4;
  --nav-w: 220px;
  --nav-w-sm: 56px;
  --font-head: 'Poppins', 'Open Sans', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --radius: 10px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul, menu { list-style: none; }

/* ============================================================
   布局骨架
   ============================================================ */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-wrap {
  flex: 1;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============================================================
   左侧固定导航 — details > summary + menu > li > a
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidenav-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.brand-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-accent), #0D1B2A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-bg);
  letter-spacing: 0;
}

/* details/summary — nav */
.nav-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  border-bottom: 1px solid var(--c-line);
  min-height: 48px;
}

.nav-summary::-webkit-details-marker { display: none; }

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-details[open] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-details[open] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-details[open] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  padding: 12px 0;
  flex: 1;
}

.nav-menu li {
  width: 100%;
}

.nav-link {
  display: block;
  padding: 10px 20px;
  color: var(--c-text-muted);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  border-left: 3px solid transparent;
  min-height: 40px;
  line-height: 20px;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--c-accent);
  background: var(--c-accent-dim);
  border-left-color: var(--c-accent);
}

/* ============================================================
   Hero 区块 — 斜切底边 + 点阵底纹 + 满屏
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, var(--c-surface) 60%, #0D1B2A 100%);
}

/* 点阵底纹 */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,245,212,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  animation: dotPulse 6s ease-in-out infinite alternate;
}

@keyframes dotPulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.eyebrow-tag {
  display: inline-block;
  background: var(--c-accent-dim);
  color: var(--c-accent);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid var(--c-line);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-text {
  display: inline-block;
  border-right: 3px solid var(--c-accent);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 1.8s steps(6, end) forwards, blink 0.8s step-end 1.8s infinite;
  max-width: 0;
}

@keyframes typing {
  from { max-width: 0; }
  to   { max-width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: var(--c-accent); }
  50%       { border-color: transparent; }
}

.hero-desc {
  font-size: 18px;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 40px;
  border-radius: 30px;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  line-height: 20px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px var(--c-accent-glow);
  color: var(--c-bg);
}

/* 斜切底边 */
.hero-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* ============================================================
   内容舞台 — aside(左) + main
   ============================================================ */
.content-stage {
  display: flex;
  flex: 1;
  padding: 60px 40px 60px 32px;
  gap: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  align-items: flex-start;
}

/* aside 在内容左侧 */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.sidebar-inner {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.sidebar-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sidebar-title > span {
  display: inline-block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.sidebar-link {
  display: block;
  font-size: 13px;
  color: var(--c-text-muted);
  padding: 7px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  min-height: 34px;
  line-height: 20px;
}

.sidebar-link:hover {
  background: var(--c-accent-dim);
  color: var(--c-accent);
}

.sidebar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: badgePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--c-accent-glow); }
  50%       { box-shadow: 0 0 0 5px transparent; }
}

/* main > section > article */
.main-content {
  flex: 1;
  min-width: 0;
}

.page-article {
  width: 100%;
}

.content-body {
  width: 100%;
}

/* ============================================================
   正文内容样式（page.content 插入点）
   ============================================================ */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #fff;
}

.content-body h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 0; }
.content-body h2 { font-size: clamp(22px, 3vw, 32px); }
.content-body h3 { font-size: clamp(18px, 2.5vw, 24px); }

.content-body h2 > span {
  display: inline;
  background: linear-gradient(90deg, #fff, var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 18px;
}

.content-body a {
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-line);
}

.content-body a:hover {
  border-bottom-color: var(--c-accent);
}

.content-body ul,
.content-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.content-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--c-text);
}

/* article 内各区块卡片风格 */
.content-body article {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: 80px;
}

.content-body article:last-child {
  border-bottom: none;
}

/* 卡片 — 底部强调线 + 圆角10px */
.content-body .card,
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-body .card::after,
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}

.content-body .card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,245,212,0.12);
}

/* ============================================================
   页脚 — 四栏 + 大CTA + 版权一行
   footer address + ul
   ============================================================ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: 0;
  margin-top: auto;
}

.footer-cta-block {
  text-align: center;
  padding: 60px 32px 48px;
  background: linear-gradient(135deg, rgba(0,245,212,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--c-line);
}

.footer-cta-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-cta-title > span { display: inline; }
.footer-cta-title .accent {
  color: var(--c-accent);
}

.footer-cta-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  margin-bottom: 28px;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 44px;
  border-radius: 30px;
  min-height: 48px;
  line-height: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px var(--c-accent-glow);
  color: var(--c-bg);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col-title > span {
  display: inline-block;
}

.footer-col-text {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color var(--transition);
  display: block;
  min-height: 28px;
  line-height: 28px;
}

.footer-nav-list li a:hover {
  color: var(--c-accent);
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.footer-address a {
  color: var(--c-text-muted);
}

.footer-address a:hover {
  color: var(--c-accent);
}

.footer-legal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal-list li a {
  font-size: 13px;
  color: var(--c-text-muted);
  min-height: 28px;
  line-height: 28px;
  display: block;
}

.footer-legal-list li a:hover {
  color: var(--c-accent);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding: 20px 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* stagger list reveal */
.stagger-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .typed-text {
    animation: none !important;
    max-width: 100% !important;
    border-right: none !important;
  }
  .dot-grid {
    animation: none !important;
  }
  .badge-dot {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   article scroll-margin-top (for sticky nav)
   ============================================================ */
article[id] {
  scroll-margin-top: 80px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-w: var(--nav-w-sm);
  }

  .main-wrap {
    margin-left: var(--nav-w-sm);
  }

  .sidenav {
    width: var(--nav-w-sm);
  }

  .nav-details[open] .nav-menu {
    position: fixed;
    left: var(--nav-w-sm);
    top: 0;
    height: 100vh;
    width: 200px;
    background: var(--c-surface);
    border-right: 1px solid var(--c-line);
    overflow-y: auto;
    z-index: 899;
    padding-top: 16px;
  }

  .sidenav-brand {
    padding: 16px 8px;
  }

  .nav-summary {
    justify-content: center;
    padding: 14px 8px;
  }

  .content-stage {
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

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

  .sidebar-link {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-w: 48px;
    --nav-w-sm: 48px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .footer-cta-block {
    padding: 40px 20px 36px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }

  .content-stage {
    padding: 32px 16px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 15px;
  }
}

/* ============================================================
   无横向滚动保障
   ============================================================ */
body, .site-wrapper, .main-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

button[aria-expanded]{min-width:44px;min-height:44px}
