/* 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;
    }
}

/* ===== product cards refresh v1 ===== */
.tc-product-module .tc-product-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
  border:none !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
}
.tc-product-module .tc-product-item{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  min-height:148px !important;
  padding:22px 20px 18px !important;
  margin:0 !important;
  border:1px solid #e8eef5 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(17,24,39,.04) !important;
  text-decoration:none !important;
  transition:transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease, background-color .28s ease !important;
  overflow:hidden !important;
}
.tc-product-module .tc-product-grid .tc-product-item:nth-child(4n),
.tc-product-module .tc-product-grid .tc-product-item:nth-child(3n),
.tc-product-module .tc-product-grid .tc-product-item:nth-child(2n){
  border-right:1px solid #e8eef5 !important;
  border-bottom:1px solid #e8eef5 !important;
}
.tc-product-module .tc-product-item::after{
  content:"查看详情 →";
  position:absolute;
  right:18px;
  bottom:14px;
  font-size:12px;
  font-weight:600;
  color:var(--Original,#0052d9);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .25s ease, transform .25s ease;
  pointer-events:none;
}
.tc-product-module .tc-product-item:hover{
  background:#fff !important;
  border-color:var(--Original,#0052d9) !important;
  box-shadow:0 14px 30px rgba(0,82,217,.12) !important;
  transform:translateY(-4px) !important;
}
.tc-product-module .tc-product-item:hover::after{
  opacity:1;
  transform:translateY(0);
}
.tc-product-module .tc-product-item-head{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin-bottom:2px !important;
}
.tc-product-module .tc-product-item-head .systemproduct-country{
  flex:0 0 28px !important;
  width:28px !important;
  height:28px !important;
  margin:0 !important;
  border-radius:50% !important;
  overflow:hidden !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.06) !important;
  background:#f5f7fb !important;
}
.tc-product-module .tc-product-item-head .systemproduct-country img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
.tc-product-module .tc-product-item-head .systemproduct-info{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.tc-product-module .tc-product-item-head .systemproduct-name{
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  color:#111827 !important;
  transition:color .2s ease;
}
.tc-product-module .tc-product-item:hover .systemproduct-name{
  color:var(--Original,#0052d9) !important;
}
.tc-product-module .tc-product-item-head .systemproduct-label{
  margin-left:0 !important;
  padding:1px 8px !important;
  border-radius:999px !important;
  background:#fff1f0 !important;
  color:#e34d59 !important;
  font-size:12px !important;
  line-height:18px !important;
}
.tc-product-module .tc-product-item-desc{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.65 !important;
  color:#6b7280 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  padding-bottom:18px !important; /* room for CTA */
}
.tc-product-module .tc-product-item-tags{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin-top:auto !important;
}
.tc-product-module .tc-product-item-tags span{
  margin:0 !important;
  padding:2px 8px !important;
  border:none !important;
  border-radius:999px !important;
  background:#eef4ff !important;
  color:#3b6fd9 !important;
  font-size:12px !important;
  line-height:18px !important;
}
.tc-product-module .tc-product-item .systemproduct-button{
  margin-top:4px !important;
}
.tc-product-module .tc-product-item .systemproduct-button .button-gradient{
  border-radius:999px !important;
  padding:5px 14px !important;
}
.tc-product-module .systemproduct-tagline{
  top:10px !important;
  right:10px !important;
}
@media (max-width:1200px){
  .tc-product-module .tc-product-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media (max-width:992px){
  .tc-product-module .tc-product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:768px){
  .tc-product-module .tc-product-grid{grid-template-columns:1fr !important;gap:12px !important;}
  .tc-product-module .tc-product-item{min-height:0 !important;}
  .tc-product-module .tc-product-item::after{display:none !important;}
}

.tc-product-module .systemproduct-country{
  position:relative;
}
.tc-product-module .systemproduct-country .tc-country-fallback{
  display:none;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,var(--Original,#0052d9),#3b82f6);
}
.tc-product-module .systemproduct-country.is-fallback .tc-country-fallback,
.tc-product-module .systemproduct-country:not(:has(img[src])) .tc-country-fallback{
  display:flex;
}
.tc-product-module .systemproduct-country.is-fallback img{
  display:none !important;
}


/* hide cloud fallback */
.tc-product-module .tc-country-fallback,
.tc-product-module .systemproduct-country.is-fallback{display:none!important;}
