/* ===== 页面：使用说明与免责条款（disclaimer） ===== */
.page-disclaimer {
  --paper-bg: #F4F1EA;
  --paper-text: #1F2937;
  --paper-secondary: #5B6572;
  --paper-line: rgba(15, 45, 80, 0.16);
  --paper-line-strong: rgba(15, 45, 80, 0.28);
  --brand-blue: #0066FF;
  --accent-gold-page: #D99A00;

  background-color: var(--paper-bg);
  color: var(--paper-text);
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.page-disclaimer__container {
  max-width: 1080px;
  padding-top: 56px;
  padding-bottom: 96px;
  position: relative;
}

/* 顶部：标题左 + 图右 */
.page-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.page-hero-split__content {
  min-width: 0;
}

.page-hero-split .yx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  font-family: 'SF Mono', 'Consolas', 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--paper-secondary);
}

.page-hero-split .yx-breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  color: rgba(15, 45, 80, 0.45);
}

.page-hero-split .yx-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-hero-split .yx-breadcrumb a:hover {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.page-hero-split h1 {
  font-family: 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 16px;
}

.page-hero-split h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0066FF 58%, var(--accent-gold-page) 120%);
}

.page-hero-split__lead {
  font-size: 15px;
  color: var(--paper-secondary);
  line-height: 1.8;
  margin: 0 0 20px;
}

.page-hero-split__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--paper-text);
  border-left: 3px solid var(--brand-blue);
  padding-left: 14px;
}

.page-hero-split__figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-hero-split__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.02);
}

.page-hero-split__figure figcaption {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-secondary);
}

/* 主体两栏：目录 + 正文 */
.page-disclaimer__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-disclaimer__toc {
  order: 2;
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--brand-blue);
  background: rgba(255, 255, 255, 0.35);
  padding: 20px 20px 24px;
  align-self: start;
}

.page-disclaimer__toc .yx-eyebrow {
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 12px;
  display: block;
}

.page-disclaimer__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-disclaimer__toc-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--paper-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 2px 0;
}

.page-disclaimer__toc-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  align-self: center;
}

.page-disclaimer__toc-list a:hover {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  transform: translateX(3px);
}

.page-disclaimer__body {
  order: 1;
  min-width: 0;
}

/* 章节卡片 */
.card-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--paper-line);
  scroll-margin-top: 80px;
}

.page-disclaimer__body > .card-section:first-of-type {
  padding-top: 0;
}

.card-section--quiet {
  background: rgba(217, 154, 0, 0.07);
  border: 1px dashed var(--paper-line-strong);
  border-left: 3px solid var(--accent-gold-page);
  padding: 24px 28px;
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}

.section-heading__num {
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
}

.section-heading h2 {
  font-family: 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
}

.section-heading__dash {
  height: 2px;
  width: 48px;
  background: var(--accent-gold-page);
  margin: 10px 0 18px;
  display: block;
}

.card-section p {
  font-size: 14px;
  color: var(--paper-secondary);
  margin: 0 0 14px;
  line-height: 1.85;
}

.card-section p:last-child {
  margin-bottom: 0;
}

.card-section strong {
  color: var(--paper-text);
  font-weight: 700;
}

/* 蓝色方块列表 */
.square-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.square-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--paper-secondary);
  line-height: 1.72;
}

.square-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--brand-blue);
}

.square-list li:last-child {
  margin-bottom: 0;
}

/* 版权标注 */
.copyright-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-line);
  font-size: 13px;
  color: var(--paper-text);
}

.copyright-note__mark {
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand-blue);
  border-radius: 1px;
  position: relative;
  display: inline-block;
}

.copyright-note__mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: var(--brand-blue);
}

/* 提示框 */
.notice-box {
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--accent-gold-page);
  background: rgba(217, 154, 0, 0.06);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-text);
  margin-top: 18px;
}

/* 联系方式虚线框 */
.contact-dashed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  border: 1.5px dashed var(--paper-line-strong);
  background: rgba(0, 102, 255, 0.03);
  padding: 18px 22px;
  margin: 18px 0 14px;
}

.contact-dashed__label {
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-dashed__label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  display: inline-block;
}

.contact-dashed__value {
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 15px;
}

.contact-dashed__value a {
  color: var(--paper-text);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-dashed__value a:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* 底部版本条 */
.page-disclaimer__footer-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 3px solid var(--paper-text);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12px;
  color: var(--paper-secondary);
  letter-spacing: 0.06em;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--paper-text);
  color: var(--paper-bg);
  font-size: 12px;
  font-family: 'Arial Narrow', 'PingFang SC', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--paper-text);
  border-radius: 2px;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
  z-index: 50;
}

.back-to-top span:first-child {
  font-size: 14px;
  line-height: 1;
}

.back-to-top:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* 按钮（非共享类局部调整） */
.page-disclaimer .yx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-disclaimer .yx-btn-outline {
  border: 1px solid var(--paper-text);
  color: var(--paper-text);
  background: transparent;
}

.page-disclaimer .yx-btn-outline:hover {
  background: var(--paper-text);
  color: var(--paper-bg);
  box-shadow: 3px 3px 0 rgba(15, 45, 80, 0.14);
  transform: translate(-1px, -1px);
}

/* 焦点可见态 */
.page-disclaimer a:focus-visible,
.page-disclaimer button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* 移动优先升级 */
@media (min-width: 720px) {
  .page-disclaimer__container {
    padding-top: 80px;
    padding-bottom: 110px;
  }

  .page-hero-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .page-disclaimer__layout {
    grid-template-columns: minmax(0, 235px) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }

  .page-disclaimer__toc {
    order: 1;
    position: sticky;
    top: 96px;
    padding: 24px 22px 30px;
  }

  .page-disclaimer__body {
    order: 2;
  }

  .card-section {
    padding: 44px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .page-hero-split__figure {
    margin-top: 34px;
    padding: 12px;
  }

  .back-to-top {
    right: 28px;
    bottom: 28px;
    padding: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-disclaimer *,
  .page-disclaimer *::before,
  .page-disclaimer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.page-disclaimer__body {
  scroll-behavior: smooth;
}
