/* 华风爱科 API 文档页面核心样式 */

/* 顶栏 sticky 72px：本页目录 / hash 锚点需预留偏移，避免标题被挡住 */
html {
  scroll-padding-top: 88px;
}

/* 1. 基础布局与重置 */
.doc-body {
  background-color: #ffffff;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 兜底：各锚点目标自身也留出顶栏空间（兼容部分不吃 scroll-padding 的场景） */
.doc-body [id] {
  scroll-margin-top: 88px;
}

/* 顶栏与落地页共用 pages.css 中的 .page-body > header 样式 */
.doc-body .page-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.doc-body .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.doc-body .mobile-menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #344054;
  border-radius: 1px;
}

@media (max-width: 1200px) {
  .doc-body .mobile-menu-toggle {
    display: inline-flex;
  }
}

.doc-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px; /* Header Height */
  width: 100%;
}

/* 2. 侧栏导航 (Left Sidebar) */
.doc-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
  background-color: transparent;
  padding: 32px 20px 60px 20px;
  box-sizing: border-box;
  z-index: 10;
}

.doc-nav-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
}

.doc-nav-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-nav-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #1d1d1f;
  margin: 0 0 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.doc-nav-title:hover {
  color: #1d1d1f;
  background-color: #f5f5f7;
}

.doc-nav-title::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-right: 2px solid #86868b;
  border-bottom: 2px solid #86868b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.doc-nav-group.collapsed .doc-nav-title {
  margin-bottom: 0;
}

.doc-nav-group.collapsed .doc-nav-title::before {
  transform: rotate(-45deg);
}

.doc-nav-group.collapsed .doc-nav-list {
  display: none;
}

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

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

