/* === 设计变量 === */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-primary: #0b5ed7;
  --color-primary-dark: #0842a0;
  --color-accent: #00e5ff;
  --color-accent-glow: rgba(0, 229, 255, 0.25);
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-border: #cbd5e1;
  --color-faint: #e2e8f0;
  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 12px rgba(11, 94, 215, 0.06);
  --shadow-hover: 0 8px 24px rgba(11, 94, 215, 0.12);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
}

/* === 基础重置与排版 === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* 流体排版 */
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 2.75rem); font-weight: 700; line-height: 1.25; margin-bottom: var(--spacing-md); text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.3rem, 2rem); font-weight: 600; line-height: 1.3; margin-top: 0; margin-bottom: var(--spacing-sm); text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 1.8vw + 0.2rem, 1.5rem); font-weight: 600; line-height: 1.35; margin-top: 0; margin-bottom: var(--spacing-xs); }
p, li { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--color-text-secondary); margin: 0 0 var(--spacing-sm); }

/* === 布局容器 === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xl) 0; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }
.grid-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-md); }

/* === 导航与页脚 === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-faint); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo-group { display: flex; align-items: center; gap: var(--spacing-xs); }
.logo-group img { height: 32px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.1rem; color: var(--color-primary-dark); }
nav ul { display: flex; gap: var(--spacing-md); list-style: none; margin: 0; padding: 0; }
nav a { font-weight: 500; font-size: 0.95rem; padding: 6px 0; position: relative; }
nav a[aria-current="page"] { color: var(--color-primary); }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-accent); border-radius: 2px; }
.site-footer { background: var(--color-text); color: #cbd5e1; padding: var(--spacing-lg) 0 var(--spacing-md); margin-top: var(--spacing-xl); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--spacing-md); padding-bottom: var(--spacing-md); border-bottom: 1px solid #334155; }
.footer-col h4 { color: #fff; margin: 0 0 var(--spacing-xs); font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { text-align: center; font-size: 0.85rem; color: #64748b; padding-top: var(--spacing-md); }

/* === 按钮 === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; border: none; transition: all 0.25s ease; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; box-shadow: 0 4px 14px rgba(11, 94, 215, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11, 94, 215, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: rgba(11, 94, 215, 0.05); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); }

/* === 卡片与表格 === */
.card { background: var(--color-surface); border: 1px solid var(--color-faint); border-radius: var(--radius-md); padding: var(--spacing-md); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin-top: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: var(--spacing-sm) 0; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-faint); }
.data-table th { background: #f1f5f9; font-weight: 600; color: var(--color-text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td { vertical-align: middle; }

/* === FAQ === */
.faq-list details { background: var(--color-surface); border: 1px solid var(--color-faint); border-radius: var(--radius-md); margin-bottom: var(--spacing-sm); overflow: hidden; }
.faq-list summary { padding: 16px 20px; cursor: pointer; font-weight: 600; user-select: none; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.2rem; color: var(--color-primary); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 20px 16px; font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.7; }

/* === SVG 动效基础 === */
.svg-canvas { width: 100%; height: auto; overflow: visible; }
.star { fill: var(--color-accent); opacity: 0.4; }
.line { stroke: var(--color-primary); stroke-width: 1.5; fill: none; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.animate-twinkle { animation: twinkle 4s ease-in-out infinite; }
.animate-draw { animation: drawLine 6s ease-out forwards; }

/* === 无障碍与性能 === */
@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;
  }
  .animate-twinkle, .animate-draw { animation: none !important; opacity: 0.6; }
}
@media (max-width: 768px) {
  .grid-two { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .section { padding: var(--spacing-lg) 0; }
}
