/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-bg: #FAFAF9;
  --color-surface: #FFFFFF;
  --color-text-primary: #18181B;
  --color-text-secondary: #3F3F46;
  --color-text-muted: #71717A;
  --color-border: #E4E4E7;
  --color-brand: #25D366;
  --color-brand-hover: #1EBE5A;
  --color-accent: #0EA5E9;
  --color-focus-ring: rgba(37, 211, 102, 0.35);

  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.08);

  --container-max: 1120px;
  --nav-height: 72px;
}

*, *::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(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); line-height: 1.3; margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem); line-height: 1.35; margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xxl) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-md); }
.text-center { text-align: center; }

/* ==================== 导航与页头页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.main-nav ul { display: flex; gap: var(--space-md); }
.main-nav a { font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--color-border); color: var(--color-text-primary); }
.main-nav a[aria-current="page"] { font-weight: 600; }

.site-footer {
  background: var(--color-text-primary); color: #A1A1AA;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { color: #FFFFFF; margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-col a { display: block; padding: 0.3rem 0; font-size: 0.9rem; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid #27272A; padding-top: var(--space-md); text-align: center; font-size: 0.85rem; }

/* ==================== 通用组件 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.btn-secondary { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text-secondary); }
.btn-secondary:hover { border-color: var(--color-text-secondary); background: var(--color-surface); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.card-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-md) 0; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F4F4F5; font-weight: 600; font-size: 0.9rem; color: var(--color-text-primary); }
td { font-size: 0.95rem; color: var(--color-text-secondary); }

details.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); background: var(--color-surface); }
details.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2.5rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--color-text-muted); transition: transform 0.2s; }
details.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq-item p { padding: 0 1.25rem 1rem; margin: 0; font-size: 0.95rem; }

/* ==================== SVG 动效系统 ==================== */
.svg-anim-base path, .svg-anim-base circle, .svg-anim-base rect {
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes svgFlowLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.anim-flow { animation: svgFlowLine 8s linear infinite; }
.anim-flow-slow { animation: svgFlowLine 14s ease-in-out infinite alternate; }
.anim-draw { animation: svgFlowLine 6s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .anim-flow, .anim-flow-slow, .anim-draw { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==================== 布局微调 ==================== */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.reverse .split-block { direction: rtl; }
.reverse .split-block > * { direction: ltr; }
.gallery-track { display: flex; gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-sm); scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { min-width: 280px; flex: 1; scroll-snap-align: start; }

/* 页面特有样式覆盖 */
.hero-section { position: relative; padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xxl); overflow: hidden; }
.hero-bg-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.feature-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--color-brand); }
.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: var(--space-md); }
.step-list li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: var(--color-text-primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }
.news-date { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: var(--space-xs); display: block; }
.view-btn { display: inline-block; margin-top: var(--space-sm); font-size: 0.9rem; font-weight: 500; color: var(--color-brand); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.view-btn:hover { border-bottom-color: var(--color-brand); }
.related-list a { display: flex; align-items: baseline; gap: var(--space-xs); padding: 0.6rem 0; border-bottom: 1px dashed var(--color-border); }
.related-list a::before { content: '→'; color: var(--color-text-muted); font-size: 0.9rem; }
.related-list a:hover { color: var(--color-brand); }
.download-area { background: #F0FDF4; border-radius: var(--radius-lg); padding: var(--space-xl); border: 1px solid #BBF7D0; }
.install-step { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); align-items: flex-start; }
.install-num { min-width: 24px; height: 24px; background: var(--color-brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
