/* 首页样式 */

/* 英雄区域 */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), background var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.feature-text {
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务特色区域 */
.features {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.section-header {
    margin-bottom: var(--space-3xl);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.section-header.text-center {
    text-align: center;
    justify-content: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    flex: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--light-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card .feature-icon {
    font-size: 48px;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--light-text);
}

.feature-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: 8px;
}

/* 成功案例区域 */
.cases {
    padding: var(--space-3xl) 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.case-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
}

/* 给透明图标添加白色圆形背景，提高可见度 */
.case-image img,
.case-image svg {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 16px;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-content {
    padding: var(--space-xl);
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--light-text);
}

.case-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-hover);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.case-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* 数字统计区域 */
.stats {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* AI工具区域 */
.ai-tools {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.tool-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: var(--space-lg);
}

.tool-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--light-text);
}

.tool-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* 价格套餐区域 */
.pricing {
    padding: var(--space-3xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.pricing-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--light-border);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.pricing-price span {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.pricing-period {
    color: #666;
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--secondary-color);
}

.pricing-actions {
    text-align: center;
}

/* 客户评价区域 */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: var(--light-text);
}

.author-company {
    font-size: 14px;
    color: #666;
}

/* 联系CTA区域 */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #1a73e8 0%, #0d62d9 100%);
    color: white;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 数字动画 */
.stat-number {
    transition: all 1s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .features,
    .ai-tools,
    .testimonials {
        background: var(--dark-bg);
    }
    
    .section-subtitle,
    .feature-desc,
    .case-desc,
    .tool-desc {
        color: #aaa;
    }
    
    .feature-card,
    .case-card,
    .tool-card,
    .pricing-card,
    .testimonial-card {
        background: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .case-category {
        background: rgba(26, 115, 232, 0.2);
    }
    
    .pricing-features li {
        border-bottom-color: var(--dark-border);
    }
    
    .hero {
        background: linear-gradient(135deg, #0d62d9 0%, #764ba2 100%);
    }
    
    .stats {
        background: linear-gradient(135deg, #0d62d9, #2a8e4e);
    }
    
    .cta {
        background: linear-gradient(135deg, #0d62d9 0%, #0a56c4 100%);
    }
}