/* 隐私政策页：文本密集型双栏阅读布局 */
.page-privacy {
  --pp-hero-h: 180px;
  --pp-hero-h-lg: 300px;
  --pp-toc-w: 248px;
  --pp-deep: var(--yz-color-primary-deep);
  --pp-navy: var(--yz-color-primary);
  --pp-gold: var(--yz-color-gold);
  --pp-line-faint: 1px solid #E4E8EF;
  background: var(--yz-color-bg);
  overflow-x: hidden;
}

/* ---------- 顶部横幅 ---------- */
.pp-hero {
  position: relative;
  min-height: var(--pp-hero-h);
  display: flex;
  align-items: flex-end;
  background: var(--pp-deep);
  border-bottom: 4px solid var(--pp-gold);
}

.pp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10, 30, 63, 0.94) 0%, rgba(10, 30, 63, 0.78) 48%, rgba(10, 30, 63, 0.42) 100%);
  pointer-events: none;
}

.pp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 1.2rem;
  color: var(--yz-color-white);
}

.pp-breadcrumb {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.pp-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.pp-breadcrumb a:hover {
  color: var(--pp-gold);
}

.pp-breadcrumb__sep {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.4);
}

.pp-hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.pp-hero__index {
  font-family: var(--yz-font-mono);
  font-size: 0.85rem;
  color: var(--pp-gold);
  border: 2px solid var(--pp-gold);
  padding: 0.2rem 0.4rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.pp-hero__title-block {
  flex: 1;
}

.pp-hero__title-block h1 {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
}

.pp-hero__subtitle {
  font-family: var(--yz-font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0.35rem 0 0;
}

.pp-hero__vertical {
  display: none;
}

.pp-hero__meta {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--yz-font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 引言 ---------- */
.pp-preamble {
  margin-top: 2rem;
}

.pp-preamble__inner {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
  background: var(--yz-color-white);
  border: 2px solid var(--pp-navy);
  box-shadow: var(--yz-shadow-sm);
  padding: 1.3rem 1.2rem;
}

.pp-preamble__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 3.4rem;
}

.pp-preamble__tag {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--pp-navy);
  border-bottom: 2px solid var(--pp-gold);
  padding-bottom: 0.2rem;
  white-space: nowrap;
}

.pp-preamble__line {
  flex: 1;
  width: 2px;
  background: var(--pp-gold);
  margin-top: 0.8rem;
}

.pp-preamble__text {
  font-family: var(--yz-font-body);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--yz-color-text);
  margin: 0;
}

.pp-preamble__text strong {
  font-weight: 700;
  color: var(--pp-navy);
}

/* ---------- 双栏布局 ---------- */
.pp-layout {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  display: grid;
  gap: 1.8rem;
  align-items: start;
}

/* ---------- 左侧章节目录 ---------- */
.pp-toc {
  background: var(--yz-color-white);
  border: 2px solid var(--pp-navy);
  box-shadow: var(--yz-shadow);
  padding: 1.1rem 1.1rem 1.3rem;
}

.pp-toc__nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.pp-toc__nav::-webkit-scrollbar {
  display: none;
}

.pp-toc__label {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--pp-gold);
  margin: 0 0 0.75rem;
}

.pp-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
}

.pp-toc__link {
  display: block;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--pp-navy);
  color: var(--pp-navy);
  font-family: var(--yz-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--yz-transition), color var(--yz-transition), border-color var(--yz-transition);
}

.pp-toc__link:hover,
.pp-toc__link.is-active,
.pp-toc__link[aria-current="true"] {
  background: var(--pp-navy);
  border-color: var(--pp-navy);
  color: var(--yz-color-white);
}

.pp-toc__aside {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: var(--pp-line-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.pp-toc__aside .pp-toc__label {
  width: 100%;
  margin-bottom: 0.2rem;
}

.pp-toc__aside-link {
  font-family: var(--yz-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pp-navy);
  text-decoration: none;
  border-left: 3px solid var(--pp-gold);
  padding-left: 0.5rem;
}

.pp-toc__aside-link:hover {
  color: var(--pp-gold);
}

.pp-toc__tip {
  width: 100%;
  font-family: var(--yz-font-body);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--yz-color-text-light);
  margin: 0.9rem 0 0;
  background: var(--yz-color-bg);
  padding: 0.7rem 0.8rem;
  border-left: 2px solid var(--pp-gold);
}

/* ---------- 右侧正文 ---------- */
.pp-content {
  display: grid;
  gap: 1.8rem;
}

.pp-content__section {
  background: var(--yz-color-white);
  border: 2px solid var(--pp-navy);
  box-shadow: var(--yz-shadow);
  padding: 1.4rem 1.2rem;
  scroll-margin-top: calc(var(--yz-strip-height) + var(--yz-bar-height) + 12px);
  position: relative;
}

.pp-content__section::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--pp-gold);
  margin-bottom: 1rem;
}

.pp-content__section:target {
  outline: 2px solid var(--pp-gold);
  outline-offset: 6px;
}

.pp-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.pp-section__num {
  font-family: var(--yz-font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--pp-gold);
  letter-spacing: 0.1em;
}

.pp-section__title {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--pp-navy);
  margin: 0;
}

/* ---------- 正文排版 ---------- */
.pp-prose {
  font-family: var(--yz-font-body);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--yz-color-text);
}

.pp-prose p {
  margin: 0 0 0.9em;
}

.pp-prose p:last-child {
  margin-bottom: 0;
}

