/* 对齐修复样式 v2 - 修复功能模块对齐问题并优化布局 */

/* ===== 问题1：核心功能模块对齐修复（移除小图标后） ===== */
.detailed-features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.detailed-feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    padding: var(--space-xl);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.detailed-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

/* 桌面端布局 - 确保文字和图片完美对齐 */
@media (min-width: 768px) {
    .detailed-feature-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
        min-height: 320px;
    }
    
    /* 内容区域优化 */
    .detailed-feature-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-right: var(--space-lg);
    }
    
    /* 图片区域优化 */
    .detailed-feature-image {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding-left: var(--space-lg);
        border-left: 1px solid rgba(229, 231, 235, 0.5);
    }
    
    /* 修复图片和文字的对齐 */
    .feature-img {
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* 标题样式优化 */
    .detailed-feature-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: var(--space-md);
        color: var(--dark-color);
        line-height: 1.3;
        position: relative;
        padding-bottom: var(--space-sm);
    }
    
    .detailed-feature-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }
    
    /* 描述文字优化 */
    .detailed-feature-description {
        color: var(--gray-dark);
        line-height: 1.7;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    /* 图片说明优化 */
    .image-caption {
        margin-top: var(--space-md);
        font-size: 0.875rem;
        color: var(--gray-medium);
        text-align: center;
        font-style: italic;
        padding: var(--space-sm) var(--space-md);
        background: var(--light-color);
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    /* 交替布局优化 */
    .detailed-feature-card:nth-child(even) .detailed-feature-content {
        order: 2;
        padding-right: 0;
        padding-left: var(--space-lg);
    }
    
    .detailed-feature-card:nth-child(even) .detailed-feature-image {
        order: 1;
        padding-left: 0;
        padding-right: var(--space-lg);
        border-left: none;
        border-right: 1px solid rgba(229, 231, 235, 0.5);
    }
}

/* 移动端布局优化 */
@media (max-width: 767px) {
    .detailed-feature-card {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    /* 标题样式 */
    .detailed-feature-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: var(--space-sm);
        color: var(--dark-color);
        position: relative;
        padding-bottom: var(--space-sm);
    }
    
    .detailed-feature-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }
    
    /* 描述文字 */
    .detailed-feature-description {
        color: var(--gray-dark);
        line-height: 1.6;
        margin-bottom: var(--space-lg);
        font-size: 0.9375rem;
    }
    
    /* 图片样式 */
    .feature-img {
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* 图片说明 */
    .image-caption {
        margin-top: var(--space-md);
        font-size: 0.875rem;
        color: var(--gray-medium);
        text-align: center;
        font-style: italic;
        padding: var(--space-sm);
        background: var(--light-color);
        border-radius: var(--radius-md);
    }
}

/* ===== 问题2：头版二维码设计 ===== */
/* 英雄区域二维码容器 */
.hero-qr-container {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
}

.hero-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.hero-qr-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-2xl);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.hero-qr-card.app-store {
    border-color: var(--primary-color);
}

.hero-qr-card.wechat {
    border-color: var(--secondary-color);
}

.hero-qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-qr-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-qr-card.wechat .hero-qr-header i {
    color: var(--secondary-color);
}

.hero-qr-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.hero-qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    border: 3px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    background: var(--white);
    padding: 10px;
}

.hero-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-qr-description {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.hero-qr-action {
    margin-top: var(--space-md);
}

.hero-qr-action .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-qr-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-qr-card {
        padding: var(--space-lg);
    }
    
    .hero-qr-image {
        width: 180px;
        height: 180px;
    }
    
    .hero-qr-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-qr-image {
        width: 160px;
        height: 160px;
    }
    
    .hero-qr-header i {
        font-size: 1.5rem;
    }
    
    .hero-qr-title {
        font-size: 1.125rem;
    }
}

/* ===== 问题3：移除原下载区域样式 ===== */
/* 隐藏原下载区域 */
.download-section {
    display: none !important;
}

/* ===== 通用优化 ===== */
/* 改善垂直间距 */
.detailed-features {
    padding: var(--space-3xl) 0;
}

/* 改善标题对齐 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* 改善响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .detailed-features {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .detailed-feature-card {
        padding: var(--space-lg);
    }
}