.doc-nav-link {
  position: relative;
  display: block;
  padding: 9px 14px 9px 22px;
  color: #424245;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-nav-link::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: #86868b;
  border-radius: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-nav-link:hover {
  color: #1d1d1f;
  background-color: #f5f5f7;
}

.doc-nav-link:hover::before {
  height: 12px;
  background-color: #86868b;
}

.doc-nav-link.active {
  color: #0071e3;
  background-color: #f5f5f7;
  font-weight: 600;
}

.doc-nav-link.active::before {
  height: 18px;
  background-color: #0071e3;
}

/* 3. 三栏主显示区 (Middle Content + Right Code) */
.doc-content-wrapper {
  display: block;
  position: relative;
  width: 100%;
  background-color: #ffffff;
}

/* 正文 + 代码示例：大屏左右分栏，窄屏上下堆叠（断点见下方 media） */
.doc-section {
  display: none; /* Only show active section */
  grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
  min-height: calc(100vh - 72px);
  width: 100%;
}

.doc-section.active {
  display: grid;
}

@media (min-width: 1600px) {
  .doc-section:not(.full-width) {
    grid-template-columns: minmax(0, 1fr) 560px;
  }
}

@media (min-width: 1201px) and (max-width: 1439px) {
  .doc-section:not(.full-width) {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 38%);
  }

  .doc-section:not(.full-width) .doc-main {
    padding-left: 36px;
    padding-right: 28px;
  }

  .doc-section:not(.full-width) .doc-code-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 全宽指南与对照表模块 (No Code Panel) */
.doc-section.full-width {
  grid-template-columns: 1fr;
}

.doc-section.full-width .doc-main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 中间主内容栏 (Middle Panel) */
.doc-main {
  padding: 40px 60px;
  min-width: 0;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: #ffffff;
}

.doc-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.doc-title {
  font-size: 30px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}

.doc-desc {
  font-size: 16px;
  line-height: 1.625;
  color: #86868b;
  margin-bottom: 36px;
}

.doc-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 20px 0;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

/* 右侧代码展示控制台 (Right Panel) */
/* 右侧代码展示控制台 (Right Panel) */
.doc-code-panel {
  background-color: #ffffff;
  color: #1d1d1f;
  border-left: none;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  overflow-y: auto;
  z-index: 5;
  padding: 36px 24px;
  box-sizing: border-box;
}

.doc-code-panel.is-code-anchor-flash {
  animation: doc-code-anchor-flash 0.9s ease;
}

@keyframes doc-code-anchor-flash {
  0% { box-shadow: inset 0 0 0 0 rgba(0, 113, 227, 0); }
  35% { box-shadow: inset 0 0 0 2px rgba(0, 113, 227, 0.35); }
  100% { box-shadow: inset 0 0 0 0 rgba(0, 113, 227, 0); }
}

/* 4. 代码控制台 Tab */
.code-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 12px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.code-example-card {
  border: 1px solid #1e293b;
  border-radius: 8px;
  --code-bg: #0b0f19;
  --code-bar-bg: #0d111d;
  --code-fg: #e6edf3;
  --code-comment: #8b9cb3;
  --code-string: #7ee787;
  --code-keyword: #ff7b72;
  --code-number: #f2cc60;
  --code-key: #79c0ff;
  --code-boolean: #d2a8ff;
  --code-null: #a5b4c8;
  background-color: var(--code-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  width: 100%;
}

.code-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d111d;
  border-bottom: 1px solid #1e293b;
  padding: 0 16px;
}

.code-tabs-left {
  display: flex;
  gap: 16px;
}

.code-tabs-right {
  display: flex;
  gap: 8px;
}

.code-tab-type {
  background: none;
  border: none;
  color: #64748b;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.code-tab-type:hover {
  color: #e2e8f0;
}

.code-tab-type.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

.code-tab {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 14px 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.code-tab:hover {
  color: #e2e8f0;
}

.code-tab.active {
  color: #ffffff;
  font-weight: 600;
}

.code-block-wrapper {
  flex: 1;
  overflow: auto;
  padding: 20px;
  background-color: var(--code-bg, #0b0f19);
}

.code-block {
  display: none;
  margin: 0;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--code-fg, #e6edf3);
}

.code-block.active {
  display: block;
}

.code-block code {
  font-family: inherit;
  white-space: pre-wrap; /* Auto line wrapping */
  word-break: break-all;
  color: var(--code-fg, #e6edf3);
}

/* 语法着色样式（GitHub Dark 风格，保证黑底对比度） */
.code-example-card .code-comment { color: var(--code-comment); font-style: italic; }
.code-example-card .code-string { color: var(--code-string); }
.code-example-card .code-keyword { color: var(--code-keyword); font-weight: 600; }
.code-example-card .code-number { color: var(--code-number); }
.code-example-card .code-key { color: var(--code-key); font-weight: 500; }
.code-example-card .code-boolean { color: var(--code-boolean); }
.code-example-card .code-null { color: var(--code-null); }

.response-header-panel {
  background-color: #0d111d;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block-wrapper.response-json {
  border-top: none;
  background-color: var(--code-bg, #0b0f19);
}

/* 5. 表格设计 */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 32px;
}

th, td {
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

th {
  background-color: transparent;
  color: #1d1d1f;
  font-weight: 600;
  border-bottom: 2px solid #d2d2d7;
}

tr:nth-child(even) {
  background-color: transparent;
}

.doc-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  background-color: #f5f5f7;
}

/* 6. 徽章设计 */
.type-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  font-family: monospace;
}

.req-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.req-badge.yes {
  background-color: #fee2e2;
  color: #ef4444;
}

.req-badge.no {
  background-color: #e2e8f0;
  color: #64748b;
}

/* 7. API Endpoints */
.endpoint-line {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #f8fafc;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  margin-bottom: 12px;
}

.endpoint-line.advanced {
  border-left-color: #a855f7;
  background-color: #faf5ff;
  border-color: #f3e8ff;
}

.method-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
}

.method-tag.get {
  background-color: #10b981;
}

.endpoint-type {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  min-width: 160px;
}

.endpoint-url {
  font-size: 13px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  color: #2563eb;
  word-break: break-all;
}

/* 8. 对照资源横向选项卡 (Resources Tabs) */
.resources-tabs-wrapper {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.resources-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.resource-tab {
  background: none;
  border: none;
  color: #64748b;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.resource-tab:hover {
  color: #0f172a;
}

.resource-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.resources-panels {
  width: 100%;
}

.resource-content-panel {
  display: none;
}

.resource-content-panel.active {
  display: block;
}

/* 9. FAQ Accordions */
.faq-accordion-group {
  margin-top: 24px;
}

.faq-details {
  margin-bottom: 12px;
}

.faq-summary {
  font-size: 15px;
  color: #0f172a;
}

.faq-answer {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.faq-answer p {
  margin: 0 0 10px 0;
}

.faq-answer p:last-child {
  margin: 0;
}

.faq-answer strong {
  color: #1e3a8a;
}

.faq-answer a {
  color: #2563eb;
  text-decoration: underline;
}

/* 10. Overview Portal Grid Design */
.tab-switcher {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-item.active {
  background-color: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.grid-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.grid-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.grid-section-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15);
}

.portal-card:hover .portal-card-title {
  color: #2563eb;
}

.portal-card:hover .portal-card-title svg {
  transform: translateX(4px);
  color: #2563eb;
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.portal-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.portal-icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.portal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-primary { background-color: #e0f2fe; color: #0369a1; }
.badge-success { background-color: #dcfce7; color: #15803d; }
.badge-warning { background-color: #ffedd5; color: #c2410c; }
.badge-danger { background-color: #fee2e2; color: #b91c1c; }

.portal-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-card-title svg {
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.portal-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 20px 0;
  flex: 1;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tag {
  font-size: 12px;
  color: #475569;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.overview-grid {
  display: none;
}

.overview-grid.active {
  display: block;
}

/* 11. SVG Size Overrides to prevent layout breakage */
svg {
  flex-shrink: 0;
}
.grid-section-header svg {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
}
.tab-item svg {
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px;
}
.portal-icon-box svg {
  width: 24px !important;
  height: 24px !important;
}
.portal-card-title svg {
  width: 14px !important;
  height: 14px !important;
}
.faq-summary svg {
  width: 20px !important;
  height: 20px !important;
}

/* 11. 友情链接和 footer 边距矫正 */
.site-footer {
  margin-top: 0 !important;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

/* 12. 窄屏：侧栏抽屉 + 正文/代码上下堆叠 */
@media (max-width: 1200px) {
  .doc-container {
    grid-template-columns: 1fr;
  }
  
  .doc-section {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: fixed;
    left: -300px;
    top: 72px;
    z-index: 999;
    width: 280px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
  }

  .doc-sidebar.active {
    left: 0;
  }

  .doc-main {
    padding: 24px;
    max-width: 100%;
  }

  .doc-code-panel {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    height: auto;
    max-height: none;
    min-height: 420px;
    position: relative;
    top: 0;
    padding: 24px 20px 40px;
  }

  /* 窄屏：正文区提供「查看代码示例」入口，避免滚到底才发现右侧面板已下沉 */
  .doc-code-jump {
    display: flex;
  }
}

/* 大屏分栏时无需跳转按钮（代码面板常驻可见） */
.doc-code-jump {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}

.doc-code-jump a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #0071e3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.doc-code-jump a:hover {
  background: #005bb5;
}

.doc-code-jump-text {
  margin: 0;
  color: #475569;
}

/* 窄屏底部浮层：滚动正文时快速跳到代码示例 */
.doc-code-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 40;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.doc-code-fab:hover {
  background: #1e293b;
}

@media (max-width: 1200px) {
  .doc-code-fab.is-visible {
    display: inline-flex;
  }
}

/* 示例中心引导 */
.doc-demo-center-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.doc-demo-center-callout-body {
  min-width: 0;
}

.doc-demo-center-callout-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
  color: #1e3a8a;
}

.doc-demo-center-callout-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.doc-demo-center-callout-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #0071e3;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.doc-demo-center-callout-btn:hover {
  background: #005bb5;
}

.doc-demo-center-callout-btn::after {
  content: "→";
  font-weight: 700;
}

@media (max-width: 640px) {
  .doc-demo-center-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-demo-center-callout-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 13. Figma 风格概述页优化样式 */
.feature-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px 0;
}

@media (max-width: 768px) {
  .feature-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.feature-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0071e3;
  border: 1px solid #e5e7eb;
}

.feature-highlight-card h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.feature-highlight-card p {
  margin: 0;
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
}

.api-map-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  transition: all 0.2s ease;
}

.api-map-card:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.api-map-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 12px;
}

.api-map-card h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.api-map-card p {
  margin: 0;
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
}

/* 文档首页（doc/index.html） */
.doc-overview-page .doc-overview-kicker {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 700;
  color: var(--page-primary, #0372fe);
}
.doc-overview-page .doc-overview-title {
  font-size: 28px;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.doc-overview-hero {
  margin-bottom: 8px;
}
.doc-overview-lead {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.65;
  color: #4b5563;
  font-weight: 400;
}
.doc-overview-lead-sub {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}
.doc-overview-lead-sub a {
  color: #0071e3;
  text-decoration: none;
}
.doc-overview-lead-sub a:hover {
  text-decoration: underline;
}
.doc-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.doc-overview-actions .page-btn {
  min-width: auto;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  text-decoration: none;
}
.doc-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}
.doc-overview-metric {
  padding: 20px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
}
.doc-overview-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.doc-overview-metric-label {
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .doc-overview-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .doc-overview-lead {
    font-size: 16px;
  }
  .doc-overview-metric-value {
    font-size: 24px;
  }
}
.overview-api-map-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 28px 0 12px;
  padding: 0;
  border: none;
}
.overview-api-map-group-title:first-of-type {
  margin-top: 4px;
}
.overview-api-map-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.feature-highlight-card .feature-highlight-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}
.core-advantages {
  margin: 36px 0 40px;
}
.core-advantages-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.core-advantage-item {
  font-size: 14px;
  line-height: 1.6;
  color: #424245;
}
.core-advantage-item strong {
  color: #1d1d1f;
}
.overview-api-map {
  margin: 36px 0 40px;
}
.doc-overview-map-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: #86868b;
  line-height: 1.6;
}
.overview-api-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.api-map-icon--green { background: #f0fdf4; color: #16a34a; }
.api-map-icon--orange { background: #fff7ed; color: #ea580c; }
.api-map-icon--blue { background: #eff6ff; color: #2563eb; }
.api-map-icon--purple { background: #faf5ff; color: #7c3aed; }
.api-map-icon--teal { background: #f0fdfa; color: #0d9488; }
.api-map-icon--emerald { background: #ecfdf5; color: #059669; }
.api-map-icon--red { background: #fef2f2; color: #dc2626; }
.api-map-icon--violet { background: #faf5ff; color: #7c3aed; }
.api-map-icon--amber { background: #fefce8; color: #ca8a04; }
.api-map-icon--sky { background: #e0f2fe; color: #0284c7; }
.api-map-icon--indigo { background: #e0e7ff; color: #4f46e5; }
.doc-overview-quickstart {
  margin: 36px 0 40px;
}
.doc-overview-table-wrap {
  margin-bottom: 32px;
}
.doc-overview-endpoints {
  margin: 36px 0 40px;
}
.doc-overview-doc-link {
  font-size: 13px;
  color: #0071e3;
  text-decoration: none;
  white-space: nowrap;
}
.doc-overview-doc-link:hover {
  text-decoration: underline;
}

/* 天气 MCP 产品页（doc/mcp.html） */
.doc-mcp-page .doc-mcp-hero {
  margin-bottom: 0;
}
.doc-mcp-hero-lead {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.65;
  color: #4b5563;
}
.doc-mcp-hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: #6b7280;
}
.doc-mcp-hero-note a {
  color: #0071e3;
  text-decoration: none;
}
.doc-mcp-hero-note a:hover {
  text-decoration: underline;
}
.doc-mcp-metrics {
  margin-top: 8px;
}
.doc-mcp-page .doc-desc {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}
.doc-mcp-examples {
  margin: 0 0 36px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.doc-mcp-examples-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
.doc-mcp-examples-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.doc-mcp-examples-list li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.doc-mcp-chat-bubble {
  display: block;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 12px 12px 12px 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.doc-mcp-chat-bubble::before {
  content: '💬';
  margin-right: 6px;
  font-size: 13px;
}
.doc-mcp-key-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .doc-mcp-key-grid { grid-template-columns: 1fr; }
}
.doc-mcp-key-card {
  padding: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}
.doc-mcp-key-card--adv {
  background: #fff7ed;
  border-color: #fed7aa;
}
.doc-mcp-key-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.doc-mcp-key-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}
.doc-mcp-install-step {
  margin-bottom: 24px;
}
.doc-mcp-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.doc-mcp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.doc-mcp-code-block {
  margin: 0;
  padding: 14px 16px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}
.doc-mcp-code-wrap {
  position: relative;
}
.doc-mcp-code-wrap .doc-mcp-code-block {
  padding-top: 36px;
}
.doc-mcp-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.doc-mcp-copy-btn:hover {
  color: #fff;
  background: rgba(0, 113, 227, 0.9);
  border-color: rgba(0, 113, 227, 0.9);
}
.doc-mcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .doc-mcp-tools-grid { grid-template-columns: 1fr; }
}
.doc-mcp-tools-col {
  padding: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}
.doc-mcp-tools-col--adv {
  background: #fff7ed;
  border-color: #fed7aa;
}
.doc-mcp-tools-heading {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}
.doc-mcp-tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-mcp-tool-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}
.doc-mcp-tool-list li:last-child { border-bottom: none; }
.doc-mcp-tool-list span { color: #64748b; }
.doc-mcp-cta-box { margin-top: 24px; }
.doc-overview-mcp-banner {
  margin: 36px 0;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.doc-overview-mcp-banner h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1e3a8a;
}
.doc-overview-mcp-banner p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 720px;
}
.doc-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f7ff;
  border: 1px solid #cce3ff;
  border-radius: 8px;
  font-size: 13px;
  color: #0071e3;
  line-height: 1.55;
}
.doc-tip-icon {
  flex-shrink: 0;
  line-height: 1.4;
}

/* 14. Figma 风格产品页面及 API 卡片优化样式 */
.doc-breadcrumbs {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 12px;
}

.doc-subtitle {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  margin: 36px 0 16px 0 !important;
  border-left: 4px solid #0071e3 !important;
  padding-left: 10px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.endpoint-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
  margin-bottom: 16px;
}

.endpoint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.endpoint-card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.endpoint-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.vip-badge {
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  background-color: #f3e8ff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.endpoint-copy-btn {
  background: #f5f5f7;
  border: 1px solid #e5e7eb;
  color: #424245;
  cursor: pointer;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.endpoint-copy-btn::after {
  content: "复制";
}

.endpoint-copy-btn:hover {
  background-color: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
}

.endpoint-copy-btn:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

.endpoint-card-code {
  padding: 16px;
  background-color: #0b0f19;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #f5f5f7;
  white-space: nowrap;
  overflow-x: auto;
}

/* 复制成功/失败 Toast：居中偏下，高对比更易察觉 */
.doc-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.doc-copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.doc-copy-toast.is-success {
  background: #059669;
}
.doc-copy-toast.is-error {
  background: #dc2626;
}
.doc-copy-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
}
.doc-copy-toast-text {
  white-space: nowrap;
}

.vip-warning-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #b45309;
  line-height: 1.5;
}

.vip-warning-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}

/* 15. 树状折叠参数表样式 */
.field-name-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-connector {
  color: #cbd5e1;
  font-weight: normal;
  font-family: monospace;
}

.toggle-arrow {
  font-size: 9px;
  color: #86868b;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: inline-block;
  margin-left: 4px;
  user-select: none;
}

.parent-row {
  cursor: pointer;
}

.parent-row:hover td {
  background-color: #f8fafc;
}

.parent-row.expanded .toggle-arrow {
  transform: rotate(90deg);
}

.child-row {
  display: none; /* Collapsed by default */
}

/* 类型徽章样式 */
.type-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.type-badge.badge-string {
  background-color: #eff6ff;
  color: #0071e3;
}

.type-badge.badge-object {
  background-color: #fff7ed;
  color: #ea580c;
}

.type-badge.badge-array {
  background-color: #f0fdfa;
  color: #0d9488;
}

.type-badge.badge-array-object {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.type-badge.badge-number {
  background-color: #f0fdf4;
  color: #16a34a;
}

/* 子字段数量说明链接 */
.desc-subfields-link {
  margin-top: 4px;
}

.subfields-count {
  font-size: 11px;
  color: #0071e3;
  background-color: #eff6ff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.subfields-count:hover {
  background-color: #e0f2fe;
}

/* 折叠表格标题与全部展开按钮 */
.fields-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 16px;
}

.fields-table-header .doc-subtitle {
  margin: 0 !important;
}

.expand-all-btn {
  font-size: 13px;
  font-weight: 500;
  color: #0071e3;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.expand-all-btn:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* 右下角 Key 提示框样式 */
.key-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background-color: #f0f7ff;
  border: 1px solid #cce3ff;
  border-radius: 8px;
  font-size: 13px;
  color: #0071e3;
  line-height: 1.5;
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

.key-tip-icon {
  font-size: 16px;
  line-height: 1;
  color: #0071e3;
  margin-top: 2px;
}

.key-tip-content code {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background-color: rgba(0, 113, 227, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

/* -----------------------------------------
   15. 深度设计与交互改造新增样式
   ----------------------------------------- */

/* 滚动进度条 */
.reading-progress-bar {
  position: fixed;
  top: 72px;
  left: 0;
  height: 2px;
  background-color: #0071e3;
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* 回到顶部按钮 */
.back-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #d2d2d7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  color: #424245;
  font-size: 16px;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background-color: #f5f5f7;
  color: #0071e3;
  border-color: #0071e3;
}

/* 右侧 Scrollspy 浮动条款目录 */
.terms-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
}

.terms-toc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding-left: 16px;
  border-left: 1px solid #d2d2d7;
}

.terms-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

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

.terms-toc-item {
  margin-bottom: 8px;
}

.terms-toc-link {
  font-size: 12px;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terms-toc-link:hover, .terms-toc-link.active {
  color: #0071e3;
  font-weight: 500;
}

/* 条款正文与自然分隔 */
.terms-article-body {
  font-size: 14px;
  line-height: 1.85;
  color: #1d1d1f;
}

.terms-clause-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 28px;
  margin-top: 28px;
}
.terms-clause-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* 蓝点列表项 */
.terms-bullet-list {
  list-style: none;
  padding-left: 16px;
  margin: 12px 0;
}
.terms-bullet-list li {
  position: relative;
  margin-bottom: 8px;
}
.terms-bullet-list li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #0071e3;
}

/* Callout 提示框 */
.callout-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 13.5px;
  line-height: 1.5;
  border-width: 1px;
  border-style: solid;
}
.callout-box-blue {
  background-color: #f0f7ff;
  border-color: #cce3ff;
  color: #0071e3;
}
.callout-box-green {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.callout-box-orange {
  background-color: #fff7ed;
  border-color: #ffedd5;
  color: #c2410c;
}
.callout-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.callout-info {
  background-color: #f0f7ff;
  border-color: #cce3ff;
  color: #1d1d1f;
}
.callout-warning {
  background-color: #fff7ed;
  border-color: #ffedd5;
  color: #1d1d1f;
}
.callout-content {
  flex: 1;
}
.callout-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}

/* FAQ 分类标题 */
.faq-category-block {
  margin-bottom: 32px;
}
.faq-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 12px;
}
.faq-category-bar {
  display: inline-block;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0071e3 0%, #06b6d4 100%);
}

/* 条款 Tab 与 Markdown 正文 */
.doc-terms-page .doc-desc {
  margin-bottom: 8px;
}

.terms-doc-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 12px;
}

.terms-doc-meta {
  text-align: right;
  font-size: 13px;
  color: #86868b;
  margin: 0 0 20px;
}

.terms-clause-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.terms-article-body .terms-clause-heading:first-of-type,
.terms-clause-section:first-child .terms-clause-heading {
  border-top: none;
  padding-top: 0;
  margin-top: 16px;
}

.terms-history-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 14px;
  color: #92400e;
}

.terms-history-banner[hidden] {
  display: none !important;
}

.terms-history-banner-btn {
  background: none;
  border: none;
  color: #0071e3;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.terms-history-banner-btn:hover {
  text-decoration: underline;
}

.terms-read-time {
  font-size: 13px;
  color: #86868b;
  margin: -8px 0 20px;
}
.terms-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
}
.terms-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  color: #515154;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.terms-tab.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
  font-weight: 700;
}
.terms-callout .callout-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.terms-history-toggle {
  background: none;
  border: none;
  color: #0071e3;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.terms-history-toggle:hover {
  text-decoration: underline;
}
.terms-main {
  min-width: 0;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #1d1d1f;
  margin: 24px 0 12px;
  line-height: 1.4;
}
.markdown-body h1 {
  font-size: 22px;
  text-align: center;
}
.markdown-body p,
.markdown-body li {
  margin: 0 0 12px;
  color: #424245;
}
.markdown-body ol,
.markdown-body ul {
  padding-left: 24px;
  margin: 12px 0;
}
.markdown-body a {
  color: #0071e3;
  text-decoration: underline;
}
.markdown-body center {
  display: block;
  text-align: center;
}

/* 开发规范 */
.dev-standard-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.dev-standard-toc-link {
  font-size: 14px;
  color: #0071e3;
  text-decoration: none;
}
.dev-standard-toc-link:hover {
  text-decoration: underline;
}
.dev-standard-rules {
  margin-top: 8px;
}
.rule-card.advice {
  border-left: 4px solid #2563eb;
}
.rule-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  flex-shrink: 0;
}
.rule-badge-must {
  background: #fee2e2;
  color: #b91c1c;
}
.rule-badge-advice {
  background: #dbeafe;
  color: #1d4ed8;
}
.rule-badge-warn {
  background: #fef9c3;
  color: #a16207;
}
.rule-card-header {
  flex-wrap: wrap;
  gap: 8px;
}
.legend-advice {
  background-color: #2563eb;
}
.rule-callout {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 14px;
}
.rule-callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.rule-callout-warn {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.rule-callout-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 14px;
}
.rule-subtitle {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}
.doc-dev-standard-page .doc-dev-standard-hero {
  margin-bottom: 0;
}
.doc-dev-standard-lead {
  max-width: 820px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #6b7280;
}
.doc-dev-standard-metrics {
  margin-top: 20px;
}
.doc-faq-page .doc-desc {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}
.doc-dev-standard-page .doc-desc {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}
.dev-standard-support {
  margin-top: 40px;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #dbeafe;
  text-align: center;
}
.dev-standard-support h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.dev-standard-support p {
  margin: 0 0 20px;
  color: #515154;
}
.dev-standard-support-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.support-label {
  display: block;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 4px;
}
.dev-standard-support a {
  color: #0071e3;
  font-weight: 600;
  text-decoration: none;
}
.dev-standard-support a:hover {
  text-decoration: underline;
}

/* FAQ 搜索与分类 */
.faq-search-wrapper {
  margin-bottom: 24px;
  width: 100%;
}

.faq-search-input-group {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.faq-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  background-color: #f5f5f7;
  transition: all 0.2s ease;
}
.faq-search-input:focus {
  border-color: #0071e3;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868b;
  pointer-events: none;
}

.faq-search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  color: #86868b;
  pointer-events: none;
}

/* FAQ 过滤 Pill */
.faq-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.faq-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #d2d2d7;
  background-color: #ffffff;
  font-size: 13px;
  color: #515154;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.faq-pill:hover, .faq-pill.active {
  border-color: #0071e3;
  color: #0071e3;
  background-color: #eff6ff;
}

