/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a:hover {
    color: #ff6b00;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

ul {
    list-style: none;
}

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

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

.logo {
    float: left;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    padding: 0;
}

#main-nav {
    float: right;
}

#main-nav ul {
    display: flex;
}

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

#main-nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

#main-nav ul li a:hover:after {
    width: 100%;
}

/* 清除浮动 */
.container:after {
    content: "";
    display: table;
    clear: both;
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #1e2746 0%, #2a3a5f 100%);
    padding: 80px 0;
    color: #fff;
    margin-bottom: 40px;
}

.banner-content {
    width: 60%;
    float: left;
}

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

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

.banner-image {
    width: 40%;
    float: right;
    text-align: right;
}

.banner-image img {
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.search-box button {
    background-color: #ff6b00;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

/* 区块样式 */
.section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.section-header h2 {
    font-size: 28px;
    color: #1e2746;
    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: #ff6b00;
}

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

/* 卡片样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.card {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

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

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 排行榜样式 */
.ranking-list {
    margin-bottom: 30px;
}

.ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ranking-number {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b00;
    width: 40px;
    text-align: center;
}

.ranking-image {
    width: 120px;
    height: 80px;
    margin: 0 20px;
    border-radius: 4px;
    overflow: hidden;
}

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

.ranking-content {
    flex: 1;
}

.ranking-content h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.ranking-content p {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.ranking-tags span {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    margin-top: 5px;
}

/* 专题样式 */
.special-container {
    margin-bottom: 30px;
}

.special-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.special-image {
    flex: 0 0 40%;
    overflow: hidden;
}

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

.special-item:hover .special-image img {
    transform: scale(1.05);
}

.special-content {
    flex: 0 0 60%;
    padding: 30px;
}

.special-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.special-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background-color: #ff6b00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

/* 文章内容样式 */
.article-content {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.article-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #1e2746;
}

.article-content p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

/* 页脚样式 */
#footer {
    background-color: #1e2746;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-logo {
    flex: 0 0 25%;
    padding-right: 30px;
}

.footer-logo p {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-nav, .footer-category, .footer-about {
    flex: 0 0 25%;
    padding-right: 30px;
}

.footer-content h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b00;
}

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

.footer-content ul li a {
    color: #ccc;
}

.footer-content ul li a:hover {
    color: #ff6b00;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 10px;
}

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .card {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .banner-content, .banner-image {
        width: 100%;
        float: none;
        text-align: center;
    }
    
    .banner-image {
        margin-top: 30px;
    }
    
    .card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .special-item {
        flex-direction: column;
    }
    
    .special-image, .special-content {
        flex: 0 0 100%;
    }
    
    .footer-logo, .footer-nav, .footer-category, .footer-about {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    
    #main-nav {
        float: none;
        text-align: center;
    }
    
    #main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #main-nav ul li {
        margin: 5px 10px;
    }
    
    .card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .footer-logo, .footer-nav, .footer-category, .footer-about {
        flex: 0 0 100%;
    }
}
