:root {
  --color-deep-green: #0a3d33;
  --color-brand-green: #128c7e;
  --color-accent: #25d366;
  --color-lime-light: #86efac;
  --color-bg: #f4f9f6;
  --color-surface: #ffffff;
  --color-text: #112b25;
  --color-text-muted: #52796f;
  --color-border: #d1e0dc;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 4rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 16px rgba(10, 61, 51, 0.06);
  --shadow-hover: 0 8px 24px rgba(10, 61, 51, 0.12);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand-green); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus-visible { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; text-wrap: balance; color: var(--color-deep-green); }
h1 { font-size: clamp(2.8rem, 6vw + 0.5rem, 4.5rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.5rem); margin-top: var(--space-xxl); margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.2rem, 2vw + 0.3rem, 1.5rem); margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-md); max-width: 68ch; }
ul, ol { margin-left: var(--space-lg); margin-bottom: var(--space-md); }
li { margin-bottom: var(--space-xs); }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
section { padding: var(--space-xxl) 0; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xxl); align-items: center; }
@media (max-width: 860px) { .grid-split { grid-template-columns: 1fr; } }

/* Header & Footer */
header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: var(--space-md) 0; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(255,255,255,0.92); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: var(--space-sm); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { font-weight: 700; font-size: 1.1rem; color: var(--color-deep-green); }
.nav ul { display: flex; gap: var(--space-lg); list-style: none; }
.nav a { font-weight: 500; font-size: 0.95rem; padding: var(--space-xs) 0; }
.nav [aria-current="page"] { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-xs); }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--color-text); }
@media (max-width: 720px) {
  .mobile-toggle { display: block; }
  .nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); padding: var(--space-md); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
  .nav.open ul { display: flex; }
}
footer { background: var(--color-deep-green); color: #e2f2ed; padding: var(--space-xxl) 0; margin-top: var(--space-xxl); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xl); }
.footer-col h4 { color: var(--color-lime-light); font-size: 1rem; margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-xs); }
.footer-col a { color: #b7d4cc; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.85rem 1.75rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-accent));
  color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); }
.btn-secondary { background: transparent; border: 2px solid var(--color-brand-green); color: var(--color-brand-green); }
.btn-secondary:hover { background: #eaf7f2; }

.card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-lg);
  box-shadow: var(--shadow-card); transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; }
.card-actions a { font-weight: 600; font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; font-size: 0.95rem; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); table-layout: fixed; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #e6f2ed; color: var(--color-deep-green); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f0f8f5; }

/* FAQ */
details { margin-bottom: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
summary { padding: 1rem var(--space-lg); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: #fafcfb; transition: background var(--transition-fast); }
summary:hover { background: #f4f9f6; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--color-accent); transition: transform 0.2s; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-text-muted); }

/* SVG Animation Utilities */
.svg-draw { path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawArc 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; } }
.svg-ring { circle, ellipse, path { animation: pulseRing 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
.svg-tick { g { animation: rotateTick 12s linear infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes drawArc {
  0% { stroke-dashoffset: 1; }
  45% { stroke-dashoffset: 0; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes rotateTick {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .svg-draw, .svg-ring, .svg-tick { animation: none !important; }
  .svg-draw path, .svg-ring circle, .svg-ring ellipse, .svg-ring path, .svg-tick g { animation: none !important; }
}

/* 移动端防横向溢出修复 */
.grid-split > *, .feature-grid > *, .news-grid > *, #scenarios .card, #quickstart .card, #value .card { min-width: 0; }
th, td { overflow-wrap: break-word; word-break: break-word; white-space: normal; }

/* Interface Mockup Specifics */
.mockup-window { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid var(--color-border); }
.mockup-header { background: var(--color-brand-green); color: #fff; padding: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.mockup-body { display: grid; grid-template-columns: 220px 1fr; height: 400px; }
.mockup-sidebar { background: #f8fcfb; border-right: 1px solid var(--color-border); padding: var(--space-md); }
.mockup-chat { background: #e9f5ec; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.chat-bubble { max-width: 75%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: var(--space-xs); }
.chat-bubble.sent { align-self: flex-end; background: #d9fdd3; }
.chat-bubble.received { align-self: flex-start; background: var(--color-surface); }
@media (max-width: 700px) { .mockup-body { grid-template-columns: 1fr; } .mockup-sidebar { display: none; } }

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
