/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body 基本样式 */
body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* 确保页面的最小高度是 100vh */
    display: flex;
    flex-direction: column;
    padding: 20px; /* 添加一些全局的内边距 */
}

/* 统一容器宽度 */
.container {
    width: 85%; /* 更宽的容器 */
    margin: 0 auto;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-bottom: 20px; /* 为标题增加底部间距 */
}

/* 按钮样式 */
button {
    background-color: #1E90FF;
    color: #fff;
    padding: 12px 25px; /* 增加按钮的内边距 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem; /* 增加字体大小 */
}

button:hover {
    background-color: #4682B4;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* 更大的阴影 */
    border-radius: 12px; /* 更圆的角 */
    padding: 25px; /* 增加卡片内边距 */
    margin-bottom: 30px; /* 增加卡片之间的间距 */
}

/* 图片与文字框的布局 */
.card-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px; /* 增加卡片之间的间距 */
}

.card-container .card {
    width: 30%;  /* 设置每个卡片占三分之一的宽度 */
    text-align: center;
    padding: 15px; /* 增加卡片内边距 */
}

.card-container .card img {
    width: 100%;  /* 让图片占满卡片的宽度 */
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px; /* 为图片增加底部间距 */
}

.card-container .card h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    font-weight: bold;
}

.card-container .card p {
    font-size: 1rem;
    color: #555;
    margin-top: 15px;
}

/* Header 样式 */
header {
    background-color: #59C5AA;
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Navigation 样式 */
nav {
    background-color: #59AAC5;
    margin-bottom: 30px; /* 为导航栏和页面内容增加间距 */
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav ul li {
    list-style: none;
    margin: 0 25px; /* 为导航项增加更大的左右间距 */
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

nav ul li a.active {
    color: #1E90FF;
}

/* Footer 样式 */
footer {
    background-color: #59C5AA;
    color: white;
    padding: 40px 0;
    margin-top: auto; /* 让页脚固定在底部 */
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px; /* 增加页脚内各部分之间的间距 */
}

footer .footer-section {
    flex: 1;
    min-width: 250px; /* 增加每个部分的最小宽度 */
    padding: 0 15px;
}

footer .footer-section h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

footer .footer-section ul {
    list-style-type: none;
}

footer .footer-section ul li {
    margin-bottom: 10px; /* 增加列表项之间的间距 */
}

footer .footer-section a {
    text-decoration: none;
    color: white;
}

footer .footer-section a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

footer .footer-section:last-child {
    text-align: right;
}

footer .footer-section p {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        text-align: left;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0; /* 增加导航项之间的垂直间距 */
    }

    .container {
        width: 95%;
    }

    .card-container .card {
        width: 48%;  /* 在小屏幕下显示为两列 */
    }

    footer .footer-section {
        text-align: center; /* 在小屏幕下使页脚内容居中 */
        margin-bottom: 30px;
    }
}
img {
max-width: 100%;
height: auto;
display: block;
}