.detail-breadcrumb { display:flex; align-items:center; gap:.4rem; min-width:0; color:var(--text-muted2); font-size:.78rem; }
.detail-breadcrumb a { color:var(--text-muted); transition:color .15s; }
.detail-breadcrumb a:hover { color:var(--primary); }
.detail-breadcrumb-current { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); font-weight:600; }
.detail-hero { border-color:color-mix(in srgb, var(--category-color,var(--primary)) 28%, var(--border)); background:linear-gradient(135deg, color-mix(in srgb, var(--category-color,var(--primary)) 10%, var(--bg-card)), var(--bg-card) 62%); }
.detail-hero-mark { background:var(--category-color,var(--primary)); box-shadow:0 0 0 4px color-mix(in srgb,var(--category-color,var(--primary)) 12%,transparent); }
.detail-quick-nav { display:flex; gap:.35rem; overflow-x:auto; scrollbar-width:none; }
.detail-quick-nav::-webkit-scrollbar { display:none; }
.detail-quick-nav a { display:inline-flex; align-items:center; gap:.3rem; flex:0 0 auto; padding:.45rem .7rem; border:1px solid var(--border); border-radius:999px; color:var(--text-muted); background:var(--bg-card); font-size:.74rem; transition:all .15s; }
.detail-quick-nav a:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); }
.detail-download-note { padding:.65rem .75rem; border:1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); border-radius:.7rem; background:var(--primary-light); color:var(--text-muted); font-size:.74rem; line-height:1.55; }
.detail-link { transition:border-color .15s, box-shadow .15s, transform .15s; }
.detail-link:hover { border-color:color-mix(in srgb, var(--primary) 48%, var(--border)) !important; box-shadow:0 5px 16px rgba(15,23,42,.07); transform:translateY(-1px); }
.detail-gallery-stage { position:relative; display:flex; align-items:center; justify-content:center; min-height:15rem; aspect-ratio:16 / 9; max-height:31rem; overflow:hidden; border:1px solid var(--border); border-radius:.8rem; background:var(--accent); touch-action:pan-y; }
.detail-gallery-stage img { width:100%; height:100%; object-fit:contain; cursor:zoom-in; transition:opacity .16s ease; }
.detail-gallery-control { position:absolute; top:50%; z-index:2; width:2.25rem; height:2.25rem; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.34); border-radius:999px; color:#fff; background:rgba(15,23,42,.62); box-shadow:0 3px 12px rgba(15,23,42,.18); transform:translateY(-50%); transition:background-color .15s, transform .15s; }
.detail-gallery-control:hover, .detail-gallery-control:focus-visible { background:rgba(15,23,42,.82); transform:translateY(-50%) scale(1.04); outline:none; }
.detail-gallery-control.prev { left:.75rem; }
.detail-gallery-control.next { right:.75rem; }
.detail-gallery-counter { position:absolute; right:.7rem; bottom:.7rem; padding:.25rem .5rem; border-radius:999px; color:#fff; background:rgba(15,23,42,.68); font-size:.68rem; backdrop-filter:blur(4px); }
.detail-gallery-caption { min-height:1.25rem; margin-top:.55rem; color:var(--text-muted); font-size:.76rem; text-align:center; }
.detail-gallery-thumbs { display:flex; gap:.55rem; overflow-x:auto; padding:.15rem .1rem .3rem; scrollbar-width:thin; }
.detail-gallery-thumb { width:4.4rem; height:3.2rem; flex:0 0 4.4rem; padding:0; overflow:hidden; border:2px solid transparent; border-radius:.55rem; background:var(--accent); cursor:pointer; }
.detail-gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.detail-gallery-thumb.is-active { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-light); }
.detail-page > * { min-width:0; }
.detail-prose { min-width:0; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.detail-prose p, .detail-prose li, .detail-prose blockquote, .detail-prose h1, .detail-prose h2, .detail-prose h3, .detail-prose h4 { max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.detail-prose a { overflow-wrap:anywhere; word-break:break-word; }
.detail-deferred-section { content-visibility:auto; contain-intrinsic-size:0 520px; }
.detail-prose img { display:block; box-sizing:border-box; width:auto; max-width:100%; min-width:0; height:auto; max-height:38rem; margin:1rem auto; object-fit:contain; border-radius:.65rem; border:1px solid var(--border); background:var(--accent); }
.detail-prose pre { max-width:100%; max-height:32rem; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.detail-prose code { overflow-wrap:anywhere; word-break:break-word; }
.detail-prose table { display:block; max-width:100%; overflow-x:auto; }
.detail-prose iframe, .detail-prose video, .detail-prose embed { display:block; max-width:100%; }
.detail-action-group { display:flex; align-items:center; gap:.4rem; flex:0 0 auto; }
.detail-action-button { width:2.125rem; height:2.125rem; border-radius:.65rem; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); background:var(--accent); color:var(--text-muted); transition:background-color .15s, color .15s, border-color .15s, transform .15s; }
.detail-action-button:hover, .detail-action-button:focus-visible { color:var(--primary); background:var(--primary-light); border-color:color-mix(in srgb, var(--primary) 30%, var(--border)); outline:none; }
.detail-action-button:active { transform:scale(.96); }
.detail-meta { display:flex; flex-wrap:wrap; align-items:center; column-gap:.7rem; row-gap:.4rem; }
.detail-meta > * { min-width:0; max-width:100%; }
.detail-official-link, .detail-updated { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.detail-official-link { max-width:10rem; }
.detail-updated { max-width:12rem; }
.detail-version { min-width:0; max-width:8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.detail-mobile-download { z-index:60; }
@media (max-width:639px) {
    .front-page-shell.detail-page { padding-bottom:calc(8.5rem + env(safe-area-inset-bottom)); }
    .detail-meta { column-gap:.55rem; row-gap:.25rem; }
    .detail-meta > * { font-size:.68rem !important; line-height:1.25 !important; }
    .detail-official-link { max-width:7rem; }
    .detail-updated { max-width:9rem; }
    .detail-version { max-width:5.5rem; }
    .detail-gallery-stage { min-height:11rem; }
    .detail-link-row { align-items:flex-start; }
    .detail-download-action { width:100%; }
    .detail-download-action a { width:100%; justify-content:center; }
    .detail-mobile-download { bottom:calc(52px + env(safe-area-inset-bottom)) !important; }
}
