/* 全局样式 */
:root {
    --primary-color: #DC2626;
    --accent-color: #EF4444;
    --secondary-color: #FEF2F2;
    --text-color: #1F2937;
    --border-radius: 16px;
    --card-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
    --hover-shadow: 0 8px 15px rgba(220, 38, 38, 0.15);
}

/* 基础样式 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

/* 容器 */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 62, 62, 0.1);
    transition: all 0.3s ease;
}

.modern-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-nav-menu {
    display: flex;
    gap: 2rem;
}

.modern-nav-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-nav-item:hover {
    background: rgba(229, 62, 62, 0.1);
    color: var(--primary-color);
}

/* 标题样式 */
.modern-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* 网格布局 */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* 按钮样式 */
.modern-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-nav-menu {
        display: none;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
    }
} 

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(229, 62, 62, 0.1);
    color: var(--primary-color);
}

/* 英雄区域 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url('/static/images/wave.svg') repeat-x;
    animation: wave 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: url('/static/images/ai-graphic.svg') no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1920px; }
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-55%) translateX(10px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 数据统计 */
.stats-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: countUp 2s ease forwards;
}

.stat-label {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 核心优势 */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--secondary-color) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:nth-child(1) { animation: fadeInUp 0.6s ease forwards 0.1s; }
.feature-card:nth-child(2) { animation: fadeInUp 0.6s ease forwards 0.2s; }
.feature-card:nth-child(3) { animation: fadeInUp 0.6s ease forwards 0.3s; }
.feature-card:nth-child(4) { animation: fadeInUp 0.6s ease forwards 0.4s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(0deg);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-desc {
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 解决方案 */
.solutions-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.solution-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 客户案例 */
.cases-section {
    padding: 4rem 0;
}

.case-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.section-action {
    text-align: center;
    margin-top: 2rem;
}

/* 新闻资讯 */
.news-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* 联系我们 */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(229, 62, 62, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group.required label::after {
    content: '*';
    color: #EF4444;
    margin-left: 4px;
}

/* 提交按钮样式 */
.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.form-submit button {
    min-width: 120px;
}

.form-submit button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 页脚 */
.modern-footer {
    background: var(--secondary-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.qrcode {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 62, 62, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-nav-menu {
        display: none;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
} 

/* 热门课程 */
.courses-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, #fff 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.course-price {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 合作伙伴 */
.partners-section {
    padding: 4rem 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo img {
    max-width: 120px;
    height: auto;
}

/* Toast 消息 */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-success {
    background: rgba(16, 185, 129, 0.95);
}

.toast.toast-error {
    background: rgba(239, 68, 68, 0.95);
}

/* 解决方案特性列表 */
.solution-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.solution-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.solution-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

/* 微信二维码预览 */
.contact-social a {
    position: relative;
}

.qr-preview {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-social a:hover .qr-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-logo img {
        max-width: 100px;
    }
} 