:root {
  --color-primary: #0b5e3f;
  --color-primary-light: #127a52;
  --color-accent: #84c967;
  --color-bg: #060807;
  --color-surface: #0f1411;
  --color-surface-hover: #151c17;
  --color-border: rgba(132, 201, 103, 0.15);
  --color-text: #e0eadd;
  --color-text-muted: #8a9b8c;
  --color-white: #ffffff;
  --font-main: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-focus: 0 0 0 3px rgba(132, 201, 103, 0.4);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  min-width: 0;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--spacing-xs); }
p { margin-bottom: var(--spacing-sm); color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.font-mono { font-family: var(--font-mono); }

/* Layout Components */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .grid-split { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(11, 94, 63, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 94, 63, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: rgba(132, 201, 103, 0.1);
}

/* Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 7, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.brand img {
  height: 32px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--color-accent);
  background: rgba(132, 201, 103, 0.08);
}

/* Feature List */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: rgba(132, 201, 103, 0.06);
  color: var(--color-accent);
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

details[open] {
  border-color: var(--color-accent);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-white);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] summary::before {
  transform: rotate(45deg);
}

details p {
  margin-top: var(--spacing-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Cards (Updates) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.card-footer {
  margin-top: var(--spacing-sm);
  display: flex;
  justify-content: flex-end;
}

/* Related Links */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  list-style: none;
}

.related-item a {
  display: block;
  padding: var(--spacing-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.related-item a:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
}

.related-title {
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 6px;
  display: block;
}

.related-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  list-style: none;
}

/* SVG Animation Utilities */
.svg-flow-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

.flow-anim {
  animation: flowPath 6s linear infinite;
}

@keyframes flowPath {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.dot-flow {
  animation: dotMove 4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes dotMove {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  20% { opacity: 1; transform: translate(10px, 5px) scale(1); }
  50% { opacity: 1; transform: translate(40px, 15px) scale(1); }
  80% { opacity: 1; transform: translate(70px, 25px) scale(1); }
  100% { opacity: 0; transform: translate(90px, 35px) scale(0.8); }
}

.pulse-ring {
  animation: pulseRing 4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-anim, .dot-flow, .pulse-ring {
    animation: none !important;
    opacity: 1 !important;
  }
  .svg-flow-path {
    stroke-dashoffset: 0 !important;
  }
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: var(--spacing-lg) 0; }
  h1 { font-size: 2rem; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
