/* 下载页面专用样式 */

/* Banner区域 */
.download-banner {
    margin-top: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-banner .banner-image {
    width: 1200px;
    height: 300px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.download-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}


/* 下载列表区域 */
.download-main {
    padding: 0 0 60px 0;
    background-color: transparent;
    position: relative;
}

.download-main > * {
    position: relative;
    z-index: 1;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

/* 下载项 */
.download-item {
    display: flex;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 缩略图 */
.download-thumbnail {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

.download-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.download-item:hover .download-thumbnail img {
    transform: scale(1.05);
}

/* 内容区域 */
.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.download-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0 0 25px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下载按钮 */
.download-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #5BA0F2 0%, #4A90E2 50%, #357ABD 100%);
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    align-self: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.download-btn::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;
    z-index: 1;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 6px 6px 0 0;
    pointer-events: none;
    z-index: 1;
}

.download-btn:hover {
    background: linear-gradient(135deg, #6BB0FF 0%, #5BA0F2 50%, #4A90E2 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(74, 144, 226, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 8px rgba(74, 144, 226, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2A6AA8 100%);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .download-banner {
        margin-top: 0;
    }

    .download-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 200px;
    }


    .download-main {
        padding: 0 0 40px 0;
    }

    .download-item {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .download-thumbnail {
        width: 100%;
        height: 200px;
    }

    .download-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .download-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .download-btn {
        width: 100%;
        padding: 14px 40px;
    }

}

@media (max-width: 480px) {
    .download-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 150px;
    }

    .download-main {
        padding: 0 0 30px 0;
    }

    .download-item {
        padding: 15px;
    }

    .download-thumbnail {
        height: 160px;
    }

    .download-title {
        font-size: 18px;
    }

    .download-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .download-btn {
        font-size: 15px;
        padding: 12px 30px;
    }
}
