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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* padding-top: 130px; /* 添加顶部内边距，避免内容被固定导航栏遮挡 */
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.bg-light {
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 20px;
    margin-right: 10px;
}

.logo h2 {
    color: #3498db;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

.language-switch {
    margin-left: 20px;
}

#language-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* CTA横幅样式 - 优化以确保文案和按钮在同一行 */
.cta-banner {
    padding: 15px 0;
    text-align: center;
    background-color: #f8f9fa;
    position: sticky;
    top: 70px; /* 紧接在导航栏下方 */
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-banner h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #333;
    flex: 1;
    min-width: 300px;
}

.cta-banner .btn {
    margin: 0;
    flex: 0 0 auto;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.hero-container h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 信任指标 */
.trust-indicators {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    margin: 0 20px;
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #f1c40f;
}

.trust-label {
    font-size: 1rem;
    color: #ecf0f1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 关于内容 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.feature-item p {
    color: #7f8c8d;
}

/* 教程部分 */
.tutorial-content h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
}

.tutorial-content ol,
.tutorial-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

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

.tutorial-content ol li strong {
    color: #3498db;
}

/* 定义价格卡片容器 */
.pricing-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* 确保卡片在同一排显示 */
}

.pricing-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 23%; /* 根据需要调整宽度 */
    padding: 20px;
    text-align: center;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
}

.pricing-card li {
    margin: 5px 0;
}

.pricing-card button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pricing-card button:hover {
    background-color: #2980b9;
}

.most-popular span {
    background-color: #3498db;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pricing-card .price span {
    font-size: 0.8em;
    vertical-align: super;
}

.pricing-card .feature-highlight {
    color: #f39c12;
    font-weight: bold;
}

/* CTA部分 */
.cta-section {
    background: linear-gradient(135deg, #3498db, #e74c3c);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-section .btn {
    background: white;
    color: #e74c3c;
}

.cta-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* 功能特点 */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: #3498db;
    margin-bottom: 15px;
}

/* 博客文章样式 */
.blog-post-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.blog-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
}

.blog-post-meta span::before {
    margin-right: 5px;
}

.blog-post-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-body h2 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.blog-post-body h3 {
    color: #3498db;
    margin: 25px 0 10px;
    font-size: 1.5rem;
}

.blog-post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-post-body ul, 
.blog-post-body ol {
    margin: 20px 0 20px 30px;
}

.blog-post-body li {
    margin-bottom: 10px;
}

.tip-box, .best-practices {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.tip-box h3, .best-practices h3 {
    margin-top: 0;
    color: #2c3e50;
}

.tip-box ul, .best-practices ul {
    margin: 15px 0 0 20px;
}

/* 资源详情样式 */
.resource-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.resource-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.resource-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.resource-meta span {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
}

.resource-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: auto;
    display: block;
}

.resource-body h2 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.resource-body h3 {
    color: #3498db;
    margin: 25px 0 10px;
    font-size: 1.5rem;
}

.resource-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.resource-body ul, 
.resource-body ol {
    margin: 20px 0 20px 30px;
}

.resource-body li {
    margin-bottom: 10px;
}

/* 相关内容推荐 */
.related-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-content-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s;
}

.related-content-item:hover {
    transform: translateY(-5px);
    background: #e8f4fc;
}

.related-content-item h4 {
    color: #3498db;
    margin-bottom: 10px;
}

.related-content-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 用户评价 */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

/* 价格 */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #eee;
    position: relative;
}

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

.pricing-card.featured {
    border-color: #3498db;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #7f8c8d;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: 20px;
    width: 100%;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    background: white;
    padding: 20px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    background: #f8f9fa;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-container h1 {
        font-size: 2.5rem;
    }
    
    .hero-container h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    
    .nav-menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        margin: 10px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1) translateY(-10px);
    }
}

/* 博客列表样式 */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-post-content {
    padding: 25px;
}

.blog-post-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.blog-post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-post-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 资源列表样式 */
.resource-category {
    margin-bottom: 50px;
}

.resource-category h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

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

.resource-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.resource-item h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-item p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.pagination .btn {
    padding: 10px 20px;
}

.current-page {
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}
