* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(200, 30, 40, .25), transparent 55%),
        linear-gradient(180deg, #241012 0%, #120608 100%);
    color: #ffe9dd; }

header { text-align: center; padding: 3.6vh 0 2vh; }
header h1 {
    font-size: clamp(24px, 2.6vw, 42px); letter-spacing: 8px;
    background: linear-gradient(90deg, #ffd76a, #ff9d5c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
header p { color: #b98a77; margin-top: .8vh; font-size: clamp(12px, 1vw, 15px); }

#wall {
    column-count: 6; column-gap: 1vw;
    width: 95%; height: 72%; margin: 0 auto;
    overflow-y: auto; scrollbar-width: none;
    padding-bottom: 4vh;
}
#wall::-webkit-scrollbar { display: none; }

.photo {
    break-inside: avoid; margin-bottom: 1vw;
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255, 180, 120, .3);
    cursor: pointer;
    transition: transform .28s, box-shadow .28s;
    animation: fadeUp .6s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
.photo:hover { transform: scale(1.04); box-shadow: 0 12px 34px rgba(255, 120, 60, .3); z-index: 3; }
.photo img { width: 100%; display: block; }
.photo .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 8px 10px; font-size: clamp(11px, .95vw, 15px);
    background: linear-gradient(transparent, rgba(10, 2, 4, .85));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 大图查看器 */
#viewer {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(8, 2, 4, .9); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; gap: 2vw;
}
#viewer.hidden { display: none; }
#v-img {
    max-width: 74vw; max-height: 80vh;
    border-radius: 12px; border: 2px solid rgba(255, 200, 130, .5);
    box-shadow: 0 0 60px rgba(255, 140, 60, .3);
}
#v-caption {
    position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%);
    color: #ffd7a8; font-size: clamp(15px, 1.5vw, 22px); letter-spacing: 2px;
}
#viewer button {
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 200, 130, .5);
    background: rgba(70, 20, 20, .75); color: #ffd7a8;
    font-size: 24px; cursor: pointer;
}
#v-close { position: absolute; top: 4vh; right: 3vw; }
#viewer button:hover { background: rgba(150, 40, 30, .85); }
