/* ============================================================
   page-yinsi-zhengce.css — 隐私政策 · Apple 极简法律文档布局
   ============================================================ */

html.theme-apple-minimal #home-nav {
  position: sticky;
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pv-code {
  font-size: 0.92em;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  color: #515154;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#page-yinsi-zhengce a:not(.pv-parts__item):not(.pv-toc__link):not(.pv-related-card) {
  color: #2997ff;
  font-weight: 500;
  text-underline-offset: 3px;
}

#page-yinsi-zhengce a:not(.pv-parts__item):not(.pv-toc__link):not(.pv-related-card):hover {
  text-decoration: underline;
}

.pv-banner a {
  color: #fff !important;
}

/* —— 深色顶栏 —— */
.pv-banner {
  background: #1d1d1f;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.pv-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-banner__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.pv-banner__meta div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.pv-banner__meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.pv-banner__meta dd {
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* —— 三篇分段 —— */
.pv-parts-bar {
  position: sticky;
  top: 4rem;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.pv-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 8px;
}

.pv-parts__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #f5f5f7;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-parts__item:hover {
  background: #ebebed;
  text-decoration: none;
  color: inherit;
}

.pv-parts__item.is-active {
  background: #1d1d1f;
  border-color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pv-parts__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}

.pv-parts__item.is-active .pv-parts__label {
  color: rgba(255, 255, 255, 0.55);
}

.pv-parts__name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.pv-parts__item.is-active .pv-parts__name {
  color: #fff;
}

/* —— 主布局 —— */
.pv-body {
  padding: 2.5rem 0 3rem;
  background: #f5f5f7;
}

.pv-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.pv-toc {
  position: sticky;
  top: 9.5rem;
  max-height: calc(100vh - 10.5rem);
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  scrollbar-width: thin;
}

.pv-toc__title {
  margin: 0 0 16px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
}

.pv-toc__group {
  margin-bottom: 16px;
}

.pv-toc__group:last-child {
  margin-bottom: 0;
}

.pv-toc__part {
  margin: 0 0 6px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
}

.pv-toc__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pv-toc__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #515154;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.pv-toc__link:hover {
  background: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
}

.pv-toc__link.is-active {
  background: #1d1d1f;
  color: #fff;
}

.pv-toc__no {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #86868b;
}

.pv-toc__link.is-active .pv-toc__no {
  color: rgba(255, 255, 255, 0.6);
}

/* —— 正文 —— */
.pv-part {
  scroll-margin-top: 9.5rem;
  margin-bottom: 32px;
}

.pv-part:last-child {
  margin-bottom: 0;
}

.pv-part__head {
  margin-bottom: 20px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.pv-chapter {
  scroll-margin-top: 9.5rem;
  margin-bottom: 12px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.pv-chapter:last-child {
  margin-bottom: 0;
}

.pv-chapter__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f2;
}

.pv-chapter__no {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #86868b;
  letter-spacing: 0.02em;
}

.pv-chapter h3 {
  margin: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.pv-chapter p,
.pv-chapter li {
  font-size: 14px;
  line-height: 1.8;
  color: #515154;
  margin: 0 0 12px;
}

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

.pv-chapter ul {
  margin: 0 0 12px;
  padding-left: 1.35em;
}

.pv-chapter li {
  margin-bottom: 6px;
}

.pv-chapter li::marker {
  color: #86868b;
}

.pv-chapter strong {
  color: #1d1d1f;
  font-weight: 600;
}

.pv-clause-id {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1d1d1f;
  letter-spacing: 0.02em;
}

/* —— 关联文件 —— */
.pv-related {
  padding: 0 0 2rem;
  background: #f5f5f7;
}

.pv-related-card {
  display: block;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pv-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.pv-related-card--dark {
  background: #1d1d1f;
  border-color: transparent;
}

.pv-related-card--dark:hover {
  background: #000;
  color: inherit;
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .pv-banner__inner {
    grid-template-columns: 1fr;
  }

  .pv-layout {
    grid-template-columns: 1fr;
  }

  .pv-toc {
    position: static;
    max-height: none;
  }

  .pv-parts {
    grid-template-columns: 1fr;
  }

  .pv-parts__item {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .pv-chapter,
  .pv-part__head {
    padding: 20px 18px;
  }

  .pv-banner {
    padding: 2rem 0;
  }
}
