:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --line: #e6e8ef;
  --text: #1f2430;
  --muted: #687082;
  --brand: #2563eb;
  --brand-soft: #e8f0ff;
  --get: #0f9d58;
  --post: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.group {
  margin-bottom: 24px;
}

.group-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.sidebar a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.content {
  padding: 32px 40px 56px;
}

.hero {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.eyebrow {
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 24px;
}

h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}

p, li {
  line-height: 1.7;
  color: var(--text);
}

.meta-grid,
.links-grid {
  display: grid;
  gap: 16px;
}

.meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.meta-grid div,
.card,
.table-card,
.link-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.meta-grid div {
  padding: 16px 18px;
}

.meta-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.card,
.table-card {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.method.get {
  background: var(--get);
}

.method.post {
  background: var(--post);
}

.path {
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e5edf8;
}

code {
  font-family: Consolas, Monaco, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: var(--muted);
}

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

.links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  border-color: #bfd5ff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.link-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.link-path {
  margin-bottom: 10px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  color: var(--muted);
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 24px 18px 40px;
  }

  .meta-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }
}
