/* build 2026-09-10 cl5-v2
   templateicl5 — A 骨架（单栏长文式）
   视觉基因：深藏蓝 H2 块 + 顶部青粗边 + 下两角圆角 / H3 红青渐变下划线
   霓虹青 3D 硬底边下载按钮 / 白容器浮于浅灰画布（无阴影无圆角的平面分离容器） */

/* ===================== 设计令牌（全部原创取值） ===================== */
:root {
  --cl5-canvas: #f3f5f8;          /* 浅灰画布 */
  --cl5-paper: #ffffff;           /* 白色内容容器 */
  --cl5-navy: #14295e;            /* 主深藏蓝（H2 底 / 品牌色） */
  --cl5-navy-deep: #0d1c46;       /* 深一档藏蓝（hover） */
  --cl5-steel: #31497e;           /* 钢蓝灰（首页方角按钮） */
  --cl5-steel-deep: #263a69;      /* 钢蓝灰 hover */
  --cl5-cyan: #18c3e2;            /* 亮青（H2 顶边 / 渐变线） */
  --cl5-cyan-soft: rgba(24, 195, 226, 0.22); /* H2 淡青描边 */
  --cl5-neon: #29d7ef;            /* 霓虹青（下载按钮底） */
  --cl5-edge: #0b8d9e;            /* 深青（按钮 3D 底边） */
  --cl5-edge-2: #159fae;          /* 中青（按钮左右细边） */
  --cl5-red: #d94e35;             /* 暖红（H3 渐变线起点） */
  --cl5-ink: #232630;             /* 正文近黑 */
  --cl5-ink-2: #5b6070;           /* 次级文字 */
  --cl5-line: #dde3ed;            /* 边线 */
  --cl5-link: #0d7fc4;            /* 正文链接青蓝 */
  --cl5-th-bg: #edf1f9;           /* 表头底色 */
  --cl5-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===================== 基础 ===================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cl5-body {
  margin: 0;
  background: var(--cl5-canvas);
  color: var(--cl5-ink);
  font-family: var(--cl5-font);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
p:empty { display: none; }        /* 空段落兜底（CMS_SPEC 4.3.1 实测发现2） */
.cl5-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cl5-navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.cl5-skip:focus { left: 0; }

/* ===================== Header ===================== */
.cl5-header {
  background: var(--cl5-paper);
  border-bottom: 1px solid var(--cl5-line);
}
.cl5-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cl5-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.cl5-brand__img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex: none;
}
.cl5-brand__name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cl5-navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cl5-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.cl5-nav__link {
  display: inline-block;
  padding: 8px 13px;
  color: var(--cl5-ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 6px;
}
.cl5-nav__link:hover { color: var(--cl5-navy); background: var(--cl5-th-bg); }
.cl5-nav__link--home { color: var(--cl5-navy); }

/* 汉堡按钮（仅移动端显示） */
.cl5-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--cl5-line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font: 600 0.95rem var(--cl5-font);
  color: var(--cl5-navy);
}
.cl5-menu-btn__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.cl5-menu-btn__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cl5-navy);
  border-radius: 1px;
}

/* ===================== 页面头图 Banner ===================== */
.cl5-banner {
  max-width: 1040px;
  margin: 22px auto 0;
  padding: 0 24px;
  max-height: 280px;              /* 限制高度，确保首屏可见下载按钮 */
  overflow: hidden;
}
.cl5-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;              /* 裁切而非拉伸 */
  object-position: center;
}

/* ===================== 主体（A 骨架：单一白色容器） ===================== */
.cl5-main {
  max-width: 1040px;
  margin: 22px auto 64px;
  padding: 0 24px;
}
.cl5-article {
  background: var(--cl5-paper);
  padding: 40px 44px;
}

/* ===================== Hero 元素 ===================== */
.cl5-lead {
  font-size: 1.08rem;
  color: var(--cl5-ink-2);
  margin: 0 0 18px;
}
.cl5-appicon {
  display: block;
  margin: 6px auto 14px;
  width: 112px;
  height: 112px;
  border-radius: 14px;
}
.cl5-h1 {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--cl5-ink);
  margin: 0 0 22px;
}

