body.brand-guide-loading nav[aria-label="教程目录"], body.brand-guide-loading > header, body.brand-guide-loading main { visibility: hidden; }
body.brand-guide-loading::before { content: '正在读取教程与品牌信息…'; position: fixed; inset: 30px auto auto 24px; font: 16px "Microsoft YaHei", sans-serif; color: #42536d; }
body.brand-guide-custom img[data-brand-regions] { visibility: hidden; }
.guide-image-error, .guide-print-error { color: #42536d; font-size: 13px; }
.guide-image-error button { margin-left: 12px; padding: 4px 10px; cursor: pointer; }
.guide-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.guide-brand img { width: 48px; height: 48px; object-fit: contain; }
.guide-brand strong { font-size: 20px; overflow-wrap: anywhere; }
.guide-brand p { margin: 3px 0 0; font-size: 13px; }
.guide-brand > div { min-width: 0; }
.guide-brand strong { display: block; color: #20304a; line-height: 1.45; }
.guide-brand-monogram { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: #edf2ff; color: #3564ed; font-size: 24px; font-weight: 700; }
.guide-brand img { flex-shrink: 0; }
nav .guide-brand-sidebar { gap: 10px; margin-bottom: 8px; }
nav .guide-brand-sidebar img, nav .guide-brand-sidebar .guide-brand-monogram { width: 32px; height: 32px; }
nav .guide-brand-sidebar .guide-brand-monogram { border-radius: 8px; font-size: 18px; }
nav .guide-brand-sidebar strong { margin: 0; font-size: 17px; color: #20304a; }
nav .guide-brand-sidebar p { margin: 3px 0 0; font-size: 12px; color: #62758a; }
nav .guide-brand-caption { margin: 0 0 20px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.guide-actions a { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; color: #225eb6; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.guide-actions a:hover { border-color: #3564ed; background: #edf2ff; }
.guide-actions a:focus-visible { outline: 3px solid #84b7ff; outline-offset: 2px; }
.guide-brand-footer { margin-top: 28px; padding: 24px; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; }
.guide-brand-footer > .guide-brand { margin-bottom: 12px; }
.guide-brand-footer > p { color: #62758a; font-size: 13px; }
.guide-support { margin-top: 24px; padding: 18px; border: 1px solid #dce4ef; border-radius: 10px; overflow-wrap: anywhere; }
.guide-support img { display: block; width: 144px; height: 144px; object-fit: contain; margin: 12px 0; }
.guide-brand-note { font-size: 13px; color: #62758a; }
.guide-brand-error { max-width: 640px; margin: 48px auto; padding: 24px; font: 16px/1.8 "Microsoft YaHei", sans-serif; color: #42536d; }
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: white !important; }
  body { color: #20304a; font-size: 10pt; line-height: 1.65; }
  nav[aria-label="教程目录"], #search, #filter, #reset, #count, #empty, dialog, .toolbar, .guide-actions, .guide-print-control, #no-results { display: none !important; }
  body > main, .layout > main { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .layout { display: block !important; }
  body.brand-guide-print .searchable, body.brand-guide-print section[hidden] { display: block !important; }
  body.brand-guide-print details > * { display: block !important; }
  body.brand-guide-print tbody tr[hidden] { display: table-row !important; }
  header, section { box-shadow: none !important; }
  .chapter { break-before: page; }
  .front { break-before: auto; }
  section[id^="step"] { break-inside: avoid; }
  h1 { font-size: 24pt; }
  .chapter h2 { font-size: 17pt; }
  h3 { font-size: 12pt; }
  .intro { font-size: 11pt; }
  .entry, figcaption, .fine, .guide-brand-note { font-size: 9pt; }
  figure { margin: 14px 0; }
  h1, h2, h3, figcaption, .number { break-after: avoid; }
  figure, .guide-brand, .guide-support { break-inside: avoid; }
  ol li { break-inside: avoid; }
  .image-open img { max-height: 88mm; object-fit: contain; }
  .guide-support { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; }
  .guide-support img { width: 22mm; height: 22mm; margin: 0; }
  .guide-brand-footer { break-inside: avoid; padding: 12px; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
