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

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

a {
    text-decoration: none;
    color: #3D5AFE;
    transition: color 0.3s ease;
}

a:hover {
    color: #304FFE;
}

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

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

/* 渐变框代替图片 */
.gradient-box {
    border-radius: 8px;
    background: linear-gradient(135deg, #3D5AFE, #304FFE, #536DFE);
    position: relative;
    overflow: hidden;
}

.gradient-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%);
    background-size: 15px 15px;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-img {
    width: 100%;
    height: 200px;
}

.module-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF5252, #FF1744);
}

.showcase-img {
    width: 100%;
    height: 250px;
}

.article-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #536DFE, #3D5AFE, #8C9EFF);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.comparison-chart {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #3D5AFE, #536DFE);
}

.path-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #3D5AFE;
    color: #fff;
    box-shadow: 0 4px 6px rgba(61, 90, 254, 0.2);
}

.btn-primary:hover {
    background-color: #304FFE;
    box-shadow: 0 6px 8px rgba(61, 90, 254, 0.3);
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #3D5AFE;
    border: 2px solid #3D5AFE;
}

.btn-secondary:hover {
    background-color: #f0f3ff;
    color: #304FFE;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.logo svg {
    margin-right: 10px;
}

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

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

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

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 主横幅样式 */
.hero-banner {
    background: linear-gradient(135deg, #3D5AFE, #536DFE);
    color: #fff;
    padding: 80px 0 0;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-banner .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

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

.hero-image {
    width: 45%;
}

.hero-image .gradient-box {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #536DFE, #8C9EFF);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f8f9fa' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,176C960,192,1056,192,1152,176C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

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

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

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

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    margin: 15px 0 10px;
    color: #333;
}

/* 核心功能样式 */
.features-section {
    background-color: #f0f3ff;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-item .feature-img {
    flex: 0 0 40%;
    border-radius: 0;
}

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

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

/* 教程内容样式 */
.tutorials-content {
    display: flex;
    gap: 40px;
}

.tutorial-modules {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.module-header h3 {
    margin-left: 15px;
}

.module-list {
    list-style-position: inside;
    margin-left: 10px;
}

.module-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.module-list li::before {
    content: '•';
    color: #3D5AFE;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.learning-path {
    flex: 2;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.learning-path h3 {
    margin-bottom: 20px;
    text-align: center;
}

.path-diagram {
    margin-bottom: 20px;
}

/* 制作技巧样式 */
.techniques-section {
    background-color: #f0f3ff;
}

.techniques-content {
    margin-bottom: 40px;
}

.technique-article {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.technique-article h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.techniques-showcase {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.showcase-header {
    text-align: center;
    margin-bottom: 30px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.showcase-item {
    text-align: center;
}

.showcase-item p {
    margin-top: 10px;
    font-weight: 500;
}

/* 高级渲染样式 */
.advanced-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.rendering-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.rendering-feature {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rendering-feature .feature-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.performance-comparison {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.performance-comparison h3 {
    margin-bottom: 20px;
}

.chart-caption {
    margin-top: 15px;
    color: #666;
}

/* 避坑指南样式 */
.avoid-mistakes-section {
    background-color: #f0f3ff;
}

.mistakes-content {
    margin-bottom: 40px;
}

.mistake-article {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mistake-article h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.tips-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tips-container h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

.tip-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    margin-right: 15px;
}

.tip-content h4 {
    margin-bottom: 5px;
}

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

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

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

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

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 1000px;
}

/* 文章部分样式 */
.articles-section {
    background-color: #f0f3ff;
}

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

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.footer-column a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-contact h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-contact p {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #3D5AFE;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #3D5AFE;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright p {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-extra p {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-banner .subtitle {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .hero-banner .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 30px;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .feature-item, .feature-item:nth-child(even) {
        flex-direction: column;
    }
    
    .feature-item .feature-img {
        height: 200px;
    }
    
    .tutorials-content {
        flex-direction: column;
    }
    
    .tutorial-modules {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
