/* Index页面优化样式 - 从内联样式提取 */

/* 核心功能卡片样式 */
.core-feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.core-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.core-feature-card:hover::before {
    transform: scaleX(1);
}

.core-feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15);
}

/* AI功能卡片 */
.ai-feature .feature-icon-wrapper {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.ai-feature:hover {
    border-color: rgba(40, 167, 69, 0.4);
}

/* SEO功能卡片 */
.seo-feature .feature-icon-wrapper {
    background: linear-gradient(135deg, #20c997, #28a745);
}

.seo-feature:hover {
    border-color: rgba(32, 201, 151, 0.4);
}

/* 移动功能卡片 */
.mobile-feature .feature-icon-wrapper {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.mobile-feature:hover {
    border-color: rgba(40, 167, 69, 0.4);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.core-feature-card:hover .feature-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.feature-description {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.highlight-tag {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.highlight-tag:hover {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #0f5132;
    transform: translateY(-2px);
}

.feature-action-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.feature-action-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* DeepSeek展示区域 */
.deepseek-showcase {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 20px;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
}

.deepseek-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.deepseek-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.deepseek-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.deepseek-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.deepseek-feature i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.deepseek-feature span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 使用场景展示样式 */
.use-case-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.use-case-card:hover::before {
    transform: scaleX(1);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.25);
    transition: all 0.3s ease;
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.35);
}

.use-case-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.use-case-content p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.use-case-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(40, 167, 69, 0.3);
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #0f5132;
    transform: translateY(-1px);
}

/* 技术特色样式 */
.tech-feature-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-feature-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

/* Newsletter 订阅区域样式 - 专业版 */
.newsletter-subscription-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    color: white;
    box-shadow: 
        0 20px 60px rgba(40, 167, 69, 0.4),
        0 8px 32px rgba(32, 201, 151, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-subscription-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 26px;
    z-index: -1;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.newsletter-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    flex: 0 0 auto;
    min-width: 320px;
    text-align: center;
}

.newsletter-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    color: #28a745;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-weight: 800;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 200px;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.newsletter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #28a745;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.newsletter-privacy {
    text-align: center;
    margin-top: 1.5rem;
}

.newsletter-privacy a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.newsletter-privacy a:hover {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* 精致留言展示区域样式 */
.elegant-testimonials {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    border-radius: 16px;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
    margin: 2rem 0;
}

.elegant-testimonials::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2328a745" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%2328a745" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%2328a745" opacity="0.03"/><circle cx="10" cy="50" r="0.5" fill="%2328a745" opacity="0.03"/><circle cx="90" cy="30" r="0.5" fill="%2328a745" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 0 2rem 0 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 2;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    width: 320px;
    flex: 0 0 320px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.2);
}

.testimonial-card:hover::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
    position: relative;
    padding-left: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-height: none;
}

.testimonial-author {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(40, 167, 69, 0.1);
    min-height: 60px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.default-avatar {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 1.2rem;
}

.author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-email {
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 跑马灯滚动动画 */
.testimonials-scroll.auto-scroll {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 暂停滚动 */
.testimonials-scroll:hover {
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .testimonial-card {
        min-height: 260px;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-text {
        margin-bottom: 0;
    }
    
    .newsletter-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-description {
        font-size: 1.1rem;
    }
    
    .newsletter-form {
        min-width: 100%;
    }
    
    .newsletter-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .testimonial-card {
        min-height: 240px;
        min-width: 280px;
    }
    
    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .testimonials-scroll {
        padding: 0 1rem;
    }
    
    .core-feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .highlight-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .deepseek-title {
        font-size: 1.8rem;
    }
    
    .deepseek-features {
        gap: 1rem;
    }
    
    .use-case-card {
        padding: 1.5rem;
    }
    
    .use-case-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .use-case-content h4 {
        font-size: 1.1rem;
    }
    
    .use-case-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .newsletter-subscription-card {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    .newsletter-btn {
        padding: 1rem 2.2rem;
        font-size: 1rem;
        border-radius: 40px;
        min-width: 160px;
    }
    
    .newsletter-content {
        gap: 1.5rem;
    }
    
    .testimonial-card {
        min-height: 220px;
        min-width: 260px;
    }
    
    .author-avatar {
        width: 28px;
        height: 28px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .use-case-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .use-case-icon {
        width: 45px;
        height: 45px;
    }
}

/* 其他通用样式 */
.benefit-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.benefit-item p {
    color: #2d3748 !important;
    font-weight: 600;
}

/* SEO优化样式 */
.feature-section h3 {
    color: #28a745;
    font-weight: 600;
}

.project-intro p {
    line-height: 1.6;
    color: #495057;
}

.project-intro .lead {
    font-size: 1.1rem;
    font-weight: 500;
}
