/* ===== 设计变量 ===== */
:root {
  --brand-primary: #25d366;
  --brand-dark: #075e54;
  --brand-bright: #128c7e;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eaeaea;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 2px; }

/* ===== Container ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
p { color: var(--gray-600); }
.text-muted { color: var(--gray-500); font-size: 0.9375rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--space-sm); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav a {
  font-size: 0.9375rem; color: var(--gray-600); font-weight: 500;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
.nav-download-btn {
  background: var(--brand-primary); color: #fff !important;
  padding: 0.4rem 1rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.875rem;
}
.nav-download-btn:hover { background: var(--brand-dark); color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-sm); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--gray-700); }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--gray-200); padding: var(--space-md);
    gap: var(--space-xs);
  }
  .nav.open { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(175deg, #ffffff 0%, var(--gray-100) 50%, var(--gray-50) 100%);
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 2rem; padding: 0.25rem 0.75rem; font-size: 0.8125rem;
  color: var(--gray-600); margin-bottom: var(--space-lg);
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--brand-primary); border-radius: 50%; }
.hero h1 { margin-bottom: var(--space-md); }
.hero-desc { font-size: 1.125rem; color: var(--gray-600); margin-bottom: var(--space-xl); max-width: 520px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.75rem 1.75rem; border-radius: var(--radius-lg); font-size: 1rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.25s;
  text-decoration: none; line-height: 1.4;
}
.btn-primary {
  background: var(--brand-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 4px 16px rgba(7, 94, 84, 0.35); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-500); color: var(--gray-900); }
.btn svg { width: 18px; height: 18px; }

/* Hero SVG */
.hero-svg-wrap { position: relative; z-index: 1; }
.hero-svg-wrap svg { width: 100%; max-width: 500px; margin: 0 auto; }

/* ===== Section通用 ===== */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--gray-900); color: var(--gray-300); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--gray-400); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { max-width: 640px; margin: 0 auto; }

/* ===== Value Block ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.value-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: var(--space-xl); transition: box-shadow 0.3s, transform 0.3s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(37,211,102,0.05));
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md);
}
.value-icon svg { width: 24px; height: 24px; stroke: var(--brand-primary); }
.value-card h3 { margin-bottom: var(--space-sm); }
.value-card p { font-size: 0.9375rem; }

/* ===== Features ===== */
.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.feature-item {
  display: flex; gap: var(--space-md); padding: var(--space-lg);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  transition: box-shadow 0.3s;
}
.feature-item:hover { box-shadow: var(--shadow-sm); }
.feature-num {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--brand-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
}
.feature-body h3 { margin-bottom: var(--space-xs); }
.feature-body p { font-size: 0.9375rem; }

