/* Tencent Cloud style product module */
.tc-product-module {
    padding: 56px 0 64px;
    background: #fff;
}

.tc-product-module .tc-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.tc-product-module .tc-product-header-main {
    flex: 1;
    min-width: 0;
}

.tc-product-module .tc-product-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
}

.tc-product-module .tc-product-subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.tc-product-module .tc-product-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.tc-product-module .tc-product-more:hover {
    color: #0052d9;
}

.tc-product-module .tc-product-more i {
    font-size: 12px;
}

.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories.tc-product-tabs,
.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories,
.tc-product-module .systemproduct-categories.tc-product-tabs,
.tc-product-module .systemproduct-categories,
.tc-product-module .tc-product-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-columns: auto !important;
    grid-gap: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    width: 100% !important;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 0;
    overflow-x: auto;
}

.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories .systemproduct-category,
.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories.tc-product-tabs .systemproduct-category,
.tc-product-module .systemproduct-categories .systemproduct-category,
.tc-product-module .tc-product-tabs .systemproduct-category {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 22px 12px !important;
    margin: 0 !important;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories .systemproduct-category::after,
.tc-product-module .systemproduct-categories .systemproduct-category::after,
.tc-product-module .tc-product-tabs .systemproduct-category::after {
    display: none !important;
    width: 0 !important;
    content: none !important;
}

.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories .systemproduct-category .systemproduct-category-img,
.systemproduct-layoutcontainer.tc-product-module .systemproduct-categories .systemproduct-category icon,
.tc-product-module .systemproduct-category .systemproduct-category-img,
.tc-product-module .systemproduct-category icon.systemproduct-category-img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.systemproduct-layoutcontainer.tc-product-module .tc-tab-inner,
.tc-product-module .tc-tab-inner {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    height: auto !important;
}

.systemproduct-layoutcontainer.tc-product-module .tc-tab-icon-img,
.tc-product-module .systemproduct-category .tc-tab-icon-img,
.tc-product-module .tc-tab-inner .tc-tab-icon-img {
    display: block !important;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    vertical-align: middle;
}

.tc-product-module .tc-product-tabs .systemproduct-category::after {
    display: none;
}

.tc-product-module .tc-product-tabs .systemproduct-category.active {
    border-bottom-color: #0052d9;
}

.tc-product-module .tc-product-tabs .systemproduct-category.active .systemproduct-category-name {
    color: #0052d9;
    font-weight: 600;
}


.tc-product-module .tc-product-tabs .systemproduct-category .systemproduct-category-name {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: left;
    margin: 0;
}

.tc-product-module .tc-product-tabs.noIcon .systemproduct-category {
    padding-bottom: 16px;
}

.tc-product-module .tc-product-body {
    border-top: none;
    padding: 24px 0 0;
    background: #fff;
    cursor: default;
}

.tc-product-module .systemproducts-subclass {
    overflow: hidden;
}

.tc-product-module .systemproduct-container {
    display: block !important;
    margin-left: 0 !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

.tc-product-module .systemproducts {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    opacity: 1 !important;
    overflow: hidden;
    pointer-events: none !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}

.tc-product-module .systemproducts.active {
    display: block !important;
    pointer-events: auto !important;
}

.tc-product-module .systemproducts .systemproduct-right-container,
.tc-product-module .systemproducts .systemproduct-left-container,
.tc-product-module .systemproducts .tc-product-grid,
.tc-product-module .systemproducts .tc-product-empty {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.tc-product-module .systemproduct-container {
    min-height: 120px;
}

.tc-product-module .tc-product-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 1px dashed #dcdcdc;
    border-radius: 4px;
    background: #fafafa;
    color: #999;
    font-size: 14px;
}

.tc-product-module .tc-product-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 20px !important;
}

.tc-product-module .tc-product-promo .systemproduct-left-top,
.tc-product-module .tc-product-promo .systemproduct-right-bottom,
.tc-product-module .tc-product-promo .systemproduct-left-advertisement {
    flex: 1 1 280px;
    max-width: 100%;
    margin: 0 !important;
}

.tc-product-module .tc-product-promo .systemproduct-left-top {
    min-height: 120px;
    border: 1px solid #e7e7e7;
    box-shadow: none;
}

.tc-product-module .tc-product-promo .systemproduct-right-bottom {
    max-height: none;
    border: 1px solid #e7e7e7;
    box-shadow: none;
}

.tc-product-module .systemproduct-right-container {
    width: 100%;
}

.tc-product-module .tc-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.tc-product-module .tc-product-item {
    display: block;
    min-height: 0 !important;
    padding: 20px 20px 18px !important;
    margin: 0 !important;
    border: none !important;
    border-right: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    background-size: cover;
    text-decoration: none;
    transition: background-color 0.2s;
}

.tc-product-module .tc-product-grid .tc-product-item:nth-child(4n) {
    border-right: none !important;
}

.tc-product-module .tc-product-item:hover {
    background-color: #f7f9fc !important;
    box-shadow: none !important;
}

.tc-product-module .tc-product-item-head {
    margin-bottom: 6px;
}

.tc-product-module .tc-product-item-head .systemproduct-info {
    flex-wrap: wrap;
    white-space: normal;
}

.tc-product-module .tc-product-item-head .systemproduct-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #000;
}

