/* 设计变量 */
:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-primary: #2BAE4F;
  --color-primary-light: #3CC763;
  --color-accent: #F4A261;
  --color-accent-warm: #FFB86C;
  --color-gradient: linear-gradient(135deg, var(--color-accent-warm) 0%, var(--color-primary) 100%);
  --color-text: #1A1A1A;
  --color-text-muted: #555555;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --color-focus: #128C7E;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --container-max: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: clamp(1rem, 0.85rem + 0.4vw, 1.125rem);
}

/* 排版系统 */
h1, h2, h3, h4 {
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; margin-top: var(--space-xl); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }

p { margin-top: 0; margin-bottom: var(--space-md); color: var(--color-text-muted); }
strong { font-weight: 600; color: var(--color-text); }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

ul, ol { padding-left: 0; list-style: none; margin: 0; }
li { margin-bottom: var(--space-sm); position: relative; padding-left: 24px; }
li::marker { color: var(--color-primary); }

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

section {
  padding-block: clamp(60px, 10vw, 100px);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--space-lg); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-md); }

/* 头部与页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  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;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-group img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link[aria-current="page"], .nav-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(43, 174, 79, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 174, 79, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.03);
  border-color: var(--color-text-muted);
}

/* 卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--color-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.platform-table th, .platform-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.platform-table th {
  background: rgba(0,0,0,0.02);
  font-weight: 600;
  color: var(--color-text);
}

.platform-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

details[open] .faq-summary::after { transform: rotate(45deg); }

.faq-answer {
  padding-bottom: 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* SVG 基础 */
.svg-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-svg-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

/* SVG 动效关键帧 */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.star-point {
  animation: twinkle 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
}

.connect-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke: var(--color-primary-light);
  opacity: 0.6;
  animation: drawLine 8s ease-in-out infinite alternate;
}

.float-layer {
  animation: floatSoft 6s ease-in-out infinite;
}

@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;
  }
  .connect-line, .star-point, .float-layer {
    animation: none !important;
  }
}
