/* V3 文档中心：在保留首页视觉语言的基础上，强化手册阅读与状态说明。 */
.manual-hero {
  position: relative;
  padding: 42px 44px 40px;
  border: 1px solid rgba(201, 212, 244, .78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 5%, rgba(63, 224, 233, .22), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(88, 105, 239, .18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,247,255,.92));
  box-shadow: 0 24px 70px rgba(49, 67, 117, .10);
  overflow: hidden;
}

.manual-hero::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 28px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(84, 106, 232, .15);
  border-radius: 34px;
  transform: rotate(18deg);
  pointer-events: none;
}

.manual-hero .doc-title,
.manual-hero .doc-lead,
.manual-hero .hero-actions,
.manual-hero .trust-row { position: relative; z-index: 1; }

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.summary-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dfe6fa;
  border-radius: 999px;
  color: #53627b;
  background: rgba(247, 249, 255, .86);
  font-size: 12px;
}

.summary-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 4px rgba(79, 103, 237, .08);
}

.guide-video {
  margin: 38px 0 15px;
}

.guide-video-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 11px;
  color: #6f7d91;
  font-size: 12px;
}

.guide-video-label span {
  padding: 6px 10px;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  color: #4f64db;
  background: #f3f5ff;
  font-size: 11px;
  font-weight: 800;
}

.guide-video-label strong { color: #41516a; }

.guide-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #d5e0e8;
  border-radius: 20px;
  background: #eaf1f5;
  box-shadow: 0 24px 62px rgba(37, 55, 91, .16);
  overflow: hidden;
}

.guide-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef4f8;
}

.guide-video-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  color: #5f6d80;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(30,45,73,.12);
  backdrop-filter: blur(10px);
  font-size: 10px;
  pointer-events: none;
  transition: opacity .2s ease;
}

.guide-video-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6578ef;
  box-shadow: 0 0 0 4px rgba(101,120,239,.12);
}

