/* ===== 设计变量 ===== */
:root {
  --brand-green-dark: #075e54;
  --brand-green: #128c7e;
  --brand-lime: #25d366;
  --brand-lime-light: #7be7a5;
  --brand-bg: #f0fdf4;
  --brand-bg-alt: #ffffff;
  --brand-text: #1a1a1a;
  --brand-text-muted: #5a6b63;
  --brand-border: rgba(18, 140, 126, 0.15);
  --brand-shadow: 0 4px 24px rgba(7, 94, 84, 0.08);
  --brand-radius: 12px;
  --brand-radius-lg: 20px;

  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 1120px;
}

/* ===== 重置与基础排版 ===== */
*, *::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(--brand-text);
  background: var(--brand-bg);
  line-height: 1.7;
  font-size: clamp(15px, 1.2vw, 17px);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--brand-lime); }
a:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===== 容器 & 布局 ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}
.section--alt {
  background: var(--brand-bg-alt);
}
.section--hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  background: linear-gradient(165deg, var(--brand-bg) 0%, #e8f5ee 100%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-green-dark);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}
.section-desc {
  color: var(--brand-text-muted);
  max-width: 640px;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  margin-bottom: var(--space-lg);
}

/* ===== 页头 ===== */
.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(--brand-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-green-dark);
}
.site-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.92rem;
  color: var(--brand-text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(37, 211, 102, 0.1);
  color: var(--brand-green-dark);
}
.site-nav .nav-download {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-lime));
  color: #fff;
  font-weight: 600;
}
.site-nav .nav-download:hover {
  opacity: 0.9;
  color: #fff;
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-inner { height: 56px; }
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--brand-green-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}
.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--brand-lime); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-lime));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border: 1.5px solid var(--brand-green);
}
.btn-outline:hover {
  background: rgba(18, 140, 126, 0.06);
}
.btn--lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* ===== Hero ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-green-dark);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--brand-text-muted);
  margin-bottom: var(--space-md);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ===== 产品价值 ===== */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.value-card {
  background: var(--brand-bg-alt);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: var(--space-md);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.value-card:hover {
  box-shadow: var(--brand-shadow);
  border-color: var(--brand-lime-light);
}
.value-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-xs);
}
.value-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--brand-green);
  stroke-width: 1.5;
  fill: none;
}
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 6px;
}
.value-card p {
  font-size: 0.93rem;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

/* ===== 核心功能 ===== */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}
.feature-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-bg-alt);
  border-radius: var(--brand-radius);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.feature-item:hover {
  border-color: var(--brand-border);
  background: #f7fdf9;
}
.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--brand-lime);
  stroke-width: 1.8;
  fill: none;
}
.feature-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

/* ===== 界面示意 ===== */
.mockup-area {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}
.mockup-frame {
  width: 100%;
  max-width: 700px;
  background: var(--brand-bg-alt);
  border-radius: var(--brand-radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.mockup-dot:first-child { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-body {
  padding: var(--space-md);
  min-height: 220px;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-lime-light);
  flex-shrink: 0;
}
.chat-bubble {
  background: #e8f5ee;
  border-radius: 10px 10px 10px 2px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--brand-text-muted);
  max-width: 70%;
}
.chat-bubble--self {
  background: var(--brand-lime);
  color: #fff;
  border-radius: 10px 10px 2px 10px;
  margin-left: auto;
}

/* ===== 使用场景 ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.scenario-card {
  background: var(--brand-bg-alt);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: var(--space-md);
}
.scenario-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 8px;
}
.scenario-card p {
  font-size: 0.92rem;
  color: var(--brand-text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}
.scenario-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}
.scenario-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--brand-text-muted);
}
.scenario-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-lime);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 快速开始 — 步骤条 */
.quickstart-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.qs-step {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  position: relative;
  padding: var(--space-sm);
}
.qs-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-lime));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.qs-step p {
  font-size: 0.88rem;
  color: var(--brand-text-muted);
}

/* ===== 表格 ===== */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: var(--space-sm);
}
.platform-table th,
.platform-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brand-border);
}
.platform-table th {
  background: rgba(18, 140, 126, 0.06);
  font-weight: 700;
  color: var(--brand-green-dark);
}
.platform-table tr:last-child td { border-bottom: none; }
.platform-table a { color: var(--brand-lime); }

@media (max-width: 600px) {
  .platform-table th, .platform-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

/* ===== 下载区 ===== */
.download-box {
  background: linear-gradient(135deg, var(--brand-green-dark) 0%, #0a7a65 50%, var(--brand-green) 100%);
  border-radius: var(--brand-radius-lg);
  padding: var(--space-lg) var(--space-md);
  color: #fff;
  text-align: center;
}
.download-box h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: var(--space-xs);
}
.download-box .section-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
}
.download-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.install-steps {
  text-align: left;
  max-width: 480px;
  margin: var(--space-md) auto 0;
}
.install-steps ol {
  padding-left: 20px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}
.install-steps ol li {
  margin-bottom: 4px;
}
.download-btn-wrap {
  margin-top: var(--space-md);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list details {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  margin-bottom: 10px;
  background: var(--brand-bg-alt);
  overflow: hidden;
}
.faq-list details[open] {
  border-color: var(--brand-lime-light);
}
.faq-list summary {
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-green-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128c7e' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-list details[open] > summary::before {
  transform: rotate(90deg);
}
.faq-list details p {
  padding: 0 20px 14px;
  font-size: 0.92rem;
  color: var(--brand-text-muted);
  line-height: 1.65;
}

/* ===== 动态 & 阅读 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}
.news-card {
  background: var(--brand-bg-alt);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: var(--space-md);
  transition: box-shadow 0.2s;
}
.news-card:hover {
  box-shadow: var(--brand-shadow);
}
.news-card time {
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  display: block;
  margin-bottom: 6px;
}
.news-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-card p {
  font-size: 0.88rem;
  color: var(--brand-text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.news-card .btn-outline {
  font-size: 0.85rem;
  padding: 6px 16px;
}

.related-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px 24px;
}
.related-links li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.93rem;
  color: var(--brand-text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.related-links li a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-lime);
}
.related-links li a:hover {
  color: var(--brand-green);
}

/* ===== SVG 动画通用 ===== */
@keyframes draw-ring {
  0%   { stroke-dashoffset: 1; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes dash-flow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.animate-draw { animation: dash-flow 4s ease-in-out infinite; }
.animate-pulse { animation: pulse-glow 3s ease-in-out infinite; }
.animate-float { animation: float-y 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-draw, .animate-pulse, .animate-float {
    animation: none !important;
  }
}

/* ===== 通用装饰线 ===== */
.divider-wave {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* ===== 焦点可见 ===== */
*:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
}
a.btn:focus-visible {
  outline-offset: 4px;
}
summary:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 2px;
  border-radius: 4px;
}
