/* ================= 设计变量 ================= */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-border: #e2e5ea;
  --color-text: #1c1e21;
  --color-text-muted: #65676b;
  --color-brand: #00A884;
  --color-brand-hover: #008f6f;
  --color-brand-light: rgba(0, 168, 132, 0.08);
  --font-main: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4.5rem;
  --max-width: 1200px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ================= 基础重置与排版 ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.35; text-wrap: balance; margin-top: 0; margin-bottom: var(--spacing-sm); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; color: #0f1215; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; color: #111314; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: #232629; }
p { margin: 0 0 var(--spacing-sm); }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-brand-hover); text-decoration: underline; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; margin: 0; }
li { margin-bottom: 0.6rem; }

/* ================= 布局容器与网格 ================= */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-sm); }
section { padding: var(--spacing-lg) 0; }
section:nth-of-type(even) { background: var(--color-surface); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); }

/* ================= 页头与页脚 ================= */
header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: var(--spacing-xs); }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.nav ul { display: flex; list-style: none; padding: 0; gap: var(--spacing-md); margin: 0; }
.nav a { color: var(--color-text); font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav a[aria-current="page"], .nav a:hover { color: var(--color-brand); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--color-brand); transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.nav a:hover::after { width: 100%; }
footer { background: #101214; color: #aab0b5; padding: var(--spacing-lg) 0 var(--spacing-md); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-md); }
.footer-col h4 { color: #e4e6eb; margin-bottom: var(--spacing-sm); font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-bottom { text-align: center; margin-top: var(--spacing-lg); padding-top: var(--spacing-md); border-top: 1px solid #2c2e30; font-size: 0.875rem; color: #8c949a; }

/* ================= 按钮与交互组件 ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: none; font-size: 1rem; }
.btn-primary { background: var(--color-brand); color: #ffffff; box-shadow: 0 4px 10px rgba(0, 168, 132, 0.2); }
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 168, 132, 0.3); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--color-brand); color: var(--color-brand); }
.btn-outline:hover { background: var(--color-brand-light); text-decoration: none; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; border-radius: 2px; }

.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--spacing-md); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d0d7de; }

table { width: 100%; border-collapse: collapse; margin: var(--spacing-sm) 0; font-size: 0.95rem; }
th, td { padding: 0.9rem; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: var(--color-surface); font-weight: 600; color: #111314; }
tr:hover td { background: rgba(0, 168, 132, 0.03); }

/* ================= FAQ 组件 ================= */
details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--spacing-sm); overflow: hidden; background: var(--color-bg); }
summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; background: var(--color-surface); list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--color-brand); transition: transform 0.2s ease; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 1rem 1.2rem; margin: 0; border-top: 1px solid var(--color-border); color: var(--color-text-muted); line-height: 1.7; }

/* ================= SVG 动效体系 ================= */
.wave-path { fill: none; stroke: var(--color-brand); stroke-width: 3; stroke-linecap: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes wave-flow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0.2; }
  100% { stroke-dashoffset: 1; }
}
.animate-w1 { animation: wave-flow 6s ease-in-out infinite; opacity: 0.85; }
.animate-w2 { animation: wave-flow 7.5s ease-in-out infinite 1.2s; opacity: 0.55; }
.animate-w3 { animation: wave-flow 9s ease-in-out infinite 2.4s; opacity: 0.3; }

.section-divider { width: 100%; height: 50px; margin: 2rem 0; opacity: 0.4; }

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1.02); }
}
.icon-pulse { animation: pulse-opacity 5s ease-in-out infinite; 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; scroll-behavior: auto !important; }
  .animate-w1, .animate-w2, .animate-w3, .icon-pulse { animation: none; opacity: 0.7; transform: none; }
  .card:hover { transform: none; box-shadow: var(--shadow-card); }
}
