* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: 300;
}

/* 图片展示区域 */
.gallery-container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1em;
    color: #34495e;
    font-weight: 500;
    background: white;
}

/* 底部样式 */
.footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

.footer p {
    margin: 8px 0;
    font-size: 0.95em;
}

.icp-info {
    color: #bdc3c7;
    font-size: 0.85em;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
        letter-spacing: 4px;
    }

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

    .gallery-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px 30px;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }
}
