.page-disclaimer {
  --terms-line: rgba(139, 148, 158, 0.18);
  --terms-grid: rgba(139, 148, 158, 0.03);
  --terms-panel-bg: rgba(16, 28, 46, 0.55);
  background-color: var(--bg);
  color: var(--text);
  background-image:
    linear-gradient(var(--terms-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--terms-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  overflow-x: hidden;
}

/* ---------- 条款首屏 ---------- */
.terms-hero {
  position: relative;
  padding: 4.5rem 1.25rem 2.5rem;
  border-bottom: 1px solid var(--terms-line);
  background-image: linear-gradient(180deg, rgba(0, 255, 204, 0.04) 0%, rgba(10, 14, 20, 0) 42%);
}

.terms-hero::after {
  content: "条款";
  position: absolute;
  right: 0.25rem;
  bottom: 0.125rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 204, 0.14);
  pointer-events: none;
}

.terms-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.terms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.terms-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.terms-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.terms-lead {
  max-width: 52rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.85;
}

.terms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 条款目录 ---------- */
.terms-toc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--terms-panel-bg);
  border-bottom: 1px solid var(--terms-line);
}

.terms-toc__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.terms-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.terms-toc__item a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--terms-line);
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.terms-toc__item a:hover,
.terms-toc__item a:focus {
  color: var(--text);
  border-color: var(--accent);
  background: var(--panel-2);
  transform: translateY(-1px);
}

/* ---------- 条款主体 ---------- */
.terms-body {
  max-width: calc(var(--max-w) + 8rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- 法典章节 ---------- */
.terms-section {
  position: relative;
  display: block;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--terms-line);
}

.terms-section__number {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10.5vw, 5.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--terms-section-color, var(--accent));
  opacity: 0.5;
}

.terms-section--service {
  --terms-section-color: var(--accent);
}

.terms-section--data {
  --terms-section-color: var(--violet);
}

.terms-section--ip {
  --terms-section-color: var(--green);
}

.terms-section--limitation {
  --terms-section-color: var(--orange);
}

.terms-section--changes {
  --terms-section-color: var(--yellow);
}

.terms-section__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.terms-section__intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.terms-section__content > p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: rgba(230, 237, 243, 0.9);
}

.terms-section__footnote {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 255, 204, 0.06);
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 条款列表 ---------- */
.terms-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.terms-list li {
  position: relative;
  padding-left: 1.375rem;
  line-height: 1.8;
  color: rgba(230, 237, 243, 0.88);
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.terms-section--ip .terms-list li::before {
  background: var(--green);
}

.terms-section--limitation .terms-list li::before {
  background: var(--orange);
}

.terms-list--plain li {
  padding-left: 1.375rem;
}

.terms-section__footnote strong {
  color: var(--text);
}

/* ---------- 数据事实行 ---------- */
.terms-data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.terms-data-cell {
  padding: 1rem 0.875rem;
  background: var(--terms-panel-bg);
  border-top: 3px solid var(--violet);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
}

.terms-data-cell__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.terms-data-cell:nth-child(2) .terms-data-cell__value { color: var(--violet); }
.terms-data-cell:nth-child(3) .terms-data-cell__value { color: var(--green); }
.terms-data-cell:nth-child(4) .terms-data-cell__value { color: var(--yellow); }

.terms-data-cell:nth-child(2) { border-top-color: var(--violet); }
.terms-data-cell:nth-child(3) { border-top-color: var(--green); }
.terms-data-cell:nth-child(4) { border-top-color: var(--yellow); }

.terms-data-cell__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- 图片版块 ---------- */
.terms-figure {
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.5rem;
}

.terms-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 204, 0.25);
  box-shadow: var(--shadow);
}

.terms-figure figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.terms-figure__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0, 255, 204, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
}

/* ---------- 免责警示框 ---------- */
.terms-notice {
  margin: 1.5rem 0 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 107, 53, 0.07);
}

.terms-notice__title {
  margin: 0 0 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
}

.terms-notice p:last-child {
  margin-bottom: 0;
  color: rgba(230, 237, 243, 0.9);
  line-height: 1.8;
}

/* ---------- 尾部收束 ---------- */
.terms-closing {
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(179, 136, 255, 0.1) 0%, rgba(10, 14, 20, 0) 62%);
}

.terms-closing__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.terms-closing .terms-eyebrow {
  justify-content: center;
}

.terms-closing__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.3;
}

.terms-closing p {
  color: var(--muted);
  line-height: 1.8;
}

.terms-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}

.terms-closing__note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 滚动显现增强 ---------- */
.page-disclaimer [data-reveal].is-visible {
  animation: terms-rise 0.6s ease-out both;
}

@keyframes terms-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 桌面端加强 ---------- */
@media (min-width: 768px) {
  .terms-hero {
    padding: 6.5rem 2rem 3.5rem;
  }

  .terms-toc {
    padding: 1.25rem 2rem;
    gap: 1.25rem 1.5rem;
  }

  .terms-toc__list {
    gap: 0.875rem;
  }

  .terms-body {
    padding: 0 2rem;
  }

  .terms-section {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    padding: 3.25rem 0 3.5rem;
  }

  .terms-section__number {
    margin-bottom: 0;
    font-size: clamp(4rem, 7vw, 6.5rem);
    opacity: 0.6;
  }

  .terms-section__content {
    min-width: 0;
    padding-right: 2.5rem;
  }

  .terms-data-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .terms-figure {
    margin: 3rem 0 3.25rem;
  }

  .terms-figure img {
    border-radius: calc(var(--radius) + 4px);
  }

  .terms-section--service .terms-section__content {
    border-left: 1px solid rgba(0, 255, 204, 0.16);
    padding-left: 2.5rem;
  }

  .terms-section--data .terms-section__content {
    border-left: 1px solid rgba(179, 136, 255, 0.16);
    padding-left: 2.5rem;
  }

  .terms-section--ip .terms-section__content {
    border-left: 1px solid rgba(0, 204, 136, 0.16);
    padding-left: 2.5rem;
  }

  .terms-section--limitation .terms-section__content {
    border-left: 1px solid rgba(255, 107, 53, 0.16);
    padding-left: 2.5rem;
  }

  .terms-section--changes .terms-section__content {
    border-left: 1px solid rgba(255, 204, 0, 0.16);
    padding-left: 2.5rem;
  }

  .terms-closing {
    padding: 4rem 2rem 5rem;
  }
}