.guide-video.ready .guide-video-status { opacity: 0; }
.guide-video.error .guide-video-status { opacity: 1; color: #9a4c3f; background: rgba(255,246,243,.94); }
.guide-video.error .guide-video-status span { background: #e36d58; box-shadow: 0 0 0 4px rgba(227,109,88,.12); }

.guide-video figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 3px 0;
  color: #6c7a8e;
  font-size: 11px;
  line-height: 1.6;
}

.guide-video figcaption b {
  color: #5366da;
  font-weight: 700;
  white-space: nowrap;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.journey-strip article {
  position: relative;
  min-height: 178px;
  padding: 20px 18px;
  border: 1px solid #e0e8ef;
  border-radius: 17px;
  background: rgba(255,255,255,.76);
}

.journey-strip article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 28px;
  right: -16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe7f6;
  border-radius: 50%;
  color: #7786dc;
  background: #f9fbfd;
  font-size: 11px;
}

.journey-strip article > span {
  color: #5267de;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.journey-strip h3 { margin: 24px 0 7px; font-size: 16px; }
.journey-strip p { margin: 0; color: #6c788b; font-size: 12px; line-height: 1.65; }

.comparison-grid,
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 23px;
}

.comparison-grid article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid #dfe8ef;
  border-radius: 19px;
  background: rgba(255,255,255,.78);
}

.comparison-grid article:first-child { background: linear-gradient(145deg, #f7f8ff, #fff); }
.comparison-grid article:last-child { background: linear-gradient(145deg, #f2fbfc, #fff); }
.comparison-grid span { color: #5365d3; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.comparison-grid h3 { margin: 18px 0 9px; font-size: 18px; line-height: 1.4; }
.comparison-grid p { margin: 0; color: #6c788b; font-size: 13px; line-height: 1.7; }

.state-grid article {
  position: relative;
  padding: 18px 18px 18px 45px;
  border: 1px solid #e1e9ef;
  border-radius: 15px;
  background: rgba(255,255,255,.76);
}

.state-grid article::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 19px;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(79,103,237,.20);
  border-radius: 50%;
  background: var(--blue);
}

.state-grid span { font-size: 13px; font-weight: 800; }
.state-grid p { margin: 7px 0 0; color: #6c788b; font-size: 12px; line-height: 1.65; }

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

.checklist li {
  position: relative;
  padding: 14px 17px 14px 46px;
  border: 1px solid #e1e9ef;
  border-radius: 13px;
  color: #58677b;
  background: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.65;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 11px;
  font-weight: 900;
}

.copy-prompt {
  width: auto;
  min-width: 44px;
  padding: 0 9px;
  font-size: 11px;
}

.toc-card a.active {
  color: var(--blue);
  font-weight: 750;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  z-index: 24;
  border: 0;
  background: rgba(18, 29, 48, .26);
  backdrop-filter: blur(3px);
}

.search-label { font-size: 13px !important; font-weight: 750; }

/* Developer integration content: same calm documentation surface, with a clearer API reading rhythm. */
.oauth-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px;
  padding: 22px 24px;
  border: 1px solid #d9e1f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f4ff, #eefafb);
  box-shadow: 0 16px 38px rgba(55, 75, 133, .08);
}

.oauth-callout-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 23px rgba(79, 103, 237, .22);
  font-size: 21px;
  font-weight: 800;
}

.oauth-callout-copy { min-width: 0; }
.oauth-callout-label { color: #5366d6; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.oauth-callout-copy h3 { margin: 7px 0 6px; font-size: 17px; }
.oauth-callout-copy p { max-width: 590px; margin: 0 0 15px; color: #65748a; font-size: 12px; line-height: 1.7; }
.oauth-callout-copy .primary-button { width: max-content; }
.oauth-callout-meta { display: flex; max-width: 178px; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.oauth-callout-meta span { padding: 7px 9px; border: 1px solid #dbe3f6; border-radius: 999px; color: #5c6c83; background: rgba(255, 255, 255, .64); font-size: 10px; white-space: nowrap; }

.doc-code-block {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #263653;
  border-radius: 14px;
  color: #dbe7ff;
  background: #172033;
  box-shadow: 0 16px 34px rgba(23, 32, 51, .14);
}

.doc-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 7px 10px 7px 16px;
  border-bottom: 1px solid rgba(219, 231, 255, .12);
  color: #93a7ca;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.doc-code-header .copy-prompt {
  position: static;
  width: auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(219, 231, 255, .16);
  color: #dbe7ff;
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
}

.doc-code-header .copy-prompt:hover { color: #fff; border-color: rgba(126, 224, 238, .55); background: rgba(126, 224, 238, .12); }
.doc-code-block pre { overflow-x: auto; margin: 0; padding: 17px 18px 19px; }
.doc-code-block code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre; }

.doc-data-table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e1e8ef;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.doc-data-table > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 15px;
  border-bottom: 1px solid #edf0f4;
}

.doc-data-table > div:last-child { border-bottom: 0; }
.doc-data-table strong { color: #3348bd; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
.doc-data-table span { color: #68768a; font-size: 12px; line-height: 1.65; }

@media (max-width: 980px) {
  .journey-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-strip article:nth-child(2)::after { display: none; }
}

@media (max-width: 820px) {
  .manual-hero { padding: 31px 25px 29px; border-radius: 22px; }
  .manual-hero::after { right: -28px; bottom: -28px; }
  .sidebar-backdrop.open { display: block; }
  .guide-video-frame { border-radius: 14px; }
  .guide-video figcaption { flex-direction: column; gap: 3px; }
  .journey-strip article:not(:last-child)::after { display: none; }
  .oauth-callout { grid-template-columns: auto minmax(0, 1fr); }
  .oauth-callout-meta { grid-column: 2; justify-content: flex-start; max-width: none; }
}

@media (max-width: 560px) {
  .journey-strip,
  .comparison-grid,
  .state-grid { grid-template-columns: 1fr; }
  .journey-strip article { min-height: 146px; }
  .manual-hero { padding-inline: 20px; }
  .summary-row { gap: 7px; }
  .summary-row span { width: 100%; border-radius: 12px; }
  .oauth-callout { grid-template-columns: 1fr; gap: 13px; padding: 19px; }
  .oauth-callout-meta { grid-column: auto; justify-content: flex-start; }
  .oauth-callout-copy .primary-button { width: 100%; }
  .doc-data-table > div { grid-template-columns: 1fr; gap: 5px; }
  .doc-code-block pre { padding: 15px 14px 17px; }
}
