/* ================= 设计变量 ================= */
:root {
  --brand-deep: #052e24;
  --brand-green: #0a4d3c;
  --brand-lime: #6ae67a;
  --brand-light: #d4f9db;
  --bg-base: #080c0f;
  --bg-card: #11191f;
  --bg-card-hover: #162229;
  --text-primary: #e8f6ed;
  --text-secondary: #9ab8aa;
  --text-muted: #6b8a7d;
  --border-subtle: rgba(106, 230, 122, 0.12);
  --border-active: rgba(106, 230, 122, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container-max: 1180px;
  --space-section: clamp(3.5rem, 6vw, 6rem);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ================= 基础重置 ================= */
*, *::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);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ================= 排版系统 ================= */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.display-xl { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); line-height: 1.1; text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem); line-height: 1.15; text-wrap: balance; font-weight: 700; }
.heading-md { font-size: clamp(1.35rem, 2vw + 0.2rem, 1.75rem); line-height: 1.25; font-weight: 600; }
.body-text { font-size: 1rem; color: var(--text-secondary); }
.caption { font-size: 0.875rem; color: var(--text-muted); }
.section-padding { padding: var(--space-section) 0; }
.text-gradient { background: linear-gradient(135deg, var(--brand-lime), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================= 导航与页脚 ================= */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(8, 12, 15, 0.85); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-row { display: flex; align-items: center; gap: 0.75rem; }
.brand-img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.nav-list { display: flex; gap: 1.5rem; }
.nav-link { padding: 0.5rem 0; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand-lime); }
.nav-link:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: 4px; border-radius: 4px; }

.site-footer { border-top: 1px solid var(--border-subtle); padding: 3rem 0 2rem; background: var(--bg-base); margin-top: var(--space-section); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand-lime); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ================= 按钮组件 ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--brand-green), var(--brand-deep)); color: var(--brand-light); border: 1px solid var(--border-active); }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(106, 230, 122, 0.25); }
.btn-secondary { background: transparent; color: var(--brand-lime); border: 1px solid var(--border-active); }
.btn-secondary:hover { background: rgba(106, 230, 122, 0.08); }
.btn:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: 3px; }

/* ================= 卡片与网格 ================= */
.card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border-active); box-shadow: var(--shadow-card); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: rgba(10, 77, 60, 0.25); font-weight: 600; color: var(--brand-light); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(106, 230, 122, 0.04); }

/* ================= FAQ (details/summary) ================= */
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; background: var(--bg-card); }
.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 0.75rem; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--border-subtle); color: var(--brand-lime); font-size: 0.85rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::before { transform: rotate(45deg); background: var(--brand-green); }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item:focus-within { outline: 2px solid var(--brand-lime); outline-offset: 2px; }

/* ================= SVG 动效系统 ================= */
.svg-animate-stroke { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.svg-animate-ring { animation: pulseRing 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svg-float { animation: floatUp 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawStroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .svg-animate-stroke, .svg-animate-ring, .svg-float { animation: none !important; }
}

/* ================= 区块特定样式 ================= */
.hero-section { min-height: 85vh; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 70% 30%, rgba(10, 77, 60, 0.3), transparent 60%), var(--bg-base); overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 800px; text-align: center; padding: 2rem; }
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.4; pointer-events: none; }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--brand-lime); }
.feature-icon svg { width: 100%; height: 100%; stroke-width: 1.8; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-green); color: var(--brand-light); font-weight: 700; font-size: 0.9rem; margin-right: 0.75rem; flex-shrink: 0; }
.news-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.related-link { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); transition: color 0.2s; }
.related-link:hover { color: var(--brand-lime); }
.ui-mockup { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden; }
.ui-mockup::after { content: ""; position: absolute; top: 12px; left: 12px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f; }
