:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-primary: #0f172a;
  --color-accent: #f97316;
  --color-accent-hover: #ea580c;
  --color-accent-light: #fff7ed;
  --color-border: #e2e8f0;
  --color-border-focus: var(--color-accent);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-button: 0 2px 8px rgba(249, 115, 22, 0.25);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 排版系统 */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); letter-spacing: -0.01em; margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section--alt {
  background-color: var(--color-surface);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* 页头与页脚 */
.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-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-primary);
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-primary);
  background-color: var(--color-surface-alt);
}

.footer {
  background-color: var(--color-primary);
  color: #cbd5e1;
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 0.875rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #fff;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer__brand img {
  width: 28px;
  height: 28px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer a {
  color: #94a3b8;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #334155;
  text-align: center;
  color: #64748b;
}

/* 组件：按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-secondary);
  background-color: var(--color-surface);
}

/* 组件：卡片 */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* 组件：表格 */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-surface-alt);
  font-weight: 600;
  color: var(--color-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* 组件：FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  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: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-xs);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-item p {
  margin-top: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 流程步骤 */
.steps {
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 50%;
}

/* SVG 动效基础 */
.svg-animated {
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.wave-group line,
.wave-group path {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: wave-draw 6s ease-in-out infinite;
}

.wave-path--fast {
  animation-duration: 4s;
}

.wave-path--slow {
  animation-duration: 8s;
}

@keyframes wave-draw {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.wave-float {
  animation: wave-float 5s ease-in-out infinite alternate;
}

.wave-float--alt {
  animation-name: wave-float-alt;
  animation-delay: 1s;
}

@keyframes wave-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes wave-float-alt {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .wave-path,
  .wave-float,
  .wave-float--alt {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav { display: none; }
  .section { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
