:root {
  --bg-deep: #060a13;
  --bg-surface: #0f1623;
  --bg-card: #131c2e;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(59, 130, 246, 0.4);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.25);
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  margin-top: 0;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-sub);
  margin: 0 0 var(--space-sm);
}

.section-intro {
  max-width: 720px;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

/* Layout & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-lg { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-xl); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: var(--space-md);
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--text-main);
}

td {
  color: var(--text-sub);
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ / Details */
details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

details[open] {
  border-color: var(--border-hover);
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  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(--text-muted);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details .answer {
  padding: 0 20px 20px;
  color: var(--text-sub);
  line-height: 1.7;
}

details:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sections */
section {
  padding: var(--space-xl) 0;
}

.hero-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.download-steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  color: var(--text-sub);
}

.download-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.news-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.related-item {
  display: block;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.related-item:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.related-title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.related-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-col h4 {
  margin-bottom: var(--space-sm);
  color: var(--text-main);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-main);
}

.copyright {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SVG Animations */
.star {
  fill: var(--accent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

.line-connect {
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawPath 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

@keyframes drawPath {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -1; }
  100% { stroke-dashoffset: 0; }
}

.sync-pulse {
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; filter: drop-shadow(0 0 4px var(--primary-glow)); }
  100% { opacity: 0.9; filter: drop-shadow(0 0 12px var(--primary-glow)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .star, .line-connect, .sync-pulse {
    animation: none !important;
    opacity: 0.8 !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  nav ul { gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  section { padding: var(--space-lg) 0; }
}
