/* 全局样式 */
:root {
    --primary-color: #3066BE;
    --secondary-color: #6D9DC5;
    --accent-color: #F46036;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --section-spacing: 60px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 内容中心Banner */
.content-banner {
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.content-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.content-banner p {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
}

/* 主要内容区 */
.content-main {
    padding: 50px 0;
}

/* 选项卡导航修改为普通导航 */
.category-nav {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--medium-gray);
}

.category-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.category-nav li {
    margin-right: 10px;
    margin-bottom: -2px;
}

.category-nav a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.category-nav li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.category-nav a:hover {
    color: var(--primary-color);
}

/* 内容区域 */
.content-section {
    position: relative;
}

/* 分类介绍 */
.category-intro {
    text-align: center;
    margin-bottom: 30px;
}

.category-intro h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-intro p {
    font-size: 18px;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* 精选文章区 */
.featured-articles {
    display: flex;
    margin-bottom: var(--section-spacing);
    gap: 25px;
    min-height: 500px;
}

.featured-main {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.featured-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: space-between;
}

.featured-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-card.large .card-image {
    height: 490px;
}

.featured-card.small .card-image {
    height: 200px;
}

.card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-card.large h3 {
    font-size: 24px;
    margin: 0 0 15px;
    line-height: 1.3;
}
.featured-card.large h3 span{
    font-size: 14px;
    color: #fff;
    background-color: #F46036;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
}
.featured-card.small h3 {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card.small h3 span{
    font-size: 14px;
    color: #fff;
    background-color: #2365e9;
    padding: 2px 10px;
    border-radius: 5px;
}
.excerpt {
    color: var(--dark-gray);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.date {
    margin-right: 20px;
}

.views:before {
    content: '👁️';
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 8px;
}

/* 最新文章区 */
.latest-articles {
    margin-bottom: var(--section-spacing);
}

.section-title {
    margin-bottom: 30px;
    position: relative;
}
.section-title:after{
    position: static;
}
.section-title h2 {
    font-size: 28px;
    margin: 0;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 文章卡片 */
.article-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 14px;
}

.article-date {
    margin-right: 20px;
}

.article-views:before {
    content: '👁️';
    margin-right: 5px;
}

.article-desc {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-grow: 1;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .featured-articles {
        flex-direction: column;
        min-height: auto;
    }
    
    .featured-side {
        flex-direction: row;
    }
    
    .featured-card.small {
        flex: 1;
        height: 350px;
    }
    
    .featured-card.small .card-image {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .content-banner {
        padding: 60px 0;
    }
    
    .content-banner h1 {
        font-size: 40px;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card.large .card-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .content-banner {
        padding: 50px 0;
    }
    
    .content-banner h1 {
        font-size: 36px;
    }
    
    .featured-side {
        flex-direction: column;
    }
    
    .category-nav a {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .content-banner {
        padding: 40px 0;
    }
    
    .content-banner h1 {
        font-size: 30px;
    }
    
    .content-banner p {
        font-size: 16px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card.large h3 {
        font-size: 20px;
    }
    
    .category-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .category-nav ul {
        flex-wrap: nowrap;
        width: auto;
    }
    
    .category-nav li {
        flex: 0 0 auto;
    }
}
