/* 设计变量 */
:root {
  --color-primary: #F97316;
  --color-primary-hover: #EA580C;
  --color-bg-hero: #0B1120;
  --color-bg-footer: #0F172A;
  --color-bg-section: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-border: #E2E8F0;
  --color-accent-glow: rgba(249, 115, 22, 0.15);
  --font-display: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg-section);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 排版系统 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}
.section-desc {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 布局网格 */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 页头页脚 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.8rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--color-text-main); }
.brand-logo img { height: 32px; width: auto; }
.brand-logo span { font-weight: 600; font-size: 1.1rem; }
.main-nav { display: none; gap: 1.5rem; list-style: none; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  text-decoration: none; color: var(--color-text-muted); font-size: 0.95rem;
  padding: 0.4rem 0; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-actions { display: flex; gap: 0.8rem; align-items: center; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  border: none; outline: none;
}
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 4px 12px var(--color-accent-glow);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--color-text-main); border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 卡片 */
.card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--color-primary); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.3; }
.card p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; }

/* 表格 */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F1F5F9; font-weight: 600; font-size: 0.95rem; color: var(--color-text-main); }
td { font-size: 0.95rem; color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; }
details {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; transition: box-shadow 0.2s;
}
details[open] { box-shadow: var(--shadow-card); border-color: var(--color-primary); }
summary {
  font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; padding: 0.2rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--color-primary); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
.details-content { margin-top: 0.8rem; color: var(--color-text-muted); line-height: 1.7; font-size: 0.98rem; }

/* 分割装饰 */
.divider-svg { width: 100%; max-width: 1200px; height: 80px; margin: 2rem auto; display: block; }
.wave-path { fill: none; stroke: currentColor; stroke-width: 2; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim-wave-1 { animation: wave-drift 8s ease-in-out infinite alternate; }
.anim-wave-2 { animation: wave-drift 11s ease-in-out infinite alternate-reverse; animation-delay: -3s; }
.anim-wave-3 { animation: wave-drift 14s ease-in-out infinite alternate; animation-delay: -6s; }
@keyframes wave-drift {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wave-path { stroke-dashoffset: 0; animation: none; }
}

/* 页脚 */
.site-footer { background: var(--color-bg-footer); color: #94A3B8; padding: 3rem 0; margin-top: 4rem; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.8rem; display: block; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #1E293B; text-align: center; }

/* 步骤指示 */
.step-list { counter-reset: step-counter; list-style: none; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1.2rem; }
.step-list li::before {
  counter-increment: step-counter; content: counter(step-counter);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  background: var(--color-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem;
}
.step-title { font-weight: 600; color: var(--color-text-main); display: block; margin-bottom: 0.2rem; }
.step-desc { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; }

/* 焦点样式增强 */
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
