/* =========================================================
   网站声明 /statement/ — 页面专属样式
   作用域：.page-disclaimer
   ========================================================= */

.page-disclaimer {
  --pd-pad: clamp(20px, 5vw, 48px);
  --pd-line: 2px solid var(--bw-neutral);
  --pd-gap-lg: clamp(48px, 9vw, 104px);
  --pd-gap-md: clamp(26px, 5vw, 48px);
  background: var(--bw-ink);
  color: var(--bw-bone);
  font-family: var(--bw-font-body);
  position: relative;
}

.page-disclaimer p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--bw-bone);
  margin: 0 0 16px;
}

.page-disclaimer p:last-child {
  margin-bottom: 0;
}

.page-disclaimer a {
  color: var(--bw-lime);
  text-decoration: underline;
  text-decoration-color: rgba(157, 255, 60, 0.4);
  text-underline-offset: 4px;
  transition: color 0.18s var(--bw-ease), text-decoration-color 0.18s var(--bw-ease);
}

.page-disclaimer a:hover,
.page-disclaimer a:focus-visible {
  color: var(--bw-lime-soft);
  text-decoration-color: var(--bw-clay);
}

/* ---------- 首屏 ---------- */

.pd-hero {
  position: relative;
  padding-block: clamp(40px, 9vw, 96px) clamp(36px, 7vw, 76px);
  border-bottom: var(--pd-line);
  overflow: hidden;
  isolation: isolate;
}

.pd-hero::before {
  content: "";
  position: absolute;
  inset: -10% -4% -10% -4%;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(92, 122, 153, 0.18) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(92, 122, 153, 0.18) 0 1px, transparent 1px 44px);
  pointer-events: none;
  mask-image: linear-gradient(160deg, #000 12%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(160deg, #000 12%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
}

.pd-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -160px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 255, 60, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.pd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 6vw, 52px);
  align-items: end;
}

.pd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bw-neutral-light);
  margin-bottom: 22px;
}

.pd-crumb a {
  color: var(--bw-neutral-light);
  text-decoration: none;
}

.pd-crumb a:hover {
  color: var(--bw-lime);
}

.pd-crumb span[aria-hidden] {
  color: var(--bw-steel);
}

.page-disclaimer .bw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bw-lime);
  margin: 0 0 18px;
}

.page-disclaimer .bw-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--bw-clay);
  flex: none;
}

.page-disclaimer h1 {
  font-family: var(--bw-font-head);
  font-weight: 900;
  font-size: clamp(29px, 6.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bw-bone);
  margin: 0 0 20px;
  max-width: 15em;
}

.pd-hl {
  color: var(--bw-lime);
  text-shadow: 0 0 26px rgba(157, 255, 60, 0.35);
}

.pd-hero__lede {
  max-width: 620px;
  color: var(--bw-neutral-light) !important;
  font-size: 16.5px !important;
  line-height: 1.88 !important;
}

.pd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--bw-steel);
  border-radius: var(--bw-capsule);
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bw-neutral-light);
}

.pd-chip--clay {
  border-color: var(--bw-clay);
  color: var(--bw-clay);
}

.pd-hero__media {
  margin: 0;
  border: var(--pd-line);
  box-shadow: var(--bw-shadow-lime);
  background: var(--bw-surface);
  position: relative;
}

.pd-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(14, 17, 22, 0) 40%, rgba(14, 17, 22, 0.72) 100%);
  pointer-events: none;
}

.pd-hero__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 章节目录 ---------- */

.pd-toc {
  position: sticky;
  top: calc(var(--bw-header-h) + 6px);
  z-index: 8;
  background: rgba(14, 17, 22, 0.94);
  border-bottom: var(--pd-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pd-toc__list {
  list-style: none;
  margin: 0;
  padding: 11px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-toc__list::-webkit-scrollbar {
  display: none;
}

.pd-toc__link {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--bw-neutral);
  border-radius: var(--bw-capsule);
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bw-neutral-light);
  text-decoration: none;
  transition: border-color 0.18s var(--bw-ease), color 0.18s var(--bw-ease), background 0.18s var(--bw-ease);
}

.pd-toc__link:hover,
.pd-toc__link:focus-visible {
  border-color: var(--bw-lime);
  color: var(--bw-lime);
  text-decoration: none;
}

.page-disclaimer .pd-toc__link.is-active,
.page-disclaimer .pd-toc__link[aria-current] {
  border-color: var(--bw-lime);
  background: rgba(157, 255, 60, 0.12);
  color: var(--bw-lime);
  text-decoration: none;
}

/* ---------- 正文章节 ---------- */

.pd-chapter {
  padding-block: var(--pd-gap-lg);
  border-top: var(--pd-line);
  scroll-margin-top: calc(var(--bw-header-h) + 78px);
}

.pd-chapter--alt {
  background: rgba(28, 42, 53, 0.42);
}

.pd-chapter__head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 3vw, 26px);
  margin-bottom: var(--pd-gap-md);
  flex-wrap: wrap;
}

