:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-text-secondary: #525866;
  --color-brand: #0d9b5c;
  --color-brand-hover: #0b824d;
  --color-brand-light: #e8f6ef;
  --color-border: #e2e5ea;
  --color-border-strong: #cdd1d8;
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 5.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --transition-base: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--color-text); }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.5rem, 1.2rem + 2vw, 2.25rem); margin-bottom: var(--space-md); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--color-border); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); margin-bottom: var(--space-sm); font-weight: 500; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
a { color: var(--color-brand); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-brand-hover); }
strong { font-weight: 600; color: var(--color-text); }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xxl) 0; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto var(--space-xl); }

/* Header & Nav */
header { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; color: var(--color-text); text-decoration: none; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; gap: var(--space-sm); }
.nav a { display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 500; font-size: 0.95rem; transition: all var(--transition-base); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--color-brand-light); color: var(--color-brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius-md); font-weight: 500; cursor: pointer; transition: all var(--transition-base); border: 1px solid transparent; font-size: 1rem; text-decoration: none; user-select: none; }
.btn-primary { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.btn-primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,155,92,0.25); }
.btn-secondary { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-brand); color: var(--color-brand); background: var(--color-brand-light); }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--color-border-strong); }
.feature-card { display: flex; flex-direction: column; height: 100%; }
.feature-icon { width: 44px; height: 44px; background: var(--color-brand-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--color-brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-body { flex: 1; }

/* Interface Mockup */
.mockup-window { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.mockup-titlebar { height: 36px; background: #f0f2f5; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.mockup-content { padding: 20px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; background: #fafbfc; position: relative; }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f8f9fa; font-weight: 600; color: var(--color-text); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td strong { font-weight: 500; }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; transition: border-color var(--transition-base); }
details[open] { border-color: var(--color-brand); }
summary { padding: 16px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; outline-offset: -4px; }
summary:focus-visible { outline: 2px solid var(--color-brand); border-radius: 4px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.1rem; color: var(--color-brand); font-weight: 400; transition: transform var(--transition-base); flex-shrink: 0; margin-left: 12px; }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 16px 16px; color: var(--color-text-secondary); line-height: 1.7; }

/* Updates */
.update-card { display: flex; flex-direction: column; }
.update-date { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: auto; padding-top: var(--space-sm); display: flex; align-items: center; gap: 6px; }
.update-link { font-size: 0.9rem; font-weight: 500; color: var(--color-brand); margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.update-link:hover { text-decoration: underline; }

/* Related */
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.related-list li a { display: block; padding: 12px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; transition: all var(--transition-base); }
.related-list li a:hover { border-color: var(--color-brand); background: var(--color-brand-light); color: var(--color-brand); }
.related-title { font-weight: 500; display: block; margin-bottom: 4px; }
.related-desc { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.5; }

/* Footer */
footer { background: var(--color-text); color: #b0b6c0; padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-md); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b0b6c0; text-decoration: none; transition: color var(--transition-base); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2f36; padding-top: var(--space-md); text-align: center; font-size: 0.9rem; color: #7a8290; }

/* SVG Animation Core */
.draw-route { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawRoute { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.animate-draw { animation: drawRoute 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }

.float-point { animation: floatPoint 3.5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes floatPoint { from { transform: translateY(0) scale(1); } to { transform: translateY(-5px) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-draw, .float-point { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav { display: none; } /* Simplified mobile nav for static page */
  section { padding: var(--space-xl) 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  header { padding: 0 var(--space-sm); }
}
