:root {
  /* 色板 */
  --color-dark: #140E25;
  --color-paper: #F7F5F3;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #C8ED6E;
  
  /* 结构 Token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  
  /* 排版 Token */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --h1-size: clamp(2rem, 4.6vw, 3.4rem);
  --h2-size: clamp(1.6rem, 3vw, 2.4rem);
  --body-size: 16px;
  --body-lh: 1.65;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-family: var(--font-main); font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-text); background-color: var(--color-paper); -webkit-font-smoothing: antialiased; }

body { min-height: 100vh; display: flex; flex-direction: column; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }

/* 头部与导航 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 243, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(25, 21, 35, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-link { font-size: 0.95rem; font-weight: 500; padding: 8px 0; position: relative; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-brand); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--color-brand); border-radius: 2px; }
.header-cta { background: var(--color-accent); color: var(--color-dark); font-weight: 600; padding: 10px 18px; border-radius: var(--radius-btn); transition: transform 0.2s, filter 0.2s; }
.header-cta:hover { transform: translateY(-1px); filter: brightness(0.95); }

/* 底部 */
.site-footer { background: var(--color-dark); color: var(--color-paper); padding: 64px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px; color: var(--color-accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { opacity: 0.85; font-size: 0.9rem; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(247, 245, 243, 0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* 通用区块 */
.section { padding: var(--section-y) 0; }
.section.dark { background: var(--color-dark); color: var(--color-paper); }
.section.light { background: var(--color-paper); color: var(--color-text); }
.section-header { margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section.dark .eyebrow { color: var(--color-accent); }
.section.light .eyebrow { color: var(--color-brand); }
h1 { font-size: var(--h1-size); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
h2 { font-size: var(--h2-size); font-weight: 600; line-height: 1.25; margin-bottom: 24px; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
p { margin-bottom: 16px; max-width: 38em; }
.hl { font-weight: 700; }
.section.dark .hl { color: var(--color-accent); }
.section.light .hl { color: var(--color-brand); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-btn); cursor: pointer; border: none; transition: transform 0.2s, filter 0.2s, background 0.2s; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn-secondary { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.section.dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.btn-secondary:hover { background: rgba(25, 21, 35, 0.05); }
.section.dark .btn-secondary:hover { background: rgba(247, 245, 243, 0.08); }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片与网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.card { background: var(--color-paper); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s; }
.section.dark .card { background: var(--color-dark); border: 1px solid rgba(247, 245, 243, 0.1); box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -12px rgba(25, 21, 35, 0.4); }
.section.dark .card:hover { box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.6); }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); border: 1px solid rgba(25, 21, 35, 0.1); }
.table { width: 100%; border-collapse: collapse; min-width: 400px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(25, 21, 35, 0.08); }
.table th { font-weight: 700; background: rgba(25, 21, 35, 0.03); }
.table tr:last-child td { border-bottom: none; }
.table a { color: var(--color-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.table a:hover { text-decoration-thickness: 2px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid rgba(25, 21, 35, 0.1); border-radius: var(--radius-card); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid rgba(25, 21, 35, 0.08); }
.faq-item p { padding: 16px 20px; margin: 0; font-size: 0.95rem; line-height: 1.7; }
.section.dark .faq-item { border-color: rgba(247, 245, 243, 0.15); }
.section.dark .faq-item summary { border-bottom-color: rgba(247, 245, 243, 0.1); }

/* SVG 容器与基础 */
.svg-panel { width: 100%; height: auto; max-width: 100%; overflow: visible; }
.svg-panel svg { width: 100%; height: auto; display: block; }

/* SVG 动效关键帧 */
@keyframes flow-path {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
.anim-flow {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: flow-path 4s linear infinite;
}

@keyframes float-bubble {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-10px); opacity: 0.7; }
}
.anim-float { animation: float-bubble 6s ease-in-out infinite; }

@keyframes breathe-dots {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.anim-dots circle:nth-child(1) { animation: breathe-dots 2.4s ease-in-out infinite 0s; }
.anim-dots circle:nth-child(2) { animation: breathe-dots 2.4s ease-in-out infinite 0.4s; }
.anim-dots circle:nth-child(3) { animation: breathe-dots 2.4s ease-in-out infinite 0.8s; }

@keyframes slide-card {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.85; }
}
.anim-slide { animation: slide-card 5s ease-in-out infinite; }

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.anim-pulse { animation: pulse-ring 3s ease-in-out infinite; }

/* 统一变换原点 */
.anim-flow, .anim-float, .anim-slide, .anim-pulse, .anim-dots circle {
  transform-box: fill-box;
  transform-origin: center;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  .anim-flow, .anim-float, .anim-slide, .anim-pulse, .anim-dots circle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .nav-list { display: none; }
  .hero-layout { flex-direction: column-reverse; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-container { flex-direction: column; align-items: flex-start; }
  .flow-node { width: 100%; text-align: left; }
  .flow-arrow { transform: rotate(90deg); margin: 12px 0; }
}
