/* 布局相关 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 600;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.main-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.gallery {
    flex: 2;
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 3rem;
    box-sizing: border-box;
    max-width: 100vw;
}

.comment-module {
    flex: 1;
    min-width: 300px;
}

.ranking-module {
    position: static;
    flex: 1;
    min-width: 300px;
    margin-top: 2rem;
}

.ranking-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 30vw;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: hidden;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    margin-top: auto;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* 侧边排行榜布局 */
.side-rankings {
    position: fixed;
    top: 80px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 270px;
    max-width: 95vw;
    pointer-events: none;
}

.side-rankings.left {
    left: 1rem;
    align-items: flex-start;
}

.side-rankings.right {
    right: 1rem;
    align-items: flex-end;
}

.side-rankings .ranking-module {
    pointer-events: auto;
    background: rgba(34, 34, 34, 0.92);
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(255, 107, 107, 0.15), 0 1.5px 8px 0 rgba(0, 0, 0, 0.18);
    padding: 18px 18px 10px 18px;
    margin: 0;
    width: 250px;
    min-width: 180px;
    border: 1.5px solid #ff6b6b33;
    transition: box-shadow 0.3s, border 0.3s;
}

.side-rankings .ranking-module:hover {
    box-shadow: 0 8px 40px 0 rgba(255, 107, 107, 0.25), 0 2px 12px 0 rgba(0, 0, 0, 0.22);
    border: 1.5px solid #ff6b6b88;
}

.search-bar {
    flex: 1;
    left: 0;
    position: relative;
    margin-top: 2rem;
    text-align: center;
}