/* 设计变量与基础重置 */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #9ca3af;
  --color-border: #e5e7eb;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-accent-subtle: #f0fdfa;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --container-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent-hover); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* 排版系统 */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-text-primary); text-wrap: balance; margin-bottom: 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; margin-top: 2em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text-secondary); }
li { margin-bottom: 0.5rem; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-header p { font-size: 1.1rem; margin-top: 0.75rem; }

/* 布局辅助 */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .grid-split { grid-template-columns: 1fr; } }
.mt-2 { margin-top: 2rem; }

/* 导航与页头页脚 */
header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background: rgba(255,255,255,0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; color: var(--color-text-primary); }
.brand img { height: 36px; width: auto; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { font-size: 0.95rem; color: var(--color-text-secondary); font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }

footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--color-text-primary); }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: 1.5rem; }

/* 组件：按钮 */
.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; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; border: none; white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: #ffffff; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-primary); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-subtle); }

/* 组件：卡片 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-grid { margin-top: 1.5rem; }
.news-card .date { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.6rem; display: block; font-weight: 500; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.news-card p { font-size: 0.95rem; margin-bottom: 1.2rem; line-height: 1.6; }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--color-surface); }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f3f4f6; font-weight: 600; color: var(--color-text-primary); }
tr:last-child td { border-bottom: none; }

/* 组件：FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.2s; }
details:hover { box-shadow: var(--shadow-card); }
summary { padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--color-text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--color-text-muted); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--color-border); background: #fafafa; }
.faq-content { padding: 1.25rem 1.5rem; color: var(--color-text-secondary); line-height: 1.7; }

/* SVG 动效系统 */
.svg-container { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border-radius: var(--radius-lg); }
.svg-container svg { width: 100%; height: 100%; max-width: 640px; }
.contour-line { fill: none; stroke-width: 1.5; opacity: 0.75; }
.contour-main { stroke: var(--color-accent); }
.contour-secondary { stroke: #94a3b8; }
.contour-faint { stroke: #cbd5e1; }

@keyframes contourFlow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.flow-active { animation: contourFlow 7s linear infinite; }
.flow-reverse { animation: contourFlow 9s linear infinite reverse; }
.pulse-gentle { animation: pulseOpacity 5s ease-in-out infinite alternate; }
@keyframes pulseOpacity {
  0% { opacity: 0.4; }
  100% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-active, .flow-reverse, .pulse-gentle, * { animation: none !important; transition: none !important; }
}

/* 界面示意辅助 */
.interface-mock { background: #f8fafc; border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--color-border); display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; min-height: 320px; }
.mock-panel { background: #ffffff; border-radius: 8px; padding: 1rem; border: 1px solid var(--color-border); }
.mock-area { background: #ffffff; border-radius: 8px; padding: 1.25rem; border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.85rem; }
.bubble { padding: 0.75rem 1.1rem; border-radius: 14px; max-width: 70%; font-size: 0.9rem; line-height: 1.5; }
.bubble-left { background: #e5e7eb; align-self: flex-start; }
.bubble-right { background: var(--color-accent); color: #ffffff; align-self: flex-end; }
@media (max-width: 640px) { .interface-mock { grid-template-columns: 1fr; } }

/* 列表标记定制 */
.step-list { list-style: none; margin-left: 0; counter-reset: step-counter; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1rem; }
.step-list li::before { counter-increment: step-counter; content: counter(step-counter); position: absolute; left: 0; top: 0.1rem; width: 24px; height: 24px; background: var(--color-accent); color: #fff; border-radius: 50%; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature-icon { width: 32px; height: 32px; stroke: var(--color-accent); fill: none; margin-bottom: 0.75rem; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-weight: 500; display: block; }
.related-list p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0.25rem 0 0; }
