/* ========================================
   搜狗输入法官网首页样式
   完全仿照官网设计
   ======================================== */

/* 重置和基础样式 */
.sogou-home {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero区域 - 顶部大图 */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    height: 51vw;
}

.hero-bg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 10vw 20px;
}

.hero-main-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 2px;
}

.hero-main-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.hero-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: #fff;
    color: #4A90E2;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    color: #4A90E2;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-desc {
    text-align: center;
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: block;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
}

.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.download-card p {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 20px;
}

.download-link {
    display: inline-block;
    color: #4A90E2;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-card:hover .download-link {
    transform: translateX(5px);
}

/* 功能特性区域 - 整合版 */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

.feature-card-content {
    padding: 30px;
}

.feature-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card-list li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.feature-card-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #4A90E2;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-style: normal;
    flex-shrink: 0;
}

/* 功能图标区域 */
.icons-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.icons-section .section-title,
.icons-section .section-desc {
    color: #fff;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.icon-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.icon-item:hover {
    transform: translateY(-8px);
}

.icon-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.icon-item p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* 博客区域 */
.blog-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.more-link {
    color: #4A90E2;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.more-link:hover {
    transform: translateX(5px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-info {
    padding: 25px;
}

.blog-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-info h3 a {
    transition: color 0.3s ease;
}

.blog-info h3 a:hover {
    color: #4A90E2;
}

.blog-info p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-date {
    font-size: 13px;
    color: #95a5a6;
}

/* CTA区域 */
.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9) 0%, rgba(53, 122, 189, 0.9) 100%);
    z-index: 1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-cta-large {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #4A90E2;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .hero-main-title {
        font-size: 52px;
    }
    
    .hero-main-subtitle {
        font-size: 18px;
    }
    
    .features-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-main-title {
        font-size: 40px;
    }
    
    .hero-main-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-download-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
    
    .features-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card-image {
        height: 200px;
    }
    
    .feature-card-content {
        padding: 25px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .feature-content,
    .feature-reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .feature-text h2 {
        font-size: 28px;
    }
    
    .icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .cta-content > p {
        font-size: 18px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        min-height: 450px;
        max-height: 550px;
    }
    
    .hero-main-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .hero-main-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-download-btn {
        padding: 10px 28px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-text h2 {
        font-size: 24px;
    }
    
    .icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .icon-item img {
        width: 60px;
        height: 60px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .btn-cta-large {
        padding: 14px 35px;
        font-size: 18px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-num {
        font-size: 36px;
    }
}