/* ===== Interface Demo ===== */
.interface-demo {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  overflow: hidden; max-width: 860px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.demo-topbar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.75rem var(--space-lg); background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot-r { background: #ff5f57; }
.demo-dot-y { background: #febc2e; }
.demo-dot-g { background: #28c840; }
.demo-title-bar { flex: 1; text-align: center; font-size: 0.8125rem; color: var(--gray-500); }
.demo-body { display: flex; min-height: 320px; }
.demo-sidebar {
  width: 240px; border-right: 1px solid var(--gray-200);
  background: var(--gray-50); padding: var(--space-md); flex-shrink: 0;
}
.demo-sidebar-item {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm); border-radius: var(--radius-sm);
  margin-bottom: 2px; font-size: 0.8125rem; color: var(--gray-600);
}
.demo-sidebar-item.active { background: rgba(37,211,102,0.12); color: var(--brand-dark); font-weight: 500; }
.demo-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; }
.demo-main { flex: 1; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.msg-bubble {
  max-width: 70%; padding: 0.6rem 1rem; border-radius: var(--radius-lg);
  font-size: 0.875rem; line-height: 1.5;
}
.msg-in { background: var(--gray-100); color: var(--gray-700); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-out { background: var(--brand-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.demo-input-bar {
  margin-top: auto; display: flex; gap: var(--space-sm); align-items: center;
  padding: var(--space-sm) 0;
}
.demo-input-fake {
  flex: 1; height: 36px; background: var(--gray-100); border-radius: 2rem;
  border: 1px solid var(--gray-200);
}
.demo-send-fake { width: 36px; height: 36px; background: var(--brand-primary); border-radius: 50%; }
@media (max-width: 768px) {
  .demo-sidebar { display: none; }
  .features-list { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-svg-wrap { order: -1; }
}

/* ===== Scenarios ===== */
.scenario-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.scenario-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.3s;
}
.scenario-card:hover { box-shadow: var(--shadow-md); }
.scenario-visual {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}
.scenario-visual svg { width: 100px; height: 100px; }
.scenario-body { padding: var(--space-lg); }
.scenario-body h3 { margin-bottom: var(--space-sm); }
.scenario-body p { font-size: 0.9375rem; }
.scenario-steps { list-style: none; counter-reset: step; margin-top: var(--space-md); }
.scenario-steps li {
  counter-increment: step; padding: var(--space-xs) 0; font-size: 0.875rem;
  color: var(--gray-600); display: flex; gap: var(--space-sm); align-items: flex-start;
}
.scenario-steps li::before { content: counter(step); flex-shrink: 0; width: 20px; height: 20px; background: var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: var(--gray-700); margin-top: 2px; }
@media (max-width: 768px) {
  .scenario-cards { grid-template-columns: 1fr; }
}

/* ===== Quick Start ===== */
.quick-start-steps {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto; position: relative;
}
.qs-step {
  flex: 1; min-width: 180px; text-align: center; padding: var(--space-xl) var(--space-md);
  position: relative;
}
.qs-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-md);
}
.qs-step h3 { margin-bottom: var(--space-xs); }
.qs-step p { font-size: 0.875rem; }
.qs-arrow {
  position: absolute; top: 50%; right: -12px; transform: translateY(-50%);
  color: var(--gray-400); display: none;
}
@media (min-width: 769px) {
  .qs-arrow { display: block; }
}

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
.platform-table {
  width: 100%; border-collapse: collapse; font-size: 0.9375rem;
}
.platform-table th, .platform-table td {
  padding: var(--space-md) var(--space-lg); text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.platform-table th {
  background: var(--gray-100); font-weight: 600; color: var(--gray-700);
  white-space: nowrap;
}
.platform-table tr:hover td { background: var(--gray-50); }

/* ===== Safety ===== */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.safety-item {
  display: flex; gap: var(--space-md); padding: var(--space-xl);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.safety-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(37,211,102,0.15); display: flex; align-items: center; justify-content: center;
}
.safety-icon svg { width: 22px; height: 22px; stroke: var(--brand-primary); }
.safety-item h3 { color: #fff; margin-bottom: var(--space-xs); }
.safety-item p { font-size: 0.9375rem; color: var(--gray-400); }
@media (max-width: 768px) {
  .safety-grid { grid-template-columns: 1fr; }
}

/* ===== Download ===== */
.download-area {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.download-btn-large {
  display: inline-flex; align-items: center; gap: var(--space-md);
  padding: 1rem 2.5rem; font-size: 1.125rem;
}
.download-meta { margin-top: var(--space-lg); font-size: 0.8125rem; color: var(--gray-500); }
.install-steps {
  max-width: 560px; margin: var(--space-2xl) auto 0; text-align: left;
}
.install-steps ol { padding-left: var(--space-lg); }
.install-steps li { padding: var(--space-sm) 0; font-size: 0.9375rem; color: var(--gray-600); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  margin-bottom: var(--space-sm); background: #fff;
  transition: box-shadow 0.2s;
}
details:hover { box-shadow: var(--shadow-sm); }
summary {
  padding: var(--space-md) var(--space-lg); cursor: pointer;
  font-weight: 600; font-size: 0.9375rem; color: var(--gray-800);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(-45deg); transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--gray-200); }
details p { padding: var(--space-md) var(--space-lg); font-size: 0.9375rem; color: var(--gray-600); }

/* ===== News Cards ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.news-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.3s; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: var(--space-sm); }
.news-card h3 { font-size: 1rem; margin-bottom: var(--space-sm); line-height: 1.4; }
.news-card p { font-size: 0.875rem; flex: 1; }
.news-card .btn-link {
  margin-top: var(--space-md); font-size: 0.875rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--space-xs);
}
.news-card .btn-link svg { width: 14px; height: 14px; stroke: var(--brand-primary); transition: transform 0.2s; }
.news-card .btn-link:hover svg { transform: translateX(3px); }
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== Related Links ===== */
.related-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md);
}
.related-item {
  display: flex; gap: var(--space-sm); padding: var(--space-md);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.related-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-primary); }
.related-item .rel-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
}
.related-item .rel-icon svg { width: 16px; height: 16px; stroke: var(--brand-primary); }
.related-item .rel-text h4 { font-size: 0.9375rem; margin-bottom: 2px; }
.related-item .rel-text p { font-size: 0.8125rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.footer-brand img { width: 32px; height: 32px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.875rem; margin-bottom: var(--space-md); }
.footer-col a { display: block; font-size: 0.875rem; color: var(--gray-400); padding: var(--space-xs) 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--gray-700); padding-top: var(--space-lg);
  font-size: 0.8125rem; text-align: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ===== SVG Animations ===== */
@keyframes drawPath {
  0% { stroke-dashoffset: 1; }
  50%, 100% { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseRing {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.3); }
  100% { opacity: 0.6; transform: scale(1); }
}
.draw { animation: drawPath 3s ease-in-out infinite; }
.draw-delay-1 { animation-delay: 0.4s; }
.draw-delay-2 { animation-delay: 0.8s; }
.draw-delay-3 { animation-delay: 1.2s; }
.float { animation: floatNode 4s ease-in-out infinite; }
.float-delay { animation-delay: 1s; }
.pulse { animation: pulseRing 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .draw, .float, .pulse, .draw-delay-1, .draw-delay-2, .draw-delay-3, .float-delay {
    animation: none !important;
  }
}

/* ===== Utility ===== */
.svg-icon { display: inline-block; vertical-align: middle; }
.divider { height: 1px; background: var(--gray-200); margin: var(--space-2xl) 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.gap-lg { gap: var(--space-2xl); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); align-items: center; }
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.mb-lg { margin-bottom: var(--space-2xl); }
