/* 相册图床风格 v3 (与小程序一致的清爽图墙) */
.album-app {
    max-width: 1060px;
    margin: 0 auto;
    padding: 6px 2px 46px;
}

.album-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 6px 0 20px;
}

.album-chip {
    border: 1px solid #d8e8df;
    background: #ffffff;
    color: #45604f;
    padding: 7px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(30, 50, 40, 0.05);
}

.album-chip:hover {
    border-color: #7AC9A7;
    color: #3d8b64;
    transform: translateY(-1px);
}

.album-chip.active {
    background: linear-gradient(135deg, #7AC9A7, #5DAF8A);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(93, 175, 138, 0.38);
}

.album-count {
    margin-left: auto;
    color: #8aa196;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.album-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4f0, #e2ede7);
    cursor: zoom-in;
    box-shadow: 0 2px 10px rgba(30, 50, 40, 0.07);
    transform: translateZ(0);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.album-item:hover img {
    transform: scale(1.07);
}

.album-item .no {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(20, 32, 26, 0.45);
    color: #fff;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.album-status {
    grid-column: 1 / -1;
    text-align: center;
    color: #8aa196;
    padding: 46px 0;
    font-size: 14px;
}

/* ---------- 大图查看器 ---------- */
.album-viewer {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 15, 0.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: albumFade 0.22s ease;
}

.album-viewer.open {
    display: flex;
}

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

.album-viewer img {
    max-width: 92vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 14px 52px rgba(0, 0, 0, 0.55);
    background: #101613;
    transition: opacity 0.2s ease;
}

.album-viewer .cap {
    margin-top: 16px;
    color: #d7e6dd;
    font-size: 14px;
    letter-spacing: 0.4px;
}

.album-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-nav:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-50%) scale(1.06);
}

.album-prev { left: 20px; }
.album-next { right: 20px; }

.album-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.album-close:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* ---------- 深色模式 ---------- */
html[data-user-color-scheme="dark"] .album-chip {
    background: #1b2320;
    border-color: #2c3833;
    color: #9fc0b0;
    box-shadow: none;
}

html[data-user-color-scheme="dark"] .album-chip.active {
    background: linear-gradient(135deg, #5DAF8A, #468e6e);
    color: #fff;
}

html[data-user-color-scheme="dark"] .album-item {
    background: linear-gradient(135deg, #1a211d, #151a17);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-user-color-scheme="dark"] .album-count,
html[data-user-color-scheme="dark"] .album-status {
    color: #6f8a7c;
}

@media (max-width: 640px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
        gap: 8px;
    }
    .album-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .album-prev { left: 8px; }
    .album-next { right: 8px; }
}
