:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --paper: #ffffff;
  --text: #202124;
  --muted: #687076;
  --line: #e5e7eb;
  --brand: #2563eb;
  --code: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

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

.article-index-shell,
.article-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.article-index-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.article-index-hero h1 {
  margin: 4px 0 12px;
  font-size: 46px;
  line-height: 1.15;
}

.article-index-hero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-list {
  display: grid;
  gap: 24px;
  padding: 34px 0 72px;
}

.article-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-card-cover {
  min-height: 210px;
  background: #eef2f7;
}

.article-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card > div {
  padding: 24px 28px;
}

.article-card h2 {
  margin: 5px 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.article-card h2 a {
  color: var(--text);
}

.article-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article-meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.article-read,
.article-back {
  font-weight: 700;
}

.article-shell {
  padding: 34px 0 70px;
}

.article-content {
  padding: 46px 58px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-content > h1 {
  margin: 16px 0 22px;
  font-size: 38px;
  line-height: 1.28;
}

.article-content h2 {
  margin: 42px 0 14px;
  font-size: 27px;
  line-height: 1.35;
}

.article-content h3 {
  margin: 30px 0 10px;
  font-size: 21px;
}

.article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 720px;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-content table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
}

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

.article-content blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--brand);
  background: #f8fafc;
  color: #475569;
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 6px;
  background: var(--code);
  color: #e5e7eb;
  line-height: 1.6;
}

.article-cta {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.article-cta > strong {
  font-size: 20px;
}

.article-cta p {
  margin: 6px 0 16px;
  color: #475569;
}

.article-cta > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-footer {
  padding: 28px 16px 42px;
  color: var(--muted);
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  color: #111827;
  font-size: 19px;
  font-weight: 750;
}

.console-link {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  padding: 7px 10px;
  border-radius: 7px;
  color: #475569;
  font-size: 14px;
}

.header-link:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 920px);
  gap: 34px;
  justify-content: center;
  padding: 34px 24px 80px;
}

.toc-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.toc-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.toc-state {
  display: none;
  color: var(--brand);
  font-size: 13px;
}

#toc {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#toc a {
  display: block;
  padding: 4px 7px;
  border-radius: 6px;
  color: #596168;
  font-size: 13px;
  line-height: 1.45;
}

#toc a:hover,
#toc a.active {
  background: #eef4ff;
  color: var(--brand);
}

#toc a.active {
  font-weight: 650;
}

#toc .h2 {
  padding-left: 17px;
}

#toc .h3 {
  padding-left: 29px;
  font-size: 12px;
}

