/* ============================================
   首页样式
   ============================================ */

/* Hero 区 */
.home-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-description {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 28px;
    background: #1A91F0;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(26, 145, 240, 0.3);
}

.btn-primary:hover {
    background: #0d7cd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 145, 240, 0.4);
    color: #fff;
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: #1a202c;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #94a3b8;
    background: rgba(0, 0, 0, 0.02);
    color: #1a202c;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.trust-badge {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-demo-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 核心功能快速入口区 */
.home-features {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin: 0 0 60px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.feature-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.feature-link {
    color: #1A91F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.feature-link:hover {
    color: #0d7cd6;
}

/* 用户痛点解决与效果展示区 */
.home-solutions {
    padding: 80px 0;
    background: #f8fafc;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.solution-item:last-child {
    margin-bottom: 0;
}

.solution-item.image-left {
    grid-template-columns: 1fr 1fr;
}

.solution-item.image-right {
    grid-template-columns: 1fr 1fr;
}

.solution-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.solution-description {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.solution-advantages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-advantages li {
    font-size: 16px;
    color: #475569;
    padding-left: 24px;
    position: relative;
}

.solution-advantages li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1A91F0;
    font-weight: bold;
    font-size: 20px;
}

.solution-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.solution-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 用户见证与信任背书区 */
.home-testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
    margin-bottom: 20px;
}

.testimonial-avatar img,
.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.testimonial-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 14px;
    color: #64748b;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.trust-badge-item {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* 核心资源引导区 */
.home-resources {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.resources-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.resources-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.resources-description {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

.resources-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resources-form input[type="email"] {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.resources-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.resources-form .btn-primary {
    background: #1A91F0;
    border: none;
    cursor: pointer;
}

.resources-note {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* FAQ 常见问题区 */
.home-faq {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #1A91F0;
}

.faq-question i {
    transition: transform 0.3s;
    color: #94a3b8;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 16px;
}

.faq-answer p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* 博客文章区域 */
.home-blogs {
    padding: 80px 0;
    background: #f8fafc;
}

.blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all-link {
    color: #1A91F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: #0d7cd6;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-category {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: #1A91F0;
}

.blog-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-date {
    font-size: 12px;
    color: #94a3b8;
}

.blogs-subscribe {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subscribe-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 20px 0;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .solution-item.image-left .solution-image {
        order: -1;
    }
    
    .resources-content {
        grid-template-columns: 1fr;
    }
    
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-title {
        font-size: 24px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form .btn-primary {
        width: 100%;
    }
}
