/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  /* 配色系统：冷蓝科技 + 霓虹点缀 */
  --bg-primary: #0A0F1A;       /* 深空黑蓝背景 */
  --bg-secondary: #111827;     /* 卡片/区块背景 */
  --bg-surface: #1F2937;       /* 表层元素背景 */
  
  --text-main: #F0F4F8;        /* 主要文字 */
  --text-secondary: #9CA3AF;   /* 次要说明文字 */
  --text-muted: #6B7280;       /* 弱提示文字 */
  
  --accent-cyan: #00E5FF;      /* 核心霓虹色 */
  --accent-green: #00FF9D;     /* 辅助霓虹色 */
  --accent-blue: #3B82F6;      /* 科技蓝 */
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 229, 255, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --container-width: 1100px;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

/* =========================================
   通用布局与排版
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 标题下方装饰线 */
.title-accent {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 4px;
  margin: var(--space-sm) auto 0;
}

/* =========================================
   页头与导航
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
}

.nav-item {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-item:hover,
.nav-item[aria-current="page"] {
  color: var(--accent-cyan);
}

.nav-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* =========================================
   按钮组件
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #fff;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* =========================================
   卡片与网格
   ========================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  color: var(--accent-cyan);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #fff;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================
   表格样式
   ========================================= */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* =========================================
   FAQ 样式
   ========================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
  margin-top: 0;
  padding-top: 12px;
}

/* =========================================
   页脚
   ========================================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================================
   SVG 动效定义
   ========================================= */
/* 基础 SVG 容器 */
.svg-anim-container {
  width: 100%;
  height: auto;
  position: relative;
}

/* 网格节点依次点亮动画 */
@keyframes nodeGlow {
  0%, 100% { opacity: 0.1; stroke: var(--text-muted); }
  50% { opacity: 1; stroke: var(--accent-cyan); filter: drop-shadow(0 0 4px var(--accent-cyan)); }
}

.grid-node {
  transition: stroke 0.3s;
  pathLength: 1;
}

.node-1 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 0s; }
.node-2 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 0.5s; }
.node-3 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 1s; }
.node-4 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 1.5s; }
.node-5 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 2s; }
.node-6 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 2.5s; }
.node-7 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 3s; }
.node-8 { animation: nodeGlow 4s infinite ease-in-out; animation-delay: 3.5s; }

/* 连线描边动画 */
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.link-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawLine 6s infinite ease-in-out;
  stroke: var(--text-muted);
  stroke-width: 1;
  fill: none;
  opacity: 0.4;
}

/* 呼吸光环 */
@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 3s infinite ease-in-out;
}

/* 减少动态效果媒体查询 */
@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;
  }
  .grid-node, .link-line, .pulse-ring {
    animation: none !important;
    opacity: 1 !important;
    stroke: var(--accent-cyan) !important;
  }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-menu-btn { display: block; }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  section { padding: var(--space-md) 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}
