/**
 * 爱加速 (aijiasu.homes) - 核心基础样式表
 * 架构：企业级去中心化零信任网络 (Zero-Trust Mesh)
 * 视觉主调：黑曜石极夜钛黑底色 + 电离矩阵翡翠绿 / 赛博量子青高光渐变
 */

:root {
  /* 基础极夜色系 */
  --bg-deep: #06090d;
  --bg-surface: #0b1118;
  --bg-surface-elevated: #111a24;
  --bg-card: rgba(13, 22, 32, 0.82);
  --bg-glass: rgba(11, 18, 26, 0.72);
  --bg-glass-heavy: rgba(8, 14, 20, 0.92);

  /* 电离高光色系 (Matrix Emerald & Cyber Quantum Cyan) */
  --emerald-primary: #10b981;
  --emerald-hover: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.28);

  --cyan-primary: #06b6d4;
  --cyan-hover: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --cyan-subtle: rgba(6, 182, 212, 0.12);
  --cyan-border: rgba(6, 182, 212, 0.28);

  --gradient-plasma: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(180deg, #0b1219 0%, #06090d 100%);
  --gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(6, 182, 212, 0.2) 100%);

  /* 文字颜色 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #34d399;
  --text-cyan: #22d3ee;

  /* 边框与阴影 */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(16, 185, 129, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-plasma: 0 0 25px rgba(16, 185, 129, 0.22);
  --shadow-cyan: 0 0 25px rgba(6, 182, 212, 0.22);

  /* 字体族系 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, Menlo, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 82% 28%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    var(--bg-deep);
}

/* 极客微矩阵网格底纹 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* 容器规范 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border-active);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* 品牌 Logo 规范：严格无域名后缀 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px solid var(--emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-plasma);
  position: relative;
}

.logo-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--emerald-hover);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.logo-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-plasma);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-hover);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-plasma);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--emerald-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 按钮通用规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-plasma);
  color: #04100c;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
  color: #020906;
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald-border);
  color: var(--emerald-hover);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* 移动端菜单开关 */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* 模块通用标题与排版 */
.section {
  padding: 90px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-subtle);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-hover);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title .highlight {
  background: var(--gradient-plasma);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* 页脚标准：严禁出现 XML 网站地图 文本链接 */
.site-footer {
  background: #04070a;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--emerald-hover);
  padding-left: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--emerald-hover);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* 响应式断点 */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-active);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

