:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-soft: #dbeafe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-light: #e2e8f0;
  --border-card: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; }

.layout { min-height: 100vh; overflow-x: hidden; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 0 50px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.brand-text {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav a {
  color: var(--text-secondary);
  padding: 20px 14px 18px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  transition: all .2s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(37, 99, 235, .05); }
.nav a.active { border-bottom-color: var(--primary); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; }

.content { min-height: calc(100vh - 194px); padding: 32px 50px; }
.page { display: none; max-width: 1400px; margin: 0 auto; animation: fadeIn .24s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero { position: relative; text-align: center; padding: 72px 0 60px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: auto auto 0 50%;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.hero h1 { position: relative; margin: 0 0 18px; font-size: 4.4rem; font-weight: 800; line-height: 1.05; }
.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 small { display: block; margin-top: 14px; color: var(--text-secondary); font-size: 1.18rem; font-weight: 400; }
.hero p { position: relative; max-width: 720px; margin: 0 auto 34px; color: #475569; font-size: 1.25rem; line-height: 1.7; }
.hero-actions { position: relative; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 24px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
}
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.btn.ghost { color: var(--text-primary); background: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.feature-card, .tree-panel, .detail-panel, .example-card, .form-card, .response-card, .usage-card, .usage-result, .price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.feature-card { padding: 28px; transition: all .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.feature-icon { font-size: 40px; margin-bottom: 18px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--text-secondary); line-height: 1.7; }

.docs-page { max-width: none; }
.docs-workbench { max-width: none; }
.docs-workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 12px 0 20px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.docs-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.docs-workbench-head h1 { margin: 0 0 8px; font-size: 2rem; }
.docs-workbench-head p { margin: 0; color: var(--text-secondary); }
.docs-workbench-head p strong { color: var(--text-primary); font-size: 1.15rem; }
.docs-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #f8fafc;
  flex-shrink: 0;
}
.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.view-link:hover { color: var(--primary); background: #fff; }
.view-link.active { color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.docs-tip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--text-secondary); font-size: 13px; }
.docs-shell { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tree-panel, .detail-panel { min-height: 640px; }
.panel-title { padding: 18px 20px; border-bottom: 1px solid var(--border-light); font-weight: 700; }
.search-box {
  margin: 18px 20px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
  border: 2px solid var(--border-light);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.search-box input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; }
.search-box button { border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 20px; }
.api-tree {
  padding: 0 12px 22px;
  max-height: none;
  overflow: visible;
}
.tree-folder {
  margin: 4px 0;
}
.tree-folder summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.tree-folder summary::-webkit-details-marker { display: none; }
.tree-folder summary::before {
  content: "▸";
  width: 14px;
  color: var(--text-secondary);
  font-size: 12px;
}
.tree-folder[open] > summary::before { content: "▾"; }
.folder-icon { color: #f59e0b; font-size: 18px; }
.doc-icon { width: 16px; color: #64748b; font-size: 13px; }
.tree-depth-1 > summary { padding-left: 18px; }
.tree-depth-2 > summary { padding-left: 34px; }
.tree-depth-3 > summary { padding-left: 50px; }
.tree-depth-4 > summary { padding-left: 66px; }
.tree-group { margin-bottom: 6px; }
.group-title { display: flex; align-items: center; gap: 8px; padding: 9px 8px; font-weight: 700; color: var(--text-primary); }
.api-node {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.api-node:hover, .api-node.active { background: var(--primary-soft); color: var(--primary); }
.api-node.tree-depth-1 { padding-left: 32px; }
.api-node.tree-depth-2 { padding-left: 48px; }
.api-node.tree-depth-3 { padding-left: 64px; }
.api-node.tree-depth-4 { padding-left: 80px; }
.api-node span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method-mini, .method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
}
.method-badge { min-width: 58px; height: 28px; }
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.detail-head h2 { margin: 0 0 4px; font-size: 1.25rem; }
.detail-head p { margin: 0; color: var(--text-secondary); }
.detail-body { padding: 24px; }
.detail-body h3 { margin: 24px 0 12px; font-size: 1rem; }
.field-section { margin: 16px 0 20px; }
.field-subtitle {
  margin: 16px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  color: var(--text-primary);
  font-size: .95rem;
}
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; margin: 0; }
.meta-grid div { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--border-light); }
.meta-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.meta-grid dt, .meta-grid dd { margin: 0; padding: 13px 14px; }
.meta-grid dt { background: #f8fafc; color: var(--text-secondary); }
code { padding: 3px 7px; border-radius: 5px; background: #f1f5f9; color: #0f172a; font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 8px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--text-secondary); }
.code-section { margin-top: 18px; }
.code-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.copy-btn { border: 1px solid var(--border-light); background: #fff; color: var(--text-primary); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.code-block {
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre;
  color: #e2e8f0;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.docs-reading { max-width: none; }
.reading-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 30px 32px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f5f9ff;
}
.reading-hero h1 { margin: 0 0 8px; font-size: 2.15rem; }
.reading-hero p { max-width: 720px; margin: 0; color: var(--text-secondary); line-height: 1.7; }
.reading-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.reading-count { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.reading-count strong { color: var(--text-primary); font-size: 1.15rem; }
.reading-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}
.category-tabs {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: thin;
}
.category-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.category-tab:hover { color: var(--primary); border-color: #bfdbfe; }
.category-tab.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.reading-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  min-width: 220px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
}
.reading-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.reading-search input { height: 100%; padding: 0; border: 0; box-shadow: none; }
.reading-search input:focus { box-shadow: none; }
.reading-layout {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.reading-api-list {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.reading-api-item {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.reading-api-item:last-child { border-bottom: 0; }
.reading-api-item:hover { background: #f8fafc; }
.reading-api-item.active { border-radius: 8px; background: var(--primary-soft); }
.reading-api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 6px;
  color: var(--primary);
  background: #dbeafe;
  font-size: 10px;
  font-weight: 800;
}
.reading-api-copy { min-width: 0; }
.reading-api-copy strong, .reading-api-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reading-api-copy strong { margin-bottom: 4px; font-size: 13px; }
.reading-api-copy small { color: var(--text-secondary); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.reading-api-arrow { color: #94a3b8; font-size: 20px; line-height: 1; }
.reading-api-item.active .reading-api-arrow { color: var(--primary); }
.reading-detail {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.reading-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.reading-category { color: var(--primary); font-size: 12px; font-weight: 700; }
.reading-detail-head h2 { margin: 7px 0 7px; font-size: 1.45rem; }
.reading-detail-head p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.reading-method {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #166534;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 800;
}
.reading-endpoint {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 20px 0 26px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 13px;
}
.reading-endpoint code { min-width: 0; overflow-wrap: anywhere; color: var(--text-primary); background: transparent; }
.reading-section { margin-top: 28px; }
.reading-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.reading-section-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
}
.reading-section-title h3 { flex: 1; margin: 0; font-size: 1rem; }
.reading-copy {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
}
.reading-copy:hover { color: var(--primary); border-color: #bfdbfe; }
.reading-no-data, .reading-empty {
  padding: 18px;
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  text-align: center;
}
.reading-param-list { border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.reading-param-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 120px minmax(0, 2fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.reading-param-row:last-child { border-bottom: 0; }
.reading-param-row strong { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.reading-param-row p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.reading-required, .reading-optional { margin-left: 7px; font-size: 11px; font-weight: 700; }
.reading-required { color: var(--danger); }
.reading-optional { color: var(--text-secondary); }
.reading-field-group + .reading-field-group { margin-top: 18px; }
.reading-field-group h4 { margin: 0 0 8px; color: var(--text-primary); font-size: 13px; }
.reading-field-table { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 8px; }
.reading-field-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) 160px minmax(0, 2fr);
  gap: 14px;
  min-width: 620px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  font-size: 13px;
}
.reading-field-row:last-child { border-bottom: 0; }
.reading-field-row p { margin: 0; color: var(--text-secondary); line-height: 1.55; }
.reading-field-head { color: var(--text-secondary); background: #f8fafc; font-weight: 700; }
.reading-code {
  max-height: 420px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre;
  color: #e2e8f0;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.simple-page { max-width: 1200px; padding: 24px 0; }
.page-header { text-align: center; margin-bottom: 30px; }
.page-header h1 { margin: 0 0 10px; font-size: 2.1rem; }
.page-header p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }
.example-grid, .request-grid, .split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.example-card, .form-card, .response-card, .usage-card, .price-card { padding: 28px; }
.example-card h3, .response-card h3, .price-card h3 { margin-top: 0; }
.form-card, .usage-card { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--text-secondary); font-weight: 600; }
input, select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text-primary);
  background: #fff;
  outline: 0;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.usage-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.usage-result { margin-top: 24px; padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usage-result div:not(.progress) { padding: 20px; border-radius: 10px; background: #f8fafc; text-align: center; }
.usage-result span { display: block; color: var(--text-secondary); margin-bottom: 8px; }
.usage-result strong { font-size: 1.8rem; }
.usage-result em { margin-left: 4px; color: var(--text-secondary); font-style: normal; }
.usage-result .usage-error { grid-column: 1 / -1; }
.usage-result .usage-error strong { color: var(--danger); font-size: 1.1rem; overflow-wrap: anywhere; }
.progress { grid-column: 1 / -1; height: 16px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(135deg, var(--primary), var(--success)); }
.price-banner { text-align: center; padding: 18px 0 30px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; }
.price-banner strong { display: inline-block; margin: 18px 6px 8px; font-size: 3rem; color: var(--primary); }
.price-banner p { margin: 0; color: var(--text-secondary); }
.price-card li { margin: 10px 0; color: var(--text-secondary); }

.footer { padding: 30px 50px; background: #fff; border-top: 1px solid var(--border-light); color: var(--text-secondary); text-align: center; }
.contact-items { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-bottom: 14px; font-size: 1rem; }
.copyright { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; color: #94a3b8; font-size: 14px; }
.copyright a { color: #94a3b8; }
.copyright a:hover { color: var(--primary); }
.footer-divider { color: #cbd5e1; }

@media (max-width: 900px) {
  .site-header { padding: 0 22px; gap: 12px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; border-bottom: 0; border-radius: 8px; }
  .content { padding: 24px 16px; }
  .hero { padding: 44px 0 34px; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.05rem; }
  .feature-grid, .docs-shell, .example-grid, .request-grid, .split-grid, .usage-result { grid-template-columns: 1fr; }
  .tree-panel, .detail-panel { min-height: auto; }
  .api-tree { max-height: 360px; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-grid div, .meta-grid div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); grid-template-columns: 108px minmax(0, 1fr); }
  .meta-grid div:last-child { border-bottom: 0; }
  .detail-head { align-items: flex-start; }
  .page-header h1 { font-size: 1.75rem; }
  .docs-workbench-head, .reading-hero, .reading-toolbar { align-items: flex-start; flex-direction: column; }
  .docs-view-switch, .reading-hero-actions { width: 100%; justify-content: flex-start; }
  .reading-layout { grid-template-columns: 1fr; }
  .reading-api-list { position: static; max-height: 300px; }
  .reading-search { width: 100%; }
}

@media (max-width: 560px) {
  .site-header {
    height: 58px;
    padding: 0 14px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-text {
    font-size: 1.35rem;
  }
  .nav {
    top: 58px;
  }
  .content {
    padding: 18px 12px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .page-header h1 {
    font-size: 1.55rem;
  }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .request-card,
  .response-card,
  .detail-panel,
  .tree-panel,
  .feature-card,
  .price-card {
    padding: 16px;
  }
  .footer {
    padding: 24px 14px;
  }
  .docs-workbench-head, .reading-hero, .reading-detail { padding: 18px; }
  .docs-workbench-head h1, .reading-hero h1 { font-size: 1.65rem; }
  .docs-view-switch .view-link { flex: 1; }
  .reading-hero-actions { gap: 10px; }
  .reading-detail-head { flex-direction: column; }
  .reading-method { align-self: flex-start; }
  .reading-endpoint { grid-template-columns: 1fr; gap: 5px; }
  .reading-param-row { grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; }
  .reading-param-row p { grid-column: 1 / -1; }
}
