:root {
  --bg: #f7f6f3;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e6e0;
  --accent: #0f3d3a;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: system-ui, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-title: 20px;
  --fs-body: 13px;
  --fs-note: 12px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 36px 72px 72px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wordmark img {
  display: block;
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: var(--fs-body);
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* ---------- shared type ---------- */

.label {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: var(--fs-note);
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* ---------- hero ---------- */

.hero {
  padding: 44px 0 32px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-note);
}

/* ---------- film ---------- */

.film {
  width: 100%;
  margin: 0 0 88px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.film-frame {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 540;
  height: auto;
  border: 0;
}

/* ---------- disciplines ---------- */

.disciplines {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.disc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.disc-list li {
  border-bottom: 1px solid var(--line);
}

.disc-list a {
  display: flex;
  align-items: baseline;
  padding: 11px 0;
  font-size: var(--fs-body);
}

.disc-list .leader {
  flex: 1;
  align-self: center;
  height: 0;
  margin: 0 10px 1px;
  border-top: 1px dotted var(--line);
}

.disc-list .count {
  color: var(--muted);
  font-size: var(--fs-note);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- updates ---------- */

.updates {
  margin-top: 64px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.update-list time {
  flex: none;
  width: auto;
  color: var(--muted);
  font-size: var(--fs-note);
  font-variant-numeric: tabular-nums;
}

.update-list span {
  font-size: var(--fs-body);
}

.newsline li a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.newsline .nl-kind,
.newsline .nl-sep,
.newsline time {
  flex: none;
  color: #8a8a8a;
  transition: color .15s;
}

.newsline .nl-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .15s;
}

.newsline li a:hover {
  color: inherit;
  text-decoration: none;
}

.newsline li a:hover .nl-title {
  color: #000;
}

.newsline li a:hover .nl-kind,
.newsline li a:hover .nl-sep,
.newsline li a:hover time {
  color: #5a5a5a;
}

.update-list li a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.update-list .ul-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.update-list .ul-kind {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-note);
}

.update-list .ul-title {
  font-size: var(--fs-body);
  transition: color .15s;
}

.update-list li a:hover {
  color: inherit;
  text-decoration: none;
}

.update-list li a:hover .ul-title {
  color: #000;
}

.update-list .ul-sum {
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: 1.7;
}

.update-list time {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-note);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-note);
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer .muted {
  margin-bottom: 0;
}

.site-footer .sep {
  margin: 0 6px;
  color: var(--line);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
}

.site-footer-links a {
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: 1.8;
}

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

@media (max-width: 900px) {
  body {
    padding: 56px 32px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

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

@media (max-width: 560px) {
  body {
    padding: 48px 24px;
  }

  .wordmark img {
    height: 22px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .disc-list {
    grid-template-columns: 1fr;
  }

  .update-list li {
    flex-direction: column;
    gap: 2px;
  }
}

/* ---------- header: nav right + lang ---------- */

.head-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a.on {
  color: var(--ink);
}

.lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--line);
  color: var(--ink);
}

.lang-btn svg {
  transition: transform .16s;
}

.lang .lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 134px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.lang-menu button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: #f4f2ed;
}

.lang-menu button[disabled] {
  color: var(--muted);
  cursor: default;
  background: none;
}

.lang-menu button i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

.lang-menu button.on {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- buttons ---------- */

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.btn:hover {
  background: #0b2f2c;
  color: #fff;
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

.btn.ghost:hover {
  background: rgba(15, 61, 58, 0.06);
  color: var(--accent);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* ---------- blocks ---------- */

.block {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.block .label {
  margin-bottom: 16px;
}

.block .lede {
  margin: -6px 0 24px;
  color: var(--muted);
  font-size: var(--fs-note);
}

.block h3 {
  margin: 30px 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.block p {
  margin: 6px 0;
}

.block .more {
  margin: 20px 0 0;
  font-size: var(--fs-note);
}

.note {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- model groups ---------- */

.groups {
  display: grid;
  gap: 34px;
}

.group header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.group h2,
.group h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.group .count {
  color: var(--muted);
  font-size: 12px;
}

.mlist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.mlist li {
  margin: 0 0 7px;
  break-inside: avoid;
  font-size: 13.5px;
}

.mlist .mid {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- page head / filter ---------- */

.page-head {
  padding: 44px 0 32px;
}

.page-head h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ---------- model list ---------- */

.model-groups {
  display: grid;
  gap: 40px;
}

.mtable {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  table-layout: fixed;
}

.mtable th {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.mtable td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: top;
}

.mtable th:nth-child(1),
.mtable td:nth-child(1) {
  width: 118px;
}

.mtable th:nth-child(2),
.mtable td:nth-child(2) {
  width: 27%;
}

.mtable th:nth-child(4),
.mtable td:nth-child(4) {
  width: 64px;
  text-align: right;
}

.mtable .mid {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mtable .mout {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.view-btn {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.view-btn:hover {
  border-color: var(--accent);
  background: rgba(15, 61, 58, 0.05);
}

.in-table {
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.in-table th {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}

.in-table td {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid #eee;
}

/* ---------- model detail ---------- */

.detail {
  max-width: 760px;
}

.detail-field + .detail-field {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.detail-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.detail-summary {
  margin: 0;
  font-size: 13.5px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 2px 9px;
  border-radius: 6px;
  background: #f2f0ec;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.8;
}

.qty-list {
  margin: 0;
  font-size: 13px;
}

.scope {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-size: 12.5px;
}

.scope li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.log-list {
  margin: 0;
}

.log-row {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 12.5px;
  line-height: 1.8;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row time,
.log-row .ver {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log-row .sep {
  margin: 0 4px;
  color: var(--line);
}

.detail-version {
  margin: 0;
  font-size: 12.5px;
}

/* ---------- modal ---------- */

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.36);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.modal-scroll {
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 32px 30px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-head {
  padding-right: 36px;
}

.modal-id {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.modal-head h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f0ec;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

pre.code {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f6f3;
  color: #2b2b2b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  overflow: auto;
}

pre.code code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* ---------- steps ---------- */

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

ol.steps > li {
  position: relative;
  padding: 0 0 26px 46px;
}

ol.steps > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
}

ol.steps h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

ol.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

ol.steps.tight > li {
  padding-bottom: 16px;
}

/* ---------- lists / faq ---------- */

ul.plain {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
}

ul.plain li {
  margin: 0 0 6px;
}

dl.faq {
  margin: 0;
}

dl.faq dt {
  margin: 18px 0 2px;
  font-size: 14px;
  font-weight: 600;
}

dl.faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- signup ---------- */

.signup {
  display: grid;
  gap: 16px;
  max-width: 420px;
  padding-bottom: 64px;
}

.signup label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.signup input,
.signup select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}

.signup .btn {
  justify-self: start;
}

/* ---------- responsive ---------- */

/* ---------- home ---------- */

.hero-film {
  margin-bottom: 64px;
}

.agents {
  padding-bottom: 88px;
}

.agents-label {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.agent-wall {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.agent-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.agent-row span {
  white-space: nowrap;
}

.agent-row span + span::before {
  content: "·";
  margin: 0 18px;
  color: var(--line);
}

.agents-more {
  margin: 20px 0 0;
  text-align: right;
  font-size: 13px;
}

.agents-more a {
  color: var(--accent);
}

.call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 88px;
}

.call-col {
  min-width: 0;
}

.call-arrow {
  align-self: center;
  color: #b5b5b5;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

.call-code {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f6f3;
  color: #2b2b2b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.call-notes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
}

.call-notes span {
  padding: 3px 10px;
  border-radius: 6px;
  background: #f2f0ec;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.direction-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  font-size: 13.5px;
}

.models-link {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
}

.models-link a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .agents,
  .call {
    padding-bottom: 64px;
  }

  .agent-row span + span::before {
    margin: 0 10px;
  }

  .call {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .call-arrow {
    display: none;
  }

  .call-code {
    padding: 14px 16px;
    font-size: 11.5px;
  }

  .direction-row {
    gap: 8px 20px;
  }
}

@media (max-width: 720px) {
  .mlist {
    columns: 1;
  }
  .mtable th:nth-child(1),
  .mtable td:nth-child(1) {
    width: 96px;
  }
  .mtable th:nth-child(4),
  .mtable td:nth-child(4) {
    width: 56px;
  }
  .modal {
    padding: 12px;
  }
  .modal-card,
  .modal-scroll {
    max-height: calc(100vh - 24px);
  }
  .modal-scroll {
    padding: 24px 20px 26px;
  }
}

/* ---------- home v2 ---------- */

body {
  padding: 28px 40px 72px;
}

.hero-screen {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f4f2ed;
  box-shadow: var(--shadow);
}

.screen {
  margin-top: 104px;
}

/* 16:9 整数取整保护：720 宽时 625px 会被取整成 625×352 */
@media (min-width: 718px) and (max-width: 722px) {
  .home {
    padding-left: 40.5px;
    padding-right: 40.5px;
  }
}

.panel {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.screen-head {
  margin-bottom: 32px;
}

.screen-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.screen-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-item {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.agent-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.agent-mark img {
  display: block;
  width: 28px;
  height: 28px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.agent-item:hover .agent-mark img {
  filter: none;
  opacity: 1;
}

.agent-name {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.panel-link {
  margin: 32px 0 0;
  text-align: right;
  font-size: 13px;
}

.panel-link.center {
  text-align: center;
}

.panel-link a {
  color: #111;
}

.panel-link a:hover {
  color: #000;
  text-decoration: none;
  opacity: .7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.calc-card {
  display: block;
  height: 520px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  font: inherit;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.calc-card:hover {
  transform: translateY(-3px);
}

.calc-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.card-note {
  margin-top: 28px;
  text-align: center;
}

.card-modal .modal-card {
  background: #fff;
}

.card-modal .modal-scroll {
  padding: 52px 0 0;
  background: #fff;
}

.card-modal img {
  display: block;
  width: 100%;
  height: auto;
}

.direction-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  margin: 0;
  font-size: 14px;
}

.direction-row span {
  white-space: nowrap;
}

.screen-merged .card-grid {
  margin-top: 0;
}

.screen-updates {
  padding-bottom: 28px;
}

.screen-updates .screen-title {
  margin-bottom: 18px;
}

.update-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .screen {
    margin-top: 96px;
  }

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

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

  .calc-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .home {
    padding: 24px 40px 56px;
  }

  .panel {
    padding: 28px 24px;
  }

  .screen-head {
    margin-bottom: 24px;
  }

  .screen-title {
    font-size: 22px;
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .calc-card:nth-child(1),
  .calc-card:nth-child(2),
  .calc-card:nth-child(3) {
    width: 100%;
    margin-top: 0;
  }

  .direction-row {
    gap: 10px 24px;
    font-size: 13px;
  }
}

.sub-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
}

.model-chips a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.model-chips a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.calc-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 6px;
}

.screen-merged {
  padding: 0 40px;
}

.screen-merged .sub-title {
  margin: 0 0 12px;
}

.screen-merged .sub-title + .sub-title {
  margin-top: 0;
}

.screen-merged .model-chips {
  margin-bottom: 0;
}

.screen-merged .panel-link {
  margin: 10px 0 26px;
}

.screen-merged .card-grid {
  margin-top: 0;
}
/* ---------- 模型卡片 ---------- */

.model-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 10px 0 26px;
}

.mcard {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mcard:hover {
  border-color: #d9d5cb;
  transform: translateY(-2px);
}

.mcard-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mcard-mark {
  flex: none;
  width: 26px;
  height: 26px;
}

.mcard-text {
  min-width: 0;
}

.mcard-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.mcard-ver {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12.5px;
}

.mcard-date {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.mcard-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
}

.mcard-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: none;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
}

.mcard-btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.more-models {
  text-align: center;
}

.more-models a {
  display: inline-block;
  padding: 9px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
}

.more-models a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 1040px) {
  .model-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .model-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .model-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 动态条 ---------- */

.newsline {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin: 4px 0 44px;
  padding-left: 32px;
  overflow: hidden;
}

.newsline .nl-mark {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.newsline ul {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.newsline li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #565656;
  font-size: 11px;
}

.newsline li span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.newsline li + li {
  flex: none;
  margin-left: 28px;
}

@media (max-width: 760px) {
  .newsline li + li { display: none; }
}

/* ---------- 首页手机版 ---------- */

.hero-mobile {
  display: none;
}

@media (max-width: 760px) {
  body.page-home {
    padding: 18px 16px 40px;
  }

  body.page-home .site-header {
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 12px;
  }

  body.page-home .wordmark img {
    height: 18px;
  }

  body.page-home .nav {
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  body.page-home .head-right {
    gap: 6px;
  }

  body.page-home .lang-btn,
  body.page-home .lang-btn img {
    width: 18px;
    height: 18px;
  }

  body.page-home .newsline {
    height: auto;
    margin: 2px 0 24px;
    padding-left: 0;
    overflow: visible;
  }

  body.page-home .newsline ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    white-space: normal;
  }

  body.page-home .newsline li,
  body.page-home .newsline li + li {
    display: flex;
    width: 100%;
    margin-left: 0;
  }

  body.page-home .newsline li span {
    white-space: normal;
  }

  body.page-home .hero-screen {
    margin: 0 -16px;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-home .film-frame {
    width: 100%;
    aspect-ratio: 960 / 540;
  }

  body.page-home .hero-mobile {
    display: none;
  }

  body.page-home .screen-merged {
    padding: 0;
  }

  body.page-home .hero-mobile h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  body.page-home .hero-mobile p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
  }

  body.page-home .screen {
    margin-top: 44px;
  }

  body.page-home .screen-title {
    font-size: 17px;
  }

  body.page-home .model-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 18px;
  }

  body.page-home .mcard {
    padding: 12px 13px 11px;
  }

  body.page-home .mcard-top {
    gap: 8px;
  }

  body.page-home .mcard-mark {
    width: 20px;
    height: 20px;
  }

  body.page-home .mcard-name {
    font-size: 13px;
    line-height: 1.45;
  }

  body.page-home .mcard-ver {
    display: inline;
    margin-top: 0;
    font-size: 10.5px;
  }

  body.page-home .mcard-date {
    display: inline;
    margin-top: 0;
    font-size: 10px;
  }

  body.page-home .mcard-date::before {
    content: " · ";
  }

  body.page-home .mcard-desc {
    display: none;
  }

  body.page-home .mcard-btn {
    margin-top: 9px;
    padding: 2px 10px;
    font-size: 11px;
  }

  body.page-home .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.page-home .calc-card {
    height: 400px;
  }

  body.page-home .more-models a {
    padding: 8px 22px;
    font-size: 12.5px;
  }

  body.page-home .site-footer {
    margin-top: 48px;
    font-size: 11.5px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mid-link,
.name-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mid-link {
  color: var(--muted);
}

.name-link {
  color: var(--ink);
}

.mid-link:hover,
.name-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog {
  max-width: 720px;
  padding-top: 44px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  margin: 0 0 40px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--line);
}

.post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.post-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.post-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.post-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* ---------- MCP 接入 ---------- */

.mcp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}

.mcp-tab {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: nowrap;
  cursor: pointer;
}

.mcp-tab:hover {
  border-color: #d5d0c6;
  color: var(--accent);
}

.mcp-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(15, 61, 58, 0.05);
  color: var(--accent);
}

.mcp-pane {
  margin: 0;
}

.mcp-pane ol.steps > li {
  padding-bottom: 18px;
}

.block .mcp-verify {
  margin: 4px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 0;
}

.copy-btn {
  padding: 5px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(15, 61, 58, 0.06);
}

.copy-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 文档页 ---------- */

.doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 216px;
  column-gap: 64px;
  align-items: start;
}

.doc-main {
  min-width: 0;
}

.doc-head {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}

.doc-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.doc-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.doc-section {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 40px;
  scroll-margin-top: 28px;
}

.doc-section:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
  margin-bottom: 0;
}

.doc-h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 24px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.doc-anchor {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  opacity: 0.5;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  text-decoration: none;
}

.doc-anchor:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: none;
}

.doc-section.doc-hit .doc-h2 {
  color: var(--accent);
}

.doc-section.doc-hit .doc-anchor {
  color: var(--accent);
  opacity: 1;
}

.doc-section > p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.9;
}

.doc-section > p:last-child {
  margin-bottom: 0;
}

.doc-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.9;
}

.doc-list li {
  margin: 0 0 4px;
}

.doc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: docstep;
}

.doc-steps > li {
  position: relative;
  padding: 0 0 26px 44px;
  counter-increment: docstep;
}

.doc-steps > li:last-child {
  padding-bottom: 0;
}

.doc-steps > li::before {
  content: counter(docstep);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
}

.doc-steps h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.doc-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.doc-steps pre.code {
  margin: 12px 0 0;
}

.doc-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 0;
}

.doc-copy {
  padding: 5px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  cursor: pointer;
}

.doc-copy:hover {
  background: rgba(15, 61, 58, 0.06);
}

.doc-copy-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.doc-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 61, 58, 0.07);
  color: var(--accent);
}

.doc-ico svg {
  display: block;
  width: 20px;
  height: 20px;
}

.doc-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.doc-faq {
  display: grid;
  gap: 12px;
}

.doc-faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.doc-faq-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.doc-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.doc-toc {
  position: sticky;
  top: 32px;
  align-self: start;
  padding-top: 10px;
}

.doc-toc-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-toc nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.doc-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.doc-toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.doc-toc a.on {
  border-left-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1100px) {
  .doc-shell {
    grid-template-columns: minmax(0, 1fr) 216px;
  }
}

@media (max-width: 980px) {
  .doc-shell {
    display: block;
  }

  .doc-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .doc-title {
    font-size: 29px;
  }

  .doc-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-steps > li {
    padding-left: 38px;
  }
}

/* ---------- logs (changelog) ---------- */
.log-main {
  max-width: 720px;
}

.log-head {
  margin: 0 0 26px;
}

.log-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.log-sub {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-item {
  padding: 26px 0;
}

.log-item:first-child {
  padding-top: 0;
}

.log-item + .log-item {
  border-top: 1px solid var(--line);
}

.log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.log-date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.log-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-kind,
.log-ver {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.log-kind {
  border-color: rgba(15, 61, 58, 0.28);
  color: var(--accent);
}

.log-item-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.log-item-title a {
  color: var(--ink);
  text-decoration: none;
}

.log-item-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.log-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.log-group {
  margin: 14px 0 0;
}

.log-group-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.log-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-items li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.8;
}

.log-items li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--muted);
}

.log-empty {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .log-title {
    font-size: 28px;
  }

  .log-item {
    padding: 20px 0;
  }
}

/* ---------- 全站版式统一 ---------- */

.page-head .sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: 1.8;
}

/* 文档页 */
.doc-h2 {
  padding-left: 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.doc-anchor {
  font-family: var(--sans);
  font-size: 14px;
}

.doc-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
}

.doc-card {
  border-radius: 10px;
  background: transparent;
}

.doc-shell {
  padding-bottom: 8px;
}

/* 日志页 */
.post-list {
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  margin: 0 0 36px;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--line);
}

.post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.post-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.post-title a {
  color: var(--ink);
}

.post-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.post-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.post-empty {
  color: var(--muted);
  font-size: 13px;
}

.doc-shell {
  grid-template-columns: minmax(0, 760px) 1fr;
}

.doc-toc {
  justify-self: end;
  width: 216px;
}

.doc-shell {
  display: block;
  max-width: 780px;
}

.doc-section {
  scroll-margin-top: 24px;
}

/* ---------- 日志页（列表版式） ---------- */

.blog-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.blog-hero {
  padding: 26px 0 4px;
}

.blog-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-title {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.blog-lede {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.blog-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.blog-chip:hover {
  color: var(--ink);
}

.blog-chip.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.blog-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.blog-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.blog-item:last-child {
  border-bottom: 0;
}

.blog-entry {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.blog-item.is-featured .blog-entry {
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 32px;
}

.blog-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 104px;
  border-radius: 8px;
  background: var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.blog-item.is-featured .blog-thumb {
  width: 380px;
  height: 190px;
  border-radius: 10px;
  font-size: 18px;
}

.blog-body {
  min-width: 0;
}

.blog-date {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.blog-h {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.blog-h-lg {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.35;
}

.blog-h a {
  color: var(--ink);
}

.blog-h a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.blog-tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.blog-empty {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 文档页（双栏版式） ---------- */

.docs-head {
  padding: 26px 0 4px;
}

.docs-head .docs-h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.docs-grid {
  margin-top: 34px;
}

.docs-section {
  scroll-margin-top: calc(var(--head-h, 72px) + 20px);
}

.docs-main > .docs-section:first-of-type > .docs-h2:first-child {
  margin-top: 4px;
}

.docs-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 690px);
  gap: 40px;
  align-items: start;
}

.docs-side {
  position: sticky;
  top: calc(var(--head-h, 47px) + 20px);
  max-height: calc(100vh - var(--head-h, 47px) - 40px);
  overflow: visible;
  padding-right: 2px;
}

.docs-search {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 32px;
}

.docs-search:focus {
  outline: none;
  border-color: var(--accent);
}

.docs-search::placeholder {
  color: var(--muted);
}

.docs-groups {
  margin: 20px 0 0;
}

.docs-group {
  margin: 0 0 18px;
}

.docs-group-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-nav {
  display: grid;
  gap: 1px;
}

.docs-nav a[hidden],
.docs-group[hidden] {
  display: none;
}

.docs-nav a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.docs-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.docs-nav a.on {
  border-left-color: var(--accent);
  color: var(--accent);
}

.docs-empty {
  display: none;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.docs-empty.show {
  display: block;
}

.docs-main {
  min-width: 0;
  max-width: 690px;
}

.docs-crumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.docs-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.docs-section {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.docs-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-h2 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.docs-section > p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.9;
}

.docs-section > p:last-child {
  margin-bottom: 0;
}

.docs-section > p.docs-close {
  margin-top: 56px;
}

.docs-section > p.docs-sub {
  margin: 26px 0 6px;
  font-weight: 400;
}

.docs-section.docs-hit > .docs-h2 {
  color: var(--accent);
  box-shadow: inset 0 -0.55em 0 rgba(15, 61, 58, 0.1);
}

.docs-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.9;
}

.docs-list li {
  margin: 0 0 4px;
}

.docs-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: docsstep;
}

.docs-steps > li {
  position: relative;
  padding: 0 0 26px 40px;
  counter-increment: docsstep;
}

.docs-steps > li:last-child {
  padding-bottom: 0;
}

.docs-steps > li::before {
  content: counter(docsstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
}

.docs-steps h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.docs-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.docs-code {
  margin: 14px 0 0;
  border-radius: 8px;
  background: #f2f0ea;
}

.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 0;
}

.docs-lang {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-copy {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.docs-copy:hover {
  color: var(--accent);
}

.docs-pre {
  margin: 0;
  padding: 6px 16px 14px;
  overflow: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.docs-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.docs-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(15, 61, 58, 0.07);
  color: var(--accent);
}

.docs-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.docs-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.docs-faq {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.docs-faq-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.docs-faq-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.docs-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .blog-entry,
  .blog-item.is-featured .blog-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .blog-thumb {
    display: none;
  }

  .blog-title {
    font-size: 20px;
  }

  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .docs-side {
    display: none;
  }

  .docs-main {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding-top: 8px;
  }

  .blog-h-lg {
    font-size: 22px;
  }

  .docs-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 统一版式：MCP / 模型 / 注册 ---------- */

.mcp-wrap,
.models-wrap,
.signup-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.mcp-head,
.models-head {
  padding: 26px 0 4px;
}

.mcp-eyebrow,
.models-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mcp-h1,
.models-h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.mcp-lede,
.models-lede {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.mcp-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.mcp-section:first-of-type {
  padding-top: 36px;
}

.mcp-section:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
}

.mcp-h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.mcp-section > p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.9;
}

.mcp-section > p:last-child {
  margin-bottom: 0;
}

.mcp-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mcpstep;
}

.mcp-steps > li {
  position: relative;
  padding: 0 0 26px 40px;
  counter-increment: mcpstep;
}

.mcp-steps > li:last-child {
  padding-bottom: 0;
}

.mcp-steps > li::before {
  content: counter(mcpstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
}

.mcp-steps h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.mcp-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.mcp-code {
  margin: 14px 0 0;
  border-radius: 8px;
  background: #f2f0ea;
}

.mcp-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 0;
}

.mcp-lang {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mcp-copy {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.mcp-copy:hover {
  color: var(--accent);
}

.mcp-pre {
  margin: 0;
  padding: 6px 16px 14px;
  overflow: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.mcp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.mcp-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.mcp-card h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.mcp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.mcp-card p.mcp-verify {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}

.mcp-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.9;
}

.mcp-bullets li {
  margin: 0 0 4px;
}

.models-body {
  margin: 34px 0 0;
}

.models-group {
  margin: 0 0 36px;
}

.models-group:last-child {
  margin-bottom: 0;
}

.models-group-title {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.models-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.models-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 140px 24px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.models-row:hover,
.models-row:focus-visible {
  background: #f2f0ea;
}

.models-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.models-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.models-out {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  overflow-wrap: anywhere;
}

.models-arrow {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-align: right;
}

.models-count {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.signup-wrap {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 96px;
  align-items: center;
  min-height: calc(100vh - 260px);
}

.signup-col h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.signup-lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.signup-col .signup {
  margin-top: 28px;
  padding-bottom: 0;
}

.signup-terms {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.signup-side {
  min-width: 0;
}

@media (max-width: 980px) {
  .signup-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 8px 0 24px;
  }

  .signup-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .mcp-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-h1,
  .models-h1,
  .signup-col h1 {
    font-size: 20px;
  }

  .models-row {
    grid-template-columns: 72px minmax(0, 1fr) 72px 16px;
    gap: 8px;
  }
}

/* 文档页左栏层级 */
.docs-page .docs-group-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-page .docs-nav a {
  padding-left: 10px;
}

/* ---------- partner area ---------- */

.head-acct {
  display: inline-flex;
  align-items: center;
  height: 28px;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
}

.head-acct:hover {
  color: var(--accent);
  text-decoration: none;
}

.head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b23b2e;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.app-wrap {
  padding: 44px 0 56px;
}

.app-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.app-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.app-h1 {
  margin: 6px 0 6px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.app-lede {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.app-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}

.app-tabs a:hover {
  border-color: #d8d5cd;
  color: var(--ink);
  text-decoration: none;
}

.app-tabs a.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.app-tabs .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b23b2e;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.app-tabs a.on .n {
  background: #fff;
  color: var(--accent);
}

.acard {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.acard + .acard {
  margin-top: 16px;
}

.acard h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.acard-sub {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
}

.dash-grid + .acard {
  margin-top: 16px;
}

.quota-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quota-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.quota-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quota-num {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.quota-num small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.quota-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.meter {
  height: 6px;
  margin: 10px 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e2;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.stat-list {
  margin: 0;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
}

.stat-list div:last-child {
  border-bottom: 0;
}

.stat-list dt {
  color: var(--muted);
  font-size: 12px;
}

.stat-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: #e7f0ee;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.badge.warn {
  background: #f7ecda;
  color: #8a5a13;
}

.badge.err {
  background: #f7e4e1;
  color: #9b3125;
}

.badge.gray {
  background: #eeeee9;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
}

.table td {
  padding: 9px 8px;
  border-bottom: 1px solid #f0eee8;
  vertical-align: top;
}

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

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2e7d5b;
}

.dot.bad {
  background: #b23b2e;
}

.count-list {
  display: grid;
  gap: 2px;
}

.count-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 52px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
}

.count-row:last-child {
  border-bottom: 0;
}

.count-name {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.count-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e2;
}

.count-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.count-num {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- messages ---------- */

.msg-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.msg-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.msg-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.msg-list ul {
  max-height: 620px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.msg-item {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #f0eee8;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.msg-item:last-child {
  border-bottom: 0;
}

.msg-item:hover {
  background: #faf9f6;
}

.msg-item.on {
  background: #f2f6f4;
}

.msg-item .t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.msg-item .m {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.msg-item .unread {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b23b2e;
}

.msg-detail {
  min-height: 420px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.msg-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.msg-detail-head h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.msg-meta {
  color: var(--muted);
  font-size: 12px;
}

.msg-stream {
  display: grid;
  gap: 12px;
  padding: 18px 0 4px;
}

.bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.75;
}

.bubble.system {
  background: #f6f5f1;
}

.bubble.partner {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

.bubble .who {
  margin-bottom: 4px;
  font-size: 11px;
  opacity: 0.72;
}

.bubble p {
  margin: 0;
}

.bubble p + p {
  margin-top: 6px;
}

.reply-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reply-box textarea {
  width: 100%;
  min-height: 86px;
  padding: 9px 11px;
  border: 1px solid #ddd9d1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.reply-box textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 61, 58, 0.08);
}

.reply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.q-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.q-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q-item h4 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 700;
}

.q-opts {
  display: grid;
  gap: 6px;
}

.q-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.q-opt input {
  margin-top: 4px;
}

.q-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- forms ---------- */

.f-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.f-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-field.full {
  grid-column: 1 / -1;
}

.f-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.f-field .hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.f-field input:not([type="checkbox"]):not([type="radio"]),
.f-field select,
.f-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ddd9d1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.f-field textarea {
  min-height: 96px;
  resize: vertical;
}

.f-field input:not([type="checkbox"]):not([type="radio"]):focus,
.f-field select:focus,
.f-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 61, 58, 0.08);
}

.f-field input[readonly] {
  background: #f4f2ed;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f6;
  font-size: 13px;
  line-height: 1.7;
}

.notice.ok {
  border-color: #cfe0d8;
  background: #f2f8f5;
  color: #245c44;
}

.notice.err {
  border-color: #ecd2cd;
  background: #fbf3f2;
  color: #8e3025;
}

.notice.warn {
  border-color: #ead9bb;
  background: #fbf6ec;
  color: #7a5313;
}

.notice + .notice {
  margin-top: 10px;
}

/* ---------- corrections ---------- */

.cor-list {
  display: grid;
  gap: 12px;
}

.cor-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.cor-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cor-top .badge {
  margin-right: auto;
}

.cor-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.cor-loc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.cor-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.cor-result {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- settings ---------- */

.key-list {
  display: grid;
  gap: 10px;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.key-main {
  min-width: 220px;
}

.key-code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0eee8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.key-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.small {
  padding: 5px 12px;
  font-size: 12px;
}

.btn.danger {
  border-color: #9b3125;
  background: #9b3125;
}

.btn.danger:hover {
  background: #7d271e;
}

.btn.danger.ghost {
  background: transparent;
  color: #9b3125;
}

.btn.danger.ghost:hover {
  background: rgba(155, 49, 37, 0.06);
}

.plain-key {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  background: #f6f5f1;
}

.plain-key p {
  margin: 0;
  font-size: 12px;
  color: #7a5313;
}

.plain-key code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.danger-zone {
  border-color: #ecd2cd;
  background: #fffdfc;
}

.danger-zone h2 {
  color: #8e3025;
}

.danger-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.danger-cols div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.danger-cols h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.danger-cols ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* ---------- auth pages ---------- */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 52px 0 64px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 30px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.auth-card.wide {
  width: min(600px, 100%);
}

.auth-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.auth-h1 {
  margin: 6px 0 8px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .btn {
  width: 100%;
  padding: 10px 18px;
}

.done-card {
  margin: 4px 0 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.done-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.done-ref {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.done-ref b {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.done-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.addr-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f6;
}

.addr {
  margin-right: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.done-alt {
  margin: 12px 0 0;
  font-size: 12.5px;
}

.steps-bar {
  display: flex;
  gap: 0;
  margin: 14px 0 26px;
  padding: 0;
  list-style: none;
}

.steps-bar li {
  flex: 1;
  padding: 9px 14px 0 0;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.steps-bar li.on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.q-opts.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}

.f-grid.q-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 14px;
  margin-top: 2px;
}

.q-opt input[type="radio"],
.q-opt input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  accent-color: var(--accent);
}

.q-opt span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .f-grid.q-grid,
  .q-opts.cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .steps-bar li {
    padding-right: 0;
    font-size: 11px;
  }
}

.auth-alt {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.steps {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.steps li {
  flex: 1;
  padding-top: 7px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.steps li.on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.steps li.done {
  border-color: #9fc0b7;
  color: var(--accent);
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  letter-spacing: 0.5em;
  text-align: center;
}

.result-stack {
  display: grid;
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.timeline li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #d9d5cc;
}

.timeline li.done {
  color: var(--ink);
}

.timeline li.done::before {
  background: var(--accent);
}

.timeline li.now::before {
  background: #b23b2e;
}

.notfound {
  padding: 84px 0 96px;
  text-align: center;
}

.notfound .code {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.notfound h1 {
  margin: 16px 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.notfound p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .dash-grid,
  .msg-layout,
  .quota-pair,
  .f-grid,
  .danger-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .msg-list ul {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 20px;
  }

  .count-row {
    grid-template-columns: minmax(0, 1fr) 70px 44px;
  }

  .bubble {
    max-width: 100%;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
}

.mcp-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
}

.mcp-card-head h3 {
  margin: 0;
}

.mcp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
  opacity: .72;
}

.mcp-logo svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.docs-main h2,
.docs-main h3 {
  font-weight: 400;
}

/* 条款引用行 */
.docs-ref { margin: 6px 0 18px; font-size: 13px; }
.docs-ref a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin: 0 2px; }

h2.docs-h2,
h2.mcp-h2 {
  font-weight: 700;
}

.p-langs{margin-left:18px;white-space:nowrap}
.p-langs a{color:inherit;font-size:13px;text-decoration:none;margin-left:12px;opacity:.75}
.p-langs a:hover{opacity:1}
.p-langs a.on{font-weight:600;opacity:1}

.lang-menu{display:none}
.lang-menu::before{content:"";position:absolute;left:0;right:0;top:-6px;height:6px}
.lang:hover .lang-menu,.lang.open .lang-menu{display:flex;flex-direction:column}
.lang-menu a{display:flex;justify-content:space-between;gap:10px;width:100%;padding:6px 8px;border-radius:6px;color:var(--ink);font-size:13px;text-decoration:none}
.lang-menu a:hover{background:#f4f2ed}
.lang-menu a.on{color:var(--accent);font-weight:600}
.head-acct.on{color:var(--ink);font-weight:600}


