/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a:hover {
    color: #e05600;
}

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

ul {
    list-style: none;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    color: #ff6b01;
    margin: 0;
    font-weight: 700;
}

.search-box {
    display: flex;
    margin: 0 20px;
    flex-grow: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ff6b01;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background-color: #ff6b01;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

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

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #ff6b01;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b01;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #ff6b01 0%, #ff9f4a 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

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

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

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #ff6b01;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #ff6b01;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.banner-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 章节标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6b01;
}

.section-header p {
    color: #777;
    font-size: 16px;
}

/* 内容部分通用样式 */
.content-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
/* 精选推荐样式 */
.featured-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.featured-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    position: relative;
    height: 0;
    padding-top: 140%; /* 保持图片比例 */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    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: 15px;
    background-color: #fff;
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #fff3e6;
    color: #ff6b01;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.watch-btn {
    display: block;
    text-align: center;
    background-color: #ff6b01;
    color: #fff;
    padding: 8px 0;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background-color: #e05600;
    color: #fff;
}

/* 内容网格样式 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.content-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 更多按钮样式 */
.more-btn {
    text-align: center;
    margin-top: 30px;
}

.more-btn a {
    display: inline-block;
    padding: 10px 25px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-btn a:hover {
    background-color: #ff6b01;
    color: #fff;
}

/* 排行榜样式 */
.ranking-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ranking-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ranking-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ranking-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    position: relative;
}

.ranking-box h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #ff6b01;
}

.ranking-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ranking-list li:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6b01;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
}

.ranking-list li:nth-child(1) .rank {
    background-color: #ff4500;
}

.ranking-list li:nth-child(2) .rank {
    background-color: #ff6b01;
}

.ranking-list li:nth-child(3) .rank {
    background-color: #ff9f4a;
}

.rank-info {
    flex-grow: 1;
}

.rank-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.rank-info p {
    font-size: 12px;
    color: #777;
}

.ranking-list li img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* 最新更新样式 */
.newest-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.newest-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.newest-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.newest-image {
    width: 100px;
    min-width: 100px;
}

.newest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.newest-content {
    padding: 10px 15px;
    flex-grow: 1;
}

.newest-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newest-content p {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

/* 文章样式 */
.article-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.article-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #ff6b01;
    color: #fff;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-logo {
    margin-bottom: 30px;
    flex: 1 1 300px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff6b01;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2 1 600px;
}

.footer-links-column {
    flex: 1 1 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-links-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b01;
}

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

.footer-links-column ul li a {
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #ff6b01;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .banner-image {
        max-width: 100%;
    }
    
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-box {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .main-nav {
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .featured-grid, .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .ranking-container {
        grid-template-columns: 1fr;
    }
    
    .newest-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .featured-grid, .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-content h3 {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