.pd-index {
  font-family: var(--bw-font-mono);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--bw-clay);
  text-stroke: 1.6px var(--bw-clay);
  flex: none;
}

@supports not ((-webkit-text-stroke: 1px black)) {
  .pd-index {
    color: var(--bw-clay);
  }
}

.pd-chapter__title {
  font-family: var(--bw-font-head);
  font-weight: 900;
  font-size: clamp(21px, 3.4vw, 33px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--bw-bone);
  margin: 0;
  max-width: 22em;
}

.pd-body {
  max-width: 680px;
}

/* ---------- 数据条 ---------- */

.pd-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--bw-neutral);
  border: var(--pd-line);
  margin: clamp(28px, 5vw, 42px) 0 clamp(24px, 4vw, 36px);
  max-width: 900px;
}

.pd-stat {
  background: var(--bw-surface);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-stat__num {
  font-family: var(--bw-font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1;
  color: var(--bw-lime);
  letter-spacing: -0.02em;
}

.pd-stat__label {
  font-size: 13px;
  line-height: 1.65;
  color: var(--bw-neutral-light);
}

/* ---------- 引用块 ---------- */

.pd-note {
  margin: clamp(26px, 4.5vw, 40px) 0 0;
  padding: 20px 22px;
  border: var(--pd-line);
  border-left: 6px solid var(--bw-clay);
  background: rgba(28, 42, 53, 0.7);
  box-shadow: var(--bw-shadow-hard);
  max-width: 720px;
}

.pd-note p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bw-lime-soft);
}

/* ---------- 许可 / 限制 对照 ---------- */

.pd-pair {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--pd-line);
  margin: clamp(26px, 5vw, 40px) 0;
  max-width: 1040px;
}

.pd-pair__col {
  padding: 24px 22px 26px;
}

.pd-pair__col--ok {
  background: rgba(157, 255, 60, 0.06);
  border-bottom: var(--pd-line);
}

.pd-pair__col--no {
  background: rgba(255, 92, 58, 0.08);
}

.pd-pair__head {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: var(--bw-capsule);
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.pd-pair__col--ok .pd-pair__head {
  color: var(--bw-lime);
}

.pd-pair__col--no .pd-pair__head {
  color: var(--bw-clay);
}

.pd-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--bw-bone);
  border-bottom: 1px dashed rgba(92, 122, 153, 0.4);
}

.pd-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--bw-lime);
  transform: rotate(45deg);
}

.pd-pair__col--no .pd-list li::before {
  background: var(--bw-clay);
}

/* ---------- 反馈邮箱 ---------- */

.pd-contactcard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: clamp(24px, 4vw, 34px) 0;
  padding: 20px 22px;
  border: var(--pd-line);
  background: var(--bw-ink-deep);
  box-shadow: var(--bw-shadow-clay);
  max-width: 720px;
}

.pd-copy {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--bw-font-mono);
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bw-lime);
  text-align: left;
  word-break: break-all;
  transition: color 0.18s var(--bw-ease);
}

.pd-copy:hover,
.pd-copy:focus-visible {
  color: var(--bw-lime-soft);
  outline: none;
}

.pd-copy[data-copy-state]::after {
  content: attr(data-copy-state);
}

.pd-contactcard__hint {
  font-family: var(--bw-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bw-steel);
  border-left: 1px solid var(--bw-neutral);
  padding-left: 14px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 620px) {
  .pd-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-stat {
    padding: 22px 18px 24px;
  }
}

@media (min-width: 860px) {
  .pd-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(40px, 5vw, 72px);
  }

  .pd-hero__media {
    transform: translateY(clamp(0px, 3vw, 30px));
  }

  .pd-pair {
    grid-template-columns: 1fr 1fr;
  }

  .pd-pair__col--ok {
    border-bottom: 0;
    border-right: var(--pd-line);
  }

  .pd-pair__col {
    padding: 30px 28px 32px;
  }
}

@media (min-width: 1100px) {
  .pd-chapter {
    padding-block: clamp(72px, 8vw, 112px);
  }

  .pd-note {
    margin-left: -30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-disclaimer * {
    transition: none !important;
  }
}
