:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-variant: #64748b;
  --primary: #0ea5e9;
  --border: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.05);
  --card-bg: #ffffff;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}

h2 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--text);
}

h3 {
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
  color: var(--text);
}

p {
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 6px;
  color: var(--text-variant);
}

li {
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 6px;
  color: var(--text-variant);
}

ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.muted {
  font-size: 13px;
  color: var(--text-variant);
}

.meta {
  font-size: 13px;
  color: var(--text-variant);
  margin: 0 0 4px;
}

.note {
  font-size: 12px;
  line-height: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-style: italic;
  color: var(--text-variant);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.nav {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-variant);
}

.footer {
  font-size: 12px;
  color: var(--text-variant);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

.toplinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--text);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
}

table thead {
  background: var(--bg);
}

table th, table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

table th {
  font-weight: 700;
  color: var(--text);
}

table td {
  color: var(--text-variant);
}

table tbody tr:last-child td {
  border-bottom: none;
}

table th:last-child, table td:last-child {
  text-align: right;
}

/* 响应式 */
@media (max-width: 600px) {
  .wrap {
    padding: 12px;
  }
  
  .card {
    padding: 12px;
  }
  
  h1 {
    font-size: 16px;
  }
  
  h2 {
    font-size: 15px;
  }
  
  h3 {
    font-size: 13px;
  }
  
  p, li {
    font-size: 12px;
  }
  
  table {
    font-size: 10px;
  }
  
  table th, table td {
    padding: 6px 8px;
  }
}
