/* 下载中心页面样式 */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Banner样式 */
.download-banner {
    height: 452px;
    background: url('../img/download-banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.download-banner-content {
    position: relative;
    height: 100%;
}

.download-banner-title {
    font-size: 42px;
    font-weight: normal;
    color: #000000;
    position: absolute;
    top: 165px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

.download-banner-tabs {
    position: absolute;
    top: 347px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 800px;
}

.download-banner-tabs .download-tab {
    font-size: 20px;
    color: #262626;
    background: none;
    border: none;
    padding: 0 20px;
    position: relative;
    cursor: pointer;
}

.download-banner-tabs .download-tab.active {
    font-weight: bold;
}

.download-tab-line {
    width: 800px;
    height: 1px;
    background: #D6D6D6;
    position: absolute;
    top: 395px;
    left: 50%;
    transform: translateX(-50%);
}

.download-tab-indicator {
    height: 5px;
    background: #54a1da;
    position: absolute;
    top: 391px;
    transition: all 0.3s ease;
}

/* 内容区域样式 */
.download-section {
    padding: 0;
    background: #fff;
    min-height: 600px;
}

.section-title {
    text-align: center;
    font-size: 35px;
    color: #0c0c0c;
    margin-bottom: 51px;
    font-weight: normal;
    padding-top: 90px;
}

/* 产品目录样式 */
.catalog-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-item {
    width: 212px;
    height: 393px;
    text-align: center;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 926px;
}

.catalog-cover {
    width: 210px;
    overflow: hidden;
    margin: 1px auto 0;
}

.catalog-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.catalog-item:hover .catalog-cover img {
    transform: scale(1.05);
}

.catalog-name {
    font-size: 21px;
    color: #262626;
    margin-top: auto;
    margin-bottom: 14px;
}

.download-btn {
    display: inline-block;
    width: 128px;
    height: 31px;
    line-height: 29px;
    border: 1px solid #008cd6;
    color: #008cd6;
    text-decoration: none;
    border-radius: 15.5px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.download-btn:hover {
    background: #008cd6;
    color: #fff;
}

/* 产品规格书/使用手册样式 */
.spec-category {
    margin-bottom: 70px;
}

.spec-category:last-child {
    margin-bottom: 211px;
}

.spec-category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 19px;
}

.spec-logo {
    height: 40px;
    width: auto;
}

.spec-category-title {
    font-size: 20px;
    color: #262626;
    font-weight: bold;
}

.spec-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(218.6px, 1fr));
    gap: 16px;
    padding-left: 0;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 218.6px;
    max-width: 100%;
    width: fit-content;
    height: 57px;
    padding-left: 20px;
    padding-right: 20px;
    background: #eeeeee;
    border-radius: 8px;
    text-decoration: none;
    color: #262626;
    font-size: 18px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #e0e0e0;
}

.spec-icon {
    width: 28px;
    height: 28px;
}

/* 软件下载样式 */
.software-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 51px;
}

.software-tab {
    width: 456.5px;
    height: 102px;
    background: #008CD6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.software-tab:hover {
    background: #0077b3;
}

.software-tab.active {
    width: 456.6px;
    height: 116.8px;
    background: url('../img/software-tab-active.png') no-repeat center center;
    background-size: cover;
}

.software-list {
    display: grid;
    grid-template-columns: repeat(2, 683px);
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.software-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 683px;
    height: 81px;
    padding: 0 30px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.software-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.software-icon {
    width: 28px;
    height: 28px;
}

.software-name {
    font-size: 19px;
    color: #262626;
}

.software-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 40px;
    background: #54a1da;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.software-download-btn:hover {
    background: #3d8bc4;
}

/* 分页样式 */
.pagination,
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    background: #fff;
    padding: 20px 0;
}

.pagination a,
.pagination span,
.news-pagination a,
.news-pagination span {
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 4px;
    text-decoration: none;
}

.pagination a:hover,
.news-pagination a:hover {
    background: #f2f2f2;
    color: #000;
}

.pagination .current,
.news-pagination .current {
    background: #f2f2f2 !important;
    color: #000 !important;
    border: none !important;
}

.pagination .prev,
.pagination .next,
.news-pagination .prev,
.news-pagination .next {
    font-size: 12px;
    width: 50px;
    height: 50px;
}