.document {
  min-width: 0;
  padding: 42px 56px 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.page-title {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.25;
}

.updated {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.scope {
  margin: 0 0 24px;
  color: var(--muted);
}

.api-notice {
  display: grid;
  gap: 8px;
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.notice-action {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -18px 0 34px;
}

.endpoint-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.endpoint-grid strong {
  font-size: 13px;
}

.endpoint-grid code {
  overflow-wrap: anywhere;
  color: #1d4ed8;
  font-size: 12px;
}

.endpoint-grid span {
  color: var(--muted);
  font-size: 11px;
}

.codex-hero {
  margin: 40px 0 24px;
  padding: 28px 30px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #eff6ff 100%);
}

.codex-hero h2 {
  margin: 4px 0 10px !important;
  font-size: 25px !important;
}

.codex-hero p {
  margin: 8px 0;
}

.eyebrow {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.doc-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #3730a3;
  font-size: 14px;
  font-weight: 650;
}

.doc-button.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.surface-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafafa;
}

.surface-card strong,
.surface-card span {
  display: block;
}

.surface-card strong {
  font-size: 16px;
}

.surface-card span {
  margin-top: 2px;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 650;
}

.surface-card p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

.surface-card.recommended {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.advantage-card {
  padding: 17px;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.advantage-card strong {
  display: block;
  color: #1e40af;
  font-size: 15px;
}

.advantage-card p {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.tip-box,
.warning-box,
.checklist-box,
.success-box,
.step-banner {
  margin: 18px 0 24px;
  padding: 15px 18px;
  border-radius: 9px;
}

.tip-box {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
}

.warning-box {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.checklist-box {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.success-box {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
}

.step-banner {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.checklist-box ul {
  margin: 8px 0 0;
}

.muted-note {
  padding: 11px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
}

.choice-table th,
.troubleshoot-table th {
  background: #f8fafc;
  text-align: left;
}

.official-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.platform-details,
.advanced-details {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.platform-details > summary,
.advanced-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.platform-details > summary::-webkit-details-marker,
.advanced-details > summary::-webkit-details-marker {
  display: none;
}

.platform-details > summary::after,
.advanced-details > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}

.platform-details[open] > summary::after,
.advanced-details[open] > summary::after {
  content: "−";
}

.platform-details > summary span,
.advanced-details > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.details-body,
.advanced-content {
  padding: 6px 20px 22px;
}

.codex-advanced,
.claude-appendix {
  margin-top: 30px;
  border-color: #bfdbfe;
}

.official-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #eff6ff;
}

#doc-content a[target="_blank"]:not(.doc-button)::after,
.notice-action::after {
  content: " ↗";
  font-size: 0.78em;
  vertical-align: 0.08em;
}

#doc-content h1,
#doc-content h2,
#doc-content h3,
#doc-content h4 {
  scroll-margin-top: 82px;
  line-height: 1.4;
}

#doc-content h1 {
  margin: 46px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 27px;
}

#doc-content h2 {
  margin: 34px 0 12px;
  font-size: 22px;
}

#doc-content h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

#doc-content h4 {
  margin: 22px 0 8px;
  font-size: 16px;
}

#doc-content ul,
#doc-content ol {
  padding-left: 26px;
}

#doc-content li {
  margin: 4px 0;
}

#doc-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.93em;
}

#doc-content pre {
  position: relative;
  overflow: auto;
  margin: 14px 0 22px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--code);
  color: #e5e7eb;
  line-height: 1.55;
}

#doc-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

#doc-content :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#doc-content pre div {
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 8px;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #1f2937;
  color: #d1d5db;
  cursor: pointer;
}

.doc-image {
  margin: 22px auto 30px;
  text-align: center;
}

.doc-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

#doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

#doc-content th,
#doc-content td {
  padding: 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

#doc-content hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

footer a {
  font-weight: 600;
}

.about-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 34px auto 70px;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  align-items: center;
  min-height: 410px;
  overflow: hidden;
  padding: 58px 64px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(96, 165, 250, 0.3), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #172554 52%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.about-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.about-eyebrow {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.about-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.85;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.about-button.primary {
  border-color: #fff;
  background: #fff;
  color: #1d4ed8;
}

.about-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 50px rgba(147, 197, 253, 0.14);
}

.about-mark span:first-child {
  font-size: 86px;
  font-weight: 800;
  line-height: 0.75;
}

.about-mark span:last-child {
  color: #93c5fd;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.about-capabilities {
  padding: 70px 0 18px;
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2,
.support-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.capability-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.capability-grid article > span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 750;
}

.capability-grid h3 {
  margin: 13px 0 8px;
  font-size: 18px;
}

.capability-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 52px;
  align-items: center;
  margin-top: 48px;
  padding: 54px 58px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
  scroll-margin-top: 80px;
}

.support-copy .about-eyebrow {
  color: #2563eb;
}

.support-intro {
  max-width: 650px;
  margin: 16px 0 0;
  color: #64748b;
}

.support-types {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.support-types article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.support-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 750;
}

.support-types h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.support-types p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.contact-note {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #fff;
}

.contact-note span {
  color: #475569;
}

.wechat-card {
  margin: 0;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 45px rgba(30, 64, 175, 0.1);
}

.wechat-card a {
  display: block;
  border-radius: 12px;
  background: #fff;
}

.wechat-card img {
  display: block;
  width: 100%;
  max-width: 365px;
  height: auto;
  margin: 0 auto;
  border-radius: 9px;
}

.wechat-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 13px;
}

.wechat-card figcaption span {
  color: #64748b;
  font-size: 13px;
}

