/* 全局样式 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #ffffff;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--secondary-color);
}

.btn.small {
    padding: 6px 12px;
    font-size: 14px;
}

.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--light-bg);
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
}

/* 渐变框样式 */
.gradient-box {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    height: 300px;
}

.gradient-2 {
    background: linear-gradient(135deg, #FF9800, #F44336);
    height: 250px;
}

.gradient-3 {
    background: linear-gradient(135deg, #2196F3, #673AB7);
    height: 200px;
}

.gradient-4 {
    background: linear-gradient(135deg, #E91E63, #9C27B0);
    height: 200px;
}

.gradient-5 {
    background: linear-gradient(135deg, #009688, #4CAF50);
    height: 200px;
}

.gradient-6 {
    background: linear-gradient(135deg, #FF5722, #FF9800);
    height: 200px;
}

.gradient-7 {
    background: linear-gradient(135deg, #3F51B5, #2196F3);
    height: 120px;
}

.gradient-8 {
    background: linear-gradient(135deg, #607D8B, #455A64);
    height: 120px;
}

.gradient-9 {
    background: linear-gradient(135deg, #795548, #5D4037);
    height: 120px;
}

.gradient-10 {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    height: 100px;
}

.gradient-11 {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    height: 100px;
}

.gradient-12 {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    height: 100px;
}

.gradient-13 {
    background: linear-gradient(135deg, #673AB7, #512DA8);
    height: 100px;
}

.gradient-14 {
    background: linear-gradient(135deg, #3F51B5, #303F9F);
    height: 100px;
}

.gradient-15 {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    height: 100px;
}

.gradient-16 {
    background: linear-gradient(135deg, #03A9F4, #0288D1);
    height: 80px;
}

.gradient-17 {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    height: 80px;
}

.gradient-18 {
    background: linear-gradient(135deg, #009688, #00796B);
    height: 80px;
}

.gradient-19 {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    height: 60px;
}

.gradient-20 {
    background: linear-gradient(135deg, #8BC34A, #689F38);
    height: 60px;
}

.gradient-21 {
    background: linear-gradient(135deg, #CDDC39, #AFB42B);
    height: 60px;
}

.gradient-22 {
    background: linear-gradient(135deg, #FFEB3B, #FBC02D);
    height: 200px;
}

/* 头部样式 */
#header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

#main-nav ul {
    display: flex;
    list-style: none;
}

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

#main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

#main-nav a:hover {
    color: var(--primary-color);
}

/* Banner样式 */
.banner {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

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

.banner-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.banner-buttons {
    display: flex;
    gap: 15px;
}

.banner-image {
    flex: 1;
}

/* 介绍部分样式 */
.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
}

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

.card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.card-content {
    padding: 20px;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

/* 更新列表样式 */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    display: flex;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.update-image {
    width: 120px;
    flex-shrink: 0;
}

.update-content {
    padding: 20px;
    flex: 1;
}

.update-content h3 {
    margin-bottom: 10px;
}

.update-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

/* 分类网格样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.category-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.category-item h3 {
    margin: 15px 0 10px;
}

/* 排行榜样式 */
.ranking-tabs {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-header {
    display: flex;
    background-color: var(--light-bg);
}

.tab-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-item.active {
    background-color: white;
    color: var(--primary-color);
}

.tab-pane {
    display: none;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

.ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.ranking-num {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.ranking-image {
    width: 80px;
    height: 80px;
    margin: 0 20px;
}

.ranking-info {
    flex: 1;
}

.ranking-info h3 {
    margin-bottom: 5px;
}

.ranking-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--light-text);
    margin-top: 10px;
}

/* 阅读指南样式 */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.guide-icon {
    width: 60px;
    flex-shrink: 0;
}

.guide-text {
    flex: 1;
}

.guide-text h3 {
    margin-bottom: 10px;
}

/* 关于我们样式 */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

/* 文章列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.article-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

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

.footer-logo h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.footer-links-column h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links-column ul {
    list-style: none;
}

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

.footer-links-column a {
    color: #ccc;
}

.footer-links-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.footer-info p {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    background-color: #444;
    color: white;
    border-radius: var(--radius);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner .container,
    .intro-content,
    .about-content {
        flex-direction: column;
    }
    
    .banner-content,
    .intro-text,
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    #main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #main-nav li {
        margin: 5px 10px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .update-item {
        flex-direction: column;
    }
    
    .update-image {
        width: 100%;
        height: 120px;
    }
    
    .guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .guide-icon {
        margin-bottom: 15px;
    }
    
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .ranking-num {
        width: 30px;
    }
    
    .ranking-image {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .card-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
