:root {
  --bg: #0f1419;
  --bg-alt: #161d26;
  --card: #1a222d;
  --border: #2a3544;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --gold: #d4a853;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

code, pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

code {
  background: var(--bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-alt);
}

.site-main { flex: 1; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-desc {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-version {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-version strong { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
}

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.page-head {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 { margin: 0; font-size: 1.75rem; }
.page-head .muted { margin: 0.35rem 0 0; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li { margin-bottom: 0.35rem; }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.muted { color: var(--muted); font-size: 0.92rem; }

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.module-card h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
}

.module-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.status-on {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-dev {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.module-dev {
  opacity: 0.85;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.support-card {
  text-align: center;
}

.support-label {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-qq {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.support-qq a {
  color: var(--text);
}

.support-qq a:hover {
  color: var(--accent);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--bg-alt);
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Steps */
.steps {
  margin: 0;
  padding-left: 1.3rem;
  max-width: 640px;
}

.steps li { margin-bottom: 0.5rem; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-marker {
  position: absolute;
  left: -1.35rem;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.version-tag {
  font-weight: 700;
  color: var(--gold);
}

.timeline-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.badge-latest {
  font-size: 0.7rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Downloads */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  word-break: break-all;
}

.download-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.download-notes {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.install-hint { margin-top: 1rem; }
.install-hint h3 { margin-top: 0; }

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner p { margin: 0.25rem 0; }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .download-card { flex-direction: column; align-items: flex-start; }
}
