.pb-page {
    --pb-ink: #172033;
    --pb-muted: #667085;
    --pb-line: #dfe3ea;
    --pb-bg: #f6f7f9;
    --pb-red: #d92d20;
    --pb-blue: #175cd3;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 0 56px;
    color: var(--pb-ink);
    letter-spacing: 0;
}
.pb-page a { text-decoration: none; }
.pb-page-head, .pb-character-head, .pb-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 0 22px;
    border-bottom: 1px solid var(--pb-line);
}
.pb-page h1 { margin: 5px 0 8px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: 0; }
.pb-page-head p, .pb-character-head p, .pb-detail-head p { margin: 0; color: var(--pb-muted); line-height: 1.65; }
.pb-kicker { color: var(--pb-red); font-size: 13px; font-weight: 700; }
.pb-search { width: min(420px, 100%); }
.pb-search label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.pb-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.pb-search input { min-width: 0; height: 44px; padding: 0 13px; border: 1px solid #cfd4dc; border-right: 0; border-radius: 5px 0 0 5px; color: var(--pb-ink); background: #fff; }
.pb-search button { height: 44px; padding: 0 16px; border: 0; border-radius: 0 5px 5px 0; background: var(--pb-ink); color: #fff; font-weight: 700; }
.pb-search button i { margin-right: 6px; }
.pb-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.pb-tabs a { flex: 0 0 auto; padding: 8px 13px; border-radius: 4px; color: #475467; font-size: 14px; font-weight: 700; }
.pb-tabs a:hover, .pb-tabs a.is-active { background: #e9edf5; color: var(--pb-blue); }
.pb-section { padding-top: 26px; }
.pb-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 15px; }
.pb-section-head h2 { margin: 0; font-size: 21px; }
.pb-section-head span { color: var(--pb-muted); font-size: 13px; }
.pb-character-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pb-character-card, .pb-pattern-card { min-width: 0; overflow: hidden; border: 1px solid var(--pb-line); border-radius: 6px; background: #fff; }
.pb-character-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pb-bg); }
.pb-character-image img, .pb-pattern-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s ease; }
.pb-character-card:hover img, .pb-pattern-card:hover img { transform: scale(1.025); }
.pb-character-info { padding: 13px 14px 15px; }
.pb-character-info > span, .pb-pattern-info > span { color: var(--pb-blue); font-size: 12px; font-weight: 700; }
.pb-character-info h3 { margin: 5px 0 4px; font-size: 17px; }
.pb-character-info h3 a, .pb-pattern-info h2 a { color: var(--pb-ink); }
.pb-character-info p { margin: 0; color: var(--pb-muted); font-size: 13px; }
.pb-empty { padding: 56px 16px; border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); color: var(--pb-muted); text-align: center; }
.pb-notice { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--pb-line); color: #7a5b10; font-size: 13px; line-height: 1.65; }
.pb-back { display: inline-flex; align-items: center; gap: 7px; color: var(--pb-blue); font-size: 13px; font-weight: 700; }
.pb-character-head { align-items: center; }
.pb-count { min-width: 92px; padding-left: 22px; border-left: 1px solid var(--pb-line); text-align: center; }
.pb-count strong { display: block; font-size: 30px; line-height: 1; }
.pb-count span { color: var(--pb-muted); font-size: 12px; }
.pb-pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 24px; }
.pb-pattern-image { display: block; aspect-ratio: 1600 / 820; overflow: hidden; background: var(--pb-bg); }
.pb-pattern-info { padding: 13px 14px 15px; }
.pb-pattern-info h2 { margin: 5px 0 11px; font-size: 17px; }
.pb-open { display: inline-flex; align-items: center; gap: 6px; color: var(--pb-red); font-size: 13px; font-weight: 700; }
.pb-detail-head { align-items: center; }
.pb-grid-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b9c8e5; border-radius: 4px; color: var(--pb-blue); background: #f1f5fc; font-weight: 800; }
.pb-pair-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 24px; }
.pb-pair-view figure { min-width: 0; margin: 0; border: 1px solid var(--pb-line); border-radius: 6px; overflow: hidden; background: #fff; }
.pb-pair-view figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--pb-line); }
.pb-pair-view figcaption strong { font-size: 15px; }
.pb-pair-view figcaption span { color: var(--pb-muted); font-size: 12px; }
.pb-pair-view figure > img, .pb-pair-view figure > a, .pb-zoom-trigger { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--pb-bg); }
.pb-pair-view img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pb-zoom-trigger { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; }
.pb-zoom-trigger > span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border-radius: 4px; background: rgba(23, 32, 51, .88); color: #fff; font-size: 13px; font-weight: 700; }
.pb-zoom-trigger:hover > span, .pb-zoom-trigger:focus-visible > span { background: var(--pb-blue); }
.pb-zoom-trigger:focus-visible { outline: 3px solid rgba(23, 92, 211, .28); outline-offset: -3px; }
body.pb-lightbox-open { overflow: hidden; }
.pb-lightbox[hidden] { display: none; }
.pb-lightbox { position: fixed; z-index: 1100; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(10, 15, 25, .96); color: #fff; }
.pb-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pb-lightbox-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pb-lightbox-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pb-lightbox-actions button { width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .24); border-radius: 4px; background: rgba(255, 255, 255, .08); color: #fff; }
.pb-lightbox-actions button:hover, .pb-lightbox-actions button:focus-visible { background: rgba(255, 255, 255, .2); }
.pb-lightbox-actions span { width: 52px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.pb-lightbox-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; touch-action: none; }
.pb-lightbox-stage.is-zoomed { cursor: grab; }
.pb-lightbox-stage.is-zoomed:active { cursor: grabbing; }
.pb-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; transition: transform .08s ease-out; }
@media (max-width: 991px) {
    .pb-character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pb-pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .pb-page { padding-top: 4px; }
    .pb-page-head, .pb-character-head, .pb-detail-head { align-items: stretch; flex-direction: column; gap: 18px; padding-top: 14px; }
    .pb-page h1 { font-size: 27px; }
    .pb-search { width: 100%; }
    .pb-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .pb-pattern-grid, .pb-pair-view { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pb-count { align-self: flex-start; min-width: 0; padding: 0; border-left: 0; text-align: left; }
    .pb-count strong, .pb-count span { display: inline; font-size: 14px; }
    .pb-lightbox-bar { align-items: flex-start; flex-direction: column; gap: 7px; padding: 10px 12px; }
    .pb-lightbox-actions { width: 100%; justify-content: flex-end; }
    .pb-lightbox-stage { padding: 10px; }
}
@media (max-width: 390px) {
    .pb-character-grid { grid-template-columns: minmax(0, 1fr); }
    .pb-search button span { display: none; }
    .pb-search button i { margin-right: 0; }
}
