/* ============================================================
   法律类长文（隐私政策 / 服务条款）— Aurora 单栏 + 结构索引
   ============================================================ */

.ldoc-root {
  padding-bottom: clamp(72px, 11vw, 120px);
  overflow-x: hidden;
}

.ldoc-root--privacy {
  --ldoc-accent: rgba(244, 114, 182, 0.72);
  --ldoc-accent-2: rgba(167, 139, 250, 0.55);
  --ldoc-hero-mesh-a: rgba(244, 114, 182, 0.28);
  --ldoc-hero-mesh-b: rgba(139, 92, 246, 0.32);
}

.ldoc-root--terms {
  --ldoc-accent: rgba(125, 211, 252, 0.78);
  --ldoc-accent-2: rgba(99, 102, 241, 0.55);
  --ldoc-hero-mesh-a: rgba(125, 211, 252, 0.26);
  --ldoc-hero-mesh-b: rgba(99, 102, 241, 0.3);
}

html.theme-midnight-aurora:has(#page-yinsi-zhengce) .ldoc-root .ldoc-hero,
html.theme-midnight-aurora:has(#page-fuwu-tiaokuan) .ldoc-root .ldoc-hero {
  margin-top: calc(-1 * var(--nav-height));
  padding-top: calc(clamp(24px, 4vw, 44px) + var(--nav-height));
}

/* —— Hero —— */
.ldoc-hero {
  position: relative;
  padding: 0 0 clamp(28px, 5vw, 48px);
  overflow: hidden;
}

.ldoc-hero__aurora {
  position: absolute;
  inset: -25% -35% 30%;
  background:
    radial-gradient(ellipse 65% 50% at 15% 25%, var(--ldoc-hero-mesh-a), transparent 58%),
    radial-gradient(ellipse 50% 48% at 88% 38%, var(--ldoc-hero-mesh-b), transparent 52%),
    radial-gradient(ellipse 42% 38% at 48% 88%, rgba(99, 102, 241, 0.14), transparent 55%);
  pointer-events: none;
}

.ldoc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 3.5vw, 34px);
  align-items: stretch;
}
@media (min-width: 880px) {
  .ldoc-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
  }
}

.ldoc-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-light) 88%, var(--ldoc-accent));
}

.ldoc-hero__kicker-ico {
  width: 18px;
  height: 18px;
}

.ldoc-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 20ch;
}

.ldoc-hero__title span {
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.ldoc-root--terms .ldoc-hero__title span {
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.ldoc-hero__lead {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  color: var(--ink-light);
  max-width: 50ch;
}

.ldoc-hero__lead + .ldoc-hero__lead {
  margin-top: 12px;
}

.ldoc-hero__lead .ldoc-a {
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ldoc-hero-card {
  padding: clamp(18px, 2.8vw, 24px);
  height: fit-content;
}

.ldoc-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ldoc-meta__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}
.ldoc-meta__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ldoc-meta__k {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-light) 92%, #fff);
}

.ldoc-meta__v {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.ldoc-meta__v .ldoc-a {
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— 结构索引（替代侧栏目录与胶囊条） —— */
.ldoc-index {
  position: sticky;
  top: var(--nav-height);
  z-index: 32;
  margin-bottom: clamp(10px, 2vw, 20px);
  padding: 12px 0 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, rgba(8, 6, 20, 0.97) 94%, transparent) 0%,
    color-mix(in srgb, rgba(8, 6, 20, 0.85) 82%, transparent) 72%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.ldoc-index__inner {
  padding-top: 4px;
  border-top: 1px solid rgba(167, 139, 250, 0.14);
}

.ldoc-index__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-light) 88%, var(--ink));
}

.ldoc-index__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 18px;
  max-height: min(38vh, 240px);
  overflow-y: auto;
  padding: 2px 2px 6px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 560px) {
  .ldoc-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 900px) {
  .ldoc-index__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ldoc-index-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: color-mix(in srgb, var(--ink-light) 94%, var(--ink));
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  border-left: 2px solid transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.ldoc-index-link:hover {
  background: rgba(167, 139, 250, 0.05);
  color: var(--ink);
  border-left-color: rgba(167, 139, 250, 0.28);
}

.ldoc-index-link__no {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--ink-light) 92%, var(--ink));
  min-width: 2.1em;
}

.ldoc-index-link__txt {
  min-width: 0;
}

.ldoc-shell {
  padding-top: clamp(4px, 1.2vw, 12px);
}

.ldoc-article {
  max-width: 52rem;
  margin-inline: auto;
  min-width: 0;
}

/* —— Article chapters —— */

.ldoc-chapter {
  scroll-margin-top: calc(var(--nav-height) + 100px);
  padding: clamp(22px, 3.5vw, 30px) 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}
@media (min-width: 560px) {
  .ldoc-chapter {
    scroll-margin-top: calc(var(--nav-height) + 72px);
  }
}
.ldoc-chapter:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ldoc-chapter__head {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: clamp(14px, 2vw, 18px);
}

.ldoc-chapter__rail {
  width: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(167, 139, 250, 0.22);
  opacity: 1;
}

.ldoc-chapter h2 {
  margin: 0;
  flex: 1;
  font-size: clamp(1.05rem, 2.15vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ldoc-chapter p,
.ldoc-chapter li {
  font-size: 15px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--ink-light) 96%, var(--ink));
  margin: 0 0 12px;
}

.ldoc-chapter p:last-child,
.ldoc-chapter ul:last-child,
.ldoc-chapter ol:last-child {
  margin-bottom: 0;
}

