/* ===== 数据保护页 · 页面作用域 ===== */
.page-privacy {
  --pr-measure: 68ch;
  --pr-line: rgba(238, 243, 248, .10);
  --pr-line-soft: rgba(238, 243, 248, .06);
  --pr-steel: rgba(22, 57, 92, .34);
  padding-bottom: clamp(3rem, 9vw, 7rem);
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */
.page-privacy .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: clamp(1rem, 2.4vw, 1.75rem) 0 .25rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-privacy .crumb {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.page-privacy a.crumb:hover,
.page-privacy a.crumb:focus-visible {
  color: var(--accent);
}

.page-privacy .crumb--current {
  color: var(--fg);
}

.page-privacy .crumb-sep {
  color: rgba(110, 130, 150, .55);
}

/* ---------- 首屏 ---------- */
.page-privacy .privacy-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(.75rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--pr-line);
  background:
    radial-gradient(125% 135% at 10% -10%, rgba(22, 57, 92, .85) 0%, rgba(6, 23, 38, 0) 62%),
    linear-gradient(180deg, rgba(11, 33, 54, .6) 0%, rgba(6, 23, 38, 0) 100%);
}

.page-privacy .privacy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--pr-line-soft) 1px, transparent 1px);
  background-size: 92px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.page-privacy .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}

.page-privacy .hero-main {
  min-width: 0;
}

.page-privacy h1 {
  margin: .55rem 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 6.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--fg);
  max-width: 13ch;
}

.page-privacy .lead {
  margin: clamp(1rem, 2.4vw, 1.5rem) 0 0;
  max-width: 58ch;
  padding-left: clamp(.85rem, 2vw, 1.3rem);
  border-left: 2px solid var(--accent);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: rgba(238, 243, 248, .82);
}

/* 首屏右侧信息条 */
.page-privacy .hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pr-line);
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-privacy .hero-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .75rem;
  padding: .9rem 1.05rem;
  background: var(--ink-1);
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(238, 243, 248, .84);
}

.page-privacy .fact-key {
  flex: 0 0 auto;
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--accent);
}

.page-privacy .fact-val {
  flex: 1 1 11rem;
  min-width: 0;
  word-break: break-word;
}

/* ---------- 布局骨架 ---------- */
.page-privacy .privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.page-privacy .privacy-body {
  min-width: 0;
}

/* ---------- 快速浏览折叠区 ---------- */
.page-privacy .pr-quick {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  padding: clamp(1.05rem, 3vw, 1.6rem);
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  background: rgba(22, 57, 92, .24);
}

.page-privacy .quick-title {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-privacy .accordion {
  display: block;
}

.page-privacy .accordion-item {
  border-bottom: 1px solid var(--pr-line-soft);
}

.page-privacy .accordion-item:last-child {
  border-bottom: 0;
}

.page-privacy .acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .15rem;
  background: none;
  border: 0;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease);
}

.page-privacy .acc-trigger:hover,
.page-privacy .acc-trigger:focus-visible {
  color: var(--accent-2);
}

.page-privacy .acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.page-privacy .acc-icon::before,
.page-privacy .acc-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform .25s var(--ease);
}

.page-privacy .acc-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.page-privacy .acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.page-privacy .acc-panel {
  overflow: hidden;
}

.page-privacy .acc-panel-inner {
  padding: .1rem .15rem 1.05rem;
  max-width: var(--pr-measure);
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(238, 243, 248, .78);
}

.page-privacy .acc-panel-inner p {
  margin: 0 0 .55rem;
}

.page-privacy .acc-panel-inner p:last-child {
  margin-bottom: 0;
}

.page-privacy .acc-panel-inner a {
  display: inline-block;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 26, .4);
  padding-bottom: 1px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.page-privacy .acc-panel-inner a:hover,
.page-privacy .acc-panel-inner a:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

/* 未展开时收起面板：JS 同步 aria-expanded / data-open */
.page-privacy .acc-panel {
  display: none;
}

