/* 爱思助手首页专用样式 */

/* ========================================
   SEO 优化
======================================== */
/* SEO H1 标签 - 隐藏但保留 SEO 价值 */
.seo-h1 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ========================================
   Logo 样式
======================================== */
.aisi-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aisi-logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.aisi-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    transition: color 0.3s ease;
}

.aisi-logo-link:hover .aisi-logo-text {
    color: #5568d3;
}

/* ========================================
   Hero 区域 - Banner 轮播（差异化设计）
======================================== */
.hero-section-aisi {
    position: relative;
    width: 100%;
    overflow: visible;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 80px 0;
}

.hero-slides {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(0.95);
}

.hero-slide.active {
    opacity: 1;
    position: relative;
    transform: scale(1);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    min-height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 轮播控制按钮 - 创新设计 */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-prev:hover,
.hero-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-prev {
    left: 40px;
}

.hero-next {
    right: 40px;
}

/* 轮播指示器 - 创新设计 */
.hero-indicators {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.indicator {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #667eea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #9ca3af;
}

.indicator.active {
    background: #667eea;
    width: 10px;
}

.indicator.active::after {
    width: 20px;
    height: 20px;
    background: rgba(102, 126, 234, 0.2);
}

/* ========================================
   产品卡片区域（差异化设计）
======================================== */
.products-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.products-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title-simple {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-simple::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* 卡片悬停效果 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.product-card-purple {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.product-card-purple:hover {
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.product-card-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.product-card-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.product-card-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.product-card-orange:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
}

.product-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.product-card-purple:hover .product-name {
    color: #667eea;
}

.product-card-blue:hover .product-name {
    color: #3b82f6;
}

.product-card-orange:hover .product-name {
    color: #f59e0b;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    min-height: 60px;
    position: relative;
    z-index: 1;
}

.product-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-product-primary {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-product-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-product-primary:hover::before {
    left: 100%;
}

.btn-product-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.product-card-blue .btn-product-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-card-blue .btn-product-primary:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.product-card-orange .btn-product-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.product-card-orange .btn-product-primary:hover {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-product-secondary {
    flex: 1;
    padding: 12px 24px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-product-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-card-blue .btn-product-secondary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.product-card-blue .btn-product-secondary:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-card-orange .btn-product-secondary {
    color: #f59e0b;
    border-color: #f59e0b;
}

.product-card-orange .btn-product-secondary:hover {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ========================================
   新闻资讯区域
======================================== */
.news-section {
    padding: 80px 0;
    background: #fff;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.more-link-simple {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-link-simple:hover {
    color: #5568d3;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.news-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.news-thumb {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #667eea;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-date::before {
    content: "📅 ";
}

.news-views::before {
    content: "👁 ";
}

.no-posts {
    text-align: center;
    color: #999;
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* ========================================
   功能特性区域
======================================== */
.features-section-aisi {
    padding: 80px 0;
    background: #f5f7fa;
}

.section-title-center {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 15px;
}

.section-desc-center {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.features-grid-aisi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item-aisi {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item-aisi:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon-aisi {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.feature-icon-aisi img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-icon-text {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    color: #fff;
}

.icon-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-item-aisi h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-item-aisi p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   下载CTA区域
======================================== */
.cta-section-aisi {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-cta-windows,
.btn-cta-mac {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #fff;
    color: #667eea;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-windows:hover,
.btn-cta-mac:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   用户评价区域
======================================== */
.testimonials-section {
    padding: 80px 0;
    background: #f5f7fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    min-height: 80px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.author-device {
    font-size: 13px;
    color: #999;
}

/* ========================================
   FAQ区域
======================================== */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #667eea;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px 65px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1024px) {
    .hero-prev {
        left: 30px;
    }
    
    .hero-next {
        right: 30px;
    }
    
    .products-section::before,
    .products-section::after {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-card {
        padding: 35px 25px;
    }
    
    .news-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid-aisi {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-stats {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section-aisi {
        padding: 40px 0 60px 0;
    }
    
    .hero-slides {
        min-height: 250px;
    }
    
    .hero-banner-img {
        border-radius: 12px;
        max-height: 300px;
        min-height: 200px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hero-prev {
        left: 15px;
    }
    
    .hero-next {
        right: 15px;
    }
    
    .hero-indicators {
        bottom: -30px;
        padding: 8px 15px;
    }
    
    .section-title-simple {
        font-size: 28px;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .product-card {
        padding: 30px 25px;
    }
    
    .product-icon {
        width: 80px;
        height: 80px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .btn-product-primary,
    .btn-product-secondary {
        padding: 10px 20px;
    }
    
    .testimonials-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .testimonial-text {
        min-height: auto;
    }
    
    .faq-list {
        margin-top: 40px;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 18px 55px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .title-line1 {
        font-size: 28px;
    }
    
    .title-line2 {
        font-size: 32px;
    }
    
    .hero-image {
        max-width: 100%;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-aisi {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-section-aisi {
        padding: 30px 0 50px 0;
    }
    
    .hero-slides {
        padding: 0 10px;
        min-height: 180px;
    }
    
    .hero-slide {
        left: 10px;
        right: 10px;
    }
    
    .hero-banner-img {
        border-radius: 8px;
        max-height: 220px;
        min-height: 150px;
    }
    
    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
    
    .hero-indicators {
        bottom: -25px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active::after {
        width: 16px;
        height: 16px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .features-grid-aisi {
        grid-template-columns: 1fr;
    }
}
