/* ===== 页面隐私政策专属样式 ===== */
.page-privacy {
  --privacy-content-max: 760px;
  --privacy-chapter-gap: 3rem;
  --privacy-icon-size: 60px;
  --privacy-shield-size: 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--privacy-content-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--color-text, #E0E0E0);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  background: var(--color-bg, #1A1A2E);
  /* 细微纹理 */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(192,192,192,0.012) 2px,
      rgba(192,192,192,0.012) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(192,192,192,0.012) 2px,
      rgba(192,192,192,0.012) 4px
    );
}

/* ---- 页面标题区 ---- */
.privacy-header {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
}

.privacy-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Inter', 'Poppins', system-ui, sans-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-brand, #E63946);
  line-height: 1;
  margin-bottom: 0.25rem;
  transform: skewX(-2deg);
}

.privacy-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.privacy-icon.lock-icon {
  width: var(--privacy-icon-size);
  height: auto;
  margin-bottom: 0.25rem;
  opacity: 0.85;
  object-fit: contain;
}

.privacy-heading {
  font-family: var(--font-heading, 'Inter', 'Poppins', system-ui, sans-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white, #FFFFFF);
  margin: 0;
  line-height: 1.15;
  transform: skewX(-2deg);
}

.privacy-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted, #9CA3AF);
  max-width: 560px;
  margin: 0.4rem 0 0;
}

.privacy-stripe {
  width: 80%;
  max-width: 320px;
  height: 2px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, transparent, var(--color-blue, #00B4D8), transparent);
  border-radius: 1px;
}

/* ---- 正文区 ---- */
.privacy-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--privacy-chapter-gap);
  padding: 0.5rem 0;
}

/* ---- 章节块 ---- */
.privacy-chapter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chapter-num {
  font-family: var(--font-heading, 'Inter', 'Poppins', system-ui, sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-blue, #00B4D8);
  line-height: 1;
  transform: skewX(-2deg);
  flex-shrink: 0;
}

.chapter-line {
  flex: 1;
  height: 1px;
  background: var(--color-border, #2E2E4A);
}

.chapter-content {
  padding-left: 0;
}

.chapter-heading {
  font-family: var(--font-heading, 'Inter', 'Poppins', system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-white, #FFFFFF);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.chapter-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text, #E0E0E0);
  margin: 0;
}

.chapter-link {
  color: var(--color-blue, #00B4D8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-out;
}

.chapter-link:hover,
.chapter-link:focus-visible {
  border-bottom-color: var(--color-blue, #00B4D8);
  outline: none;
}

/* ---- 底部区域 ---- */
.privacy-footer {
  width: 100%;
  margin-top: 3rem;
}

.privacy-footer-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border, #2E2E4A);
  margin-bottom: 2rem;
}

.privacy-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.privacy-icon.shield-icon {
  width: var(--privacy-shield-size);
  height: auto;
  opacity: 0.7;
  object-fit: contain;
}

.privacy-footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.privacy-footer-link {
  font-size: 0.9rem;
  color: var(--color-muted, #9CA3AF);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.privacy-footer-link:hover,
.privacy-footer-link:focus-visible {
  color: var(--color-blue, #00B4D8);
  border-bottom-color: var(--color-blue, #00B4D8);
  outline: none;
}

.privacy-link-sep {
  color: var(--color-border, #2E2E4A);
  font-size: 0.85rem;
}

.privacy-footer-note {
  font-size: 0.8rem;
  color: var(--color-muted, #9CA3AF);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

/* ---- 返回顶部按钮（渐进增强） ---- */
.privacy-backtotop {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border, #2E2E4A);
  border-radius: 0;
  background: rgba(26,26,46,0.85);
  color: var(--color-silver, #C0C0C0);
  cursor: pointer;
  transition: background 0.25s ease-out, color 0.25s ease-out, border-color 0.25s ease-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
  line-height: 0;
}

.privacy-backtotop:hover,
.privacy-backtotop:focus-visible {
  background: var(--color-brand, #E63946);
  color: var(--color-white, #FFFFFF);
  border-color: var(--color-brand, #E63946);
  outline: none;
}

.privacy-backtotop:focus-visible {
  box-shadow: 0 0 0 3px rgba(0,180,216,0.4);
}

/* ===== 窄屏适配（移动端优先） ===== */
@media (max-width: 599px) {
  .page-privacy {
    padding: 1.25rem 1rem 3rem;
  }

  .privacy-label {
    font-size: 2.2rem;
  }

  .privacy-heading {
    font-size: 1.6rem;
  }

  .privacy-subtitle {
    font-size: 0.9rem;
  }

  .privacy-icon.lock-icon {
    width: 48px;
    height: 48px;
  }

  .privacy-icon.shield-icon {
    width: 80px;
    height: 80px;
  }

  .chapter-num {
    font-size: 1.1rem;
  }

  .chapter-heading {
    font-size: 1.15rem;
  }

  .chapter-text {
    font-size: 0.88rem;
  }

  .privacy-backtotop {
    bottom: 1.25rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .privacy-footer-inner {
    gap: 0.75rem;
  }
}

/* ===== 桌面宽屏 ===== */
@media (min-width: 600px) {
  .page-privacy {
    padding: 2.5rem 2rem 5rem;
  }

  .privacy-header {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .privacy-label {
    font-size: 3.6rem;
  }

  .privacy-heading {
    font-size: 2.6rem;
  }

  .privacy-subtitle {
    font-size: 1.05rem;
  }

  .privacy-body {
    gap: 3.5rem;
    padding: 0.5rem 0.5rem;
  }

  .privacy-chapter {
    flex-direction: row;
    gap: 1.5rem;
  }

  .chapter-marker {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    min-width: 3.2rem;
    padding-top: 0.15rem;
  }

  .chapter-num {
    font-size: 1.5rem;
  }

  .chapter-line {
    width: 2px;
    height: 2.4rem;
    flex: 0 0 auto;
  }

  .chapter-content {
    flex: 1;
    padding-left: 0.5rem;
  }

  .chapter-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .chapter-text {
    font-size: 0.95rem;
  }

  .privacy-footer {
    margin-top: 4rem;
  }

  .privacy-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }

  .privacy-icon.shield-icon {
    width: 90px;
    height: 90px;
  }

  .privacy-footer-note {
    flex-basis: 100%;
    text-align: center;
  }

  .privacy-backtotop {
    bottom: 2.5rem;
    right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .page-privacy {
    padding: 3rem 2.5rem 6rem;
  }

  .privacy-label {
    font-size: 4rem;
  }

  .privacy-heading {
    font-size: 3rem;
  }

  .privacy-body {
    gap: 4rem;
  }

  .chapter-num {
    font-size: 1.7rem;
  }

  .chapter-heading {
    font-size: 1.6rem;
  }

  .chapter-text {
    font-size: 1rem;
  }
}

/* ===== 高分辨率大屏 ===== */
@media (min-width: 1400px) {
  .page-privacy {
    padding: 4rem 3rem 7rem;
  }

  .privacy-header {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .privacy-label {
    font-size: 4.4rem;
  }

  .privacy-heading {
    font-size: 3.2rem;
  }
}
