/* 相册页：微博风格动态流 */
.album-main {
    background: #f7f3e7;
}

.album-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 244, 224, .92));
    border: 1px solid rgba(218, 178, 118, .45);
    box-shadow: 0 10px 28px rgba(120, 84, 38, .08);
}

.album-hero:after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -55px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(237, 174, 82, .18);
}

.album-kicker {
    margin: 0 0 8px;
    color: #d57b2a;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: bold;
}

.album-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #3e3328;
    font-size: 28px;
    line-height: 1.25;
}

.album-hero p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #7c6a55;
    font-size: 14px;
    line-height: 1.8;
}

.album-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.album-toolbar span {
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    color: #7a6041;
    border: 1px solid #ead9bc;
    box-shadow: 0 4px 14px rgba(120, 84, 38, .06);
}

.album-feed {
    max-width: 760px;
    margin: 0 auto;
}

.album-loading,
.album-error,
.album-empty,
.album-offline-tip {
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    color: #8a7357;
    border: 1px solid #ead9bc;
}

.album-error {
    color: #b64a38;
    background: #fff8f5;
    border-color: #f0c2b8;
}

.album-offline-tip {
    margin-bottom: 14px;
    color: #9a6a21;
    background: #fff8e8;
    border-color: #f1d89e;
}

.album-card {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(222, 202, 170, .8);
    box-shadow: 0 10px 30px rgba(95, 70, 35, .08);
}

.album-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.album-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe1a8, #eaa35e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(160, 105, 32, .18);
}

.album-author {
    display: block;
    color: #3c3026;
    font-size: 15px;
    line-height: 1.5;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a28a6b;
    font-size: 12px;
}

.album-text {
    color: #4d4137;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.album-images {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.album-images.count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.album-images.count-2,
.album-images.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.album-images.count-3,
.album-images.count-5,
.album-images.count-6,
.album-images.count-7,
.album-images.count-8,
.album-images.count-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.album-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f4ead8;
    cursor: pointer;
}

.album-images.count-1 .album-photo {
    max-width: 520px;
    aspect-ratio: 4 / 3;
}

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

.album-photo:hover img {
    transform: scale(1.04);
}

.album-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0e6d5;
}

.album-action-btn {
    flex: 1;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f8f1e6;
    color: #7a6041;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.album-action-btn:hover {
    background: #f0dfc7;
    transform: translateY(-1px);
}

.album-action-btn.is-liked {
    color: #d9534f;
    background: #fff0ed;
}

.album-comments {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fbf7ef;
}

.album-comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.album-comment {
    padding-bottom: 10px;
    border-bottom: 1px dashed #e7d8c1;
}

.album-comment:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.album-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.album-comment-name {
    color: #704f2b;
    font-weight: bold;
}

.album-comment-time {
    color: #b29c80;
    font-size: 12px;
}

.album-comment p {
    margin: 0;
    color: #58483a;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.album-comment-form {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.album-comment-form input {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e0c9a6;
    border-radius: 9px;
    background: #fff;
    color: #4d4034;
}

.album-comment-form input:focus {
    outline: none;
    border-color: #d69a4d;
    box-shadow: 0 0 0 3px rgba(214, 154, 77, .15);
}

.album-comment-form button {
    min-width: 76px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #d68b43;
    color: #fff;
    cursor: pointer;
}

.album-comment-form button:disabled,
.album-action-btn:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}

.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .78);
}

.album-lightbox.is-open {
    display: flex;
}

.album-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .4);
}

.album-lightbox button {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 24px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .album-main {
        padding: 12px !important;
    }

    .album-hero {
        padding: 22px 18px;
    }

    .album-hero h2 {
        font-size: 24px;
    }

    .album-feed {
        max-width: 100%;
    }

    .album-card {
        padding: 15px;
        border-radius: 14px;
    }

    .album-images.count-3,
    .album-images.count-5,
    .album-images.count-6,
    .album-images.count-7,
    .album-images.count-8,
    .album-images.count-9 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-comment-form {
        grid-template-columns: 1fr;
    }

    .album-comment-form button {
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    .album-toolbar span {
        width: 100%;
        text-align: center;
    }

    .album-actions {
        flex-direction: column;
    }
}
