/* ================================================================
   P2: 下载安全检查弹窗
   ================================================================ */
#aura-download-check {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    display: none;
    align-items: center; justify-content: center;
    padding: 16px;
}
#aura-download-check.show { display: flex; animation: auraFadeIn 0.2s ease; }
.aura-dl-check-card {
    background: #fff; border-radius: 16px; max-width: 420px; width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden; text-align: center;
}
.aura-dl-check-header {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    padding: 24px 20px 20px; color: #fff;
}
.aura-dl-shield {
    width: 56px; height: 56px; margin: 0 auto 12px;
    background: rgba(255,255,255,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; position: relative;
}
.aura-dl-shield::after {
    content: ''; position: absolute; inset: -4px;
    border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    animation: auraShieldRing 1.5s ease-out infinite;
}
@keyframes auraShieldRing {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.aura-dl-check-body { padding: 20px; }
.aura-dl-countdown {
    font-size: 36px; font-weight: 800; color: #2563eb;
    line-height: 1; margin: 8px 0;
}
.aura-dl-progress {
    width: 100%; height: 4px; background: #e2e8f0; border-radius: 2px;
    overflow: hidden; margin: 12px 0;
}
.aura-dl-progress-bar {
    height: 100%; background: linear-gradient(to right, #2563eb, #4f46e5);
    border-radius: 2px; transition: width 1s linear;
    width: 0%;
}
.aura-dl-ad-slot {
    margin: 16px 0; padding: 12px; background: #f8fafc;
    border: 1px dashed #e2e8f0; border-radius: 8px;
    min-height: 60px; display: flex; align-items: center; justify-content: center;
}
.aura-dl-links { padding: 0 20px 20px; display: block; }
.aura-dl-links.hidden { display: none !important; }
.aura-dl-bundle-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 12px;
}
.aura-dl-bundle-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
}
.aura-dl-bundle-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}
.aura-dl-link-item {
    display: grid;
    gap: 8px;
    padding: 10px 14px; background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 8px; margin-bottom: 8px; cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease; text-decoration: none; color: inherit;
}
.aura-dl-link-item:hover {
    background: #eff6ff; border-color: #93c5fd; color: #2563eb;
}
.aura-dl-link-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.aura-dl-link-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.aura-dl-link-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.aura-dl-link-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 10px;
    color: #475569;
}
.aura-dl-link-open {
    flex-shrink: 0;
    color: #2563eb;
    font-size: 12px;
}
.aura-dl-link-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.aura-dl-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    line-height: 1.4;
}
.aura-dl-copy-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
}
[data-theme="dark"] .aura-dl-bundle-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-dl-bundle-chip {
    background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(99,102,241,0.18));
    border-color: rgba(96,165,250,0.4);
    color: #bfdbfe;
}
[data-theme="dark"] .aura-dl-link-type {
    background: rgba(37,99,235,0.18);
    color: #bfdbfe;
}

/* ================================================================
   P2: 截图轮播 + 灯箱
   ================================================================ */
.aura-screenshot-carousel {
    position: relative; overflow: hidden; border-radius: 12px;
    background: #f1f5f9;
}
.aura-screenshot-track {
    display: flex; transition: transform 0.3s ease;
    gap: 0;
}
.aura-screenshot-track > div {
    min-width: 100%; height: 360px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
}
.aura-screenshot-track img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}
.aura-screenshot-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; color: #475569;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; font-size: 14px;
}
.aura-screenshot-nav:hover { background: #fff; color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.aura-screenshot-nav.prev { left: 12px; }
.aura-screenshot-nav.next { right: 12px; }
.aura-screenshot-dots {
    display: flex; gap: 6px; justify-content: center; margin-top: 10px;
}
.aura-screenshot-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1;
    cursor: pointer; transition: width .15s ease, background-color .15s ease, transform .15s ease; border: none; padding: 0;
}
.aura-screenshot-dot.active { background: #2563eb; width: 24px; border-radius: 4px; }

#aura-lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 40px; cursor: zoom-out;
}
#aura-lightbox.show { display: flex; }
#aura-lightbox img {
    max-width: 90%; max-height: 90vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.aura-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.aura-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.aura-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.aura-lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.aura-lightbox-nav.prev { left: 20px; }
.aura-lightbox-nav.next { right: 20px; }

