.page-disclaimer {
  --toc-w: 218px;
  --notice-pad: clamp(16px, 4vw, 40px);
  position: relative;
  background: var(--ink);
  color: var(--warm);
  font-family: var(--font-body);
  padding-bottom: clamp(56px, 9vw, 96px);
}

/* 面包屑 */
.page-disclaimer .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-disclaimer .crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--edge);
}

.page-disclaimer .crumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s ease;
}

.page-disclaimer .crumbs a:hover,
.page-disclaimer .crumbs a:focus-visible {
  color: var(--cyan);
}

.page-disclaimer .crumbs [aria-current="page"] {
  color: var(--warm);
}

/* 首屏声明 */
.notice-hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: clamp(32px, 6vw, 62px) 0 clamp(34px, 6vw, 62px);
  background:
    radial-gradient(120% 110% at 88% 0%, rgba(23, 229, 200, 0.20), transparent 56%),
    linear-gradient(115deg, var(--carbon) 0%, var(--ink) 46%, var(--pitch) 100%);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.notice-hero::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -64px;
  width: 64%;
  height: 150px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 43, 0.17), transparent);
  transform: skewX(-22deg) rotate(-4deg);
  pointer-events: none;
}

.notice-hero__inner {
  position: relative;
  z-index: 1;
}

.notice-hero__title {
  margin: 14px 0 0;
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 7.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--warm);
}

.notice-hero__lede {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--warm-dim);
}

.notice-hero__meta {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.notice-hero__meta span {
  color: var(--amber);
}

/* 首段说明图 */
.notice-figure {
  margin: clamp(28px, 5vw, 46px) 0 0;
}

.notice-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--pitch);
}

.notice-figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--mist);
}

/* 双栏对读 */
.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 5vw, 46px);
  padding-top: clamp(36px, 6vw, 64px);
}

.notice-toc__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.notice-toc__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.notice-toc__link:hover,
.notice-toc__link:focus-visible {
  color: var(--warm);
  background: var(--glass);
}

.notice-toc__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--edge);
}

/* 正文条款 */
.notice-body {
  display: grid;
  gap: 0;
  min-width: 0;
}

.notice-sec {
  scroll-margin-top: calc(var(--rail-h) + 26px);
}

.notice-sec + .notice-sec {
  position: relative;
  margin-top: clamp(34px, 5.5vw, 54px);
  padding-top: clamp(34px, 5.5vw, 54px);
}

.notice-sec + .notice-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--edge) 38%, transparent 100%);
  transform: skewX(-30deg);
  transform-origin: left center;
  opacity: 0.55;
}

.notice-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.notice-sec__no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.notice-sec__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--warm);
}

.notice-sec:target .notice-sec__title {
  color: var(--cyan);
}

.notice-sec__body {
  max-width: 68ch;
}

.notice-sec__body p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--warm-dim);
}

.notice-sec__body > p:last-child {
  margin-bottom: 0;
}

.notice-sec__body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 229, 200, 0.35);
}

.notice-sec__body a:hover {
  border-bottom-color: var(--cyan);
}

/* 数据条 */
.notice-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin: 18px 0 18px;
}

.notice-stat {
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  background: var(--pitch);
}

.notice-stat__v {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.notice-stat__l {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--mist);
}

/* 要点列表：橙色小方块 */
.notice-list {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  position: relative;
  padding-left: 21px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--warm-dim);
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--orange);
}

/* 收尾说明 */
.notice-end {
  margin-top: clamp(40px, 6vw, 62px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--pitch) 0%, var(--ink) 72%);
}

.notice-end p {
  margin: 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--warm-dim);
}

.notice-end a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 229, 200, 0.35);
}

.notice-end a:hover {
  border-bottom-color: var(--cyan);
}

/* 回到顶部 */
.notice-top {
  position: fixed;
  right: clamp(14px, 4vw, 32px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: rgba(10, 13, 12, 0.86);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.notice-top:hover,
.notice-top:focus-visible {
  border-color: var(--cyan);
  color: var(--warm);
}

/* 桌面：左侧目录轨道吸顶 */
@media (min-width: 980px) {
  .notice-layout {
    grid-template-columns: var(--toc-w) minmax(0, 1fr);
    gap: clamp(44px, 6vw, 84px);
    align-items: start;
  }

  .notice-toc__inner {
    position: sticky;
    top: calc(var(--rail-h) + 28px);
  }

  .notice-toc__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .notice-toc__link {
    font-size: 14px;
  }
}

/* 目录与章节高亮联动（支持 :has 的浏览器生效） */
.page-disclaimer:has(#s1:target) .notice-toc__link[href="#s1"],
.page-disclaimer:has(#s2:target) .notice-toc__link[href="#s2"],
.page-disclaimer:has(#s3:target) .notice-toc__link[href="#s3"],
.page-disclaimer:has(#s4:target) .notice-toc__link[href="#s4"],
.page-disclaimer:has(#s5:target) .notice-toc__link[href="#s5"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--glass);
  font-weight: 700;
}

@media (max-width: 560px) {
  .page-disclaimer .crumbs ol {
    padding-top: 18px;
    font-size: 11px;
  }

  .notice-sec__head {
    flex-direction: column;
    gap: 6px;
  }

  .notice-sec__body,
  .notice-end p {
    font-size: 15.5px;
  }

  .notice-top {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-disclaimer .notice-toc__link,
  .page-disclaimer .notice-top {
    transition: none;
  }
}