.page-privacy .accordion-item[data-open] .acc-panel,
.page-privacy .accordion-item.is-visible .acc-panel,
.page-privacy .acc-trigger[aria-expanded="true"] + .acc-panel {
  display: block;
}

/* ---------- 章节 ---------- */
.page-privacy .chapter {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.page-privacy .chapter:first-of-type {
  padding-top: 0;
}

.page-privacy .chapter-band {
  display: block;
  height: 8px;
  width: 100%;
  border-radius: 2px;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 106, 26, 0) 74%);
}

.page-privacy .chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
  margin-bottom: clamp(1.2rem, 2.6vw, 1.9rem);
}

.page-privacy .chapter-head-main {
  min-width: 0;
}

.page-privacy .chapter-num {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: .35rem;
}

.page-privacy .chapter-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--fg);
}

.page-privacy .chapter-desc {
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-privacy .chapter-desc::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: .7rem;
  background: var(--ink-2);
}

/* ---------- 条款列表 ---------- */
.page-privacy .term-list {
  margin: 0;
  padding: 0;
  max-width: var(--pr-measure);
}

.page-privacy .term {
  margin: 0 0 .8rem;
  padding: .95rem 1.15rem;
  border-left: 2px solid var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pr-steel);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.page-privacy .term:last-child {
  margin-bottom: 0;
}

.page-privacy .term:hover {
  border-left-color: var(--accent);
  background: rgba(22, 57, 92, .48);
}

.page-privacy .term dt {
  margin: 0 0 .35rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--fg);
}

.page-privacy .term dd {
  margin: 0;
  font-size: .94rem;
  line-height: 1.8;
  color: rgba(238, 243, 248, .78);
}

.page-privacy .term dd a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 26, .38);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.page-privacy .term dd a:hover,
.page-privacy .term dd a:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

/* ---------- 中段图像 ---------- */
.page-privacy .pr-figure {
  display: block;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.page-privacy .pr-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-privacy .pr-figure .media-caption {
  margin-top: .7rem;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 右侧目录刻度尺 ---------- */
.page-privacy .in-page-ruler {
  display: none;
}

@media (min-width: 1080px) {
  .page-privacy .privacy-layout {
    grid-template-columns: minmax(0, 1fr) 208px;
    align-items: start;
  }

  .page-privacy .in-page-ruler {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .page-privacy .ruler-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .15rem .6rem;
    padding: .55rem 0 .55rem 1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    line-height: 1.35;
    transition: color .25s var(--ease);
  }

  .page-privacy .ruler-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--pr-line);
    transition: width .25s var(--ease), background .25s var(--ease);
  }

  .page-privacy .ruler-item:hover,
  .page-privacy .ruler-item:focus-visible {
    color: var(--fg);
  }

  .page-privacy .ruler-item:hover::before {
    background: var(--muted);
  }

  .page-privacy .ruler-item.is-current {
    color: var(--accent);
  }

  .page-privacy .ruler-item.is-current::before {
    width: 2px;
    background: var(--accent);
  }

  .page-privacy .ruler-num {
    font-size: .68rem;
    letter-spacing: .14em;
    opacity: .8;
  }

  .page-privacy .ruler-text {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .page-privacy .ruler-bar {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: 1px;
    margin-top: .4rem;
    background: currentColor;
    opacity: .1;
  }
}

/* ---------- 中等屏幕：章节头部左右对读 ---------- */
@media (min-width: 760px) {
  .page-privacy .chapter-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: start;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .page-privacy .chapter-desc {
    padding-top: .35rem;
  }
}

@media (min-width: 920px) {
  .page-privacy .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
}

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 600px) {
  .page-privacy .privacy-hero::after {
    background-size: 64px 100%;
  }

  .page-privacy .term {
    padding: .85rem .9rem;
  }

  .page-privacy .acc-trigger {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-privacy .term,
  .page-privacy .ruler-item,
  .page-privacy .ruler-item::before,
  .page-privacy .acc-trigger,
  .page-privacy .acc-icon::before,
  .page-privacy .acc-icon::after {
    transition: none;
  }
}
