.page-privacy {
  --plock-size: 88px;
  --pdoc-pad: 20px;
  background-color: var(--ai-paper);
  background-image: radial-gradient(rgba(11, 61, 46, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  padding-bottom: 8px;
}

/* ===== 顶部锁形视觉锚点 ===== */
.privacy-hero {
  position: relative;
  background: linear-gradient(140deg, var(--ai-green) 0%, var(--ai-green-2) 70%, var(--ai-green) 100%);
  border-bottom: 6px solid var(--ai-gold);
  padding: 52px 0 44px;
  overflow: hidden;
}
.privacy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(245, 212, 122, 0.05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.privacy-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 230px;
  height: 230px;
  border: 3px dashed rgba(242, 176, 30, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.privacy-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.privacy-hero__lock {
  flex: 0 0 auto;
  width: var(--plock-size);
  height: var(--plock-size);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}
.privacy-hero__lock svg {
  display: block;
  width: 100%;
  height: 100%;
}
.privacy-hero__text {
  color: var(--ai-cream);
  max-width: 42em;
}
.privacy-hero__text h1 {
  font-family: var(--ai-serif);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--ai-cream);
  margin: 10px 0 12px;
  letter-spacing: 0.03em;
}
.privacy-hero__lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 249, 239, 0.85);
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .privacy-hero__lock circle:first-of-type {
    transform-box: view-box;
    transform-origin: center;
    animation: privacy-orbit 36s linear infinite;
  }
}
@keyframes privacy-orbit {
  to { transform: rotate(360deg); }
}

/* ===== 面包屑 ===== */
.privacy-breadcrumb {
  padding-top: 18px;
}

/* ===== 主体网格 ===== */
.privacy-layout {
  display: grid;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 72px;
}

/* ===== 目录 ===== */
.privacy-toc {
  background: var(--ai-cream);
  border: 3px solid var(--ai-green);
  box-shadow: var(--ai-shadow-soft);
  padding: 20px 18px;
  align-self: start;
}
.privacy-toc__title {
  font-family: var(--ai-serif);
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--ai-ink);
}
.privacy-toc__desc {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.65);
  margin: 0 0 14px;
  border-bottom: 2px dashed var(--ai-gold-light);
  padding-bottom: 12px;
}
.privacy-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy-toc__item + .privacy-toc__item {
  margin-top: 6px;
}
.privacy-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ai-ink);
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.privacy-toc__link:hover {
  background: rgba(242, 176, 30, 0.22);
  padding-left: 12px;
  color: var(--ai-green);
}
.privacy-toc__num {
  font-family: var(--ai-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ai-green-2);
  border: 1px solid rgba(27, 94, 74, 0.4);
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
.privacy-toc__badge {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ai-gold-light);
}

/* ===== 文档区 ===== */
.privacy-document {
  background: var(--ai-paper);
  border: 3px solid var(--ai-green);
  box-shadow: var(--ai-shadow-soft);
  padding: var(--pdoc-pad);
}

/* ===== 章节 ===== */
.privacy-section {
  margin-bottom: 52px;
  scroll-margin-top: 24px;
}
.privacy-section:last-child {
  margin-bottom: 0;
}
.privacy-section__head {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 12px;
  border-bottom: 3px solid var(--ai-gold);
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.privacy-section__num {
  font-family: var(--ai-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ai-green);
  line-height: 1;
  position: relative;
}
.privacy-section__num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 3px;
  background: var(--ai-red);
}
.privacy-section__title {
  font-family: var(--ai-serif);
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 2px 0 0;
  color: var(--ai-ink);
}

/* ===== 正文排版 ===== */
.privacy-section__body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ai-ink);
}
.privacy-section__body p {
  margin: 0 0 1.1em;
}
.privacy-section__body a {
  color: var(--ai-green-2);
  text-decoration: underline;
  text-decoration-color: var(--ai-gold);
  text-underline-offset: 3px;
  font-weight: 600;
}
.privacy-section__body a:hover {
  color: var(--ai-red);
}

/* ===== 隐私政策图片 ===== */
.privacy-doc-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border: 4px solid var(--ai-green);
  box-shadow: var(--ai-shadow-soft);
  object-fit: cover;
}

/* ===== 引文块 ===== */
.privacy-quote {
  margin: 26px 0;
  padding: 16px 20px;
  background: var(--ai-cream);
  border-left: 6px solid var(--ai-gold);
  border-top: 1px dashed var(--ai-gold-light);
  border-right: 1px dashed var(--ai-gold-light);
  border-bottom: 1px dashed var(--ai-gold-light);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--ai-shadow-soft);
}
.privacy-quote p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ai-ink);
}

/* ===== 用户权利卡片 ===== */
.privacy-rights-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.privacy-right-card {
  background: var(--ai-cream);
  border: 2px solid var(--ai-green);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.privacy-right-card[open] {
  background: var(--ai-cream);
  box-shadow: var(--ai-shadow-soft);
}
.privacy-right-card:hover {
  background: #FFF8EC;
}
.privacy-right-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 13px 14px;
  user-select: none;
}
.privacy-right-card summary::-webkit-details-marker {
  display: none;
}
.privacy-right-card__icon {
  font-family: var(--ai-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ai-teal);
  border: 1.5px solid var(--ai-teal);
  padding: 2px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}
.privacy-right-card__title {
  font-family: var(--ai-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ai-ink);
  flex: 1;
}
.privacy-right-card__arrow {
  color: var(--ai-green);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}
.privacy-right-card[open] .privacy-right-card__arrow {
  transform: rotate(180deg);
}
.privacy-right-card > p {
  margin: 0;
  padding: 0 14px 16px 42px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.85);
}

/* ===== 联系与反馈卡片 ===== */
.privacy-contact-card {
  position: relative;
  margin: 22px 0 26px;
  padding: 20px 22px;
  background: linear-gradient(140deg, var(--ai-green) 0%, var(--ai-green-2) 100%);
  border: 3px solid var(--ai-green);
  box-shadow: var(--ai-shadow-hard);
  color: var(--ai-cream);
}
.privacy-contact-card::after {
  content: "✉";
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.8rem;
  opacity: 0.28;
  color: var(--ai-gold);
  line-height: 1;
}
.privacy-contact-card__label {
  margin: 0 0 6px;
  font-family: var(--ai-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ai-gold);
}
.privacy-contact-card__value {
  margin: 0;
  font-family: var(--ai-mono);
  font-size: 1rem;
  word-break: break-all;
  color: var(--ai-cream);
  padding-right: 34px;
}
.privacy-contact-card__note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 249, 239, 0.78);
}

/* ===== 章节尾注链接段 ===== */
.privacy-section--contact .privacy-section__body > p:last-child {
  margin-bottom: 0;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 960px) {
  .page-privacy {
    --plock-size: 128px;
    --pdoc-pad: 44px;
  }

  .privacy-hero {
    padding: 68px 0 56px;
  }
  .privacy-hero__inner {
    flex-direction: row;
    gap: 40px;
    text-align: left;
  }
  .privacy-hero__text h1 {
    font-size: 2.6rem;
  }
  .privacy-hero__lead {
    font-size: 1rem;
  }

  .privacy-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
  .privacy-toc {
    position: sticky;
    top: 22px;
  }

  .privacy-section__head {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }
  .privacy-section__num {
    font-size: 2.4rem;
  }
  .privacy-section__title {
    font-size: 1.55rem;
  }

  .privacy-rights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .privacy-contact-card__value {
    font-size: 1.15rem;
  }
}