.faq-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9999px;
}

/* Pill 配色 */
.faq-pill-blue.active .faq-badge { background-color: #0071e3; color: #ffffff; }
.faq-pill-purple.active .faq-badge { background-color: #a855f7; color: #ffffff; }
.faq-pill-green.active .faq-badge { background-color: #10b981; color: #ffffff; }
.faq-pill-orange.active .faq-badge { background-color: #f97316; color: #ffffff; }
.faq-pill-gray.active .faq-badge { background-color: #6b7280; color: #ffffff; }

.faq-pill-blue .faq-badge { background-color: #eff6ff; color: #0071e3; }
.faq-pill-purple .faq-badge { background-color: #faf5ff; color: #a855f7; }
.faq-pill-green .faq-badge { background-color: #ecfdf5; color: #10b981; }
.faq-pill-orange .faq-badge { background-color: #fff7ed; color: #f97316; }
.faq-pill-gray .faq-badge { background-color: #f3f4f6; color: #6b7280; }

/* 空搜索状态 */
.faq-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #d2d2d7;
  border-radius: 8px;
  margin-bottom: 32px;
}

.faq-empty-state.is-visible {
  display: flex;
}

.faq-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.faq-empty-desc {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 16px;
}
.faq-clear-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #0071e3;
  border: none;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.faq-clear-btn:hover {
  background-color: #0056b3;
}

/* FAQ Accordion Item */
.faq-item-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.faq-item-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-question-text {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  transition: color 0.2s ease;
}
.faq-item-header:hover .faq-question-text,
.faq-item-card.expanded .faq-question-text {
  color: #0071e3;
}

.faq-toggle-icon {
  font-size: 12px;
  color: #86868b;
  transition: transform 0.2s ease;
}
.faq-item-card.expanded .faq-toggle-icon {
  transform: rotate(90deg);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

.faq-item-card.expanded .faq-item-body {
  max-height: 3200px;
  border-top: 1px solid #e5e7eb;
  padding: 14px 20px 18px;
  background-color: #fafafa;
}

.faq-item-card.expanded .faq-item-header {
  padding-bottom: 16px;
}

.faq-item-answer {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #424245;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.faq-item-answer > :first-child {
  margin-top: 0;
}

.faq-item-answer > :last-child {
  margin-bottom: 0;
}

.faq-item-answer p {
  margin: 0 0 12px;
}

.faq-item-answer p:last-child {
  margin-bottom: 0;
}

.faq-item-answer ul,
.faq-item-answer ol,
.faq-item-answer .faq-answer-list {
  margin: 10px 0 14px;
  padding-left: 1.4em;
  list-style-position: outside;
}

.faq-item-answer ul,
.faq-item-answer .faq-answer-list:not(.faq-answer-list--ordered) {
  list-style-type: disc;
}

.faq-item-answer ol,
.faq-item-answer .faq-answer-list--ordered {
  list-style-type: decimal;
}

.faq-item-answer li {
  margin-bottom: 8px;
  padding-left: 0.25em;
}

.faq-item-answer li:last-child {
  margin-bottom: 0;
}

.faq-item-answer li > p {
  margin: 0 0 8px;
}

.faq-item-answer li > ul,
.faq-item-answer li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.faq-item-answer strong {
  color: #1d1d1f;
  font-weight: 600;
}

.faq-item-answer a {
  color: #0071e3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item-answer .faq-code-inline {
  padding: 1px 6px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  color: #1d1d1f;
  word-break: break-word;
}

.faq-item-answer .faq-pre-block {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 6px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

.faq-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
}

.faq-step {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #424245;
}

.faq-pre-block {
  margin: 8px 0 16px;
  padding: 12px 14px;
  background: #0b0f19;
  color: #e2e8f0;
  border-radius: 6px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

/* FAQ 内的 Step Circle 步骤号 */
.step-number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: #0071e3;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

/* FAQ Inline Code 组件 */
.faq-code-inline {
  background-color: #f3f4f6;
  color: #ef4444;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12.5px;
}

/* FAQ 💡 Tip Box */
.faq-tip-box {
  background-color: #f0f7ff;
  border-left: 4px solid #0071e3;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 13px;
  color: #0071e3;
}

/* 底部兜底 CTA */
.faq-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background-color: #f5f5f7;
  border-radius: 8px;
  margin-top: 40px;
  border: 1px solid #e5e7eb;
}

.faq-cta-left h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}
.faq-cta-left p {
  margin: 0;
  font-size: 13px;
  color: #86868b;
}

.faq-cta-btn {
  padding: 10px 20px;
  border-radius: 6px;
  background-color: #0071e3;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.faq-cta-btn:hover {
  background-color: #0056b3;
}

/* 必须/警告/建议卡片指示线 */
.rule-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.rule-card.must {
  border-left: 4px solid #ef4444;
}
.rule-card.warn {
  border-left: 4px solid #eab308;
}
.rule-card.recommend {
  border-left: 4px solid #22c55e;
}
.rule-card-header {
  padding: 16px 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rule-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}
.rule-card-body {
  padding: 12px 20px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #424245;
}

/* 三级徽章图例 */
.rule-legend-container {
  display: flex;
  gap: 16px;
  margin: 16px 0 28px 0;
  padding: 12px 16px;
  background-color: #f5f5f7;
  border-radius: 8px;
  width: fit-content;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #515154;
}
.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-must { background-color: #ef4444; }
.legend-warn { background-color: #eab308; }
.legend-recommend { background-color: #22c55e; }

/* Rule Code Block Container */
.rule-code-container {
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #1e293b;
}
.rule-code-header {
  background-color: #0f172a;
  padding: 6px 12px;
  font-size: 11px;
  font-family: monospace;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}
.rule-code-body {
  padding: 12px;
  background-color: #0b0f19;
  margin: 0;
  font-family: monospace;
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
}

/* 天气现象分类色点 */
.weather-category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.weather-dot-sunny { background-color: #f97316; }
.weather-dot-rain { background-color: #3b82f6; }
.weather-dot-snow { background-color: #38bdf8; }
.weather-dot-fog { background-color: #94a3b8; }
.weather-dot-haze { background-color: #ea580c; }
.weather-dot-sand { background-color: #ca8a04; }

/* 天气分类图例 */
.weather-legend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.weather-legend-tag {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #515154;
  font-weight: 500;
}

/* AQI 圆圈徽章 */
.aqi-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}
.aqi-level-1 { background-color: #00e400; color: #000000; }
.aqi-level-2 { background-color: #ffff00; color: #000000; }
.aqi-level-3 { background-color: #ff7e00; }
.aqi-level-4 { background-color: #ff0000; }
.aqi-level-5 { background-color: #99004c; }
.aqi-level-6 { background-color: #7e0023; }

/* AQI Color blocks */
.aqi-color-preview {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* 二级导航样式 */
.doc-nav-submenu-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 12px !important;
}

.doc-nav-submenu-trigger::before {
  display: none;
}

.doc-nav-submenu-trigger .submenu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: #86868b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.doc-nav-submenu-trigger.active,
.doc-nav-submenu-trigger:hover {
  color: #1d1d1f;
}

.doc-nav-submenu-trigger.active .submenu-chevron,
.doc-nav-submenu-trigger:hover .submenu-chevron {
  color: #0071e3;
}

.doc-nav-submenu-trigger.active .submenu-chevron {
  transform: rotate(90deg);
}

.doc-nav-submenu {
  margin: 4px 0 6px 10px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #e5e7eb;
  display: none;
  list-style: none;
}

.doc-nav-submenu.expanded {
  display: block;
}

.doc-nav-submenu li {
  margin-bottom: 2px;
}

.doc-nav-submenu-link {
  display: block;
  padding: 8px 12px;
  color: #515154;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.doc-nav-submenu-link:hover,
.doc-nav-submenu-link.active {
  color: #0071e3;
  background-color: #f5f5f7;
}

/* 实用资料页头与表格 */
.doc-resource-page {
  max-width: 896px;
}

.doc-resource-header {
  margin-bottom: 28px;
}

.resource-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.resource-index-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-index-card:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
}

.resource-index-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
}

.resource-index-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6e6e73;
}

.doc-resource-crumb {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #0071e3;
  background: #eff6ff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.doc-resource-body {
  font-size: 14px;
  line-height: 1.7;
  color: #424245;
}

.doc-resource-body > h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  color: #1d1d1f;
}

.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.resource-toolbar .expand-all-btn {
  border: 1px solid #d2d2d7;
  background: #fff;
  color: #515154;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.resource-toolbar .expand-all-btn:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.resource-meta {
  font-size: 12px;
  color: #86868b;
}

.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.doc-data-table th {
  text-align: left;
  background: #f5f5f7;
  color: #515154;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.doc-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f2;
  color: #1d1d1f;
  vertical-align: top;
}

.doc-data-table tr:last-child td {
  border-bottom: none;
}

.region-code-table .parent-row {
  cursor: pointer;
  background: #fafafa;
  font-weight: 600;
}

.region-code-table .parent-row.expanded {
  background: #f3f6fb;
}

.region-code-table .parent-row:hover {
  background: #f3f6fb;
}

.region-code-table .tree-arrow {
  display: inline-block;
  width: 1em;
  color: #0071e3;
  font-size: 10px;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.region-code-table .parent-row.expanded .tree-arrow {
  transform: rotate(90deg);
}

/* 多语言 / 指数 交互表格 */
.resource-info-box {
  background: linear-gradient(90deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.resource-info-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.resource-info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #424245;
}

.resource-note-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #424245;
}

.resource-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin: 20px 0 0;
}

.resource-tab {
  position: relative;
  border: none;
  background: none;
  padding: 10px 16px;
  font-size: 14px;
  color: #6e6e73;
  cursor: pointer;
  transition: color 0.2s ease;
}

.resource-tab:hover {
  color: #1d1d1f;
}

.resource-tab.active {
  color: #ea580c;
  font-weight: 600;
}

.resource-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #ea580c;
  border-radius: 2px 2px 0 0;
}

.index-tab-panel {
  margin-top: 16px;
}

.doc-data-table .th-hint {
  font-size: 11px;
  font-weight: 400;
  color: #86868b;
}

.lang-code-table .parent-row,
.index-code-table .parent-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-code-table .parent-row:hover,
.index-code-table .parent-row:hover {
  background: #f9fafb;
}

.lang-code-table .parent-row.expanded,
.index-code-table .parent-row.expanded {
  background: #f3f6fb;
}

.lang-code-table .child-row,
.index-code-table .child-row,
.region-code-table .child-row {
  background: #fafafa;
}

.lang-code-table .child-row:hover,
.index-code-table .child-row:hover,
.region-code-table .child-row:hover {
  background: #f3f4f6;
}

.lang-code-table .lang-leaf {
  cursor: default;
}

.lang-code-table .lang-leaf:hover {
  background: #fff;
}

.lang-child-name {
  padding-left: 28px !important;
  color: #515154 !important;
  font-weight: 400;
}

.lang-code-cell code,
.index-id-cell {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  color: #0071e3;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.index-id-cell {
  background: none;
  padding: 0;
  font-weight: 600;
}

.index-meta-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6e6e73;
  white-space: nowrap;
}

.index-name-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.index-name-en {
  font-size: 12px;
  color: #86868b;
}

.index-detail td {
  padding: 0 !important;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
}

.index-detail-panel {
  padding: 16px 20px 16px 48px;
}

.index-detail-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.index-level-grid {
  display: grid;
  gap: 8px;
}

.index-level-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.index-level-card--foreign {
  justify-content: space-between;
  flex-wrap: wrap;
}

.index-level-badge {
  min-width: 64px;
  font-size: 13px;
  font-weight: 600;
  color: #ea580c;
}

.index-level-badge--foreign {
  min-width: auto;
}

.index-level-desc {
  font-size: 13px;
  color: #1d1d1f;
}

.index-level-en {
  margin-left: 8px;
  font-size: 12px;
  color: #86868b;
}

.index-level-range {
  font-size: 13px;
  color: #6e6e73;
}

.index-level-range strong {
  color: #0071e3;
  font-weight: 600;
}

.lang-code-table .tree-arrow,
.index-code-table .tree-arrow {
  display: inline-block;
  width: 1em;
  color: #86868b;
  font-size: 10px;
  margin-right: 6px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tree-arrow--spacer {
  visibility: hidden;
}

.lang-code-table .parent-row.expanded .tree-arrow,
.index-code-table .parent-row.expanded .tree-arrow {
  transform: rotate(90deg);
}

.index-code-table .parent-row.expanded .index-meta-cell .tree-arrow {
  transform: rotate(90deg);
}

.region-child-name {
  padding-left: 28px !important;
  color: #515154 !important;
  font-weight: 400;
}

.region-code-cell code {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  color: #0071e3;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .faq-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .docs-footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .nav-btn-link {
    width: 100%;
  }

  .terms-layout-wrapper {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .terms-toc-sidebar {
    display: block;
    position: static;
    order: -1;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 16px;
    margin-bottom: 8px;
  }

  .terms-toc-link {
    white-space: normal;
  }
}

/* 条目导航 Footer */
.docs-footer-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 48px;
}

.nav-btn-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: 48%;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-btn-link:hover {
  border-color: #0071e3;
  background-color: #f9fafb;
}

.nav-btn-label {
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.nav-btn-title {
  font-size: 14px;
  font-weight: 700;
  color: #0071e3;
}

.nav-btn-link.prev-link {
  align-items: flex-start;
  text-align: left;
}
.nav-btn-link.prev-link.is-disabled {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}
.nav-btn-link.next-link {
  align-items: flex-end;
  text-align: right;
}

/* api-product-sync */
.api-product-overview,
.api-product-showcase {
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.api-product-overview-header,
.api-product-showcase-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.api-product-overview-header {
  padding: 14px 18px;
  border-bottom: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.api-product-overview-body {
  padding: 16px 18px 18px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}
.api-product-overview-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.api-product-overview-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}
.api-overview-check {
  color: #16a34a;
  font-weight: 700;
  line-height: 1.5;
}

.api-product-showcase-header {
  padding: 14px 18px 0;
}
.api-showcase-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}
.api-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px 18px 18px;
}

/* 产品展示：按屏宽调整卡片密度（大屏多列、平板双列、手机单列） */
@media (min-width: 1200px) {
  .api-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .api-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .api-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.api-showcase-footnote {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.api-showcase-card {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.api-showcase-media-wrap {
  position: relative;
  background: #f8fafc;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-showcase-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.api-showcase-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: #374151;
}
.api-showcase-body {
  padding: 14px 14px 16px;
}
.api-showcase-body h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111827;
}
.api-showcase-body p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.api-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.api-showcase-tag {
  font-size: 11px;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 8px;
}

.code-tabs-right {
  overflow-x: auto;
  flex-wrap: nowrap;
  max-width: min(100%, 420px);
  scrollbar-width: thin;
}
.code-tabs-right .code-tab {
  flex-shrink: 0;
  white-space: nowrap;
}

/* code-panel-split */
.code-example-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.code-example-stack-multi {
  gap: 24px;
}
.code-api-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.code-api-group-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px 4px;
}
.code-api-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}
.code-api-group-desc {
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
}
.code-request-card,
.code-response-card {
  margin-bottom: 0;
}
.code-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--code-bar-bg, #0d111d);
  border-bottom: 1px solid #1e293b;
}
.code-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #0071e3;
}
.code-section-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.code-lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 16px;
  background-color: var(--code-bar-bg, #0d111d);
  border-bottom: 1px solid #1e293b;
}
.code-lang-tabs .code-tab {
  padding: 8px 6px;
}
.code-response-card .code-block-wrapper {
  max-height: 420px;
}
.code-response-empty-card .code-response-empty {
  padding: 20px 16px;
  color: #a5b4c8;
  font-size: 13px;
  line-height: 1.6;
  background: var(--code-bg, #0b0f19);
}
.code-response-empty-card .code-response-empty p {
  margin: 0;
}

/* doc-api-standalone pages */
body.doc-api-standalone .doc-api-page-section {
  display: grid;
}
body.doc-api-standalone .doc-content-wrapper {
  min-width: 0;
}
.doc-breadcrumb {
  padding: 16px 24px 0;
  font-size: 13px;
  color: #86868b;
}
.doc-breadcrumb a {
  color: #0071e3;
  text-decoration: none;
}
.doc-breadcrumb a:hover {
  text-decoration: underline;
}
.doc-breadcrumb-sep {
  margin: 0 8px;
  color: #c7c7cc;
}
.doc-page-toc {
  margin: 20px 0 28px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}
.doc-page-toc-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}
.doc-page-toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #424245;
}
.doc-page-toc-list a {
  color: #0071e3;
  text-decoration: none;
}
.doc-page-toc-list a:hover {
  text-decoration: underline;
}
.doc-quickstart {
  margin: 24px 0 32px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.doc-quickstart-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.75;
  color: #424245;
  font-size: 14px;
}
.doc-quickstart-steps a {
  color: #0071e3;
}
.doc-param-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: #424245;
  line-height: 1.65;
}

/* 进阶能力 API：右侧开通指引面板（替代代码示例） */
.doc-advanced-apply-panel .doc-advanced-apply-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: #424245;
}
.doc-advanced-apply-lead {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e9d5ff;
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  color: #5b21b6;
}
.doc-advanced-apply-steps {
  margin: 0 0 20px;
  padding-left: 20px;
}
.doc-advanced-apply-steps li {
  margin-bottom: 8px;
}
.doc-advanced-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.doc-advanced-apply-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.doc-advanced-apply-btn.primary {
  background: #0071e3;
  color: #fff;
}
.doc-advanced-apply-btn.primary:hover {
  background: #0077ed;
}
.doc-advanced-apply-btn.secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}
.doc-advanced-apply-btn.secondary:hover {
  background: #e8e8ed;
}
.doc-advanced-apply-note {
  margin: 0;
  font-size: 13px;
  color: #86868b;
  line-height: 1.6;
}
.endpoint-card-code--restricted {
  font-size: 13px;
  color: #86868b;
  font-style: normal;
  font-family: inherit;
  word-break: normal;
}

/* 进阶产品页：能力介绍卡片 */
.doc-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
.doc-capability-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
  background: #fff;
}
.doc-capability-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.doc-capability-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #424245;
}
.doc-capability-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #424245;
}
.doc-product-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  line-height: 1.65;
  color: #424245;
}
.api-hub-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.api-hub-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.api-hub-list a {
  font-weight: 600;
  color: #0071e3;
  text-decoration: none;
  font-size: 15px;
}
.api-hub-list span {
  font-size: 13px;
  color: #86868b;
  line-height: 1.5;
}

/* mailto 拉起失败时的兜底浮层 */
.mail-fallback-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}
.mail-fallback-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}
.mail-fallback-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #86868b;
  cursor: pointer;
}
.mail-fallback-close:hover {
  background: #f2f2f5;
  color: #1d1d1f;
}
.mail-fallback-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
}
.mail-fallback-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #6e6e73;
}
.mail-fallback-address {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}
.mail-fallback-address-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  word-break: break-all;
  user-select: all;
}
.mail-fallback-copy {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #0071e3;
  cursor: pointer;
}
.mail-fallback-copy:hover {
  text-decoration: underline;
}
.mail-fallback-subtitle {
  margin: 22px 0 12px;
  font-size: 14px;
  color: #6e6e73;
}
.mail-fallback-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mail-fallback-provider {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #424245;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mail-fallback-provider:hover {
  border-color: #0071e3;
  color: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12);
}
