/* Base styles */
body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f0f8ff; /* Light blue background */
}

/* Header styles */
header {
    background-color: #4682b4; /* Steel blue */
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #5f9ea0; /* Cadet blue */
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #4682b4;
    border-bottom: 2px solid #4682b4;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #4682b4;
    color: white;
    margin-top: 2rem;
}

/* Link styles */
a {
    color: #1e90ff; /* Dodger blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 图片行容器 */
.image-row {
    display: flex;
    justify-content: space-between; /* 均匀分布 */
    gap: 20px; /* 图片间距 */
    margin: 25px 0;
    padding: 15px 0;
    overflow: hidden; /* 防止内容溢出 */
}

/* 单个图片样式 */
.image-row img {
    flex: 1; /* 等分容器宽度 */
    min-width: 0; /* 修复flex布局的溢出问题 */
    max-width: 30%; /* 控制最大宽度 */
    height: 250px; /* 固定高度 */
    object-fit: cover; /* 保持比例填充容器 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.image-row img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .image-row {
        flex-wrap: wrap; /* 小屏幕换行 */
        justify-content: center;
    }
    
    .image-row img {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin-bottom: 15px;
    }
}