.pagination .prev.disabled,
.pagination .next.disabled,
.news-pagination .prev.disabled,
.news-pagination .next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .dots,
.news-pagination .dots {
    cursor: default;
}

.pagination .prev:hover,
.pagination .next:hover,
.news-pagination .prev:hover,
.news-pagination .next:hover {
    color: #54A1DA;
}

.pagination .page-num {
    font-size: 14px;
}

.pagination .page-num.active {
    background: #54a1da;
    color: #fff;
}

/* Tab内容动画 */
.tab-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

/* 1400px以下H5适配 */
@media (max-width: 1399px) {
    /* Banner - 使用百分比保持比例 */
    .download-banner {
        height: clamp(226px, 32.286vw, 452px);
    }

    .download-banner-title {
        font-size: clamp(21px, 3vw, 42px);
        top: 36.5%;
    }

    .download-banner-tabs {
        width: clamp(340px, 57.143vw, 800px);
        top: 76.8%;
        gap: clamp(5px, 0.714vw, 10px);
        padding: 0;
    }

    .download-banner-tabs .download-tab {
        font-size: clamp(14px, 1.429vw, 20px);
        padding: 0 clamp(8px, 1.429vw, 20px);
    }

    .download-tab-line {
        width: clamp(340px, 57.143vw, 800px);
        height: 1px;
        top: 87.4%;
    }

    .download-tab-indicator {
        height: clamp(2.5px, 0.357vw, 5px);
        top: 86.5%;
    }

    /* 基础容器 - 等比例缩小 */
    .container {
        width: 100%;
        max-width: 1400px;
        padding: 0 clamp(15px, 2vw, 30px);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* 内容区域 - 等比例缩小 */
    .download-section {
        min-height: auto;
    }

    .section-title {
        font-size: clamp(28px, 2.5vw, 35px);
        margin-bottom: clamp(40px, 3.643vw, 51px);
        padding-top: clamp(60px, 6.429vw, 90px);
    }

    /* 产品目录 - 等比例缩小 */
    .catalog-grid {
        gap: clamp(15px, 1.429vw, 20px);
    }

    .catalog-item {
        width: clamp(180px, 15.143vw, 212px);
        height: auto;
        min-height: clamp(320px, 28.071vw, 393px);
        margin-bottom: 20px;
    }

    .catalog-cover {
        width: 100%;
        margin: 1px auto 0;
    }

    .catalog-cover img {
        width: 100%;
        height: auto;
    }

    .catalog-name {
        font-size: clamp(16px, 1.5vw, 21px);
        margin-bottom: clamp(10px, 1vw, 14px);
    }

    .download-btn {
        width: clamp(100px, 9.143vw, 128px);
        height: clamp(26px, 2.214vw, 31px);
        line-height: clamp(24px, 2.071vw, 29px);
        font-size: clamp(14px, 1.143vw, 16px);
        margin-bottom: clamp(10px, 0.857vw, 12px);
    }

    /* 规格书/手册 - 等比例缩小 */
    .spec-category {
        margin-bottom: clamp(50px, 5vw, 70px);
    }

    .spec-category:last-child {
        margin-bottom: clamp(80px, 15.071vw, 211px);
    }

    .spec-category-header {
        gap: clamp(25px, 2.571vw, 36px);
        margin-bottom: clamp(15px, 1.357vw, 19px);
    }

    .spec-logo {
        height: clamp(30px, 2.857vw, 40px);
    }

    .spec-category-title {
        font-size: clamp(16px, 1.429vw, 20px);
    }

    .spec-items {
        grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15.614vw, 218.6px), 1fr));
        gap: clamp(12px, 1.143vw, 16px);
    }

    .spec-item {
        min-width: auto;
        width: 100%;
        height: clamp(45px, 4.071vw, 57px);
        padding: 0 clamp(15px, 1.429vw, 20px);
        font-size: clamp(15px, 1.286vw, 18px);
        gap: clamp(6px, 0.571vw, 8px);
    }

    .spec-icon {
        width: clamp(22px, 2vw, 28px);
        height: clamp(22px, 2vw, 28px);
    }

    /* 软件下载 - 等比例缩小 */
    .software-tabs {
        gap: clamp(15px, 1.429vw, 20px);
        margin-bottom: clamp(40px, 3.643vw, 51px);
        align-items: flex-start;
    }

    .software-tab {
        flex: 1;
        max-width: clamp(320px, 32.643vw, 456.5px);
        width: auto;
        height: clamp(70px, 7.286vw, 102px);
        font-size: clamp(18px, 1.786vw, 25px);
        white-space: nowrap;
        min-width: 0;
    }

    .software-tab.active {
        width: auto;
        height: clamp(85px, 8.343vw, 116.8px);
        background-position: center top;
        background-size: 100% 100%;
    }

    .software-list {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(15px, 1.429vw, 20px);
        margin-top: clamp(40px, 4.286vw, 60px);
        margin-bottom: clamp(30px, 2.857vw, 40px);
    }

    .software-item {
        width: 100%;
        height: auto;
        min-height: clamp(65px, 5.786vw, 81px);
        padding: clamp(15px, 2.143vw, 30px);
        box-sizing: border-box;
    }

    .software-info {
        gap: clamp(10px, 1.071vw, 15px);
    }

    .software-icon {
        width: clamp(22px, 2vw, 28px);
        height: clamp(22px, 2vw, 28px);
    }

    .software-name {
        font-size: clamp(15px, 1.357vw, 19px);
    }

    .software-download-btn {
        width: clamp(100px, 8.929vw, 125px);
        height: clamp(35px, 2.857vw, 40px);
        font-size: clamp(15px, 1.286vw, 18px);
    }

    /* 分页 - 等比例缩小 */
    .pagination,
    .news-pagination {
        gap: clamp(6px, 0.571vw, 8px);
        margin-top: clamp(30px, 2.857vw, 40px);
        padding: clamp(15px, 1.429vw, 20px) 0;
    }

    .pagination a,
    .pagination span,
    .news-pagination a,
    .news-pagination span {
        width: clamp(40px, 3.571vw, 50px);
        height: clamp(40px, 3.571vw, 50px);
        font-size: clamp(18px, 1.571vw, 22px);
    }

    .pagination .prev,
    .pagination .next,
    .news-pagination .prev,
    .news-pagination .next {
        font-size: clamp(10px, 0.857vw, 12px);
        width: clamp(40px, 3.571vw, 50px);
        height: clamp(40px, 3.571vw, 50px);
    }
}

