/* ===== 详情页 ===== */
.detail-page { padding: 34px 0 20px; }
.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 0 28px;
    border-bottom: 1px solid var(--border);
}
.detail-icon {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    font-size: 34px;
    color: var(--accent);
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.detail-tagline { color: var(--muted); margin-top: 8px; font-size: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; color: var(--faint); font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.detail-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: none; }
.detail-section-title { font-size: 19px; margin-bottom: 16px; }
.detail-section-title::before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 10px; border-radius: 3px; background: var(--accent); vertical-align: -2px; }
.detail-lead { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); line-height: 1.85; }

/* 截图：横向滚动小卡片 + 灯箱 */
.screenshot-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.screenshot-card {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform .18s ease, border-color .18s ease;
}
.screenshot-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.screenshot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 11, 16, .88);
    padding: 40px 60px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    padding: 8px 14px;
}
.lightbox-close { top: 20px; right: 24px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; }

@media (max-width: 620px) {
    .detail-header { gap: 16px; }
    .detail-icon { width: 66px; height: 66px; border-radius: 16px; }
    .screenshot-card { width: 210px; }
}
