body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 32px;
}

h2 {
    margin: 0 0 24px 0;
    color: #222;
    font-weight: 600;
    font-size: 28px;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    align-items: center;
}

.controls label {
    font-weight: 600;
    font-size: 16px;
    color: #555;
    white-space: nowrap;
}

select {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #4c9eff;
    box-shadow: 0 0 0 2px rgba(76, 158, 255, 0.25);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.gallery.single-col {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
}

.gallery-item {
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

/* 单列模式：全屏图片 */
.gallery.single-col .gallery-item {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #000;
    margin: 0;
    padding: 0;
}

.gallery.single-col .gallery-item img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #000;
    display: block;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 图片编号标签（单列模式） */
.gallery.single-col .gallery-item .img-number {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

/* 缩略图加载提示 */
.gallery-item .thumb-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 16px;
    text-align: center;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* 模态窗：全屏预览 */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.img-modal.active {
    display: flex;
}

.img-modal img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    background: #000;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
    pointer-events: none;
}

.img-modal .close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.img-modal .close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* 响应式优化：小屏适应 */
@media (max-width: 768px) {
    .container {
        margin: 40px 16px;
        padding: 28px 20px;
    }

    .controls {
        gap: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    select {
        width: 100%;
    }

    .gallery.single-col .gallery-item img {
        height: auto;
        min-height: 0;
    }

    .img-modal .close {
        top: 16px;
        right: 16px;
        font-size: 32px;
    }
}

.mygo {
    color: #3388BB;
}

.mujica {
    color: #881144;
}
