/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 配色变量 */
:root {
    --color-brights: #6DD8D0;
    --color-joyful: #A6E6AD;
    --color-refresh: #F9E28D;
    --color-warmth: #F38181;
    --color-vibrant: #A685E2;
    --color-gradient1: #A6F6FF;
    --color-gradient2: #F9E28D;
    --color-gradient3: #F38181;
    --color-gradient4: #D0A6F3;
    --color-gradient5: #81B5F3;
    --color-text: #333333;
    --color-background: #FFFFFF;
    --color-background-alt: #F8F9FA;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-vibrant);
    color: white;
    border: 2px solid var(--color-vibrant);
}

.btn-primary:hover {
    background-color: #8F6DC9;
    border-color: #8F6DC9;
}

.btn:not(.btn-primary) {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn:not(.btn-primary):hover {
    background-color: var(--color-background-alt);
}

/* 导航栏样式 */
nav {
    background-color: var(--color-background);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-vibrant);
    white-space: nowrap;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-vibrant);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--color-gradient1), var(--color-gradient2));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,192C672,181,768,139,864,133.3C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,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"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--color-text), var(--color-vibrant));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 免费课程样式 */
.free-course {
    padding: 100px 0;
}

.course-card {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-info {
    flex: 1;
    padding: 50px;
    min-width: 300px;
}

.badge {
    display: inline-block;
    background-color: var(--color-joyful);
    color: var(--color-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.course-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-vibrant);
}

.course-info p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-text);
}

.course-image {
    flex: 1;
    background: linear-gradient(135deg, var(--color-brights), var(--color-joyful));
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 课程类别样式 */
.course-categories {
    padding: 100px 0;
    background-color: var(--color-background-alt);
}

.course-categories .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--color-background);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.category-card:nth-child(1) {
    border-top: 5px solid var(--color-brights);
}

.category-card:nth-child(2) {
    border-top: 5px solid var(--color-refresh);
}

.category-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-vibrant);
}

.category-card p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-text);
}

/* 学员评价样式 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-background), var(--color-background-alt));
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--color-vibrant);
}

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

.testimonial-card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease;
}

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

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author p {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 16px;
}

.testimonial-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 常见问题样式 */
.faq {
    padding: 100px 0;
    background-color: var(--color-background-alt);
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--color-vibrant);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--color-vibrant), var(--color-gradient4));
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,96L48,128C96,160,192,224,288,229.3C384,235,480,181,576,165.3C672,149,768,171,864,186.7C960,203,1056,213,1152,181.3C1248,149,1344,75,1392,37.3L1440,0L1440,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"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.footer-content {
    position: relative;
    z-index: 1;
}

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

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

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .course-info {
        padding: 40px;
    }
    
    .category-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 8px 0;
    }
    
    .logo a {
        font-size: 20px;
    }

    nav .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        display: none;
        gap: 15px;
    }
    
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    /* 小红书板块响应式 */
    .testimonials h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .testimonial-author p {
        font-size: 14px;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .faq h2 {
        font-size: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .course-info,
    .category-card {
        padding: 30px;
    }
    
    .course-info h2 {
        font-size: 28px;
    }
    
    .category-card h3 {
        font-size: 24px;
    }
}