/* ==================== 设计变量 ==================== */
:root {
  --bg-body: #090b0f;
  --bg-surface: #111419;
  --bg-elevated: #181c23;
  --bg-accent-soft: rgba(0, 230, 118, 0.08);
  --text-main: #e6eaef;
  --text-sub: #9ca3af;
  --text-muted: #6b7280;
  --accent: #00e676;
  --accent-hover: #00c862;
  --accent-text: #051210;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font-heading: 'SF Pro Display', 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --container-max: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-sm); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin: 0 0 var(--space-md); color: var(--text-sub); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ==================== 布局容器 ==================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; position: relative; }
.section-alt { background: var(--bg-surface); }
.grid-split { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
@media (min-width: 768px) { .grid-split { grid-template-columns: 1.1fr 0.9fr; } }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ==================== 导航与页头页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 11, 15, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); }
.brand img { height: 32px; width: auto; }
.brand span { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
nav ul { display: flex; gap: var(--space-md); align-items: center; }
nav a { font-size: 0.95rem; color: var(--text-sub); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); }
nav a:hover, nav a[aria-current="page"] { color: var(--text-main); background: var(--bg-elevated); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-surface); flex-direction: column; padding: var(--space-md); border-bottom: 1px solid var(--border); }
  nav.open ul { display: flex; }
}
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: var(--space-lg) 0; margin-top: var(--space-xxl); }
.footer-inner { display: flex; flex-direction: column; gap: var(--space-md); align-items: center; text-align: center; }
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.copyright { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-sm); }

/* ==================== 按钮与链接 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 12px rgba(0, 230, 118, 0.25); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 230, 118, 0.35); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-accent-soft); }
.link-arrow { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==================== 卡片与网格 ==================== */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-hover); }
.card-icon { width: 40px; height: 40px; margin-bottom: var(--space-sm); color: var(--accent); }
.features-grid, .cases-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.update-card { display: flex; flex-direction: column; height: 100%; }
.update-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-xs); }
.related-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.related-item { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-xs); border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-title { font-weight: 500; }
.related-desc { font-size: 0.9rem; color: var(--text-muted); }

/* ==================== 表格 ==================== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); font-weight: 600; color: var(--text-main); }
td { color: var(--text-sub); }
tr:last-child td { border-bottom: none; }

/* ==================== FAQ / Details ==================== */
details { margin-bottom: var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
details[open] { border-color: var(--accent); }
summary { padding: var(--space-md); cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 var(--space-md) var(--space-md); color: var(--text-sub); line-height: 1.7; }

/* ==================== SVG 动效系统 ==================== */
.svg-stage { width: 100%; max-width: 640px; margin: 0 auto; }
.draw-path { path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; } }
.draw-path:nth-child(2n) path { animation-delay: 0.8s; }
.draw-path:nth-child(3n) path { animation-delay: 1.6s; }
.node-dot { fill: var(--accent); opacity: 0.8; animation: floatNode 4s ease-in-out infinite; }
.node-dot:nth-child(even) { animation-delay: 1.2s; animation-duration: 3.5s; }
.link-line { stroke: var(--text-muted); stroke-width: 1.5; fill: none; stroke-linecap: round; opacity: 0.4; }
.highlight-line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; opacity: 0.7; }
@keyframes drawStep {
  0% { stroke-dashoffset: 1; }
  45% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .draw-path, .draw-path path, .node-dot { animation: none !important; }
  .draw-path path { stroke-dashoffset: 0; }
}
.transform-box-fill { transform-box: fill-box; transform-origin: center; }

/* ==================== 界面示意占位 ==================== */
.mock-window { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.mock-toolbar { height: 44px; background: var(--bg-surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 var(--space-sm); gap: var(--space-sm); }
.mock-btn { width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); opacity: 0.6; }
.mock-sidebar { width: 240px; background: var(--bg-surface); border-right: 1px solid var(--border); padding: var(--space-sm); display: none; }
.mock-main { flex: 1; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.mock-bubble { height: 48px; background: var(--bg-elevated); border-radius: var(--radius-sm); width: 60%; opacity: 0.7; }
.mock-bubble.right { margin-left: auto; background: rgba(0, 230, 118, 0.15); width: 50%; opacity: 0.8; }
@media (min-width: 768px) { .mock-sidebar { display: block; } .mock-main { padding: var(--space-lg); } }
