/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

/* 基础样式 */
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #e63946;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #e63946;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    display: flex;
    flex: 0 1 400px;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    height: 40px;
    width: 80px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover {
    background-color: #d62828;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
}

/* 横幅区 */
.banner {
    background-color: #000;
    color: #fff;
    margin-bottom: 30px;
}

.banner-slider {
    display: flex;
    overflow: hidden;
    height: 400px;
}

.banner-item {
    flex: 1 0 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 10;
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-text h2 a {
    color: #fff;
}

.banner-text p {
    font-size: 18px;
    opacity: 0.9;
}

/* 核心内容区 */
.main-content {
    padding: 20px 0 50px;
}

.content-title {
    text-align: center;
    margin-bottom: 40px;
}

.content-title h1 {
    font-size: 28px;
    color: #e63946;
    margin-bottom: 15px;
}

.content-title p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 关键词列表 */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.keyword-list a {
    padding: 8px 15px;
    background-color: #f8f8f8;
    border-radius: 20px;
    font-size: 14px;
}

.keyword-list a:hover {
    background-color: #e63946;
    color: #fff;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e63946;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.card-btn:hover {
    background-color: #d62828;
    color: #fff;
}

/* 内容补充区 */
.content-supplement {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-supplement h2 {
    font-size: 20px;
    color: #e63946;
    margin-bottom: 15px;
}

.content-supplement p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 底部区 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    font-size: 16px;
}

.footer-links a:hover {
    color: #e63946;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

.copyright a {
    color: #e63946;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #e63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    color: #fff;
    font-size: 18px;
}

/* 自适应媒体查询 */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .logo {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-box {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .nav {
        width: 100%;
    }

    .banner-slider {
        height: 300px;
    }

    .banner-text {
        left: 20px;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 250px;
    }

    .content-title h1 {
        font-size: 24px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .banner-slider {
        height: 200px;
    }

    .banner-text {
        left: 15px;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}