/* 首页方角全宽按钮（深钢蓝底白字，参考站方角基因） */
.cl5-body .cl5-btn {
  text-decoration: none;
  cursor: pointer;
}
.cl5-body .cl5-btn--nav {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--cl5-steel);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  border-radius: 0;
  margin: 0 0 20px;
  transition: background 0.15s ease;
}
.cl5-body .cl5-btn--nav:hover,
.cl5-body .cl5-btn--nav:focus {
  background: var(--cl5-steel-deep);
  color: #ffffff;
}

/* 下载页 3D 硬底边按钮（霓虹青底+深青实边，参考站 border 硬边基因） */
.cl5-body .cl5-btn--dl {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.55em;
  width: 100%;
  padding: 15px 20px;
  margin: 0 0 22px;
  background: var(--cl5-neon);
  color: var(--cl5-navy);
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: 12px;
  border-right: 2px solid var(--cl5-edge);
  border-bottom: 6px solid var(--cl5-edge);
  border-left: 2px solid var(--cl5-edge-2);
  border-top: none;
  transition: filter 0.15s ease;
}
.cl5-body .cl5-btn--dl:hover,
.cl5-body .cl5-btn--dl:focus {
  filter: brightness(0.96);
  color: var(--cl5-navy-deep);
}
.cl5-btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ===================== App 信息表（v2 视觉升级） ===================== */
.cl5-apptable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 28px;
  font-size: 1rem;
  border: 1px solid var(--cl5-line);
  border-left: 4px solid var(--cl5-cyan);
  border-radius: 8px;
  overflow: hidden;                 /* 圆角裁切 */
}
.cl5-apptable th,
.cl5-apptable td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cl5-line);
}
.cl5-apptable tr:last-child th,
.cl5-apptable tr:last-child td {
  border-bottom: none;              /* 末行无底边 */
}
.cl5-apptable th {
  background: var(--cl5-th-bg);
  font-weight: 600;
  color: var(--cl5-navy);
  white-space: nowrap;
  width: 36%;
}
.cl5-apptable td {
  color: var(--cl5-ink);
}
/* 斑马纹 */
.cl5-apptable tbody tr:nth-child(even) td {
  background: rgba(237, 241, 249, 0.45);
}
/* 行 hover */
.cl5-apptable tbody tr:hover th,
.cl5-apptable tbody tr:hover td {
  background: var(--cl5-cyan-soft);
  transition: background 0.15s ease;
}

/* 移动端：卡片式堆叠（th 隐藏，td 占满 + data-label 伪元素） */
@media (max-width: 640px) {
  .cl5-apptable { border-left-width: 3px; }
  .cl5-apptable th { display: none; }
  .cl5-apptable td {
    display: block;
    width: 100%;
    padding: 8px 14px 8px 14px;
    text-align: left;
    border-bottom: none;
  }
  .cl5-apptable td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cl5-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .cl5-apptable tr {
    display: block;
    border-bottom: 1px solid var(--cl5-line);
    padding: 6px 0;
  }
  .cl5-apptable tr:last-child { border-bottom: none; }
  .cl5-apptable tbody tr:nth-child(even) td { background: transparent; }
}

/* ===================== 正文（the_content 输出区） ===================== */
.cl5-entry { margin-top: 8px; }

/* H2：深藏蓝底色块 + 顶部 3px 青粗边 + 下两角圆角（上角直角）+ 居中 */
.cl5-article h2 {
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 13px 20px;
  background: var(--cl5-navy);
  border: 1px solid var(--cl5-cyan-soft);
  border-top: 3px solid var(--cl5-cyan);
  color: #ffffff;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 2.2rem 0 1.3rem;
}

/* H3：居中 + 下方红→青→透明渐变线 */
.cl5-article h3 {
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 3px 2px;
  margin: 1.9rem 0 1rem;
}
.cl5-article h3::after {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cl5-red), var(--cl5-cyan) 50%, transparent);
  margin-top: 5px;
}

/* H4（线上 FAQ 问题常见层级）：纯加粗左对齐 */
.cl5-article h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--cl5-ink);
}

/* 正文内出现 h1 的兜底（实测线上内容可能以裸 h1 开头） */
.cl5-article h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 1rem;
  color: var(--cl5-ink);
}

