/* 隐私政策页（page-id-19）。结构由 Modules/Common/PrivacyPage/PrivacyPage.php 输出；颜色用额外CSS里的变量，黑夜模式自动适配 */

/* 主题给 body 设了 overflow: hidden auto，body 成了不会滚动的滚动容器，目录的 position: sticky 会失效；
   clip 同样裁掉横向溢出，但不产生滚动容器 */
body.page-id-19 { overflow-x: clip !important; overflow-y: visible !important; }

body.page-id-19 #post-19.single-article {
  margin-top: 16px;
  padding: 0 !important;
  overflow: visible;
  border-radius: 18px !important;
  border: 1px solid var(--line, #dce7f2);
  box-shadow: none !important;
}

/* ---------- 顶部横幅 ---------- */
body.page-id-19 #post-19 .entry-header {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 40px 40px 76px !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .16) 0 90px, transparent 91px),
    radial-gradient(circle at 98% 95%, rgba(255, 255, 255, .1) 0 130px, transparent 131px),
    linear-gradient(135deg, #143a68 0%, #1d4e89 55%, #5fa8dc 100%);
}
body.page-id-19 #post-19 .entry-header::before {
  content: "PRIVACY POLICY";
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .7);
}
body.page-id-19 #post-19 .entry-header::after {
  content: "";
  position: absolute;
  right: 48px;
  top: 34px;
  width: 64px;
  height: 64px;
  opacity: .9;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.9' d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E");
}
body.page-id-19 #post-19 .entry-title {
  margin: 0 !important;
  font-size: 30px;
  letter-spacing: 2px;
  color: #fff !important;
}

/* 信息条：叠在横幅底部 */
body.page-id-19 .ytea-pol-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -64px 0 0;
}
body.page-id-19 .ytea-pol-meta span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}

/* ---------- 正文容器 ---------- */
body.page-id-19 #post-19 .entry-content {
  margin: 0 !important;
  padding: 0 40px 40px !important;
  font-size: 15px;
  color: var(--ink, #1c2b3a);
}

