/* ========================================
   下载页样式
   ======================================== */

/* 下载页顶部区域 */
.download-hero {
    width: 100%;
    height: 600px;
    background-image: url('../img/dss.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.download-hero-content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-hero-title {
    font-size: 60px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

/* 下载列表区域 */
.download-products {
    background-color: #F5F5F5;
    padding: 60px 30px 80px 30px;
}

.download-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* 搜索框容器 */
.download-search-wrapper {
    position: relative;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框 */
.download-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 6px;
    padding: 12px 24px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-search-box:hover {
    border-color: #4B1C87;
    box-shadow: 0 2px 8px rgba(75, 28, 135, 0.1);
}

.download-search-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.download-search-box.active .download-search-arrow {
    transform: rotate(90deg);
}

.download-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333333;
    background: transparent;
}

.download-search-input::placeholder {
    color: #999999;
}

.download-search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* 下拉菜单 */
.download-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 10;
}

.download-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #F5F5F5;
}

.download-dropdown-item:last-child {
    border-bottom: none;
}

.download-dropdown-item:hover {
    background: #F5F5F5;
    color: #4B1C87;
    padding-left: 28px;
}

/* 下载产品网格 - 4列布局 */
.download-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
}

/* 下载产品卡片 */
.download-product-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.download-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(75, 28, 135, 0.3);
}

/* 下载产品图片 */
.download-product-image {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.download-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下载产品标题 */
.download-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    text-align: center;
}

/* 下载产品副标题 */
.download-product-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #999999;
    margin: 0 0 12px 0;
    text-align: center;
}

/* 下载图标 */
.download-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.download-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.download-product-card:hover .download-icon svg {
    transform: translateY(2px);
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .download-hero {
        height: 500px;
    }
    
    .download-hero-title {
        font-size: 48px;
    }
    
    .download-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式设计 - 手机端 */
@media screen and (max-width: 768px) {
    .download-hero {
        height: 128px;
        background-image: url('../img/dss.png');
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    
    .download-hero-content {
        padding: 0 20px;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    
    .download-hero-title {
        font-size: 20px;
        font-weight: 700;
    }
    
    .download-products {
        padding: 40px 20px;
    }
    
    /* 搜索框手机端样式 */
    .download-search-wrapper {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .download-search-box {
        padding: 10px 20px;
    }
    
    .download-search-input {
        font-size: 14px;
    }
    
    .download-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .download-product-card {
        padding: 20px 10px;
    }
    
    .download-product-title {
        font-size: 14px;
        font-weight: 700;
    }
    
    .download-product-subtitle {
        font-size: 10px;
        font-weight: 500;
    }
}

/* 响应式设计 - 小屏手机 */
@media screen and (max-width: 480px) {
    .download-hero {
        height: 128px;
        background-image: url('../img/dss.png');
        padding-top: 0;
        align-items: center;
        justify-content: center;
    }
    
    .download-hero-title {
        font-size: 20px;
        font-weight: 700;
    }
    
    .download-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .download-products {
        padding: 30px 15px;
    }
    
    .download-product-card {
        padding: 20px 10px;
    }
    
    .download-product-title {
        font-size: 14px;
        font-weight: 700;
    }
    
    .download-product-subtitle {
        font-size: 10px;
        font-weight: 500;
    }
}

