/* 对齐修复样式 - 解决核心功能、客户评价和下载专区问题 */

/* ===== 问题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);
}

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

/* 桌面端布局 - 确保文字和图片在同一水平线 */
@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%;
    }
    
    .detailed-feature-image {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    /* 修复图片和文字的对齐 */
    .feature-img {
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
        margin: 0;
        align-self: center;
    }
    
    .detailed-feature-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: var(--space-md);
        color: var(--white);
        font-size: 1.5rem;
    }
    
    .detailed-feature-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: var(--space-md);
        color: var(--dark-color);
        line-height: 1.3;
    }
    
    .detailed-feature-description {
        color: var(--gray-dark);
        line-height: 1.7;
        font-size: 1rem;
    }
    
    .image-caption {
        margin-top: var(--space-sm);
        font-size: 0.875rem;
        color: var(--gray-medium);
        text-align: center;
        font-style: italic;
    }
    
    /* 交替布局 */
    .detailed-feature-card:nth-child(even) .detailed-feature-content {
        order: 2;
    }
    
    .detailed-feature-card:nth-child(even) .detailed-feature-image {
        order: 1;
    }
}

/* 移动端布局 */
@media (max-width: 767px) {
    .detailed-feature-card {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .detailed-feature-icon {
        width: 50px;
        height: 50px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto var(--space-md);
        color: var(--white);
        font-size: 1.25rem;
    }
    
    .detailed-feature-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: var(--space-sm);
        color: var(--dark-color);
    }
    
    .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;
    }
    
    .image-caption {
        margin-top: var(--space-sm);
        font-size: 0.875rem;
        color: var(--gray-medium);
        text-align: center;
        font-style: italic;
    }
}

/* ===== 问题2：客户评价排版混乱修复 ===== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

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

.testimonial-content {
    flex-grow: 1;
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-dark);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-company {
    font-size: 0.875rem;
    color: var(--gray-medium);
    font-weight: 500;
}

/* 客户评价响应式设计 */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* ===== 问题3：下载专区位置调整和视觉优化 ===== */
/* 移动下载专区到更合适的位置 - 在客户评价之后，联系方式之前 */
.download-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-container {
    position: relative;
    z-index: 1;
}

.download-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-top: var(--space-xl);
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 0;
}

.download-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

.download-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.download-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.download-highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.download-highlight i {
    font-size: 1.5rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.highlight-desc {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.download-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.download-visual-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.download-qr-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.qr-header span {
    font-size: 1.125rem;
    font-weight: 600;
}

.qr-image-enhanced {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.qr-image-enhanced:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-light);
}

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

.qr-caption-enhanced {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.qr-description {
    font-size: 0.75rem;
    opacity: 0.7;
}

.download-platforms {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.platform-item {
    text-align: center;
    transition: transform var(--transition-normal);
}

.platform-item:hover {
    transform: translateY(-5px);
}

.platform-icon {
    width: 140px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.platform-item:hover .platform-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.platform-name {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 下载专区响应式设计 */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .download-highlights {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .download-title {
        font-size: 2rem;
    }
    
    .download-subtitle {
        font-size: 1.125rem;
    }
    
    .download-highlights {
        grid-template-columns: 1fr;
    }
    
    .download-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .download-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .download-platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-icon {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .download-title {
        font-size: 1.75rem;
    }
    
    .qr-image-enhanced {
        width: 180px;
        height: 180px;
    }
}

/* ===== 通用修复 ===== */
/* 确保所有部分都有适当的间距 */
section {
    scroll-margin-top: 80px; /* 为固定导航栏留出空间 */
}

/* 改善按钮对齐 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 改善图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 改善文字可读性 */
p {
    line-height: 1.7;
    margin-bottom: 1em;
}

/* 改善标题层次 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
}

/* 改善卡片阴影和悬停效果 */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}