.wechat-email {
  margin: 12px 0 0;
  color: #475569;
  font-size: 13px;
}

.wechat-email a {
  display: inline;
  color: #2563eb;
  text-decoration: none;
}

.wechat-email a:hover {
  text-decoration: underline;
}

.about-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

body.announcement-open {
  overflow: hidden;
}

.announcement-backdrop[hidden],
.announcement-panel[hidden] {
  display: none !important;
}

.announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  animation: announcement-fade-in 0.18s ease-out;
}

.announcement-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  outline: 0;
  background: #fff;
  color: #202124;
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.36);
  animation: announcement-rise-in 0.22s ease-out;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 30px 18px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}

.announcement-header h2 {
  margin: 0;
  color: #17191c;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.announcement-header-actions,
.announcement-tabs {
  display: flex;
  align-items: center;
}

.announcement-header-actions {
  gap: 12px;
}

.announcement-tabs {
  gap: 6px;
}

.announcement-tab,
.announcement-close,
.announcement-footer button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.announcement-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: transparent;
  color: #7b8088;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.18s ease, color 0.18s ease;
}

.announcement-tab span {
  font-size: 18px;
  line-height: 1;
}

.announcement-tab:hover {
  background: #f4f7fb;
  color: #2563eb;
}

.announcement-tab.active {
  background: #eaf4ff;
  color: #1677ff;
}

.announcement-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #3f434a;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}

.announcement-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.announcement-scroll {
  min-height: 0;
  overflow: auto;
  padding: 24px 30px 8px;
  overscroll-behavior: contain;
}

.announcement-alert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 12px 18px;
  border: 1px solid #ffb3b3;
  border-radius: 12px;
  background: #fff8f8;
}

.announcement-alert-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffdcdc;
  color: #ef4444;
  font-size: 20px;
  font-weight: 800;
}

.announcement-alert p {
  margin: 0;
  color: #73777f;
  font-size: 15px;
  text-align: center;
}

.announcement-alert a {
  color: #1683ed;
  font-weight: 700;
}

.announcement-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 16px;
  color: #73777f;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.announcement-divider::before,
.announcement-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eceef1;
}

.announcement-cards {
  display: grid;
  gap: 10px;
}

.announcement-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #202124;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.announcement-card::after {
  content: "›";
  color: #a3a8b0;
  font-size: 24px;
  line-height: 1;
}

.announcement-card:hover {
  border-color: #93c5fd;
  background: #f5f9ff;
  transform: translateY(-1px);
}

.announcement-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.announcement-card.feedback .announcement-card-icon {
  background: #f1eaff;
  color: #7c3aed;
}

.announcement-card.business .announcement-card-icon {
  background: #fff1db;
  color: #f59e0b;
}

.announcement-card.technical .announcement-card-icon {
  background: #e5f4ff;
  color: #0ea5e9;
}

.announcement-card strong,
.announcement-card small {
  display: block;
}

.announcement-card strong {
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.45;
}

.announcement-card small {
  color: #7b8088;
  font-size: 13px;
  line-height: 1.55;
}

.system-announcement-card {
  position: relative;
  display: flex;
  gap: 18px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.system-announcement-badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.system-announcement-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.system-announcement-card p {
  margin: 0 0 10px;
  color: #64748b;
}

.system-announcement-card a {
  font-weight: 700;
}

.announcement-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px 30px 22px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: initial;
  font-size: 14px;
}

.announcement-footer button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #1683ed;
  font-weight: 700;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.announcement-footer button:hover {
  background: #e8edf5;
}

.announcement-footer button.primary {
  background: #eaf4ff;
  color: #1677ff;
}

