* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f6f8f9;
    color: #333;
    line-height: 1.8;
}
a {
    text-decoration: none;
    color: #333;
}
ul {
    list-style: none;
}

/* 头部导航 */
.header {
    width: 100%;
    height: 80px;
    background: #287c40;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.nav a {
    color: #fff;
    margin: 0 12px;
    padding: 7px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}
.nav a.active, .nav a:hover {
    background: #1b5c2b;
}

/* 顶部横幅 */
.banner {
    width: 100%;
    height: 380px;
    background: url(../images/banner.jpg) center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}
.banner h1 {
    font-size: 46px;
    margin-bottom: 16px;
}
.banner p {
    font-size: 20px;
}

/* 主体容器 */
.container {
    width: 1200px;
    margin: 45px auto;
}
.page-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #287c40;
}

/* 卡片布局 */
.card-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2%;
}
.card-item {
    width: 32%;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 25px;
    /* CSS扩展 阴影过渡 */
    transition: all 0.3s ease;
}
.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.card-item h3 {
    font-size: 22px;
    color: #287c40;
    margin-bottom: 14px;
}
.card-item p {
    margin-bottom: 22px;
    color: #555;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 26px;
    background: #287c40;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn:hover {
    background: #1b5c2b;
}

/* 详情内容页 */
.content-box {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    font-size: 16px;
}
.content-box h2 {
    color: #287c40;
    margin-bottom: 20px;
    font-size: 26px;
}
.content-box p {
    margin-bottom: 16px;
}
.back-box {
    margin-top: 30px;
}

/* 页脚 */
.footer {
    width: 100%;
    height: 80px;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 80px;
    margin-top: 60px;
    font-size: 15px;
}

/* 详情页配图通用样式 */
.detail-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    /* CSS扩展过渡效果，满足作业评分要求 */
    transition: transform 0.3s ease;
}
.detail-img:hover {
    transform: scale(1.02);
}