.page-privacy {
  --pp-bg: #08142A;
  --pp-panel: rgba(8, 18, 38, 0.72);
  --pp-card: rgba(5, 12, 26, 0.5);
  --pp-line: rgba(245, 247, 250, 0.08);
  --pp-text: #D7E1F0;
  --pp-text-dim: rgba(215, 225, 240, 0.78);

  background-color: var(--pp-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 250, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--pp-text);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

.page-privacy a:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.pp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 42px;
}

.pp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.45), transparent);
}

.pp-hero-copy {
  position: relative;
  z-index: 1;
}

.pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-green);
  text-transform: uppercase;
}

.pp-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient-fire);
}

.pp-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--color-cloud);
  margin: 14px 0 0;
}

.pp-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  background: var(--gradient-fire);
  border-radius: 3px;
  margin-top: 14px;
}

.pp-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--pp-text);
  max-width: 56ch;
  margin: 18px 0 0;
}

.pp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pp-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pp-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), transparent 45%);
  pointer-events: none;
}

.pp-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.pp-media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 18, 38, 0.82);
  border: 1px solid rgba(245, 247, 250, 0.14);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-green);
}

.pp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pp-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes pp-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(0, 229, 160, 0); }
}

/* ===== 文档主布局 ===== */
.pp-doc-wrap {
  padding-bottom: 48px;
}

.pp-doc-layout {
  display: block;
  padding-top: 12px;
}

.pp-toc {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--pp-panel);
  border: 1px solid var(--pp-line);
  margin-bottom: 20px;
}

.pp-toc-title {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin: 0 0 12px;
}

.pp-toc-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--gradient-fire);
  border-radius: 2px;
}

.pp-toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(245, 247, 250, 0.06);
  color: var(--pp-text);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.pp-toc-link:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.3);
  color: #fff;
}

.pp-toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-green);
  letter-spacing: 0.08em;
}

.pp-toc-foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--pp-line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--pp-text-dim);
}

/* ===== 正文章节 ===== */
.pp-doc {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pp-section {
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background: var(--pp-panel);
  border: 1px solid var(--pp-line);
  scroll-margin-top: 96px;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.pp-section:target {
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.08);
}

.pp-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.pp-section-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-orange);
  background: rgba(255, 106, 0, 0.1);
  border-radius: 6px;
  padding: 7px 9px;
  white-space: nowrap;
}

.pp-h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-cloud);
  line-height: 1.25;
  margin: 0 0 6px;
}

.pp-section-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-text-dim);
  margin: 0;
}

/* ===== 条款列表 ===== */
.pp-clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pp-line);
}

.pp-clause-item {
  padding: 16px 8px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-clause-item:last-child {
  border-bottom: none;
}

.pp-clause-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.pp-clause-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-green);
  background: rgba(0, 229, 160, 0.08);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}

.pp-clause-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cloud);
  margin: 0;
}

.pp-clause-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--pp-text-dim);
  margin: 0;
}

/* ===== 安全网格 ===== */
.pp-sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pp-sec-card {
  padding: 18px 16px;
  background: var(--pp-card);
  border-radius: var(--radius);
  border: 1px solid var(--pp-line);
  transition: border-color 0.3s, transform 0.3s;
}

.pp-sec-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
  transform: translateY(-2px);
}

.pp-sec-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-bottom: 8px;
}

.pp-sec-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-cloud);
  margin: 0 0 6px;
}

.pp-sec-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--pp-text-dim);
  margin: 0;
}

/* ===== 用户权利列表 ===== */
.pp-right-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pp-line);
}

.pp-right-item {
  display: flex;
  gap: 14px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-right-item:last-child {
  border-bottom: none;
}

.pp-right-item:hover .pp-right-title {
  color: var(--color-orange);
}

.pp-right-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-orange);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 3px;
}

.pp-right-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-cloud);
  margin: 0 0 4px;
  transition: color 0.25s;
}

.pp-right-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pp-text-dim);
  margin: 0;
}

/* ===== 政策更新 ===== */
.pp-update-box {
  border-left: 3px solid var(--color-green);
  padding: 16px 18px;
  background: rgba(0, 229, 160, 0.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.pp-update-box p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--pp-text-dim);
  margin: 0 0 10px;
}

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

/* ===== 联系区块 ===== */
.pp-contact {
  padding-top: 8px;
  padding-bottom: 56px;
}

.pp-contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.14), transparent 55%),
    var(--pp-panel);
  border: 1px solid var(--pp-line);
}

.pp-contact-main {
  flex: 1;
}

.pp-contact-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-cloud);
  margin: 8px 0 8px;
}

.pp-contact-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-text-dim);
  margin: 0 0 14px;
}

.pp-contact-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--pp-text-dim);
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--pp-card);
  border: 1px solid var(--pp-line);
}

/* ===== 桌面端增强 ===== */
@media (min-width: 641px) {
  .pp-sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .pp-title {
    font-size: 56px;
  }

  .pp-lead {
    font-size: 16px;
  }

  .pp-doc-wrap {
    padding-bottom: 64px;
  }

  .pp-doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    padding-top: 8px;
  }

  .pp-toc {
    position: sticky;
    top: 88px;
    margin-bottom: 0;
  }

  .pp-toc-nav {
    flex-direction: column;
    gap: 2px;
  }

  .pp-toc-link {
    width: 100%;
    border-radius: 8px;
    border: 0;
    padding: 9px 10px;
  }

  .pp-toc-link::after {
    content: "";
    margin-left: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s;
  }

  .pp-toc-link:hover::after {
    background: var(--color-orange);
  }

  .pp-doc {
    gap: 28px;
  }

  .pp-section {
    padding: 36px 32px;
  }

  .pp-h2 {
    font-size: 28px;
  }

  .pp-clause-item {
    padding: 18px 12px;
  }

  .pp-contact {
    padding-top: 8px;
    padding-bottom: 72px;
  }

  .pp-contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
  }

  .pp-contact-title {
    font-size: 26px;
  }

  .pp-contact-meta {
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .pp-sec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
