/* 软件手册（manual.html）与使用文档页的手册入口卡片
   依赖 knowledge.css 的 .docs-* 布局类，这里只补手册正文排版。 */

.manual-article h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; }
.manual-article .docs-subtitle { color: #9ab7d4; }
.manual-article .docs-lead { margin-bottom: 22px; }

.manual-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.manual-actions .button { min-height: 46px; padding: 0 20px; font-size: 13px; }
.manual-actions .button svg { width: 18px; height: 18px; }
.button-quiet { border: 1px solid rgba(255,255,255,.14); color: #cfe1f3; background: rgba(255,255,255,.04); box-shadow: none; }
.button-quiet:hover { border-color: rgba(93,174,255,.5); color: #eaf4ff; background: rgba(8,124,255,.12); }

.manual-callout { display: flex; gap: 14px; margin: 0 0 40px; padding: 14px 17px; border: 1px solid rgba(64,158,255,.22); border-radius: 9px; color: #9bb2c9; background: rgba(11,72,132,.13); font-size: 13px; line-height: 1.7; }
.manual-callout strong { color: #69b5ff; flex: 0 0 auto; }

/* 右侧目录的小节高亮与占位 */
.docs-toc a.active { color: #c6e4ff; }
.docs-toc-empty { display: block; color: #5c6b7d; font-size: 12px; }

/* ---------- 正文 ---------- */
.manual-body { color: #a7b4c3; font-size: 14px; line-height: 1.85; }
.manual-body h2, .manual-body h3, .manual-body h4 { scroll-margin-top: 108px; }
.manual-h2 { margin: 52px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: #f1f5fa; font-size: 26px; letter-spacing: -.02em; }
.manual-h2:first-child { margin-top: 0; }
.manual-h3 { margin: 32px 0 13px; color: #e6eef7; font-size: 18px; }
.manual-h4 { margin: 26px 0 11px; color: #dfe8f2; font-size: 15px; }
.manual-body p { margin: 11px 0; }
.manual-body p + p { margin-top: 11px; }
.manual-list { margin: 11px 0 18px; padding-left: 22px; }
.manual-list li { margin: 7px 0; padding-left: 4px; }
.manual-list li::marker { color: #4daaff; }
.manual-body ol.manual-list li::marker { color: #4daaff; font-weight: 700; }

/* FAQ */
.manual-faq-q { margin: 30px 0 9px; padding-left: 13px; border-left: 2px solid rgba(77,170,255,.5); color: #e9f2fb; font-size: 15px; }
.manual-faq-a { margin: 0 0 6px; color: #a4b1c0; }

/* 提示框（docx 里的单格表格） */
.manual-note { display: flex; gap: 12px; margin: 16px 0; padding: 14px 17px; border: 1px solid rgba(64,158,255,.22); border-radius: 9px; color: #9bb2c9; background: rgba(11,72,132,.13); font-size: 13px; line-height: 1.75; }
.manual-note strong { flex: 0 0 auto; color: #69b5ff; }

/* 表格 */
.manual-table-wrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.manual-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.manual-table th, .manual-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.manual-table th:last-child, .manual-table td:last-child { border-right: 0; }
.manual-table tr:last-child td { border-bottom: 0; }
.manual-table th { color: #dfeaf6; background: rgba(255,255,255,.035); font-weight: 600; white-space: nowrap; }
.manual-table td { color: #a4b1c0; }

/* 页尾 CTA */
.manual-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 52px; padding: 24px 26px; border: 1px solid rgba(66,155,255,.23); border-radius: 14px; background: radial-gradient(circle at 88% 0%, rgba(8,124,255,.14), transparent 48%), #0b131f; }
.manual-foot strong { display: block; color: #e7eef6; font-size: 17px; }
.manual-foot span { display: block; margin-top: 7px; color: #8594a7; font-size: 13px; line-height: 1.7; }
.manual-foot .button { flex: 0 0 auto; margin: 0; }

/* 使用文档页（knowledge.html）里的手册入口卡片 */
.manual-entry { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 0 0 42px; padding: 24px 26px; border: 1px solid rgba(59,151,255,.35); border-radius: 15px; background: radial-gradient(circle at 92% 8%, rgba(8,124,255,.17), transparent 52%), #0b1626; }
.manual-entry small { display: block; color: #5faff7; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.manual-entry b { display: block; margin-top: 9px; color: #eaf2fa; font-size: 18px; }
.manual-entry p { margin: 9px 0 0; color: #94a4b6; font-size: 13px; line-height: 1.75; }
.manual-entry-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.manual-entry-actions .button { min-height: 44px; padding: 0 19px; font-size: 13px; }

@media (max-width: 860px) {
  .manual-entry { align-items: flex-start; flex-direction: column; padding: 22px; }
  .manual-entry-actions { width: 100%; }
  .manual-foot { align-items: flex-start; flex-direction: column; }
  .manual-h2 { margin-top: 42px; font-size: 22px; }
  .manual-actions .button, .manual-entry-actions .button { width: 100%; }
}

/* ---------- 打印 / 生成 PDF（Chrome headless --print-to-pdf） ---------- */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; }
  .site-header, .site-footer, .legal-modal, .docs-sidebar, .docs-toc,
  .manual-actions, .manual-callout, .manual-foot, .eyebrow, .docs-breadcrumb { display: none !important; }
  .knowledge-section { min-height: 0 !important; padding: 0 !important; background: #fff !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .docs-layout { display: block !important; }
  .manual-article, .manual-article * { color: #14181d !important; background: none !important; box-shadow: none !important; }
  .manual-article a { color: #14181d !important; text-decoration: none !important; }
  .manual-article h1 { margin: 0 0 6pt !important; font-size: 21pt !important; letter-spacing: 0 !important; }
  .manual-article .docs-subtitle { margin: 0 0 14pt !important; font-size: 10pt !important; color: #555 !important; }
  .manual-body { font-size: 10.5pt; line-height: 1.6; }
  .manual-body p, .manual-body li { font-size: 10.5pt; line-height: 1.6; orphans: 2; widows: 2; }
  .manual-h2 { margin: 0 0 8pt !important; padding: 0 0 4pt !important; border-bottom: .6pt solid #999 !important; font-size: 15pt !important; break-before: page; }
  .manual-h2:first-child { break-before: avoid; }
  .manual-h3 { margin: 12pt 0 4pt !important; font-size: 12pt !important; break-after: avoid; }
  .manual-h4, .manual-faq-q { margin: 9pt 0 3pt !important; font-size: 10.5pt !important; break-after: avoid; }
  .manual-faq-q { border-left: 0 !important; padding-left: 0 !important; font-weight: 700; }
  .manual-note { border: .6pt solid #999 !important; background: #f6f7f9 !important; break-inside: avoid; }
  .manual-table-wrap { overflow: visible !important; border: .6pt solid #999 !important; border-radius: 0 !important; }
  .manual-table { font-size: 9.5pt; }
  .manual-table th, .manual-table td { padding: 4pt 6pt !important; border: .6pt solid #b9bec6 !important; color: #14181d !important; }
  .manual-table th { background: #eef1f5 !important; }
  .manual-table tr { break-inside: avoid; }
  .manual-list { margin: 4pt 0 8pt !important; }
  @page { size: A4; margin: 15mm 14mm; }
}