.cl5-article p { margin: 0 0 1.05rem; }
.cl5-article a { color: var(--cl5-link); }
.cl5-article a:hover { color: var(--cl5-navy); }
.cl5-article strong { font-weight: 700; }

/* 列表：默认圆点（参考站基因，无自定义图标） */
.cl5-article ul,
.cl5-article ol { margin: 0 0 1.1rem; padding-left: 1.6rem; }
.cl5-article li { margin: 0.3rem 0; }

/* 正文表格（对比表等）：直角细边框，与 apptable 同语言 */
.cl5-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.98rem;
}
.cl5-article th,
.cl5-article td {
  border: 1px solid var(--cl5-line);
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
}
.cl5-article th { background: var(--cl5-th-bg); font-weight: 600; }

/* 正文图片：直角（参考站无圆角规则）、居中 figure */
.cl5-fig {
  margin: 1.3rem auto;
  text-align: center;
}
.cl5-fig img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.cl5-article img { height: auto; }

/* 原生 details 兜底样式（线上 AI 内容 FAQ 可能是 details 结构） */
.cl5-article details {
  border: 1px solid var(--cl5-line);
  border-top: 3px solid var(--cl5-cyan);
  background: #f8fafd;
  border-radius: 0 0 10px 10px;
  padding: 0 16px;
  margin: 1rem 0;
}
.cl5-article summary {
  font-weight: 600;
  color: var(--cl5-navy);
  padding: 12px 0;
  cursor: pointer;
}
.cl5-article summary::marker { color: var(--cl5-cyan); }
.cl5-article details[open] summary { border-bottom: 1px dashed var(--cl5-line); margin-bottom: 4px; }

/* 静态 FAQ 呈现（参考站 Rank Math 静态 Q&A 基因，非手风琴） */
.cl5-article .rank-math-question,
.cl5-article .cl5-faq-q {
  font-weight: 600;
  color: var(--cl5-navy);
  margin: 1.4rem 0 0.5rem;
}

/* ===================== Footer（极简单行） ===================== */
.cl5-footer {
  background: var(--cl5-navy);
  color: #c9d2ea;
  margin-top: auto;
}
.cl5-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.92rem;
}
.cl5-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.cl5-footer__link {
  color: #7fdcf0;
  text-decoration: none;
  font-weight: 600;
}
.cl5-footer__link:hover { color: #ffffff; text-decoration: underline; }
.cl5-footer__copy { margin: 0; color: #a7b2d6; }

/* ===================== 返回顶部（40px 方形 3px 圆角） ===================== */
.cl5-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 3px;
  background: var(--cl5-navy);
  color: #ffffff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(13, 28, 70, 0.28);
}
.cl5-top.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cl5-top:hover { background: var(--cl5-navy-deep); }
.cl5-top svg { width: 20px; height: 20px; }

/* ===================== 响应式 ===================== */
@media (max-width: 860px) {
  .cl5-menu-btn { display: inline-flex; }
  .cl5-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cl5-paper);
    border-bottom: 1px solid var(--cl5-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 12px;
    box-shadow: 0 12px 18px rgba(13, 28, 70, 0.08);
  }
  .cl5-nav.is-open { display: flex; }
  .cl5-nav__link { padding: 11px 6px; border-radius: 0; border-bottom: 1px solid var(--cl5-canvas); }
  .cl5-header__inner { position: relative; }
  .cl5-header { position: relative; }
}

@media (max-width: 640px) {
  .cl5-header__inner { padding: 10px 20px; }
  .cl5-banner { padding: 0 20px; margin-top: 16px; max-height: 180px; }
  .cl5-main { padding: 0 20px; margin: 16px auto 56px; }
  .cl5-article { padding: 24px 20px; }        /* 移动端内容边距（icl1 v4 教训：24px） */
  .cl5-h1 { font-size: 1.7rem; }
  .cl5-article h2 { font-size: 1.24rem; padding: 12px 16px; }
  .cl5-article h3 { font-size: 1.1rem; }
  .cl5-article h1 { font-size: 1.5rem; }
  .cl5-appicon { width: 96px; height: 96px; }
  .cl5-article table { display: block; overflow-x: auto; }
  .cl5-footer__inner { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .cl5-top { right: 20px; bottom: 20px; }
}
