/* ============================================================
   page-yinsi-zhengce.css — 隐私政策 · 晶格浅域 (yp-*)
   依赖 page-index.css 提供 --zt-* 变量与 .zt-btn/.zt-tag 基础类
   ============================================================ */

html.theme-pearl-elegance .zt-privacy {
  --yp-bg:            #f4f8fc;
  --yp-surface:       #ffffff;
  --yp-ink:           #0c1222;
  --yp-muted:         #5a6a85;
  --yp-body:          #4a5a72;
  --yp-border:        rgba(14, 165, 233, 0.18);
  --yp-border-strong: rgba(14, 165, 233, 0.35);
  --yp-shadow:        0 20px 50px -12px rgba(14, 165, 233, 0.15);
  --yp-shadow-sm:     0 4px 20px -4px rgba(14, 165, 233, 0.10);
  --yp-cyan:          #06b6d4;
  --yp-blue:          #0ea5e9;
  --yp-blue-dark:     #0284c7;
  --yp-mono:          var(--zt-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  --yp-sans:          -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-family: var(--yp-sans);
  background: var(--yp-bg);
  padding-bottom: 0;
}

.zt-privacy .container { max-width: 1360px; }

/* 正文链接 */
.zt-privacy .yp-hero__sub a,
.zt-privacy .yp-article a,
.zt-privacy .yp-part__sub a {
  color: var(--yp-blue-dark);
  font-weight: 600;
}
.zt-privacy .yp-article code {
  font-family: var(--yp-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--yp-blue-dark);
}

/* —— 通用区块标题 —— */
.yp-head { text-align: center; max-width: 68ch; margin: 0 auto clamp(32px, 5vw, 52px); }
.yp-head__eyebrow {
  margin: 0 0 10px;
  font-family: var(--yp-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yp-blue);
}
.yp-head__title { margin: 0 0 10px; font-weight: 800; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; color: var(--yp-ink); }
.yp-head__sub { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--yp-muted); }
.yp-head__sub code { font-family: var(--yp-mono); font-size: 0.9em; padding: 2px 5px; border-radius: 4px; background: rgba(14, 165, 233, 0.08); color: var(--yp-blue-dark); }

/* —— ① 首屏 —— */
html.theme-pearl-elegance:has(#page-yinsi-zhengce) .zt-privacy .yp-hero {
  margin-top: calc(-1 * var(--nav-height));
}

.yp-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(88vh, 820px);
  padding: clamp(120px, 14vw, 160px) 0 clamp(64px, 8vw, 88px);
  background: var(--yp-bg);
}

.yp-hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}
.yp-hero::after {
  content: '';
  position: absolute; top: -100px; right: -60px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.yp-hero__wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding-inline: clamp(24px, 6vw, 48px);
}
.yp-hero__grid {
  display: flex; flex-wrap: nowrap;
  align-items: center; justify-content: center;
  gap: clamp(28px, 4vw, 60px);
  width: fit-content; max-width: 100%; margin-inline: auto;
}
.yp-hero__col-text { flex: 0 0 auto; width: min(600px, 100%); }
.yp-hero__col-panel { flex: 0 0 auto; width: 400px; max-width: 100%; display: flex; }

.yp-hero__title {
  margin: 0 0 18px;
  font-weight: 800; font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--yp-ink);
}
.yp-hero__role { margin: 0 0 14px; font-size: clamp(15px, 1.5vw, 17px); font-weight: 600; color: var(--yp-muted); }
.yp-hero__sub { margin: 0 0 28px; max-width: 54ch; font-size: clamp(13.5px, 1.2vw, 15px); line-height: 1.8; color: var(--yp-muted); }

.yp-hero__points {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.yp-hero__points li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--yp-blue-dark);
  background: rgba(14, 165, 233, 0.08); border: 1px solid var(--yp-border);
}
.yp-hero__points li code { font-family: var(--yp-mono); font-size: 0.92em; color: inherit; background: none; padding: 0; }
.yp-hero__points i { width: 14px; height: 14px; color: var(--yp-cyan); }
.yp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* 政策概览卡 */
.yp-doc {
  width: 100%; max-width: 400px; border-radius: 16px; overflow: hidden;
  background: var(--yp-surface); border: 1px solid var(--yp-border-strong); box-shadow: var(--yp-shadow);
}
.yp-doc__head {
  padding: clamp(18px, 2.4vw, 22px) clamp(20px, 2.6vw, 24px);
  border-bottom: 1px solid var(--yp-border);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
  display: flex; flex-direction: column; gap: 8px;
}
.yp-doc__badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; padding: 4px 12px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yp-blue-dark); background: rgba(14, 165, 233, 0.1); border: 1px solid var(--yp-border);
}
.yp-doc__badge i { width: 12px; height: 12px; }
.yp-doc__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--yp-ink); }

