/* =========================================
   基础重置与设计变量
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 冷蓝科技 + 霓虹点缀配色 */
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #0055cc;
  --color-primary-hover: #003d99;
  --color-accent: #00e5ff;
  --color-accent-glow: rgba(0, 229, 255, 0.25);
  --color-text-main: #0f172a;
  --color-text-secondary: #475569;
  --color-border: #e2e8f0;
  --color-highlight: #0a2540;

  /* 排版与间距 */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --line-height-tight: 1.25;
  --line-height-normal: 1.65;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* 几何与阴影 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 10px 30px rgba(0, 85, 204, 0.12);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

/* =========================================
   通用布局
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xxl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 800px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-highlight);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

.bg-alt {
  background-color: #ffffff;
}

/* =========================================
   页头与页脚
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.brand-logo img {
  height: 32px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(0, 85, 204, 0.06);
}

.footer {
  background: var(--color-highlight);
  color: #cbd5e1;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* =========================================
   按钮与交互组件
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0077e6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 85, 204, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 85, 204, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(0, 85, 204, 0.05);
  transform: translateY(-1px);
}

/* =========================================
   卡片与网格
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-highlight);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =========================================
   表格样式
   ========================================= */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--color-highlight);
}

tr:last-child td {
  border-bottom: none;
}

/* =========================================
   FAQ (原生 details/summary)
   ========================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

details[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 85, 204, 0.08);
}

summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* =========================================
   动态分隔线
   ========================================= */
.divider-svg {
  width: 100%;
  height: 60px;
  display: block;
  margin: -1px 0;
  overflow: visible;
}

/* =========================================
   SVG 动效核心规则
   ========================================= */
.svg-node {
  fill: var(--color-primary);
  opacity: 0.3;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.25; transform: scale(0.95); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.node-anim-1 { animation: pulse-node 4.5s ease-in-out infinite 0.2s; }
.node-anim-2 { animation: pulse-node 4.5s ease-in-out infinite 0.9s; }
.node-anim-3 { animation: pulse-node 4.5s ease-in-out infinite 1.6s; }
.node-anim-4 { animation: pulse-node 4.5s ease-in-out infinite 2.3s; }

.draw-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  40%, 60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.path-anim-1 { animation: draw-stroke 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.path-anim-2 { animation: draw-stroke 7s cubic-bezier(0.4, 0, 0.2, 1) infinite 1s; }

@media (prefers-reduced-motion: reduce) {
  .svg-node, .draw-path {
    animation: none !important;
    opacity: 0.8;
  }
  html { scroll-behavior: auto; }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  section { padding: var(--space-xl) 0; }
}
