:root {
  --color-dark: #17203F;
  --color-paper: #FCFCFD;
  --color-body: #151823;
  --color-brand: #1441EB;
  --color-accent: #6EEDBD;
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(21, 24, 35, 0.3);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1280px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--color-body); background: var(--color-paper); line-height: 1.75; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--color-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding-block: var(--section-y); }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--color-brand); margin-bottom: 0.5rem; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 38em; }
.hl { color: var(--color-brand); font-weight: 700; }

.dark-bg { background: var(--color-dark); color: var(--color-paper); }
.dark-bg .eyebrow { color: var(--color-accent); }
.dark-bg .hl { color: var(--color-accent); }
.dark-bg a { color: var(--color-accent); }
.light-card { background: var(--color-paper); color: var(--color-body); border-radius: var(--radius-card); padding: var(--gap); box-shadow: var(--card-shadow); }
.light-card .eyebrow { color: var(--color-brand); }
.light-card .hl { color: var(--color-brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; min-height: 48px; }
.btn-primary { background: var(--color-accent); color: #0f3a25; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(110, 237, 189, 0.4); }
.btn-secondary { background: transparent; color: var(--color-body); border: 1px solid var(--color-body); }
.btn-secondary:hover { background: rgba(21, 24, 35, 0.05); transform: translateY(-2px); }
.dark-bg .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.layout-wide { display: grid; grid-template-columns: 220px 1fr; gap: var(--gap); align-items: start; }
.index-nav { position: sticky; top: 80px; height: calc(100vh - 100px); overflow-y: auto; border-right: 1px solid rgba(21,24,35,0.1); padding-right: var(--gap); min-width: 0; width: 100%; }
.index-nav ul { list-style: none; }
.index-nav li { margin-bottom: 0.25rem; }
.index-nav a { display: block; padding: 0.5rem 0 0.5rem 1rem; color: var(--color-body); text-decoration: none; font-size: 0.95rem; border-left: 2px solid transparent; margin-left: -1rem; transition: color 0.2s, border-color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index-nav a:hover, .index-nav a:focus-visible { color: var(--color-brand); border-color: var(--color-brand); }
.dark-bg .index-nav { border-color: rgba(252,252,253,0.1); }
.dark-bg .index-nav a { color: var(--color-paper); }
.dark-bg .index-nav a:hover { color: var(--color-accent); border-color: var(--color-accent); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.workflow { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; justify-content: center; }
.workflow-step { flex: 1 1 200px; text-align: center; }
.workflow-arrow { flex: 0 0 40px; height: 2px; background: var(--color-body); position: relative; }
.workflow-arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid var(--color-body); border-right: 2px solid var(--color-body); transform: rotate(45deg); }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(21,24,35,0.1); }
th { font-weight: 700; }
tr:last-child td { border-bottom: none; }
details { border: 1px solid rgba(21,24,35,0.1); border-radius: var(--radius-card); margin-bottom: 1rem; padding: 1rem; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary::before { content: '+'; color: var(--color-brand); font-weight: 700; }
details[open] summary::before { content: '-'; }
details p { margin-top: 0.75rem; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.news-card { border: 1px solid rgba(21,24,35,0.08); border-radius: var(--radius-card); padding: 1.25rem; background: var(--color-paper); }
.news-card time { display: block; font-size: 0.85rem; color: var(--color-body); opacity: 0.7; margin-bottom: 0.5rem; }
.news-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; }
.news-card p { font-size: 0.95rem; margin-bottom: 0; }

.steps-list { counter-reset: step; list-style: none; padding: 0; }
.steps-list li { position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: var(--color-accent); color: var(--color-dark); border-radius: var(--radius-btn); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }

header { position: sticky; top: 0; background: rgba(252,252,253,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(21,24,35,0.08); z-index: 100; padding: 1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-body); font-weight: 800; font-size: 1.25rem; }
.logo img { height: 32px; width: auto; }

footer { background: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; color: var(--color-accent); }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--color-paper); text-decoration: none; display: block; margin-bottom: 0.5rem; opacity: 0.8; }
.footer-col a:hover { opacity: 1; }
.copyright { text-align: center; margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid rgba(252,252,253,0.1); font-size: 0.9rem; opacity: 0.7; }

/* SVG Animations */
@keyframes draw-line { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slide-up { 0% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes flow-dot { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(120px); opacity: 0; } }

.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 6s ease-in-out infinite alternate; }
.anim-float { animation: float 8s ease-in-out infinite; }
.anim-breathe { animation: breathe 5s ease-in-out infinite; }
.anim-slide { animation: slide-up 0.8s ease-out forwards; }
.anim-flow { animation: flow-dot 7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 768px) {
  .layout-wide { grid-template-columns: 1fr; }
  .index-nav { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--color-body); margin-bottom: var(--gap); padding-bottom: var(--gap); }
  .hero-grid { grid-template-columns: 1fr !important; }
  .workflow { flex-direction: column; }
  .workflow-arrow { width: 2px; height: 30px; background: var(--color-body); margin: 0.5rem 0; }
  .workflow-arrow::after { right: -3px; top: auto; bottom: 0; border-top: 2px solid var(--color-body); border-right: 2px solid var(--color-body); transform: rotate(-45deg); }
}

/* 兜底：裁掉横向溢出 */
div.container.layout-wide {
  overflow-x: clip;
}
