:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #0d1117;
  --border: #30363d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --text-bright: #f0f6fc;
  --accent: #58a6ff;
  --code: #7ee787;
  --footer: #484f58;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-card: #f6f8fa;
    --bg-code: #f0f0f0;
    --border: #d0d7de;
    --text: #24292f;
    --text-dim: #656d76;
    --text-bright: #1f2328;
    --accent: #0969da;
    --code: #1a7f37;
    --footer: #656d76;
  }
}

* {
  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;
  align-items: center;
  padding: 60px 20px;
}

.container {
  max-width: 680px;
  width: 100%;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-bright);
}

h1 span {
  color: var(--accent);
}

.subtitle {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 40px;
}

.install {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 36px;
}

.install p {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.install code {
  display: block;
  background: var(--bg-code);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--code);
  margin-bottom: 8px;
  word-break: break-all;
}

.install code:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

.chart-desc {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}

.chart-ver {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.footer {
  margin-top: 40px;
  color: var(--footer);
  font-size: 12px;
}

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

.footer a:hover {
  text-decoration: underline;
}
