/* ==============================================
   使用条款 · 使用条款与服务说明
   页面作用域：.page-disclaimer
   ============================================== */
.page-disclaimer {
  --terms-line: #cbd6e6;
  --terms-soft: #f4f7fc;
  background: #ffffff;
  color: var(--hh-near-black);
  font-family: var(--hh-font-body);
  line-height: 1.75;
}

/* ─────────────── 封面区 ─────────────── */
.terms-cover {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 2.25rem;
  border-bottom: 2px solid var(--hh-blue-dark);
  background:
    linear-gradient(125deg, rgba(10, 31, 68, 0.05) 0%, rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.terms-cover::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: 14rem;
  height: 14rem;
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.14) 0%, rgba(255, 107, 53, 0) 70%);
  transform: rotate(8deg);
  pointer-events: none;
}

.terms-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.terms-breadcrumb__sep {
  color: var(--hh-gray);
}

.terms-breadcrumb .breadcrumb__link {
  color: var(--hh-blue-dark);
  text-decoration: none;
  transition: color 0.25s var(--hh-ease);
}

.terms-breadcrumb .breadcrumb__link:hover,
.terms-breadcrumb .breadcrumb__link:focus {
  color: var(--hh-orange);
}

.terms-breadcrumb .breadcrumb__item {
  color: var(--hh-gray);
}

.terms-cover__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.terms-cover__content {
  position: relative;
  z-index: 1;
}

.terms-cover__kick {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-family: var(--hh-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-orange);
}

.terms-cover__kick::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--hh-orange);
  transform: skewX(-24deg);
}

.terms-cover h1 {
  margin: 0 0 1rem;
  font-family: var(--hh-font-display);
  font-size: clamp(1.85rem, 5.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--hh-blue-dark);
}

.terms-cover__lead {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--hh-gray-dark);
  max-width: 62ch;
}

.terms-cover__lead strong {
  color: var(--hh-blue-dark);
}

/* 目录 */
.terms-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--hh-blue-dark);
  max-width: 30rem;
}

.terms-toc li {
  border-bottom: 1px solid var(--terms-line);
}

.terms-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.72rem 0.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--hh-blue-dark);
  transition: padding-left 0.25s var(--hh-ease), color 0.25s var(--hh-ease);
}

.terms-toc a:hover,
.terms-toc a:focus {
  padding-left: 0.6rem;
  color: var(--hh-orange);
}

.terms-toc__idx {
  font-family: var(--hh-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hh-orange);
}

.terms-toc__name {
  flex: 1;
}

/* 封面图 */
.terms-cover__visual {
  max-width: 23rem;
}

.terms-cover__frame {
  position: relative;
  margin: 0;
  padding: 0.45rem;
  border: 2px solid var(--hh-blue-dark);
  background: #ffffff;
  box-shadow: 6px 6px 0 rgba(10, 31, 68, 0.12);
}

.terms-cover__frame::before,
.terms-cover__frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 1;
}

.terms-cover__frame::before {
  top: -6px;
  left: -6px;
  border-top: 3px solid var(--hh-orange);
  border-left: 3px solid var(--hh-orange);
}

.terms-cover__frame::after {
  bottom: -6px;
  right: -6px;
  border-right: 3px solid var(--hh-orange);
  border-bottom: 3px solid var(--hh-orange);
}

.terms-cover__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.terms-cover__caption {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--terms-line);
  font-size: 0.78rem;
  color: var(--hh-gray);
  letter-spacing: 0.04em;
}

/* ─────────────── 条款正文 ─────────────── */
.terms-body {
  padding: 2.25rem 0 2.5rem;
}

.terms-chapter {
  position: relative;
  padding: 1.25rem 0 1.85rem 1.25rem;
  border-left: 2px solid var(--hh-blue-dark);
}

.terms-chapter:not(:last-of-type) {
  border-bottom: 1px solid var(--terms-line);
}

.terms-chapter:last-of-type {
  margin-bottom: 1.5rem;
}

/* 章节头 */
.terms-chapter__head {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.terms-chapter__head::after {
  content: "";
  flex: 1 1 2rem;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--hh-blue-light) 0%, rgba(230, 237, 247, 0) 100%);
}

.terms-chapter__num {
  display: inline-flex;
  align-items: center;
  font-family: var(--hh-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--hh-orange);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.35);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.terms-chapter__head h2 {
  margin: 0;
  font-family: var(--hh-font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--hh-blue-dark);
}

/* 章节正文 */
.terms-chapter__content {
  max-width: 68ch;
  font-size: 0.95rem;
  color: var(--hh-gray-dark);
}

.terms-chapter__content p {
  margin: 0 0 1em;
}

.terms-chapter__content p:last-child {
  margin-bottom: 0;
}

.terms-chapter__content a,
.terms-endnote a {
  color: var(--hh-blue-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--hh-ease);
}

.terms-chapter__content a:hover,
.terms-chapter__content a:focus,
.terms-endnote a:hover,
.terms-endnote a:focus {
  color: var(--hh-orange);
}

.terms-em {
  color: var(--hh-orange);
  font-weight: 700;
}

/* 条款列表 */
.terms-list {
  list-style: none;
  margin: 0.25rem 0 1.1rem;
  padding: 0;
}

.terms-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--hh-orange);
  transform: rotate(45deg);
}

/* ─────────────── 条款生效状态 ─────────────── */
.terms-endnote {
  position: relative;
  margin-left: calc(1.25rem + 2px);
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--hh-blue-dark);
  color: #ffffff;
  border-top: 4px solid var(--hh-orange);
}

.terms-endnote__label {
  margin: 0 0 0.3rem;
  font-family: var(--hh-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.terms-endnote__status {
  margin: 0 0 0.6rem;
  font-family: var(--hh-font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--hh-orange);
}

.terms-endnote__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
}

/* ─────────────── 桌面端 ─────────────── */
@media (min-width: 768px) {
  .terms-cover {
    padding: 2rem 0 3rem;
  }

  .terms-cover__grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 3rem;
  }

  .terms-cover h1 {
    font-size: 2.6rem;
  }

  .terms-cover__visual {
    max-width: 100%;
    margin-right: 1rem;
  }

  .terms-body {
    padding: 3rem 0 3.5rem;
  }

  .terms-chapter {
    padding-left: 2rem;
  }

  .terms-chapter__head h2 {
    font-size: 1.5rem;
  }

  .terms-endnote {
    padding: 1.75rem 2rem;
  }
}
