@charset 'UTF-8';

/*
 ============================================================
  项目名称 : TPS 文档系统 (TPS Files System / TPS-Dateisystem)
  版 本 号 : v1.00.005
  文 件 名 : cookies-page.css
  描 述     : Cookie 政策页专用样式（顶部条 / Hero / 侧边目录 / 正文卡片 / 表格 / 响应式 / 打印）
             配色对齐 TPS 前台（file 站首页 / video.tps-electronic.cn）：主色 #083e7f，辅色 #1e5cb5，底色 #f4f7ff
  更 新     : 2026-11-03
 ============================================================
*/

/* ---------- 主色变量 ---------- */
body.ck-page {
  --ck-primary: #083e7f;
  --ck-primary-2: #1e5cb5;
  --ck-accent: #1e5cb5;
  --ck-bg: #f4f7ff;
  --ck-text: #1e293b;
  --ck-muted: #5a6b7b;
  --ck-line: #dbe3f0;
  --ck-soft: #eef4ff;
}

/* ---------- 三语切换：只显示与 <html lang> 一致的一段 ---------- */
.cookie-policy-lang { display: none; }
html[lang^="zh"] .cookie-policy-lang[data-lang="zh"],
html[lang="en"] .cookie-policy-lang[data-lang="en"],
html[lang="de"] .cookie-policy-lang[data-lang="de"] { display: block; }

/* ---------- 页面底色与容器 ---------- */
body.ck-page {
  background: var(--ck-bg);
  color: var(--ck-text);
  font: 15px/1.7 "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ck-page .w { width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.ck-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ck-line);
}
.ck-topbar .w {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ck-topbar img { max-height: 40px; width: auto; display: block; }
.ck-topbar a.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ck-line);
  border-radius: 999px;
  color: var(--ck-primary);
  font-size: 13px;
  background: #fff;
  transition: all .18s ease;
}
.ck-topbar a.ck-back:hover { border-color: var(--ck-primary); background: var(--ck-soft); }

/* ---------- Hero ---------- */
.ck-hero {
  background: linear-gradient(135deg, #083e7f 0%, #1e5cb5 100%);
  color: #fff;
  padding: 44px 0 38px;
  position: relative;
  overflow: hidden;
}
.ck-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.ck-hero::before {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.ck-hero h1 {
  font-size: 29px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .3px;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}
.ck-hero .ck-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .86);
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.ck-hero .ck-meta-line {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  position: relative;
  z-index: 1;
}
.ck-hero .ck-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.ck-hero .ck-meta-line svg { opacity: .85; }

/* ---------- 主体两栏 ---------- */
.ck-main { padding: 32px 0 52px; }
.ck-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* ---------- 侧边目录 ---------- */
.ck-toc {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--ck-line);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(8, 62, 127, .05);
}
.ck-toc-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 12px;
  padding-left: 2px;
}
.ck-toc ol { list-style: none; margin: 0; padding: 0; }
.ck-toc li { margin: 2px 0; }
.ck-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: var(--ck-muted);
  font-size: 13.5px;
  line-height: 1.45;
  transition: all .16s ease;
}
.ck-toc a:hover { background: var(--ck-soft); color: var(--ck-primary); }
.ck-toc a.is-active {
  background: var(--ck-soft);
  border-left-color: var(--ck-primary);
  color: var(--ck-primary);
  font-weight: 600;
}
.ck-toc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ck-line);
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.7;
}
.ck-toc-foot a { color: var(--ck-primary-2); }

/* ---------- 正文卡片 ---------- */
.ck-content {
  background: #fff;
  border: 1px solid var(--ck-line);
  border-radius: 14px;
  padding: 34px 40px 40px;
  box-shadow: 0 6px 22px rgba(8, 62, 127, .06);
  -webkit-user-select: text;
  user-select: text;
}
.ck-content > section > h5:first-child { margin-top: 0; }
.ck-content h5 {
  position: relative;
  margin: 34px 0 12px;
  padding-left: 14px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ck-primary);
  scroll-margin-top: 88px;
}
.ck-content h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--ck-accent);
}
.ck-content h4 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ck-primary);
}
.ck-content p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  word-break: break-word;
}
.ck-content ul, .ck-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.ck-content ol { list-style: decimal; }
.ck-content li {
  position: relative;
  margin: 0 0 8px;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}