.ldoc-chapter ul,
.ldoc-chapter ol {
  margin: 0 0 12px;
  padding-left: 1.35em;
}
.ldoc-chapter li {
  margin-bottom: 8px;
}

.ldoc-chapter a {
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ldoc-chapter a:hover {
  color: var(--ink);
}


/* ============================================================
   隐私政策 · Editorial 主题（html.home-editorial 专属）
   ============================================================ */

/* —— 整体页面容器 —— */
html.home-editorial .ldoc-page {
  display: block;
  background: var(--ed-paper);
  padding-bottom: clamp(80px, 12vw, 140px);
}

/* ─── Hero ──────────────────────────────────────────────── */
html.home-editorial .ldoc-hero-ed {
  background: linear-gradient(
    160deg,
    #f9f3e8 0%,
    #f0e8d4 45%,
    #ede4d0 100%
  );
  border-bottom: 1px solid rgba(26, 18, 10, 0.09);
  padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 72px);
}

html.home-editorial .ldoc-hero-ed__inner {
  width: min(100% - 48px, 860px);
  margin-inline: auto;
}

html.home-editorial .ldoc-kicker-ed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ed-accent);
}

html.home-editorial .ldoc-kicker-ed svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

html.home-editorial .ldoc-title-ed {
  font-family: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ed-ink);
  margin: 0 0 clamp(18px, 3vw, 28px);
}

html.home-editorial .ldoc-title-ed em {
  font-style: italic;
  color: var(--ed-accent);
}

html.home-editorial .ldoc-lead-ed {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--ed-muted);
  max-width: 66ch;
  margin: 0 0 clamp(24px, 3.5vw, 36px);
}

html.home-editorial .ldoc-lead-ed a {
  color: var(--ed-accent);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: rgba(13, 92, 77, 0.35);
}

html.home-editorial .ldoc-lead-ed a:hover {
  text-decoration-color: var(--ed-accent);
}

/* 元信息横条 */
html.home-editorial .ldoc-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 18, 10, 0.10);
  border-radius: 12px;
  padding: 14px 20px;
  width: fit-content;
}

html.home-editorial .ldoc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 20px;
}

html.home-editorial .ldoc-meta-item:first-child {
  padding-left: 4px;
}

html.home-editorial .ldoc-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-clay);
}

html.home-editorial .ldoc-meta-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ed-ink);
}

html.home-editorial .ldoc-meta-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ed-accent);
  text-decoration: none;
}

html.home-editorial .ldoc-meta-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.home-editorial .ldoc-meta-sep {
  width: 1px;
  height: 32px;
  background: rgba(26, 18, 10, 0.10);
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  html.home-editorial .ldoc-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 12px;
  }
  html.home-editorial .ldoc-meta-item {
    padding: 0;
  }
  html.home-editorial .ldoc-meta-sep {
    display: none;
  }
}

/* ─── 目录索引 ───────────────────────────────────────────── */
html.home-editorial .ldoc-toc {
  background: #fff;
  border-bottom: 1px solid rgba(26, 18, 10, 0.07);
  padding: clamp(28px, 4vw, 44px) 0;
}

html.home-editorial .ldoc-toc__inner {
  width: min(100% - 48px, 860px);
  margin-inline: auto;
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  align-items: flex-start;
}

html.home-editorial .ldoc-toc__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-clay);
  padding-top: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

html.home-editorial .ldoc-toc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 32px;
  flex: 1;
}

html.home-editorial .ldoc-toc-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}

html.home-editorial .ldoc-toc-link em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ed-clay);
  flex-shrink: 0;
}

html.home-editorial .ldoc-toc-link:hover {
  color: var(--ed-accent);
}

@media (max-width: 640px) {
  html.home-editorial .ldoc-toc__inner {
    flex-direction: column;
    gap: 14px;
  }
  html.home-editorial .ldoc-toc__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
  }
}

/* ─── 正文主体 ───────────────────────────────────────────── */
html.home-editorial .ldoc-body-ed {
  background: var(--ed-paper);
  padding: clamp(48px, 7vw, 88px) 0;
}

html.home-editorial .ldoc-article-ed {
  width: min(100% - 48px, 720px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 72px);
}

/* ─── 章节 ───────────────────────────────────────────────── */
html.home-editorial .ldoc-sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(26, 18, 10, 0.09);
}

html.home-editorial .ldoc-sec:first-child {
  border-top: none;
  padding-top: 0;
}

html.home-editorial .ldoc-sec__title {
  font-family: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  margin: 0;
  scroll-margin-top: calc(var(--nav-height, 72px) + 24px);
}

html.home-editorial .ldoc-sec p {
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.78;
  color: var(--ed-muted);
  margin: 0;
}

html.home-editorial .ldoc-sec p + p {
  margin-top: 10px;
}

html.home-editorial .ldoc-sec strong {
  font-weight: 600;
  color: var(--ed-ink);
}

html.home-editorial .ldoc-sec ul,
html.home-editorial .ldoc-sec ol {
  margin: 6px 0 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.home-editorial .ldoc-sec li {
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.72;
  color: var(--ed-muted);
}

html.home-editorial .ldoc-sec a {
  color: var(--ed-accent);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: rgba(13, 92, 77, 0.30);
  font-weight: inherit;
}

html.home-editorial .ldoc-sec a:hover {
  text-decoration-color: var(--ed-accent);
}

/* scroll-margin for section anchors */
html.home-editorial .ldoc-sec {
  scroll-margin-top: calc(var(--nav-height, 72px) + 8px);
}
