/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #2c3e50;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #1a252f;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #e74c3c;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e74c3c;
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 特色区域 */
.features {
    padding: 60px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e74c3c;
}

/* 资讯区域 */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 15px;
}

.read-more {
    color: #e74c3c;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* 下载区域 */
.download-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.download-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 下载页面样式 */
.download-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.download-header {
    text-align: center;
    margin-bottom: 40px;
}

.download-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.download-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.version-selector {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.version-selector h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.version-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s;
}

.version-card:hover {
    background-color: #e9ecef;
}

.version-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e74c3c;
}

.version-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.download-steps {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-steps h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.step {
    display: flex;
    margin-bottom: 20px;
}

.step-number {
    background-color: #e74c3c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

/* 资讯列表页样式 */
.news-list {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-list h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: #2c3e50;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.page-btn.active {
    background-color: #e74c3c;
    color: white;
}

.page-btn:hover:not(.active) {
    background-color: #f1f5f9;
}

/* 资讯详情页样式 */
.news-detail {
    padding: 60px 0;
    background-color: white;
}

.news-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.news-header .meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.news-header .meta span {
    margin-right: 15px;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #34495e;
}

.news-body h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-body p {
    margin-bottom: 20px;
}

.news-body ul, .news-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-body li {
    margin-bottom: 10px;
}

.news-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-tags a {
    display: inline-block;
    background-color: #f1f5f9;
    color: #34495e;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.news-tags a:hover {
    background-color: #e74c3c;
    color: white;
}

.related-news {
    margin-top: 60px;
}

.related-news h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* 教程页样式 */
.tutorial-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.tutorial-categories {
    margin-bottom: 50px;
}

.tutorial-categories h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e74c3c;
}

.category-card ul {
    list-style: none;
}

.category-card ul li {
    margin-bottom: 8px;
}

.category-card ul li a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s;
}

.category-card ul li a:hover {
    color: #e74c3c;
}

.popular-tutorials h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.tutorial-list {
    display: grid;
    gap: 30px;
}

.tutorial-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tutorial-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.tutorial-content {
    padding: 20px 20px 20px 0;
}

.tutorial-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tutorial-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.tutorial-content h3 a:hover {
    color: #e74c3c;
}

.tutorial-content .meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.tutorial-content .excerpt {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 15px;
}

/* 常见问题页样式 */
.faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search form {
    display: flex;
}

.faq-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    border-right: none;
}

.faq-search button {
    padding: 0 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
}

.faq-categories {
    margin-bottom: 30px;
}

.faq-categories h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #f1f1f1;
}

.tab-btn.active {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #2c3e50;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    display: none;
    border-top: 1px solid #eee;
}

.faq-answer p, .faq-answer ol, .faq-answer ul {
    margin-bottom: 15px;
}

.faq-answer ol, .faq-answer ul {
    padding-left: 20px;
}

.faq-answer a {
    color: #e74c3c;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .version-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-item {
        grid-template-columns: 1fr;
    }
    
    .tutorial-thumbnail img {
        width: 100%;
        height: auto;
    }
    
    .tutorial-content {
        padding: 20px;
    }
    
    .news-body {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .download-header h1 {
        font-size: 2rem;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
}