/* 《深圳清朗惠企一册通》网页版：按读者要解决的问题组织，不做 PDF 阅读器。 */
#qinglang .product__lead { max-width: 760px; }
.qg-intro { padding-block: 32px 16px; }
.qg-search { position: relative; margin-bottom: 16px; }
.qg-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--deep-ink); }
.qg-search input {
  width: 100%; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff; border: 1px solid #C9DCEA; border-radius: 10px;
}
.qg-search input:focus-visible { outline: 3px solid var(--deep-ink); outline-offset: 2px; }
.qg-results { margin: 8px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #C9DCEA; border-radius: 10px; }
.qg-results:empty { display: none; }
.qg-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.qg-results a:hover, .qg-results a:focus-visible { background: #EAF4FD; text-decoration: none; }
.qg-results strong { display: block; color: var(--deep-ink); font-size: 15px; }
.qg-results small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.qg-results .qg-results__empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }

.qg-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qg-task { display: block; padding: 18px 20px; background: #fff; border: 1px solid #C9DCEA; border-radius: 14px; color: var(--ink); }
.qg-task:hover { border-color: var(--deep); text-decoration: none; }
.qg-task strong { display: block; font-size: 18px; color: var(--deep-ink); }
.qg-task span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.qg-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 32px 72px; }
.qg-toc { position: sticky; top: calc(var(--header-h, 72px) + 24px); }
.qg-toc p { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--head-ink, #1F3A55); }
.qg-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid #DCE8F1; }
.qg-toc a { display: block; padding: 7px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); }
.qg-toc a:hover { color: var(--deep-ink); text-decoration: none; }
.qg-toc a.is-current { border-left-color: var(--deep); background: #F1F7FC; color: var(--deep-ink); font-weight: 600; }

.qg-sec { padding-bottom: 56px; scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.qg-sec > h2 { margin: 0 0 8px; font-size: 26px; }
.qg-sec > p.qg-lead { margin: 0 0 20px; color: var(--muted); }
.qg-sec h3 { margin: 28px 0 12px; font-size: 18px; color: var(--head-ink, #1F3A55); }

.qg-fold { border-bottom: 1px solid #DCE8F1; scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.qg-fold:first-of-type { border-top: 1px solid #DCE8F1; }
.qg-fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 12px 2px; font-size: 16px; font-weight: 600; color: var(--head-ink, #1F3A55);
  cursor: pointer; list-style: none;
}
.qg-fold > summary::-webkit-details-marker { display: none; }
.qg-fold > summary::after { content: "＋"; flex: none; font-size: 20px; color: var(--deep); }
.qg-fold[open] > summary::after { content: "－"; }
.qg-fold > summary:focus-visible { outline: 3px solid var(--deep-ink); outline-offset: 2px; }
.qg-fold__body { padding: 0 2px 18px; font-size: 15px; line-height: 1.85; }
.qg-fold__body p { margin: 0 0 8px; }
.qg-fold__body ol, .qg-fold__body ul, .qg-list { margin: 0 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.85; }
.qg-fold__body b { color: var(--deep-ink); }

.qg-flow { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: qg; }
.qg-flow > li { position: relative; padding: 14px 18px 14px 58px; background: #F4F9FD; border-radius: 12px; font-size: 15px; line-height: 1.8; counter-increment: qg; }
.qg-flow > li::before { content: counter(qg); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; }
.qg-flow strong { display: block; font-size: 16px; color: var(--deep-ink); }
.qg-flow p { margin: 4px 0 0; }

.qg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qg-card { padding: 16px 18px; border: 1px solid #DCE8F1; border-radius: 12px; font-size: 15px; line-height: 1.8; scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.qg-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--deep-ink); }
.qg-card p { margin: 0 0 4px; overflow-wrap: anywhere; }
.qg-card ul { margin: 0; padding-left: 20px; }

.qg-check { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; }
.qg-check li { break-inside: avoid; }
.qg-check label { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.qg-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--deep); }
.qg-check b { display: block; margin: 10px 0 2px; color: var(--deep-ink); }

.qg-template { padding: 24px 28px; background: #fff; border: 1px solid #C9DCEA; border-radius: 12px; font-size: 15px; line-height: 2; }
.qg-template h4 { margin: 0 0 12px; font-size: 18px; text-align: center; }
.qg-template p { margin: 0 0 6px; }
.qg-template .qg-right { text-align: right; }
.qg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--deep-ink); background: #EAF4FD; border: 1px solid #BFDDF2; border-radius: 10px; cursor: pointer; }
.qg-btn:hover { background: #DCEEFB; text-decoration: none; }
.qg-btn--solid { color: #fff; background: var(--deep-ink); border-color: var(--deep-ink); }
.qg-btn--solid:hover { background: #014E80; color: #fff; }
.qg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.qg-status { font-size: 14px; color: var(--deep-ink); }

.qg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.qg-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #C9DCEA; border-radius: 10px; }
.qg-tabs a:hover { border-color: var(--deep); text-decoration: none; }
.qg-tabs a[aria-current="true"] { color: #fff; background: var(--deep-ink); border-color: var(--deep-ink); font-weight: 600; }
.qg-panel { scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.qg-panel > h3 { margin-top: 0; }
.qg-way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; padding: 16px 0; border-top: 1px solid #DCE8F1; }
.qg-way h4 { margin: 0 0 10px; font-size: 16px; color: var(--deep-ink); }
.qg-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; }
.qg-path li { display: inline-flex; align-items: center; }
.qg-path li + li::before { content: "→"; margin-right: 4px; color: var(--deep); }
.qg-path b { padding: 1px 8px; background: #EAF4FD; border-radius: 6px; font-weight: 600; color: var(--deep-ink); }
.qg-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.qg-shot { display: block; width: 100%; padding: 0; background: #fff; border: 1px solid #DCE8F1; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.qg-shot img { display: block; width: 100%; height: auto; }
.qg-shot:focus-visible { outline: 3px solid var(--deep-ink); outline-offset: 2px; }
.qg-more { font-size: 15px; line-height: 1.9; }

.qg-codes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.qg-codes img { display: block; width: 100%; height: auto; border: 1px solid #DCE8F1; border-radius: 8px; }
.qg-codes span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }

.qg-zoom { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 12px; border: 0; border-radius: 12px; }
.qg-zoom::backdrop { background: rgba(8, 28, 48, .72); }
.qg-zoom img { display: block; width: 100%; height: auto; }
.qg-zoom button { display: block; min-height: 44px; margin: 0 0 8px auto; padding: 6px 16px; font: inherit; color: var(--deep-ink); background: #EAF4FD; border: 0; border-radius: 8px; cursor: pointer; }

@media (max-width: 1023px) {
  .qg-layout { display: block; padding-top: 16px; }
  .qg-toc { display: none; }
  .qg-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qg-codes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qg-sec, .qg-fold, .qg-panel, .qg-card { scroll-margin-top: 130px; }
}
@media (max-width: 767px) {
  .qg-way, .qg-cards { grid-template-columns: minmax(0, 1fr); }
  .qg-check { columns: 1; }
  .qg-sec > h2 { font-size: 22px; }
  .qg-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .qg-tabs a { white-space: nowrap; }
  .qg-template { padding: 18px 16px; }
}
@media print {
  .qg-panel[hidden] { display: block !important; }
  .qg-toc, .qg-search, .qg-tasks, .qg-tabs, .qg-actions, .qg-zoom { display: none !important; }
  .qg-layout { display: block; }
}