.tc-product-module .tc-product-item-head .systemproduct-label {
    margin-left: 8px;
    background: #fff1f0;
    color: #e34d59;
    border-radius: 2px;
}

.tc-product-module .tc-product-item-desc {
    min-height: 0 !important;
    margin: 0 0 10px !important;
    font-size: 13px;
    line-height: 1.6 !important;
    color: #888 !important;
    -webkit-line-clamp: 2;
}

.tc-product-module .tc-product-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0 !important;
}

.tc-product-module .tc-product-item-tags span {
    margin: 0 !important;
    padding: 2px 8px;
    border: none;
    border-radius: 2px;
    background: #f3f3f3;
    color: #666;
    font-size: 12px;
    line-height: 20px;
}

.tc-product-module .tc-product-item .systemproduct-button {
    position: static;
    margin-top: 12px;
}

.tc-product-module .tc-product-item .systemproduct-button .button-gradient {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #0052d9;
    border-radius: 2px;
    background: #fff;
    color: #0052d9;
    font-size: 12px;
    line-height: 20px;
}

.tc-product-module .tc-product-item .systemproduct-button .button-gradient:hover {
    background: #0052d9;
    color: #fff;
}

.tc-product-module .advertisement-right {
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .tc-product-module .tc-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tc-product-module .tc-product-grid .tc-product-item {
        border-right: 1px solid #e7e7e7 !important;
    }

    .tc-product-module .tc-product-grid .tc-product-item:nth-child(4n) {
        border-right: 1px solid #e7e7e7 !important;
    }

    .tc-product-module .tc-product-grid .tc-product-item:nth-child(3n) {
        border-right: none !important;
    }
}

@media (max-width: 992px) {
    .tc-product-module .tc-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-product-module .tc-product-grid .tc-product-item:nth-child(3n) {
        border-right: 1px solid #e7e7e7 !important;
    }

    .tc-product-module .tc-product-grid .tc-product-item:nth-child(2n) {
        border-right: none !important;
    }
}

@media (max-width: 768px) {
    .tc-product-module {
        padding: 32px 0 40px;
    }

    .tc-product-module .tc-product-header {
        flex-direction: column;
        gap: 12px;
    }

    .tc-product-module .tc-product-title {
        font-size: 24px;
    }

    .tc-product-module .tc-product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tc-product-module .tc-product-tabs .systemproduct-category {
        min-width: auto;
        padding: 12px 14px 14px;
    }

    .tc-product-module .tc-product-grid {
        grid-template-columns: 1fr;
    }

    .tc-product-module .tc-product-grid .tc-product-item,
    .tc-product-module .tc-product-grid .tc-product-item:nth-child(2n),
    .tc-product-module .tc-product-grid .tc-product-item:nth-child(3n),
    .tc-product-module .tc-product-grid .tc-product-item:nth-child(4n) {
        border-right: none !important;
    }
}