.yp-doc__meta { margin: 0; padding: clamp(14px, 2vw, 18px) clamp(20px, 2.6vw, 24px); display: flex; flex-direction: column; gap: 10px; }
.yp-doc__row { display: flex; gap: 8px; }
.yp-doc__row dt { flex-shrink: 0; width: 72px; font-size: 12px; font-weight: 700; color: var(--yp-muted); padding-top: 2px; }
.yp-doc__row dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--yp-ink); line-height: 1.5; }

.yp-doc__parts {
  display: flex; flex-direction: column; gap: 4px;
  padding: clamp(12px, 1.6vw, 16px) clamp(20px, 2.6vw, 24px);
  border-top: 1px solid var(--yp-border);
  background: rgba(14, 165, 233, 0.02);
}
.yp-doc__parts a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--yp-blue-dark);
  text-decoration: none; transition: background 0.2s ease;
}
.yp-doc__parts a i { width: 14px; height: 14px; flex-shrink: 0; color: var(--yp-cyan); }
.yp-doc__parts a:hover { background: rgba(14, 165, 233, 0.08); }

/* —— ② 章节环 —— */
.yp-ring { padding: clamp(48px, 8vw, 72px) 0; }
.yp-ring__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 12px);
}
.yp-ring__badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: clamp(12px, 1.8vw, 16px) clamp(8px, 1.2vw, 12px);
  border-radius: 12px; text-decoration: none;
  background: var(--yp-surface); border: 1px solid var(--yp-border); box-shadow: var(--yp-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.yp-ring__badge:hover { transform: translateY(-3px); border-color: var(--yp-border-strong); box-shadow: var(--yp-shadow); }
.yp-ring__badge--alt { background: linear-gradient(165deg, rgba(6, 182, 212, 0.04) 0%, var(--yp-surface) 100%); border-color: rgba(6, 182, 212, 0.22); }
.yp-ring__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--yp-mono); font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--yp-blue), var(--yp-cyan));
}
.yp-ring__label { font-size: 11.5px; font-weight: 700; color: var(--yp-ink); text-align: center; line-height: 1.3; }

/* —— ③ 正文区 —— */
.yp-magazine { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.yp-magazine__wrap {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px); align-items: start;
}

/* 侧边目录 */
.yp-sidebar {
  position: sticky; top: calc(var(--nav-height) + 20px);
  padding: clamp(16px, 2.2vw, 20px); border-radius: 12px;
  background: var(--yp-surface); border: 1px solid var(--yp-border); box-shadow: var(--yp-shadow-sm);
}
.yp-sidebar__label {
  margin: 0 0 12px;
  font-family: var(--yp-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yp-muted);
}
.yp-sidebar__nav { display: flex; flex-direction: column; gap: 20px; }
.yp-sidebar__group { display: flex; flex-direction: column; gap: 2px; }
.yp-sidebar__part {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--yp-blue-dark); text-decoration: none;
  background: rgba(14, 165, 233, 0.06); margin-bottom: 4px;
}
.yp-sidebar__nav a:not(.yp-sidebar__part) {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--yp-muted);
  text-decoration: none; transition: background 0.2s ease, color 0.2s ease;
}
.yp-sidebar__nav a:not(.yp-sidebar__part):hover { background: rgba(14, 165, 233, 0.06); color: var(--yp-blue-dark); }

/* 正文内容 */
.yp-body { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 60px); }

/* 篇章标头 */
.yp-part__head {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(20px, 2.6vw, 26px) clamp(22px, 3vw, 28px);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid var(--yp-border);
}
.yp-part__tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 6px;
  font-family: var(--yp-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--yp-blue-dark); background: rgba(14, 165, 233, 0.1); border: 1px solid var(--yp-border);
}
.yp-part__title { margin: 0 0 10px; font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.3; color: var(--yp-ink); }
.yp-part__sub { margin: 0; font-size: 14px; line-height: 1.7; color: var(--yp-muted); }

/* 章节文章 */
.yp-article {
  scroll-margin-top: calc(var(--nav-height) + 20px);
  padding: clamp(20px, 2.6vw, 26px) clamp(22px, 3vw, 28px);
  border-radius: 12px;
  background: var(--yp-surface); border: 1px solid var(--yp-border); box-shadow: var(--yp-shadow-sm);
}
.yp-article__head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--yp-border);
}
.yp-article__no {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--yp-mono); font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--yp-blue), var(--yp-cyan));
}
.yp-article__head h3 { margin: 0; font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--yp-ink); padding-top: 4px; }
.yp-article p { margin: 0 0 12px; font-size: 14px; line-height: 1.8; color: var(--yp-body); }
.yp-article p:last-child { margin-bottom: 0; }
.yp-article ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.yp-article ul li { font-size: 14px; line-height: 1.7; color: var(--yp-body); }
.yp-article ul li::marker { color: var(--yp-blue); }

