.page-disclaimer {
  background: var(--cream);
  color: var(--ink);
}

/* ===== 首屏框景区 ===== */
.terms-hero {
  position: relative;
  padding: 56px 0 96px;
  background: var(--space-blue);
  color: var(--cream);
  overflow: hidden;
}

.terms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 232, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 120, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.terms-hero::after {
  content: "TERMS";
  position: absolute;
  right: -14px;
  top: -26px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: rgba(245, 239, 224, 0.06);
  pointer-events: none;
  white-space: nowrap;
}

.terms-hero .breadcrumbs {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  color: rgba(245, 239, 224, 0.6);
  font-size: 13px;
  font-family: var(--font-mono);
}

.terms-hero .breadcrumbs a {
  color: var(--cream);
  text-decoration: none;
}

.terms-hero .breadcrumbs a:hover {
  color: var(--green);
}

.terms-hero .breadcrumbs [aria-current="page"] {
  color: var(--green);
}

.terms-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

.terms-hero__content {
  order: 1;
}

.terms-hero .section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.terms-hero__title {
  position: relative;
  margin: 0 0 20px;
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  transform: skewX(-4deg);
  color: var(--cream);
}

.terms-hero__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 6px;
  background: var(--orange);
  transform: skewX(-4deg);
}

.terms-hero__lead {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 239, 224, 0.82);
}

.terms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-hero__meta-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 14px;
  background: rgba(245, 239, 224, 0.08);
  border: 1px solid rgba(245, 239, 224, 0.16);
  border-radius: 8px;
}

.terms-hero__meta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}

.terms-hero__meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
}

.terms-hero__figure {
  order: 2;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  padding: 10px;
  background: var(--mid-blue);
  border: 2px solid rgba(0, 232, 120, 0.5);
  border-radius: 14px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
}

.terms-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(1.05);
}

.terms-hero__caption {
  padding: 10px 4px 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(245, 239, 224, 0.6);
}

/* ===== 终端窗口区 ===== */
.terms-console {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 96px 0 64px;
  background: var(--cream);
}

.terms-console__window {
  border: 1px solid var(--space-blue);
  border-radius: 14px;
  overflow: hidden;
  background: var(--space-blue);
  color: var(--cream);
  box-shadow: var(--shadow-hard), 0 24px 48px rgba(10, 25, 49, 0.16);
}

.terms-console__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(245, 239, 224, 0.14);
  background: var(--space-blue);
}

.terms-console__traffic {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.terms-console__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terms-console__dot--red {
  background: var(--orange);
}

.terms-console__dot--yellow {
  background: #f2c94c;
}

.terms-console__dot--green {
  background: var(--green);
}

.terms-console__path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 239, 224, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terms-console__bar .tag {
  margin-left: auto;
}

.terms-console__body {
  display: block;
}

.terms-console__sidebar {
  padding: 20px;
  background: var(--mid-blue);
  border-bottom: 1px solid rgba(10, 25, 49, 0.3);
}

.terms-console__section-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.terms-quicknav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.terms-quicknav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(245, 239, 224, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.terms-quicknav__link:hover {
  background: rgba(245, 239, 224, 0.14);
  border-color: rgba(0, 232, 120, 0.5);
}

.terms-quicknav__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.terms-quicknav__label {
  font-size: 14px;
  font-weight: 500;
}

.terms-console__hint {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed rgba(245, 239, 224, 0.34);
  border-radius: 8px;
  background: rgba(10, 25, 49, 0.35);
}

.terms-console__hint-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}

.terms-console__hint p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 239, 224, 0.78);
}

.terms-console__hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terms-console__hint .btn--ghost {
  color: var(--cream);
  border-color: rgba(245, 239, 224, 0.5);
  background: transparent;
}

.terms-console__hint .btn--ghost:hover {
  background: rgba(245, 239, 224, 0.12);
}

.terms-console__content {
  padding: 4px 20px 28px;
}

.terms-console__intro {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.7);
  border-bottom: 1px solid rgba(245, 239, 224, 0.12);
  padding: 16px 0 12px;
}

/* ===== 条款条目 ===== */
.terms-item {
  border-bottom: 1px solid rgba(245, 239, 224, 0.16);
  scroll-margin-top: 96px;
}

.terms-item__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.terms-item__head::-webkit-details-marker {
  display: none;
}

.terms-item__head::-moz-list-bullet {
  font-size: 0;
}

