/* ============================================================
   客服中心 / 长文文档页（协议、条款、合同）
   ccdoc2026.css
   ============================================================ */

.cc-doc {
  max-width: 824px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-2);
  letter-spacing: .005em;
}
.cc-doc p {
  margin: 0 0 15px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-2);
}
.cc-doc p:last-child { margin-bottom: 0; }
.cc-doc strong, .cc-doc b { font-weight: 700; color: var(--ink); }
.cc-doc a {
  color: var(--brand-ink); text-decoration: none;
  border-bottom: 1px solid var(--brand-line); word-break: break-all;
}
.cc-doc a:hover { border-bottom-color: var(--brand); }

/* 条款标题 */
.cc-doc h3 {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.6;
  margin: 34px 0 12px; padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.cc-doc h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* 一级小标题（如「第一条」）加个编号色 */
.cc-doc h3 em {
  font-style: normal; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--brand-ink); margin-right: 8px;
  vertical-align: 1px;
}

/* 文首导语 */
.doc-lead {
  padding: 20px 22px; margin-bottom: 30px;
  background: var(--soft); border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 2; color: var(--ink-2);
}

/* 目录 */
.doc-toc {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 24px 22px; margin-bottom: 34px; background: #fff;
}
.doc-toc h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 500;
  margin-bottom: 14px;
}
.doc-toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 32px;
}
.doc-toc li { break-inside: avoid; }
.doc-toc a {
  display: block; padding: 5px 0 5px 26px; position: relative;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2); text-decoration: none;
  transition: color .16s var(--ease);
}
.doc-toc a span {
  position: absolute; left: 0; top: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  letter-spacing: 0;
}
.doc-toc a:hover { color: var(--brand-ink); }
.doc-toc a:hover span { color: var(--brand); }
.doc-toc.is-empty { display: none; }

/* 文末操作条 */
.doc-end {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.doc-end p { font-size: 12px; color: var(--ink-4); line-height: 1.8; margin: 0; }
.doc-end .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-end .acts a, .doc-end .acts button {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; transition: all .16s var(--ease);
}
.doc-end .acts a:hover, .doc-end .acts button:hover { border-color: var(--ink); }
.doc-end .acts .primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-end .acts .primary:hover { background: var(--brand); border-color: var(--brand); }

@media (max-width: 900px) {
  .doc-toc ol { columns: 1; }
  .cc-doc, .cc-doc p { font-size: 13px; line-height: 2; }
}
