:root {
  --bg-primary: #0d0a1f;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(180, 74, 255, 0.4);
  --text-primary: #eef0ff;
  --text-secondary: #a0a8cc;
  --accent-purple: #b44aff;
  --accent-pink: #ff5eb9;
  --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --font-family: 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(16px);
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: clamp(16px, 1.2vw, 18px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--text-secondary); }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-lg) 0; position: relative; }
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 10, 31, 0.85); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { height: 32px; width: auto; }
.brand span { font-weight: 600; font-size: 1.1rem; }
nav ul { display: flex; gap: var(--space-md); list-style: none; padding: 0; }
nav a { font-size: 0.95rem; opacity: 0.8; padding: 0.5rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; color: var(--accent-purple); }
nav a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gradient-primary); border-radius: 2px;
}

footer {
  background: rgba(0, 0, 0, 0.4); border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.footer-col h4 { font-size: 1rem; margin-bottom: var(--space-sm); color: var(--text-primary); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-pink); }
.copyright { text-align: center; margin-top: var(--space-lg); color: var(--text-secondary); font-size: 0.85rem; opacity: 0.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 500;
  cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  border: none; font-size: 1rem;
}
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 16px rgba(180, 74, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 94, 185, 0.4); }
.btn-secondary {
  background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--border-accent); }
.btn:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 3px; }

.card {
  background: var(--bg-surface); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: var(--space-md); transition: border-color var(--transition-base), transform var(--transition-base);
}
.card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--accent-purple); }
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }

.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); margin-top: var(--space-sm); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: rgba(255,255,255,0.03); color: var(--text-primary); font-weight: 500; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface-hover); }

details {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); margin-bottom: var(--space-xs); overflow: hidden;
}
summary {
  padding: 1rem; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-fast);
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--bg-surface-hover); }
summary::after {
  content: '+'; font-size: 1.2rem; color: var(--accent-purple); transition: transform var(--transition-fast);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1rem 1rem; margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.update-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-md); }
.update-card time { font-size: 0.85rem; color: var(--accent-purple); display: block; margin-bottom: var(--space-xs); }
.update-card .meta { margin-top: var(--space-sm); }

.related-link { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); transition: color var(--transition-fast); }
.related-link:hover { color: var(--accent-pink); }
.related-link:last-child { border-bottom: none; }
.related-link strong { color: var(--text-primary); display: block; margin-bottom: 0.2rem; }

.svg-animated { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawArc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.anim-draw { animation: drawArc 6s ease-out forwards; }
.anim-pulse { animation: pulseGlow 4s infinite alternate ease-in-out; }
@keyframes pulseGlow { from { opacity: 0.6; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .svg-animated { animation: none; stroke-dashoffset: 0 !important; }
}

.text-center { text-align: center; }
.mb-md { margin-bottom: var(--space-md); }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); margin: var(--space-lg) 0; }
