/* ============================================================
   页面快照卡片 - snapshot.css
   独立模块：显示输入网址的完整页面截图。
   ============================================================ */
.snapshot-row { display: flex; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.snapshot-row .detail-panel { flex: 1 1 0; min-width: 0; margin-bottom: 0; display: flex; flex-direction: column; }
/* 左侧详情框随快照截图高度自适应，两卡保持等高 */
.snapshot-row .detail-box { flex: none; height: 380px; resize: none; }

.snapshot-panel { display: flex; flex-direction: column; }
.snapshot-view {
    flex: none;
    height: 380px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    background: var(--bg-input);
    overflow: hidden;
    position: relative;
}
.snapshot-view img {
    display: none;
    width: 100%;
    height: auto;
}
.snapshot-view img[src] { display: block; }
.snapshot-view .snapshot-empty { display: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #F0D77B;
    text-shadow: 0 0 8px rgba(240, 215, 123, 0.8), 0 0 20px rgba(212, 175, 55, 0.5);
    animation: snapshotGlow 1.6s ease-in-out infinite;
}
@keyframes snapshotGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(240, 215, 123, 0.6), 0 0 14px rgba(212, 175, 55, 0.4); }
    50% { text-shadow: 0 0 14px rgba(240, 215, 123, 1), 0 0 30px rgba(212, 175, 55, 0.8); }
}
.snapshot-head-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.snapshot-head-row .detail-head { margin-bottom: 0; flex: 0 0 auto; }
.snapshot-head-row #snapshotInput { flex: 1 1 auto; min-width: 0; }
.snapshot-refresh {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.3s ease;
}
.snapshot-refresh {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, filter 0.25s ease;
    outline: none;
    user-select: none;
}
.snapshot-refresh:hover {
    background: var(--gold-grad);
    color: #1A1205;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 208, 111, 0.45);
}
.snapshot-refresh:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.95);
}
.snapshot-refresh:focus-visible { box-shadow: 0 0 0 2px rgba(212,175,55,0.6), 0 6px 20px rgba(245,208,111,0.45); }

/* 手机竖版：快照卡与 GET 详情上下堆叠 */
@media (max-width: 720px) {
    .snapshot-row { flex-direction: column; }
    .snapshot-view { min-height: 180px; }
}