.announcement-footer button.primary:hover {
  background: #dcecff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

@keyframes announcement-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes announcement-rise-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  width: 42px;
  height: 42px;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .layout {
    display: block;
    padding: 18px 12px 50px;
  }

  .toc-panel {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 14px;
    padding: 0;
  }

  .toc-toggle {
    margin: 0;
    padding: 13px 16px;
  }

  .toc-state {
    display: inline;
  }

  #toc {
    display: none;
    max-height: 300px;
    overflow: auto;
    padding: 0 12px 14px;
  }

  .toc-panel.is-open #toc {
    display: flex;
  }

  .document {
    padding: 30px 22px 44px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .about-mark {
    position: absolute;
    right: -45px;
    bottom: -65px;
    opacity: 0.35;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }

  .wechat-card {
    width: min(100%, 410px);
    justify-self: center;
  }

  .announcement-dialog {
    width: min(820px, 100%);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 16px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-link {
    padding: 6px 7px;
    font-size: 13px;
  }

  .article-index-hero {
    padding: 44px 0 28px;
  }

  .article-index-hero h1 {
    font-size: 34px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card-cover {
    min-height: 190px;
  }

  .article-card > div {
    padding: 20px;
  }

  .article-content {
    padding: 28px 18px 36px;
  }

  .article-content > h1 {
    font-size: 29px;
  }

  .article-content h2 {
    font-size: 23px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-cta > div {
    align-items: stretch;
    flex-direction: column;
  }

  .document {
    padding: 24px 16px 36px;
  }

  .page-title {
    font-size: 28px;
  }

  #doc-content h1 {
    font-size: 23px;
  }

  .codex-hero {
    padding: 22px 18px;
  }

  .surface-grid,
  .advantage-grid,
  .endpoint-grid,
  .official-links {
    grid-template-columns: 1fr;
  }

  .endpoint-grid {
    margin-top: -18px;
  }

  .platform-details > summary,
  .advanced-details > summary {
    align-items: flex-start;
  }

  .platform-details > summary span,
  .advanced-details > summary span {
    display: none;
  }

  .details-body,
  .advanced-content {
    padding: 4px 14px 18px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  #doc-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-shell {
    width: min(100% - 24px, 1160px);
    margin-top: 14px;
  }

  .about-hero {
    min-height: auto;
    padding: 36px 24px 42px;
    border-radius: 16px;
  }

  .about-hero h1 {
    font-size: 38px;
  }

  .about-lead {
    font-size: 15px;
  }

  .about-actions {
    display: grid;
  }

  .about-button {
    width: 100%;
  }

  .about-capabilities {
    padding-top: 48px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    gap: 30px;
    margin-top: 34px;
    padding: 34px 20px;
    border-radius: 16px;
  }

  .support-copy h2 {
    font-size: 30px;
  }

  .wechat-card {
    padding: 14px;
  }

  .about-footer {
    width: min(100% - 24px, 1160px);
  }

  .announcement-backdrop {
    align-items: end;
    padding: 10px;
  }

  .announcement-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }

  .announcement-header {
    align-items: flex-start;
    gap: 12px;
    padding: 17px 16px 12px;
  }

  .announcement-header h2 {
    padding-top: 7px;
    font-size: 20px;
    white-space: nowrap;
  }

  .announcement-header-actions {
    gap: 3px;
    min-width: 0;
  }

  .announcement-tabs {
    gap: 2px;
  }

  .announcement-tab {
    min-height: 38px;
    padding: 0 9px;
    font-size: 13px;
  }

  .announcement-tab span {
    display: none;
  }

  .announcement-close {
    width: 34px;
    height: 38px;
    font-size: 27px;
  }

  .announcement-scroll {
    padding: 16px 14px 6px;
  }

  .announcement-alert {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .announcement-alert-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .announcement-alert p {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
  }

  .announcement-divider {
    margin: 17px 0 12px;
  }

  .announcement-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 72px;
    padding: 12px;
  }

  .announcement-card-icon {
    width: 36px;
    height: 36px;
  }

  .announcement-card strong {
    font-size: 15px;
  }

  .announcement-card small {
    font-size: 12px;
  }

  .system-announcement-card {
    gap: 12px;
    min-height: 170px;
    padding: 18px;
  }

  .announcement-footer {
    gap: 8px;
    padding: 12px 14px 14px;
  }

  .announcement-footer button {
    flex: 1;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-backdrop,
  .announcement-dialog {
    animation: none;
  }
}
