* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

h1 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 2.2rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-preview {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border: 1px solid #eaecef;
    margin: 0 auto 25px auto;
    position: relative;
}

.main-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-info {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.image-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.image-description {
    color: #7f8c8d;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .gallery-container {
        max-width: 1400px;
    }
    
    .main-preview {
        height: 70vh;
        min-height: 600px;
    }
    
    .main-image {
        max-width: 90%;
        max-height: 90%;
    }
}

/* 平板设备 */
@media (max-width: 1024px) {
    .gallery-container {
        padding: 25px;
    }
    
    .main-preview {
        height: 60vh;
        min-height: 450px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .gallery-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .main-preview {
        height: 50vh;
        min-height: 350px;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .image-title {
        font-size: 1.4rem;
    }
}

/* 小手机设备 */
@media (max-width: 480px) {
    .main-preview {
        height: 45vh;
        min-height: 300px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .image-title {
        font-size: 1.2rem;
    }
    
    .gallery-container {
        padding: 15px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .main-preview {
        height: 75vh;
        min-height: 400px;
    }
    
    .header {
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}