/* 摘要卡片 */
body.page-id-19 .ytea-pol-summary {
  margin: 52px 0 8px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line, #dce7f2);
  border-left: 4px solid var(--deep, #1d4e89);
  background: var(--sky-soft, #e4effa);
}
body.page-id-19 .ytea-pol-summary-t {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--deep, #1d4e89);
}
body.page-id-19 .ytea-pol-summary p { margin: 0 !important; line-height: 1.85; }

/* ---------- 目录 + 正文两栏 ---------- */
body.page-id-19 .ytea-pol {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 36px;
  margin-top: 20px;
}

body.page-id-19 .ytea-pol-toc { position: relative; }
body.page-id-19 .ytea-pol-toc details { position: sticky; top: 90px; padding-top: 18px; }
body.page-id-19 .ytea-pol-toc summary {
  margin-bottom: 8px;
  padding-left: 10px;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-muted, #6b7c8f);
  pointer-events: none; /* 电脑上目录常开，不让点收起 */
}
body.page-id-19 .ytea-pol-toc summary::-webkit-details-marker { display: none; }
body.page-id-19 .ytea-pol-toc ol { margin: 0 !important; padding: 0 !important; list-style: none; }
body.page-id-19 .ytea-pol-toc li { margin: 0 !important; padding: 0 !important; }
body.page-id-19 .ytea-pol-toc li::before { content: none !important; }
body.page-id-19 .ytea-pol-toc a {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted, #6b7c8f) !important;
  text-decoration: none !important;
  transition: color .2s, background .2s, border-color .2s;
}
body.page-id-19 .ytea-pol-toc a span { font-variant-numeric: tabular-nums; opacity: .6; }
body.page-id-19 .ytea-pol-toc a:hover { color: var(--deep, #1d4e89) !important; background: var(--paper, #f2f7fc); }
body.page-id-19 .ytea-pol-toc a.is-active {
  color: var(--deep, #1d4e89) !important;
  font-weight: 700;
  border-left-color: var(--deep, #1d4e89);
  background: var(--sky-soft, #e4effa);
}

/* ---------- 小节 ---------- */
body.page-id-19 .ytea-pol-sec { padding: 26px 0; border-top: 1px solid var(--line, #dce7f2); scroll-margin-top: 90px; }
body.page-id-19 .ytea-pol-sec:first-child { border-top: 0; }

body.page-id-19 .entry-content .ytea-pol-sec h2.ytea-pol-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 20px !important;
  line-height: 1.4;
  color: var(--ink, #1c2b3a) !important;
}
body.page-id-19 .entry-content .ytea-pol-sec h2.ytea-pol-h::before,
body.page-id-19 .entry-content .ytea-pol-sec h2.ytea-pol-h::after { content: none !important; display: none !important; }
body.page-id-19 .ytea-pol-num {
  flex: none;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--deep, #1d4e89);
}

body.page-id-19 .ytea-pol-sec p,
body.page-id-19 .ytea-pol-sec li,
body.page-id-19 .ytea-pol-summary p {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--ink, #1c2b3a);
}
body.page-id-19 .ytea-pol-sec p { margin: 0 0 10px !important; }
body.page-id-19 .ytea-pol-sec p:last-child { margin-bottom: 0 !important; }
body.page-id-19 .ytea-pol-sec p.has-small-font-size { font-size: 13px !important; color: var(--ink-muted, #6b7c8f); }

body.page-id-19 .ytea-pol-sec ul { margin: 0 !important; padding: 0 !important; list-style: none; }
body.page-id-19 .ytea-pol-sec ul li {
  position: relative;
  margin: 0 0 10px !important;
  padding: 0 0 0 18px !important;
  list-style: none;
}
body.page-id-19 .ytea-pol-sec ul li:last-child { margin-bottom: 0 !important; }
body.page-id-19 .ytea-pol-sec ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky, #5fa8dc);
}
body.page-id-19 .ytea-pol-sec strong { color: var(--deep, #1d4e89); }

body.page-id-19 #post-19 .entry-content a[href^="mailto:"] {
  color: var(--deep, #1d4e89) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

/* 表格 */
body.page-id-19 .ytea-pol-sec figure.wp-block-table {
  margin: 16px 0 0 !important;
  overflow-x: auto;
  border: 1px solid var(--line, #dce7f2);
  border-radius: 12px;
}
body.page-id-19 .ytea-pol-sec table { width: 100% !important; table-layout: auto !important; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: 13.5px; }
body.page-id-19 .ytea-pol-sec th,
body.page-id-19 .ytea-pol-sec td {
  padding: 10px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line, #dce7f2) !important;
  text-align: left;
  white-space: normal !important;
  word-break: break-word;
  color: var(--ink, #1c2b3a);
  background: transparent !important;
}
body.page-id-19 .ytea-pol-sec thead th,
body.page-id-19 .ytea-pol-sec thead td { font-weight: 700; color: var(--deep, #1d4e89); background: var(--sky-soft, #e4effa) !important; }
/* WordPress 条纹表格把 #f0f0f0 底色加在 tr 上，黑夜模式下是白条；统一改到 td 上用变量 */
body.page-id-19 .ytea-pol-sec .wp-block-table tr { background: transparent !important; }
body.page-id-19 .ytea-pol-sec tbody tr:nth-child(even) td { background: var(--paper, #f2f7fc) !important; }
body.page-id-19 .ytea-pol-sec tbody tr:last-child td { border-bottom: 0 !important; }
body.page-id-19 .ytea-pol-sec td code { font-size: 12.5px; }

/* ---------- 手机 / 窄屏：目录放顶部，可折叠 ---------- */
@media (max-width: 900px) {
  body.page-id-19 #post-19 .entry-header { padding: 28px 20px 70px !important; }
  body.page-id-19 #post-19 .entry-header::after { right: 20px; top: 26px; width: 44px; height: 44px; }
  body.page-id-19 #post-19 .entry-title { font-size: 24px; }
  body.page-id-19 #post-19 .entry-content { padding: 0 18px 24px !important; }
  body.page-id-19 .ytea-pol-meta { margin-top: -58px; gap: 6px; }
  body.page-id-19 .ytea-pol-meta span { padding: 3px 10px; font-size: 11px; }
  body.page-id-19 .ytea-pol-summary { margin-top: 44px; padding: 14px 16px; }

  body.page-id-19 .ytea-pol { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
  body.page-id-19 .ytea-pol-meta span:nth-child(4) { display: none; }
  body.page-id-19 .ytea-pol-sec table { min-width: 480px; }
  body.page-id-19 .ytea-pol-toc details {
    position: static;
    padding: 0;
    border: 1px solid var(--line, #dce7f2);
    border-radius: 12px;
    background: var(--paper, #f2f7fc);
  }
  body.page-id-19 .ytea-pol-toc summary {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--ink, #1c2b3a);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }
  body.page-id-19 .ytea-pol-toc summary::after { content: "展开 ▾"; font-weight: 400; font-size: 12px; color: var(--ink-muted, #6b7c8f); }
  body.page-id-19 .ytea-pol-toc details[open] summary::after { content: "收起 ▴"; }
  body.page-id-19 .ytea-pol-toc ol { padding: 0 8px 10px !important; }
  body.page-id-19 .ytea-pol-sec { padding: 22px 0; scroll-margin-top: 70px; }
  body.page-id-19 .entry-content .ytea-pol-sec h2.ytea-pol-h { font-size: 18px !important; }
  body.page-id-19 .ytea-pol-sec p,
  body.page-id-19 .ytea-pol-sec li,
  body.page-id-19 .ytea-pol-summary p { font-size: 14.5px !important; line-height: 1.85 !important; }
}
