:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #1890ff;
  --accent-dim: #0969da;
  --green: #238636;
  --green-light: #2ea043;
  --orange: #d29922;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.back-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-right: auto;
}
.back-link:hover { color: var(--accent); }
.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.tagline {
  font-size: 14px;
  color: var(--text-dim);
}

/* Main */
.main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Version cards */
.version-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.vcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}
.vcard:hover { border-color: var(--accent-dim); }
.vcard-icon { font-size: 28px; }
.vcard-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.vcard-version {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-light);
}
.loading-text { color: var(--text-dim); font-weight: 400; }
.vcard-notes {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Download */
.download-section { margin-bottom: 40px; }
.download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: var(--text);
}
.dl-item:hover {
  border-color: var(--accent-dim);
  background: var(--bg-hover);
}
.dl-info { display: flex; flex-direction: column; gap: 2px; }
.dl-name { font-weight: 600; font-size: 15px; }
.dl-meta { font-size: 12px; color: var(--text-dim); }
.dl-btn {
  background: var(--green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.dl-item:hover .dl-btn { background: var(--green-light); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 28px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--bg);
}
.tl-version {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.tl-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
}
.tl-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  margin-left: 8px;
  vertical-align: middle;
}
.tl-notes {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.tl-notes ul {
  padding-left: 20px;
  list-style: disc;
}
.tl-notes li { margin-bottom: 4px; }
.tl-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-meta span { white-space: nowrap; }

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 600px) {
  .version-cards { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 4px; }
}
