/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ecf0f1;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #34495e;
    color: #fff;
}

/* 轮播区域 */
.banner {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    padding: 80px 0;
    color: #fff;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    flex: 1;
    padding-right: 40px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #c0392b;
}

.banner-image {
    flex: 1;
    max-width: 500px;
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
}

.bg-light {
    background-color: #ecf0f1;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    color: #fff;
}

/* 文章样式 */
.article-container {
    margin-bottom: 40px;
}

.featured-article {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.featured-article .article-image,
.featured-article .article-content {
    flex: 1;
}

.featured-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article .article-content {
    padding: 30px;
}

.featured-article .article-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.featured-article .article-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.full-width-article {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.full-width-article h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.full-width-article p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo p:first-child {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-logo p:last-child {
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #bdc3c7;
}

.footer-links-column ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .search-box {
        margin: 0 auto;
    }
    
    .featured-article {
        flex-direction: column;
    }
    
    .featured-article .article-image {
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}