.ck-content b, .ck-content strong { color: var(--ck-text); }
.ck-content a { color: var(--ck-primary-2); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.ck-content a:hover { color: var(--ck-primary); }
.ck-content code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: #eef4ff;
  border: 1px solid var(--ck-line);
  color: var(--ck-primary);
  font: 12.5px/1.6 Consolas, Menlo, Monaco, "Courier New", monospace;
  word-break: break-all;
}

/* 表格 */
.ck-content table {
  width: 100%;
  margin: 6px 0 20px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ck-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.ck-content thead th {
  background: #eef4ff;
  color: var(--ck-primary);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ck-line);
  white-space: nowrap;
}
.ck-content tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  line-height: 1.75;
  vertical-align: top;
}
.ck-content tbody tr:nth-child(even) td { background: #fbfcfe; }
.ck-content tbody tr:last-child td { border-bottom: none; }
.ck-content tbody tr:hover td { background: var(--ck-soft); }

/* 提示条 */
.ck-content .ck-note {
  margin: 4px 0 8px;
  padding: 12px 16px;
  border-left: 4px solid var(--ck-accent);
  border-radius: 0 8px 8px 0;
  background: #f4f7ff;
  color: #334155;
  font-size: 13.5px;
}
.ck-content .ck-meta { color: #94a3b8; font-size: 13px; }

/* 正文首部若仍带 h4 标题与日期行（与 Hero 重复），前台隐藏；后台预览同样生效 */
.ck-content .cookie-policy-lang > h4:first-child,
.ck-content .cookie-policy-lang > .ck-meta { display: none; }

/* ---------- 页脚：主色底、单行不折行 ---------- */
.ck-page .HomePage-Footer_Buttom {
  background: var(--ck-primary);
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  padding: 15px 0;
}
.ck-page .HomePage-Footer_Buttom .w.ck-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  line-height: 1.6;
}
.ck-page .HomePage-Footer_Buttom .w.ck-foot::-webkit-scrollbar { display: none; }
.ck-page .HomePage-Footer_Buttom a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  flex: 0 0 auto;
}
.ck-page .HomePage-Footer_Buttom a:hover { color: #fff; }
.ck-page .HomePage-Footer_Buttom .ck-sep { color: rgba(255, 255, 255, .35); flex: 0 0 auto; }
.ck-page .HomePage-Footer_Buttom .ck-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.ck-page .HomePage-Footer_Buttom img { vertical-align: -2px; }

/* ---------- 返回顶部 ---------- */
#TPS_top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ck-line);
  box-shadow: 0 6px 18px rgba(8, 62, 127, .16);
  color: var(--ck-primary);
  z-index: 20;
}
#TPS_top.is-show { display: inline-flex; }
#TPS_top:hover { background: var(--ck-primary); color: #fff; border-color: var(--ck-primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ck-layout { grid-template-columns: 1fr; gap: 18px; }
  .ck-toc { position: static; }
  .ck-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .ck-toc li { margin: 0; }
  .ck-toc a { border-left: 0; border: 1px solid var(--ck-line); padding: 6px 12px; font-size: 13px; }
  .ck-toc a.is-active { border-color: var(--ck-primary); }
  .ck-hero { padding: 32px 0 28px; }
  .ck-hero h1 { font-size: 23px; }
  .ck-content { padding: 24px 20px 28px; border-radius: 12px; }
  .ck-content table { display: block; overflow-x: auto; }
  .ck-page .HomePage-Footer_Buttom .w.ck-foot { justify-content: flex-start; padding: 0 14px; }
}
@media (max-width: 640px) {
  .ck-page .w { max-width: calc(100% - 28px); }
  .ck-hero h1 { font-size: 20px; }
  .ck-content h5 { font-size: 16.5px; }
  .ck-content p, .ck-content li { font-size: 14.5px; }
  .ck-page .HomePage-Footer_Buttom { font-size: 12px; }
  #TPS_top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

/* ---------- 打印 ---------- */
@media print {
  body.ck-page { background: #fff; }
  .ck-topbar, .ck-toc, #TPS_top, .HomePage-Footer_Buttom { display: none !important; }
  .ck-hero { background: none; color: #000; padding: 0 0 16px; }
  .ck-hero h1, .ck-hero .ck-sub, .ck-hero .ck-meta-line { color: #000; }
  .ck-content { border: none; box-shadow: none; padding: 0; }
  .ck-content table { page-break-inside: auto; }
  .ck-content tr { page-break-inside: avoid; }
}
