.lcsign-docs .docs {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.lcsign-docs .docs-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #0f1e19;
}
.lcsign-docs .docs-header p,
.lcsign-docs .doc-section p,
.lcsign-docs .doc-hint {
  color: #5f6f68;
  line-height: 1.7;
}
.lcsign-docs .doc-section {
  margin-top: 2.5rem;
}
.lcsign-docs .doc-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.lcsign-docs .doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.lcsign-docs .doc-table th,
.lcsign-docs .doc-table td {
  border: 1px solid #e5e8e6;
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.lcsign-docs .doc-table th {
  width: 8rem;
  background: #f7f6f1;
  color: #0ea5e9;
}
.lcsign-docs .code-block {
  margin-top: 1rem;
}
.lcsign-docs .code-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 0.5rem;
}
.lcsign-docs textarea.code,
.lcsign-docs pre.code {
  width: 100%;
  min-height: 8rem;
  border: 1px solid #e5e8e6;
  border-radius: 1rem;
  background: #111916;
  color: #bae6fd;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  resize: vertical;
}
.lcsign-docs textarea.code.light,
.lcsign-docs pre.code.light {
  background: #fff;
  color: #24332d;
}
.lcsign-docs code {
  background: #eff6ff;
  color: #0ea5e9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.88em;
}

/* 贴牌预览轮播（authorize 页） */
.preview-carousel {
  position: relative;
}
.preview-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(52vh, 520px);
}
.preview-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.preview-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  cursor: zoom-in;
}
.preview-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e5e8e6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f1e19;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px -12px rgba(15, 30, 25, 0.28);
  transform: translateY(-50%);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.preview-nav:hover {
  background: #fff;
  border-color: #0ea5e9;
  color: #0ea5e9;
}
.preview-nav.prev {
  left: 0.65rem;
}
.preview-nav.next {
  right: 0.65rem;
}
.preview-dots button {
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.preview-dots button.bg-bitan-500 {
  transform: scale(1.15);
}

/* 授权页移动端 */
@media (max-width: 767px) {
  .authorize-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }
  .authorize-hero .max-w-3xl .kicker + h1,
  .authorize-hero .max-w-3xl h1 {
    margin-top: 0.75rem;
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .authorize-hero .max-w-3xl p {
    margin-top: 0.75rem;
    font-size: 14px;
  }
  .authorize-form-grid {
    margin-top: 1.25rem;
    gap: 1rem;
  }
  .preview-card-head {
    padding: 0.65rem 1rem;
  }
  .preview-card-head p {
    margin-top: 0.15rem;
  }
  .preview-panel {
    padding: 0.65rem 0.75rem 0.85rem;
  }
  .preview-viewport {
    aspect-ratio: unset;
    max-height: none;
    height: auto;
  }
  .preview-track {
    height: auto;
    align-items: flex-start;
  }
  .preview-slide {
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .preview-slide img {
    width: 100%;
    height: auto;
    max-height: min(62vh, 520px);
    object-fit: contain;
    object-position: top center;
  }
  .preview-dots {
    margin-top: 0.65rem;
  }
  .preview-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }
  .preview-nav.prev {
    left: 0.4rem;
  }
  .preview-nav.next {
    right: 0.4rem;
  }
}

/* 法律文档页（隐私政策 / 服务协议） */
.lcsign-legal {
  border-bottom: 1px solid #e5e8e6;
  background: #faf9f4;
}
.legal-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
@media (min-width: 768px) {
  .legal-shell {
    padding: 3.5rem 2rem 5rem;
  }
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #5f6f68;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-back:hover {
  color: #0ea5e9;
}
.legal-kicker {
  margin-top: 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0ea5e9;
}
.legal-title {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f1e19;
}
.legal-date {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: #5f6f68;
}
.legal-body {
  margin-top: 2.5rem;
}
.legal-section + .legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e8e6;
}
.legal-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f1e19;
}
.legal-section p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #5f6f68;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section strong {
  color: #24332d;
  font-weight: 600;
}
.legal-list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #5f6f68;
}
.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0ea5e9;
}
.legal-back-bottom {
  display: inline-flex;
  margin-top: 2.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid #e5e8e6;
  border-radius: 999px;
  background: #fff;
  color: #0f1e19;
}
.legal-back-bottom:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
#lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 25, 0.72);
}
#lightbox .lightbox-img {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 960px);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
#lightbox .lightbox-close,
#lightbox .lightbox-arrow {
  position: absolute;
  z-index: 3;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f1e19;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  cursor: pointer;
}
#lightbox .lightbox-close { top: 1rem; right: 1rem; }
#lightbox .lightbox-arrow.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lightbox-arrow.next { right: 1rem; top: 50%; transform: translateY(-50%); }

#backToTop {
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
#backToTop.is-visible {
  display: inline-flex;
}
#backToTop:hover {
  border-color: #0ea5e9;
  box-shadow: 0 10px 28px -12px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}
