body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 3em;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式布局 */
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 20px auto;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* 固定图片高度 */
    object-fit: cover; /* 裁剪图片以填充容器 */
    display: block;
    border-bottom: 1px solid #eee;
}

.gallery-item .caption {
    padding: 15px;
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
    text-align: center;
}

footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}