/* 768px以下手机适配 */
@media (max-width: 768px) {
    /* Banner - 使用百分比保持比例 */
    .download-banner {
        height: clamp(180px, 32.286vw, 248px);
    }

    .download-banner-title {
        font-size: clamp(18px, 2.5vw, 24px);
        top: 36.5%;
    }

    .download-banner-tabs {
        width: clamp(280px, 85vw, 600px);
        top: 76.8%;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .download-banner-tabs .download-tab {
        font-size: clamp(11px, 1.8vw, 14px);
        padding: 0 clamp(6px, 1.563vw, 12px);
    }

    .download-tab-line {
        width: clamp(280px, 85vw, 600px);
        height: 1px;
        top: 87.4%;
    }

    .download-tab-indicator {
        height: clamp(2px, 0.357vw, 3px);
        top: 86.5%;
    }

    /* 内容区域 */
    .section-title {
        font-size: 20px;
        padding-top: 30px;
        margin-bottom: 25px;
    }

    /* 产品目录 */
    .catalog-grid {
        gap: 10px;
    }

    .catalog-item {
        width: clamp(140px, 28vw, 212px);
        min-height: 240px;
        margin-bottom: 20px;
    }

    .catalog-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .download-btn {
        width: 90px;
        height: 24px;
        line-height: 22px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* 规格书/手册 */
    .spec-category {
        margin-bottom: 30px;
    }

    .spec-category:last-child {
        margin-bottom: 50px;
    }

    .spec-category-header {
        gap: 15px;
        margin-bottom: 12px;
    }

    .spec-logo {
        height: 28px;
    }

    .spec-category-title {
        font-size: 15px;
    }

    .spec-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .spec-item {
        min-width: auto;
        width: 100%;
        height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }

    .spec-icon {
        width: 20px;
        height: 20px;
    }

    /* 软件下载 */
    .software-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 30px;
        align-items: flex-start;
    }

    .software-tab {
        flex: 1;
        max-width: none;
        width: auto;
        height: 48px;
        font-size: clamp(11px, 3.2vw, 14px);
        white-space: nowrap;
        min-width: 0;
        padding: 0 4px;
    }

    .software-tab.active {
        width: auto;
        height: 56px;
    }

    .software-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
        margin-bottom: 25px;
    }

    .software-item {
        width: 100%;
        max-width: 683px;
        min-height: 60px;
        padding: 12px 15px;
        box-sizing: border-box;
    }

    .software-info {
        gap: 10px;
    }

    .software-icon {
        width: 20px;
        height: 20px;
    }

    .software-name {
        font-size: 14px;
    }

    .software-download-btn {
        width: 80px;
        height: 32px;
        font-size: 14px;
    }

    /* 分页 */
    .pagination,
    .news-pagination {
        gap: 5px;
        margin-top: 25px;
        padding: 10px 0;
    }

    .pagination a,
    .pagination span,
    .news-pagination a,
    .news-pagination span {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .pagination .prev,
    .pagination .next,
    .news-pagination .prev,
    .news-pagination .next {
        font-size: 10px;
        width: 36px;
        height: 36px;
    }
}

/* 480px以下小屏适配 */
@media (max-width: 480px) {
    /* Banner - 使用百分比保持比例 */
    .download-banner {
        height: clamp(140px, 32.286vw, 180px);
    }

    .download-banner-title {
        font-size: clamp(14px, 3.5vw, 18px);
        top: 36.5%;
    }

    .download-banner-tabs {
        width: clamp(260px, 90vw, 400px);
        top: 76.8%;
        gap: clamp(3px, 0.833vw, 5px);
        padding: 0;
    }

    .download-banner-tabs .download-tab {
        font-size: clamp(10px, 2.5vw, 12px);
        padding: 0 clamp(4px, 1.25vw, 8px);
    }

    .download-tab-line {
        width: clamp(260px, 90vw, 400px);
        height: 1px;
        top: 87.4%;
    }

    .download-tab-indicator {
        height: clamp(2px, 0.5vw, 3px);
        top: 86.5%;
    }

    /* 内容区域 */
    .section-title {
        font-size: 18px;
        padding-top: 25px;
        margin-bottom: 20px;
    }

    /* 产品目录 */
    .catalog-grid {
        gap: 8px;
    }

    .catalog-item {
        width: clamp(130px, 40vw, 212px);
        min-height: 280px;
        margin-bottom: 15px;
    }

    .catalog-name {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .download-btn {
        width: 100px;
        height: 28px;
        line-height: 26px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* 规格书/手册 */
    .spec-category {
        margin-bottom: 25px;
    }

    .spec-category:last-child {
        margin-bottom: 40px;
    }

    .spec-category-header {
        gap: 12px;
        margin-bottom: 10px;
    }

    .spec-logo {
        height: 24px;
    }

    .spec-category-title {
        font-size: 14px;
    }

    .spec-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .spec-item {
        min-width: auto;
        width: 100%;
        height: 44px;
        padding: 0 15px;
        font-size: 13px;
    }

    .spec-icon {
        width: 18px;
        height: 18px;
    }

    /* 软件下载 */
    .software-tabs {
        gap: 6px;
        margin-bottom: 25px;
    }

    .software-tab {
        width: auto;
        height: 42px;
        font-size: clamp(10px, 2.8vw, 12px);
        padding: 0 3px;
    }

    .software-tab.active {
        width: auto;
        height: 50px;
    }

    .software-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 25px;
        margin-bottom: 20px;
    }

    .software-item {
        width: 100%;
        max-width: 683px;
        min-height: 55px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .software-info {
        gap: 8px;
    }

    .software-icon {
        width: 18px;
        height: 18px;
    }

    .software-name {
        font-size: 13px;
    }

    .software-download-btn {
        width: 70px;
        height: 30px;
        font-size: 13px;
    }

    /* 分页 */
    .pagination,
    .news-pagination {
        gap: 4px;
        margin-top: 20px;
        padding: 8px 0;
    }

    .pagination a,
    .pagination span,
    .news-pagination a,
    .news-pagination span {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .pagination .prev,
    .pagination .next,
    .news-pagination .prev,
    .news-pagination .next {
        font-size: 9px;
        width: 32px;
        height: 32px;
    }
}
