* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #04121f 0%, #0a2740 60%, #0d3a5c 100%);
    font-family: "Microsoft YaHei", sans-serif;
    cursor: default;
}

#stage { position: relative; width: 100%; height: 100%; }

#water-canvas {
    position: absolute; inset: 0;
    z-index: 1;
    opacity: .85;
}

/* ---------- 瀑布流卡片 ---------- */
#waterfall {
    position: absolute; inset: 0;
    z-index: 2;
    display: flex;
    gap: 2.2vw;
    padding: 3vh 2.2vw;
    align-items: flex-start;
}

.water-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.2vh;
    animation: flowDown linear infinite;
}

.water-col:nth-child(odd)  { animation-duration: 46s; animation-direction: reverse; }
.water-col:nth-child(even) { animation-duration: 58s; }

@keyframes flowDown {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

.card {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 180, 255, .25);
    border: 1px solid rgba(120, 220, 255, .35);
    background: rgba(10, 40, 66, .55);
    transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 34px rgba(0, 210, 255, .55);
    z-index: 5;
}

.card img, .card video {
    width: 100%; display: block;
}

.card .tag {
    position: absolute; left: 0; bottom: 0; right: 0;
    padding: 6px 10px;
    font-size: clamp(11px, 1.1vw, 16px);
    color: #eaffff;
    background: linear-gradient(transparent, rgba(2, 20, 35, .85));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 放大弹层 ---------- */
#lightbox {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(1, 10, 20, .88);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .3s ease;
}
#lightbox.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
    position: relative;
    max-width: 86vw; max-height: 88vh;
    display: flex; flex-direction: column; align-items: center;
    animation: zoomIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes zoomIn { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#lightbox-content img, #lightbox-content video {
    max-width: 86vw; max-height: 80vh;
    border-radius: 12px;
    border: 2px solid rgba(120, 220, 255, .6);
    box-shadow: 0 0 60px rgba(0, 200, 255, .45);
}

#lightbox-caption {
    margin-top: 14px;
    color: #cff4ff;
    font-size: clamp(14px, 1.5vw, 22px);
    letter-spacing: 2px;
}

#lightbox-close {
    position: absolute; top: -46px; right: -8px;
    width: 40px; height: 40px;
    border: 1px solid rgba(120, 220, 255, .6);
    border-radius: 50%;
    background: rgba(10, 50, 80, .8);
    color: #bff0ff; font-size: 20px;
    cursor: pointer;
}
#lightbox-close:hover { background: rgba(0, 160, 230, .8); }