.pp-prose strong {
  font-weight: 700;
  color: var(--pp-navy);
}

/* 收集范围列表 */
.pp-collect-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0;
  display: grid;
  gap: 0.7rem;
}

.pp-collect-list li {
  background: var(--yz-color-bg);
  border: 1px solid #E4E8EF;
  border-left: 4px solid var(--pp-navy);
  padding: 0.8rem 0.9rem;
}

.pp-collect-list li strong {
  display: block;
  font-family: var(--yz-font-heading);
  font-size: 0.92rem;
  color: var(--pp-navy);
  margin-bottom: 0.25rem;
}

.pp-collect-list li span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--yz-color-text-light);
}

/* 信息使用编号列表 */
.pp-usage-list {
  list-style: none;
  counter-reset: ppUsage;
  padding: 0;
  margin: 1.3rem 0;
  display: grid;
  gap: 1rem;
}

.pp-usage-list li {
  position: relative;
  padding-left: 3.2rem;
  padding-bottom: 1rem;
  border-bottom: var(--pp-line-faint);
  counter-increment: ppUsage;
}

.pp-usage-list li::before {
  content: counter(ppUsage, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--pp-gold);
  color: var(--pp-gold);
  font-family: var(--yz-font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}

.pp-usage-list li > span {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--pp-navy);
}

.pp-usage-list li > p {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--yz-color-text-light);
}

/* ---------- 用户权利 ---------- */
.pp-right-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1.3rem 0;
}

.pp-right-card {
  border: 2px solid var(--pp-navy);
  background: var(--yz-color-white);
  box-shadow: var(--yz-shadow-sm);
  padding: 1rem 1.1rem;
}

.pp-right-card__num {
  font-family: var(--yz-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pp-gold);
}

.pp-right-card h3 {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--pp-navy);
  margin: 0.3rem 0 0.25rem;
}

.pp-right-card p {
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--yz-color-text-light);
  margin: 0;
}

/* ---------- 收尾联系 ---------- */
.pp-closing {
  background: var(--pp-navy);
  border: 2px solid var(--pp-navy);
  border-top: 4px solid var(--pp-gold);
  box-shadow: var(--yz-shadow);
  color: var(--yz-color-white);
  padding: 1.6rem 1.4rem;
}

.pp-closing__title {
  font-family: var(--yz-font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

.pp-closing p {
  font-family: var(--yz-font-body);
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.pp-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.pp-closing__actions .yz-btn--outline {
  box-shadow: none;
  border: 2px solid var(--pp-gold);
}

/* ---------- 平板：双列权利卡片 ---------- */
@media (min-width: 640px) {
  .pp-right-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pp-content__section {
    padding: 1.8rem 1.6rem;
  }

  .pp-preamble__inner {
    padding: 1.6rem 1.8rem;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 992px) {
  .pp-hero {
    min-height: var(--pp-hero-h-lg);
  }

  .pp-hero__inner {
    padding-bottom: 2rem;
  }

  .pp-hero__index {
    font-size: 1rem;
  }

  .pp-hero__title-block h1 {
    font-size: 2.6rem;
  }

  .pp-hero__subtitle {
    font-size: 1.05rem;
  }

  .pp-hero__vertical {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--pp-gold);
    margin-left: 1.2rem;
    text-transform: uppercase;
  }

  .pp-hero__meta {
    font-size: 0.78rem;
  }

  .pp-preamble {
    margin-top: 3rem;
  }

  .pp-preamble__text {
    font-size: 1.05rem;
  }

  .pp-layout {
    grid-template-columns: var(--pp-toc-w) minmax(0, 1fr);
    gap: 2.6rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }

  .pp-toc {
    position: sticky;
    top: calc(var(--yz-strip-height) + var(--yz-bar-height) + 16px);
    padding: 1.4rem 1.2rem;
  }

  .pp-toc__list {
    flex-direction: column;
    gap: 0.4rem;
  }

  .pp-toc__link {
    white-space: normal;
    border: 0;
    border-top: var(--pp-line-faint);
    border-radius: 0;
    padding: 0.55rem 0.2rem;
    font-size: 0.85rem;
  }

  .pp-toc__link:hover,
  .pp-toc__link.is-active,
  .pp-toc__link[aria-current="true"] {
    background: transparent;
    border-top: var(--pp-line-faint);
    color: var(--pp-gold);
    border-left: 3px solid var(--pp-gold);
    padding-left: 0.8rem;
  }

  .pp-toc__aside {
    display: block;
  }

  .pp-toc__aside-link {
    display: block;
    width: fit-content;
    margin-bottom: 0.6rem;
  }

  .pp-toc__tip {
    margin-top: 1.2rem;
  }

  .pp-content {
    gap: 2.4rem;
  }

  .pp-content__section {
    padding: 2.4rem 2.6rem;
  }

  .pp-section__title {
    font-size: 1.7rem;
  }

  .pp-prose {
    font-size: 0.98rem;
  }

  .pp-collect-list li strong {
    font-size: 1rem;
  }

  .pp-collect-list li span {
    font-size: 0.9rem;
  }

  .pp-usage-list li > span {
    font-size: 1rem;
  }

  .pp-usage-list li > p {
    font-size: 0.9rem;
  }

  .pp-closing {
    padding: 2.6rem 2.8rem;
  }

  .pp-closing__title {
    font-size: 1.7rem;
  }

  .pp-closing p {
    font-size: 0.95rem;
  }
}
