/* ================= 设计变量 ================= */
:root {
  --color-bg: #FBF9F6;
  --color-surface: #FFFFFF;
  --color-primary: #2DC65D;
  --color-primary-dark: #1DA851;
  --color-accent-warm: #F4A261;
  --color-gradient-hero: linear-gradient(135deg, rgba(244,162,97,0.12) 0%, rgba(45,198,93,0.08) 100%);
  --color-text: #1A1A1C;
  --color-text-secondary: #555558;
  --color-border: #E8E8EA;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --space-section: clamp(3rem, 8vw, 6rem);
  --space-element: 1.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-card: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= 基础重置与排版 ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }

/* 流体排版 */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; line-height: 1.2; margin-bottom: var(--space-element); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.mono-label { font-family: var(--font-mono); font-size: 0.875rem; color: var(--color-text-secondary); letter-spacing: 0.05em; }

/* 容器与网格 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.grid-auto { display: grid; gap: var(--space-element); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.section-padding { padding: var(--space-section) 0; }
.bg-surface { background-color: var(--color-surface); }
.bg-soft { background: var(--color-gradient-hero); }

/* ================= 导航与页脚 ================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,249,246,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: 72px; }
.brand-logo img { height: 40px; width: auto; display: block; }
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-weight: 500; color: var(--color-text-secondary); position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--color-primary); border-radius: 2px; }

.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: 3rem 0; margin-top: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-copy { text-align: center; margin-top: 2rem; font-size: 0.875rem; color: var(--color-text-secondary); }

/* ================= 组件：按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all var(--transition-base); border: none; outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(45,198,93,0.4); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-warm) 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(45,198,93,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,198,93,0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ================= 组件：卡片与信息块 ================= */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1rem; stroke: var(--color-primary); stroke-width: 1.5; fill: none; }
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { margin-bottom: 0.5rem; }
.news-content { flex: 1; display: flex; flex-direction: column; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; margin-top: 1rem; color: var(--color-primary); }
.link-arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }

/* ================= 组件：表格 ================= */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.styled-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.styled-table th, .styled-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.styled-table th { background: #F5F5F7; font-weight: 600; color: var(--color-text); }
.styled-table tr:last-child td { border-bottom: none; }

/* ================= 组件：FAQ ================= */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; cursor: pointer; font-weight: 500; list-style: none; position: relative;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--color-text-secondary); transition: transform var(--transition-base); }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.25rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ================= SVG 动效系统 ================= */
.svg-anim-container { position: relative; overflow: hidden; }
.contour-path {
  fill: none; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; pathLength: 1;
}
.path-green { stroke: rgba(45,198,93,0.25); }
.path-orange { stroke: rgba(244,162,97,0.25); }
.path-blue { stroke: rgba(100,149,237,0.2); }
.flow-animated { animation: flow-contour 8s linear infinite; }
.flow-reversed { animation: flow-reverse 10s linear infinite; }
.pulse-opacity { animation: pulse-fade 5s ease-in-out infinite; }

@keyframes flow-contour {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes flow-reverse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 减少动态效果适配 */
@media (prefers-reduced-motion: reduce) {
  .flow-animated, .flow-reversed, .pulse-opacity { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ================= 响应式微调 ================= */
@media (max-width: 768px) {
  .nav-list { gap: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
}
