/* 下载区域样式 */

/* 波浪过渡效果 */
.wave-transition {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: -1px;
    overflow: hidden;
}

.wave-transition svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* 下载区域 */
.download-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 20px 100px;
    position: relative;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题 */
.download-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 48px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.download-subtitle {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin: 0 0 60px;
}

/* 平台网格 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 平台卡片 */
.platform-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0be6e6, #25bcf1, #69ea5a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.platform-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.platform-card:hover::before {
    transform: scaleX(1);
}

/* 平台图标 */
.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.platform-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Android - 绿色背景 */
.platform-card[data-platform="android"] {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.25) 0%, rgba(44, 160, 90, 0.15) 100%);
}

.platform-card[data-platform="android"] .platform-icon {
    background: linear-gradient(135deg, #3ddc84 0%, #2ca05a 100%);
}

.platform-card[data-platform="android"]::before {
    background: linear-gradient(90deg, #3ddc84, #2ca05a);
}

/* iOS - 蓝色背景 */
.platform-card[data-platform="ios"] {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.25) 0%, rgba(0, 81, 213, 0.15) 100%);
}

.platform-card[data-platform="ios"] .platform-icon {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
}

.platform-card[data-platform="ios"]::before {
    background: linear-gradient(90deg, #007aff, #0051d5);
}

/* Windows - 天蓝色背景 */
.platform-card[data-platform="windows"] {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.25) 0%, rgba(0, 90, 158, 0.15) 100%);
}

.platform-card[data-platform="windows"] .platform-icon {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.platform-card[data-platform="windows"]::before {
    background: linear-gradient(90deg, #0078d4, #005a9e);
}

/* Mac - 灰色背景 */
.platform-card[data-platform="mac"] {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.25) 0%, rgba(50, 50, 50, 0.15) 100%);
}

.platform-card[data-platform="mac"] .platform-icon {
    background: linear-gradient(135deg, #555 0%, #222 100%);
}

.platform-card[data-platform="mac"]::before {
    background: linear-gradient(90deg, #555, #222);
}

/* Tablet - 红色背景 */
.platform-card[data-platform="tablet"] {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(238, 90, 111, 0.15) 100%);
}

.platform-card[data-platform="tablet"] .platform-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.platform-card[data-platform="tablet"]::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
}

/* 平台名称 */
.platform-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px;
}

.platform-desc {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 20px;
}

/* 下载按钮 */
.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0be6e6 0%, #25bcf1 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(11, 230, 230, 0.3);
}

.platform-btn:hover {
    background: linear-gradient(135deg, #25bcf1 0%, #0be6e6 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(11, 230, 230, 0.4);
    color: #fff;
}

.platform-btn i {
    font-size: 18px;
}

/* 二维码 */
.qr-code {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.platform-card:hover .qr-code img {
    transform: scale(1.05);
}

.qr-tip {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #95a5a6;
}

/* 平台标签 */
.platform-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #0be6e6, #25bcf1);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(11, 230, 230, 0.3);
}

.platform-badge.coming {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

/* 即将推出 */
.platform-coming {
    opacity: 0.8;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 10px;
}

.coming-soon span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式设计 */
@media only screen and (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .download-title {
        font-size: 36px;
    }
}

@media only screen and (max-width: 640px) {
    .download-section {
        padding: 60px 15px 80px;
    }
    
    .download-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-icon {
        font-size: 36px;
    }
    
    .download-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-card {
        padding: 35px 25px;
    }
    
    .platform-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .platform-name {
        font-size: 22px;
    }
    
    .qr-code img {
        width: 100px;
        height: 100px;
    }
}

/* 动画入场效果 */
.platform-card {
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.platform-card:nth-child(1) { animation-delay: 0.1s; }
.platform-card:nth-child(2) { animation-delay: 0.2s; }
.platform-card:nth-child(3) { animation-delay: 0.3s; }
.platform-card:nth-child(4) { animation-delay: 0.4s; }
.platform-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