/* —— ④ 关联文件 —— */
.yp-notes { padding: clamp(56px, 8vw, 88px) 0; }
.yp-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 16px);
}
.yp-note {
  padding: clamp(20px, 2.6vw, 26px); border-radius: 12px;
  background: var(--yp-surface); border: 1px solid var(--yp-border); box-shadow: var(--yp-shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.yp-note:hover { border-color: var(--yp-border-strong); transform: translateY(-2px); box-shadow: var(--yp-shadow); }
.yp-note--alt { background: linear-gradient(165deg, rgba(6, 182, 212, 0.04) 0%, var(--yp-surface) 100%); border-color: rgba(6, 182, 212, 0.22); }
.yp-note--wide { grid-column: span 3; flex-direction: row; align-items: flex-start; gap: 18px; }
.yp-note__ico {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--yp-border); color: var(--yp-blue);
}
.yp-note__ico i { width: 20px; height: 20px; }
.yp-note h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--yp-ink); }
.yp-note p { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: var(--yp-muted); flex: 1; }
.yp-note a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--yp-blue-dark);
  text-decoration: none; transition: gap 0.2s ease;
}
.yp-note a:hover { gap: 8px; }
.yp-note a i { width: 14px; height: 14px; }

/* —— ⑤ 延伸阅读 —— */
.yp-more { padding: clamp(24px, 4vw, 40px) 0 clamp(28px, 4.5vw, 48px); }
.yp-more__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.yp-more-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--yp-ink);
  text-decoration: none; background: var(--yp-surface); border: 1px solid var(--yp-border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.yp-more-pill:hover { transform: translateY(-2px); border-color: var(--yp-cyan); background: rgba(14, 165, 233, 0.06); color: var(--yp-blue-dark); }
.yp-more-pill i { width: 16px; height: 16px; color: var(--yp-blue); }

/* —— ⑥ 收束 CTA —— */
.yp-closing {
  position: relative; overflow: hidden;
  margin: 0 clamp(16px, 3vw, 24px) clamp(24px, 4vw, 40px);
  padding: clamp(56px, 9vw, 96px) 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #071828 0%, #0a2034 50%, #071828 100%);
}
.yp-closing::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.yp-closing__glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 360px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.yp-closing__inner { position: relative; z-index: 1; text-align: center; max-width: 600px; }
.yp-closing__title { margin: 0 0 14px; font-weight: 800; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; color: #fff; }
.yp-closing__sub { margin: 0 auto 28px; max-width: 48ch; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.62); }
.yp-closing__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; }
.yp-link-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.65);
  text-decoration: underline; text-underline-offset: 3px;
}
.yp-link-quiet:hover { color: #fff; }

/* —— fade-in —— */
#page-yinsi-zhengce .fade-in {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#page-yinsi-zhengce .fade-in.visible,
#page-yinsi-zhengce .yp-hero.fade-in { opacity: 1; transform: none; }

/* —— 响应式 —— */
@media (max-width: 1080px) {
  .yp-hero__grid { flex-direction: column; gap: clamp(36px, 8vw, 48px); }
  .yp-hero__col-text { width: 100%; text-align: center; }
  .yp-hero__col-panel { width: 100%; justify-content: center; }
  .yp-hero__sub { margin-inline: auto; text-align: left; }
  .yp-hero__points, .yp-hero__actions { justify-content: center; }
  .yp-ring__grid { grid-template-columns: repeat(4, 1fr); }
  .yp-magazine__wrap { grid-template-columns: 1fr; }
  .yp-sidebar { position: static; padding: 14px 16px; }
  .yp-sidebar__nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .yp-sidebar__group { flex: 1 1 180px; }
  .yp-notes__grid { grid-template-columns: 1fr 1fr; }
  .yp-note--wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .yp-ring__grid { grid-template-columns: repeat(3, 1fr); }
  .yp-notes__grid { grid-template-columns: 1fr; }
  .yp-note--wide { grid-column: span 1; flex-direction: column; }
  .yp-closing { margin-inline: 12px; border-radius: 14px; }
}

@media (max-width: 480px) {
  .yp-ring__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #page-yinsi-zhengce .fade-in { opacity: 1; transform: none; transition: none; }
  .yp-ring__badge:hover, .yp-note:hover, .yp-more-pill:hover { transform: none; }
}
