:root {
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --ink: #18222f;
  --muted: #657386;
  --line: #dce3eb;
  --line-strong: #c8d3df;
  --brand: #1479b8;
  --brand-dark: #0e5f91;
  --brand-soft: #e7f4fb;
  --cyan: #0a9a9a;
  --green: #18845f;
  --green-soft: #e7f6ef;
  --coral: #c86042;
  --coral-soft: #fff0e9;
  --danger: #c74255;
  --code: #111923;
  --code-soft: #182534;
  --shadow-sm: 0 8px 24px rgba(24, 34, 47, .06);
  --shadow-md: 0 18px 50px rgba(24, 34, 47, .1);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 64px 0 auto;
  width: 100%;
  height: 520px;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 61, 83, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 61, 83, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  width: 100%;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(210, 219, 228, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  width: fit-content;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(20, 121, 184, .2);
}
.brand span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand small {
  margin-top: 4px;
  overflow: hidden;
  color: #788698;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a {
  padding: 7px 10px;
  color: #526175;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.topnav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.back-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.back-link svg, .primary-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-link:hover { color: var(--brand-dark); border-color: #8fb9d2; background: var(--brand-soft); }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 52px 24px 80px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 48px;
  padding: 26px 0 64px;
}
.hero-copy, .hero-console, .section-block, .quickstart, .model-grid, .model-card, .code-window { min-width: 0; }
.eyebrow {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #496073;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.eyebrow > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 132, 95, .12);
}
.eyebrow span {
  padding: 4px 7px;
  color: var(--brand-dark);
  border: 1px solid #bbd9e9;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 10px;
  letter-spacing: 0;
}
h1 {
  margin: 20px 0 18px;
  color: #172536;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 em { color: var(--brand); font-style: normal; }
.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  border-radius: 7px;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(20, 121, 184, .2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}
.primary-link:hover { background: var(--brand-dark); transform: translateY(-1px); }
.text-link {
  color: #364b61;
  text-underline-offset: 5px;
  font-size: 14px;
  font-weight: 750;
}
.text-link:hover { color: var(--brand-dark); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #778697;
  font-size: 12px;
}
.hero-meta span { white-space: nowrap; }
.hero-meta b { color: #324a60; font-size: 13px; }

.hero-console {
  padding: 16px;
  overflow: hidden;
  color: #d8e4ef;
  border: 1px solid #253546;
  border-radius: 8px;
  background: var(--code);
  box-shadow: var(--shadow-md);
}
.console-bar, .code-head { display: flex; align-items: center; margin-bottom: 14px; }
.console-bar > span, .code-head > span { display: flex; gap: 5px; }
.console-bar > span i, .code-head > span i { width: 7px; height: 7px; border-radius: 50%; background: #5d6c7b; }
.console-bar > span i:first-child, .code-head > span i:first-child { background: #dc6572; }
.console-bar > span i:nth-child(2), .code-head > span i:nth-child(2) { background: #e9ad4f; }
.console-bar > span i:last-child, .code-head > span i:last-child { background: #4eb77f; }
.console-bar b {
  margin: auto;
  color: #8fa0b1;
  font: 700 11px/1 Consolas, monospace;
  letter-spacing: 0;
}
.console-bar em {
  color: #5fd09b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}
.endpoint-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #2d4053;
  border-radius: 7px;
  background: var(--code-soft);
}
.endpoint-card > div { min-width: 0; }
.endpoint-card span {
  display: block;
  margin-bottom: 6px;
  color: #8192a3;
  font: 800 9px/1 Consolas, monospace;
  letter-spacing: 0;
}
.endpoint-card code {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #70d6d6;
  font: 700 13px/1.45 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-action, .code-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #b7c8d8;
  border: 1px solid #3a4c5d;
  border-radius: 6px;
  background: #202e3c;
  cursor: pointer;
  font-weight: 750;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.copy-action { padding: 8px 10px; font-size: 12px; }
.copy-action svg, .code-copy svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-action:hover, .code-copy:hover { color: #fff; border-color: #5f768b; background: #293b4d; }
.endpoint-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.endpoint-notes span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  overflow: hidden;
  color: #b7c5d3;
  border: 1px solid #27394a;
  border-radius: 6px;
  background: #141f2b;
  font: 12px/1.25 Consolas, monospace;
  white-space: nowrap;
}
.endpoint-notes b { flex: 0 0 40px; color: #5fb8e2; font-size: 10px; }
.endpoint-notes i {
  margin-left: auto;
  padding: 3px 5px;
  color: #8ee1b8;
  border-radius: 4px;
  background: rgba(38, 151, 101, .18);
  font: 800 7px/1 sans-serif;
}
.auth-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: #778899;
  border-radius: 6px;
  background: #0d151e;
  font-size: 10px;
}
.auth-row code {
  min-width: 0;
  overflow: hidden;
  color: #9fb0c0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-row i { color: #62c997; font-size: 9px; font-style: normal; font-weight: 800; }

.section-block {
  width: 100%;
  margin: 0;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head > div { min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
.section-head h2 { margin: 0 0 5px; color: #1c2b3c; font-size: 22px; letter-spacing: 0; }
.section-head p { margin: 0; color: #738195; font-size: 14px; }
.section-index {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  border: 1px solid #bcd7e6;
  border-radius: 7px;
  background: var(--brand-soft);
  font: 800 12px/1 Consolas, monospace;
}
.section-tag {
  flex: none;
  padding: 6px 9px;
  color: #596b7e;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.create-panel {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(280px, 1.28fr) auto;
  align-items: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.field-wrap { min-width: 0; }
.field-wrap label { display: block; margin-bottom: 8px; color: #384d63; font-size: 13px; font-weight: 800; line-height: 20px; }
.field-wrap label small { margin-left: 4px; color: #8a97a6; font-size: 11px; font-weight: 600; }
.field-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #203347;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field-wrap input::placeholder { color: #a0aab5; }
.field-wrap input:focus { border-color: #65a9cf; box-shadow: 0 0 0 3px rgba(20, 121, 184, .1); }
.field-wrap > span { display: block; margin-top: 7px; color: #768595; font-size: 11px; }
.primary-action {
  height: 44px;
  margin-top: 29px;
  padding: 0 17px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(20, 121, 184, .16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.primary-action b { margin-left: 7px; font-size: 16px; font-weight: 400; }
.primary-action:hover { background: var(--brand-dark); transform: translateY(-1px); }
.primary-action:disabled { opacity: .55; cursor: wait; transform: none; }
.key-list { display: grid; gap: 9px; margin-top: 12px; }
.key-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.key-item > div:first-child { min-width: 0; }
.key-name { margin-bottom: 5px; color: #24384d; font-size: 14px; font-weight: 800; }
.key-value { overflow-wrap: anywhere; color: #53677c; font: 12px/1.5 Consolas, monospace; }
.key-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; color: #8492a1; font-size: 11px; }
.key-actions { display: flex; flex: none; gap: 7px; }
.key-actions button {
  padding: 7px 10px;
  color: var(--brand-dark);
  border: 1px solid #bdd4e2;
  border-radius: 6px;
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.key-actions button:hover { border-color: #8fb7cd; }
.key-actions .delete { color: var(--danger); border-color: #eccbd1; background: #fff5f7; }
.loading, .empty, .login-required {
  grid-column: 1 / -1;
  padding: 24px;
  color: #718094;
  border: 1px dashed #cbd7e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 13px;
}
.login-required a { color: var(--brand-dark); font-weight: 800; }

.claude-beta-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 13px 14px;
  color: #74442f;
  border: 1px solid #edcbbd;
  border-radius: 8px;
  background: var(--coral-soft);
}
.claude-beta-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  background: var(--coral);
  font: 800 15px/1 Georgia, serif;
}
.claude-beta-notice strong { display: block; margin-bottom: 3px; color: #663521; font-size: 13px; }
.claude-beta-notice p { margin: 0; color: #90614d; font-size: 11px; line-height: 1.65; }
.claude-beta-notice > b {
  padding: 4px 6px;
  color: #9d4d30;
  border: 1px solid #dfad99;
  border-radius: 4px;
  background: rgba(255, 255, 255, .7);
  font-size: 9px;
  letter-spacing: 0;
}
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.model-group-cards { display: contents; }
.model-group-cards.new-api-group {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 4px;
  border: 1px solid #b8dfd2;
  border-radius: 10px;
  background: linear-gradient(135deg, #eefaf6, #f7fbfa);
}
.model-group-head.new-api-group { border-color: #a9d8c8; background: #e8f7f1; }
.model-group-head.new-api-group b { color: #146c50; }
.model-group-head.new-api-group em { color: #258365; }
.model-group-head {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #cbdde8;
  border-radius: 7px;
  background: var(--brand-soft);
}
.model-group-head:first-child { margin-top: 0; }
.model-group-head > div { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.model-group-head b { color: #234b62; font-size: 13px; }
.model-group-head span { overflow: hidden; color: #6e8494; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.model-group-head em { flex: none; color: #4f758a; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
.model-group-head.anthropic { margin-top: 16px; border-color: #e7c9bb; background: var(--coral-soft); }
.model-group-head.anthropic b { color: #814329; }
.model-group-head.anthropic em { color: #9c624b; }
.model-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.model-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); opacity: 0; }
.model-card:hover { border-color: #afc5d2; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.model-card:hover::before { opacity: 1; }
.model-card.price-drop { border-color: #b9ddcd; }
.model-card.price-drop::before { background: var(--green); opacity: 1; }
.price-drop-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  color: #fff;
  border-radius: 0 0 0 6px;
  background: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}
.price-drop-ribbon i { font-size: 12px; font-style: normal; line-height: 1; }
.price-drop-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0 -3px; color: #547866; font-size: 10px; font-weight: 700; }
.price-drop-note span { padding: 2px 5px; color: #0e7250; border-radius: 4px; background: var(--green-soft); font-size: 9px; font-weight: 900; }
.model-title { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 34px; }
.model-title h3 {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #243b51;
  font: 800 15px/1.35 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-title span {
  flex: none;
  padding: 4px 6px;
  color: var(--brand-dark);
  border: 1px solid #bcd8e7;
  border-radius: 4px;
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}
.model-title span.anthropic { color: #984b2d; border-color: #e9c0b0; background: var(--coral-soft); }
.model-card > p { min-height: 40px; margin: 8px 0 13px; color: #6f7f90; font-size: 12px; line-height: 1.6; }
.new-api-card { min-width: 0; }
.peak-note {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 10px;
  color: #637a76;
  font-size: 10px;
  line-height: 1.35;
}
.peak-note span { padding: 3px 5px; color: #9b6422; border-radius: 4px; background: #fff2d8; font-weight: 900; white-space: nowrap; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: -2px 0 10px; }
.schedule-price { display: grid; gap: 2px; padding: 7px 8px; color: #647887; border: 1px solid #dce5e8; border-radius: 6px; background: #f7fafb; font-size: 10px; line-height: 1.35; }
.schedule-price.active { color: #166c50; border-color: #8bcdb4; background: #e9f8f1; box-shadow: inset 3px 0 #18845f; }
.schedule-price b { color: #354e60; font-size: 10px; }
.schedule-price span { white-space: nowrap; }
.schedule-price .schedule-free { margin-top: 2px; color: #16805c; font-weight: 800; }
.new-api-card .current-price-row { display: none; }
.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  background: #dfe6ed;
}
.price-cell { min-width: 0; padding: 9px; background: #f8fafc; }
.price-cell small { display: block; margin-bottom: 5px; color: #778696; font-size: 10px; }
.price-cell strong { display: block; min-width: 0; color: #334b62; font-size: 12px; line-height: 1.4; }
.point-price { display: block; overflow-wrap: anywhere; font-weight: 800; }
.cny-price { display: block; margin-top: 2px; color: #66798a; font-size: 10px; font-weight: 700; }
.price-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: #6e7e90; font-size: 11px; line-height: 1.65; }
.price-note i {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  border-radius: 50%;
  background: var(--brand-soft);
  font: 800 9px/1 serif;
}

.quickstart {
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: 34px;
  margin-top: 34px;
  padding: 36px;
  overflow: hidden;
  color: #d7e4ef;
  border: 1px solid #273746;
  border-radius: 8px;
  background: var(--code);
  box-shadow: var(--shadow-md);
}
.quickstart-copy .section-index { color: #8ed9d9; border-color: #315867; background: #17333d; }
.quickstart h2 { margin: 16px 0 10px; color: #fff; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.quickstart-copy > p { margin: 0; color: #aebdca; font-size: 14px; line-height: 1.75; }
.protocol-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 17px;
  padding: 4px;
  border: 1px solid #344555;
  border-radius: 7px;
  background: #0b1219;
}
.protocol-tabs button { padding: 7px 10px; color: #9dafbf; border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.protocol-tabs button.active { color: #0d5252; background: #bfeaea; }
.protocol-tabs small { margin-left: 3px; color: #e49a73; font-size: 8px; }
.protocol-tabs button.active small { color: #97472d; }
.quick-points { display: grid; gap: 8px; margin-top: 22px; }
.quick-points span { display: flex; align-items: center; gap: 9px; color: #cbd7e1; font-size: 12px; font-weight: 700; }
.quick-points i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #8bd6d6;
  border: 1px solid #345261;
  border-radius: 50%;
  background: #142832;
  font: 800 8px/1 sans-serif;
}
.code-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid #304152;
  border-radius: 7px;
  background: #0b1219;
}
.code-window[hidden] { display: none; }
.code-head { height: 42px; margin: 0; padding: 0 12px; border-bottom: 1px solid #293746; background: #121c26; }
.code-head b { min-width: 0; margin-left: 12px; overflow: hidden; color: #9bafc0; font: 700 10px/1 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.code-copy { margin-left: auto; padding: 6px 8px; font-size: 10px; }
.quickstart pre { width: 100%; max-width: 100%; min-height: 178px; margin: 0; padding: 20px; overflow: auto; }
.quickstart code { display: block; max-width: 100%; color: #c3dcec; font: 12px/1.85 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

.footer {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 26px 24px 36px;
  color: #7c8997;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.footer-brand { font-size: 13px; }
.footer-brand img { width: 29px; height: 29px; flex-basis: 29px; border-radius: 7px; }
.footer-brand small { font-size: 8px; }
.footer p { margin: 0; text-align: center; }
.footer > span { justify-self: end; }
.toast {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  left: 50%;
  max-width: calc(100vw - 28px);
  padding: 10px 15px;
  color: #fff;
  border-radius: 7px;
  background: #172636;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== FishCode VS Code 插件推广区 ===== */
.fishcoding-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid #bfe3d6;
  border-radius: 12px;
  background: linear-gradient(135deg, #eafaf3 0%, #f0f9ff 55%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}
.fishcoding-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  color: #0d7a55;
  border: 1px solid #a8e0c8;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}
.fishcoding-copy h3 {
  margin: 0 0 10px;
  color: #0d5a42;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.25;
}
.fishcoding-recommend {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  color: #0d7a55;
  border-radius: 999px;
  background: #dff5eb;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}
.fishcoding-copy > p {
  margin: 0 0 14px;
  color: #48655a;
  font-size: 13.5px;
  line-height: 1.75;
}
.fishcoding-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.fishcoding-points li {
  position: relative;
  padding: 3px 0 3px 2px;
  color: #3c5c50;
  font-size: 13px;
  line-height: 1.7;
}
.fishcoding-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.fishcoding-actions .primary-link { margin: 0; }
.fishcoding-unavailable { border: 0; cursor: pointer; font: inherit; }
.fishcoding-ver { color: #7c9389; font-size: 12px; font-weight: 700; }
.fishcoding-dl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  border: 1px dashed #b6d9cb;
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
}
.fishcoding-dl span {
  padding: 2px 7px;
  color: #0d7a55;
  border-radius: 4px;
  background: #dff5eb;
  font-size: 11px;
  font-weight: 800;
}
.fishcoding-dl code {
  color: #375448;
  font: 11.5px/1.5 Consolas, Menlo, monospace;
  word-break: break-all;
}
.fishcoding-install {
  margin: 10px 0 0;
  color: #587166;
  font-size: 10.5px;
  line-height: 1.55;
}
.fishcoding-install b { color: #275943; }
.fishcoding-harness-section { padding-top: 8px; }
.fishcoding-harness-banner {
  border-color: #d5e1ed;
  background: linear-gradient(135deg, #f4f9fd 0%, #f7fbff 55%, #fff 100%);
}
.fishcoding-harness-banner .fishcoding-kicker {
  color: #356582;
  border-color: #c8ddec;
}
.fishcoding-harness-banner .fishcoding-copy h3 { color: #284d66; }
.fishcoding-harness-banner .fishcoding-copy > p,
.fishcoding-harness-banner .fishcoding-points li { color: #587487; }
.fishcoding-art { min-width: 0; }
.fishcoding-window {
  overflow: hidden;
  border: 1px solid #d6e4e0;
  border-radius: 10px;
  background: #0f1b23;
  box-shadow: 0 18px 40px rgba(15, 27, 35, .22);
}
.fishcoding-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #22313a;
  background: #16252f;
}
.fishcoding-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0655f;
}
.fishcoding-window-bar span:nth-child(2) { background: #f0b14d; }
.fishcoding-window-bar span:nth-child(3) { background: #37c47c; }
.fishcoding-window-bar b {
  margin-left: 8px;
  color: #8aa6b4;
  font-size: 11px;
  font-weight: 700;
}
.fishcoding-window-body { padding: 18px 16px; }
.fc-line {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #22343f;
}
.fc-line-a { width: 88%; }
.fc-line-b { width: 64%; }
.fc-line-c { width: 76%; }
.fc-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 11px;
  color: #7be0b3;
  border: 1px solid #2f6f55;
  border-radius: 6px;
  background: #143629;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
}

@media (max-width: 980px) {
  .model-group-cards.new-api-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 720px; }
  .hero-console { width: min(100%, 720px); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickstart { grid-template-columns: 1fr; }
  .quickstart-copy { max-width: 620px; }
  .fishcoding-banner { grid-template-columns: 1fr; gap: 20px; }
  .fishcoding-art { display: none; }
}

@media (max-width: 700px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .model-group-cards.new-api-group { grid-template-columns: 1fr; padding: 3px; }
  html { scroll-padding-top: 72px; }
  .page-grid { top: 60px; height: 360px; background-size: 28px 28px; }
  .topbar { height: 60px; padding: 0 14px; }
  .brand { max-width: calc(100vw - 64px); font-size: 16px; }
  .brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .back-link { width: 36px; height: 36px; justify-content: center; padding: 0; }
  .back-link span { display: none; }
  .page-shell { width: 100%; padding: 28px 14px 56px; }
  .hero { width: 100%; gap: 24px; padding: 16px 0 40px; }
  .eyebrow { font-size: 12px; }
  h1 { margin: 16px 0 14px; font-size: 36px; line-height: 1.12; }
  .hero-copy > p { font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 14px; margin-top: 22px; }
  .primary-link { padding: 11px 14px; font-size: 13px; }
  .text-link { font-size: 13px; }
  .hero-meta { gap: 8px 14px; margin-top: 23px; padding-top: 16px; font-size: 11px; }
  .hero-meta b { font-size: 12px; }
  .hero-console { width: 100%; padding: 12px; }
  .endpoint-card { padding: 12px; }
  .endpoint-card code { font-size: 12px; }
  .endpoint-notes { grid-template-columns: 1fr; }
  .endpoint-notes span { font-size: 11px; }
  .auth-row { grid-template-columns: auto minmax(0, 1fr); }
  .auth-row i { display: none; }
  .section-block { padding: 36px 0; }
  .section-head { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .section-head > div { gap: 11px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 13px; line-height: 1.6; }
  .section-tag { align-self: flex-start; }
  .fishcoding-banner { padding: 18px 15px; }
  .fishcoding-copy h3 { font-size: 20px; }
  .fishcoding-dl { flex-direction: column; align-items: flex-start; }
  .create-panel { grid-template-columns: 1fr; padding: 14px; }
  .primary-action { width: 100%; margin-top: 1px; }
  .key-item { align-items: flex-start; flex-direction: column; gap: 12px; }
  .key-actions { width: 100%; }
  .key-actions button { flex: 1; }
  .claude-beta-notice { grid-template-columns: auto minmax(0, 1fr); align-items: flex-start; }
  .claude-beta-notice > b { display: none; }
  .model-grid { grid-template-columns: 1fr; gap: 10px; }
  .model-group-head { align-items: flex-start; gap: 10px; }
  .model-group-head > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .model-group-head span { white-space: normal; }
  .model-card { padding: 15px 14px; }
  .model-title { padding-right: 30px; }
  .model-title h3 { font-size: 15px; }
  .model-card > p { min-height: 0; }
  .price-cell { padding: 9px 8px; }
  .price-cell strong { font-size: 12px; }
  .quickstart { width: 100%; gap: 25px; margin-top: 20px; padding: 24px 14px; }
  .quickstart h2 { font-size: 24px; }
  .quickstart-copy > p { font-size: 13px; }
  .protocol-tabs { width: 100%; }
  .protocol-tabs button { flex: 1; }
  .quickstart pre { min-height: 0; padding: 16px 14px; }
  .quickstart code { font-size: 11px; line-height: 1.75; }
  .footer { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 24px 14px 32px; text-align: center; }
  .footer > span { justify-self: center; }
}

@media (max-width: 360px) {
  .endpoint-card { grid-template-columns: 1fr; }
  .copy-action { width: 100%; }
  .price-row { grid-template-columns: 1fr; }
  .model-title { align-items: flex-start; flex-direction: column; padding-right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
