:root {
  --bg-primary: #f9f8f5;
  --bg-surface: #ffffff;
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-tertiary: #777777;
  --border-subtle: #e5e3dd;
  --accent: #111111;
  --accent-hover: #2a2a2a;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.04);
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-header { margin-bottom: 48px; max-width: 800px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--text-secondary); max-width: 680px; }

/* Header & Footer */
header { position: sticky; top: 0; z-index: 100; background: rgba(249,248,245,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; }
.brand img { height: 26px; width: auto; }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"], nav a:hover { border-bottom-color: var(--accent); }

footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 18px; color: var(--text-primary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }
.copyright { text-align: center; font-size: 0.85rem; color: var(--text-tertiary); border-top: 1px solid var(--border-subtle); padding-top: 24px; }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; border: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }
.card-meta { margin-top: 14px; font-size: 0.85rem; color: var(--text-tertiary); }
.link-sm { font-size: 0.9rem; font-weight: 500; color: var(--accent); display: inline-block; margin-top: 10px; }
.link-sm:hover { text-decoration: underline; }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: #f6f5f2; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
td { font-size: 0.95rem; color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--bg-surface); }
summary { padding: 18px 24px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s; flex-shrink: 0; margin-left: 12px; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 18px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* SVG Animations */
.svg-container { width: 100%; height: auto; max-width: 640px; margin: 0 auto; }
.svg-container svg { width: 100%; height: auto; overflow: visible; }
.anim-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes sweep-highlight {
  0%, 100% { stroke-dashoffset: 1; opacity: 0; }
  10%, 90% { opacity: 0.85; }
  50% { stroke-dashoffset: 0; }
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes soft-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.sweep-line { animation: sweep-highlight 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.float-group { animation: gentle-float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pulse-circle { animation: soft-pulse 7s 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; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  nav ul { gap: 16px; flex-wrap: wrap; }
  .section { padding: 60px 0; }
}
