:root {
  --bg-primary: #0b0b10;
  --bg-secondary: #13131a;
  --bg-card: #1a1a24;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --accent: #00f2c3;
  --accent-hover: #00d4ab;
  --font-heading: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; text-wrap: balance; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; padding-top: 4rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.text-accent { color: var(--accent); }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; position: relative; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 2.5rem; align-items: center; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Header & Footer */
header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100; padding: 1rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; }
.logo img { height: 32px; width: auto; }
nav ul { display: flex; list-style: none; gap: 1.75rem; }
nav a { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

footer { border-top: 1px solid var(--border-subtle); padding: 3.5rem 0; margin-top: 4rem; background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { margin-bottom: 1rem; color: var(--text-primary); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; margin-top: 3rem; color: var(--text-secondary); font-size: 0.85rem; }

/* Components */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.85rem; background: var(--accent); color: #000;
  font-weight: 600; font-size: 1rem; border-radius: var(--radius-md);
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 242, 195, 0.2); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn-outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); color: var(--accent); }

.card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.5rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(0, 242, 195, 0.25); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-icon { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(0, 242, 195, 0.1); border-radius: 8px; color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-secondary); font-weight: 600; color: var(--accent); white-space: nowrap; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

details { border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; background: var(--bg-card); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 1rem 1.25rem; margin: 0; color: var(--text-secondary); border-top: 1px solid var(--border-subtle); }

.update-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.update-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; color: var(--text-secondary); font-size: 0.85rem; }
.link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.link-item { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); transition: border-color 0.2s; }
.link-item:hover { border-color: var(--accent); }
.link-title { font-weight: 600; color: var(--text-primary); }
.link-desc { font-size: 0.9rem; color: var(--text-secondary); }

/* SVG Styles */
.svg-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-svg, .mockup-svg { width: 100%; height: auto; max-width: 600px; margin: 0 auto; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawLoop { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes floatNode { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.anim-draw { animation: drawLoop 5s ease-in-out infinite; }
.anim-float { animation: floatNode 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .anim-draw, .anim-float { animation: none; } }

/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent); color: #000; padding: 0.5rem 1rem; z-index: 101; }
.skip-link:focus { top: 0; }

/* Responsive */
@media (max-width: 768px) {
  nav ul { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  h2 { padding-top: 3rem; }
  .header-inner { padding: 0 1rem; }
}