.terms-item__num {
  min-width: 44px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.terms-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.terms-item__status {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  padding: 4px 10px;
  border: 1px solid rgba(0, 232, 120, 0.4);
  border-radius: 999px;
  background: rgba(0, 232, 120, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
}

.terms-item--warning .terms-item__status {
  border-color: rgba(255, 94, 58, 0.45);
  background: rgba(255, 94, 58, 0.14);
  color: var(--orange);
}

.terms-item__body {
  padding: 0 0 26px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 239, 224, 0.86);
}

.terms-item__body p {
  margin: 0 0 12px;
}

.terms-item__body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-item__body a:hover {
  color: var(--orange);
}

.terms-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.terms-list li {
  margin-bottom: 8px;
}

.terms-alert {
  position: relative;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 94, 58, 0.12);
}

.terms-alert__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.terms-alert p {
  margin: 0;
}

/* ===== 联系与收尾 ===== */
.terms-contact {
  margin-top: 34px;
  padding: 22px 20px;
  border: 1px solid rgba(0, 232, 120, 0.28);
  border-radius: 12px;
  background: rgba(0, 232, 120, 0.06);
}

.terms-contact__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  color: var(--cream);
}

.terms-contact p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 239, 224, 0.82);
}

.terms-contact a {
  color: var(--green);
}

.terms-contact a:hover {
  color: var(--orange);
}

.terms-contact__list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 2;
  color: rgba(245, 239, 224, 0.86);
}

.terms-contact__list li {
  padding-left: 18px;
  position: relative;
}

.terms-contact__list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
}

.terms-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.terms-contact__actions .btn--ghost {
  color: var(--cream);
  border-color: rgba(245, 239, 224, 0.5);
  background: transparent;
}

.terms-contact__actions .btn--ghost:hover {
  background: rgba(245, 239, 224, 0.12);
}

.terms-contact__actions .btn--primary {
  color: var(--ink);
}

.terms-end {
  padding: 0 0 60px;
  background: var(--cream);
}

.terms-end__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.terms-end__mark {
  letter-spacing: 0.12em;
  color: var(--orange);
}

/* ===== 桌面端布局 ===== */
@media (min-width: 920px) {
  .terms-hero {
    padding: 72px 0 116px;
  }

  .terms-hero::after {
    font-size: 180px;
  }

  .terms-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }

  .terms-hero__figure {
    order: 2;
    max-width: 400px;
  }

  .terms-hero__lead {
    font-size: 16px;
  }

  .terms-console {
    padding-bottom: 80px;
  }

  .terms-console__body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .terms-console__sidebar {
    position: sticky;
    top: 96px;
    border-bottom: 0;
    border-right: 1px solid rgba(245, 239, 224, 0.12);
    min-height: 100%;
  }

  .terms-quicknav {
    grid-template-columns: 1fr;
  }

  .terms-console__content {
    padding: 4px 40px 48px;
  }

  .terms-item__head {
    padding: 30px 0;
  }

  .terms-item__body {
    padding-left: 58px;
  }

  .terms-item__title {
    font-size: 28px;
  }

  .terms-contact {
    padding: 28px 30px;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .page-disclaimer {
    background: #ffffff;
    color: #000000;
  }

  .terms-hero {
    background: #ffffff;
    color: #000000;
    padding: 32px 0;
  }

  .terms-hero::before,
  .terms-hero::after {
    display: none;
  }

  .terms-hero .breadcrumbs a,
  .terms-hero__title,
  .terms-hero__meta-value {
    color: #000000;
  }

  .terms-hero .breadcrumbs [aria-current="page"],
  .terms-hero .section-kicker,
  .terms-hero__meta-label,
  .terms-console__section-label,
  .terms-console__hint-title {
    color: #1e3a6d;
  }

  .terms-hero__figure {
    display: none;
  }

  .terms-console {
    margin-top: 0;
    padding: 32px 0;
    background: #ffffff;
  }

  .terms-console__window {
    background: #ffffff;
    color: #000000;
    box-shadow: none;
    border-color: #aaaaaa;
  }

  .terms-console__bar,
  .terms-console__sidebar {
    background: #f5f5f5;
  }

  .terms-console__path,
  .terms-item__num,
  .terms-item__title,
  .terms-item__body,
  .terms-item__status,
  .terms-contact__title,
  .terms-contact p,
  .terms-contact__list {
    color: #000000;
  }

  .terms-item {
    border-bottom-color: #dddddd;
  }

  .terms-item__status {
    border-color: #999999;
    background: transparent;
  }

  .terms-console__sidebar,
  .terms-console__intro,
  .terms-contact,
  .terms-end {
    display: none;
  }

  .terms-console__content {
    padding: 16px;
  }
}
