/* Hero Banner Module */
.tb-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    width: 100%;
    min-height: 300px;
    margin-bottom: 30px;
}

.tb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tb-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* 对齐方式处理 */
.tb-hero-content[style*="text-align: center"] {
    align-items: center;
}

/* 滑动控制样式 - Dr. Squatch风格 */
.tb-slider-control-container {
    width: 100%;
    padding: 0;
    margin-top: 15px;
    box-sizing: border-box;
}

.tb-slider-control {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.tb-slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20%; /* 改为百分比宽度，而不是固定宽度 */
    height: 10px;
    background: #fc6e20; /* 保持橙色背景 */
    border-radius: 0; /* 确保是方形边缘 */
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tb-slider-control::-moz-range-thumb {
    width: 20%; /* 同样为Firefox浏览器设置百分比宽度 */
    height: 10px;
    background: #fc6e20;
    border-radius: 0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 将旧的进度条隐藏 */
.tb-slider-progress {
    display: none;
}

.tb-hero-content[style*="text-align: right"] {
    align-items: flex-end;
}

.tb-hero-content[style*="text-align: left"] {
    align-items: flex-start;
}

.tb-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tb-hero-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.4;
    width: 100%;
    display: block;
    text-align: inherit;
}

.tb-hero-description {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
    line-height: 1.6;
    width: 100%;
    text-align: inherit;
}

.tb-hero-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ec7a19;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tb-hero-button:hover {
    background-color: #d86c10;
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .tb-hero-title {
        font-size: 32px;
    }
    
    .tb-hero-subtitle {
        font-size: 18px;
    }
    
    .tb-hero-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tb-hero-title {
        font-size: 26px;
    }
    
    .tb-hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tb-hero-banner {
        min-height: 200px;
    }
}

/* 预设管理样式 */
.tb-preset-item {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.tb-preset-header {
    background: #f0f0f1;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-preset-header h4 {
    margin: 0;
    font-size: 14px;
}

.tb-preset-content {
    padding: 15px;
}

.tb-hero-preview {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

/* 产品网格模块样式 */
.tb-product-grid-container {
    margin-bottom: 40px;
}

.tb-product-grid-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.tb-product-grid {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 30px;
}

.tb-product-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.tb-product-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tb-product-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tb-product-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tb-product-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.tb-product-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.tb-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tb-product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.tb-product-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px; /* 固定高度 */
}

.tb-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 更改为contain以确保图片完整显示 */
    display: block;
    transition: transform 0.3s ease;
}

.tb-product-item:hover .tb-product-thumbnail img {
    transform: scale(1.05);
}

.tb-product-info {
    padding: 15px;
}

.tb-product-title {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 42px; /* 固定高度，限制两行文字 */
    overflow: hidden;
}

.tb-product-title a {
    color: #333;
    text-decoration: none;
}

.tb-product-title a:hover {
    color: #0073aa;
}

.tb-product-price {
    font-weight: 600;
    margin-bottom: 10px;
}

.tb-product-price del {
    opacity: 0.5;
    margin-right: 5px;
}

.tb-product-rating {
    margin-bottom: 15px;
}

.tb-product-description {
}

.tb-product-button {
    margin-top: 15px;
}

.tb-product-button .tb-button {
    display: inline-block;
    background: #d35400;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.tb-product-button .tb-button:hover {
    background: #e67e22;
    color: #fff;
    transform: translateY(-3px);
}

.tb-no-products {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .tb-product-grid.columns-5,
    .tb-product-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tb-product-grid.columns-3,
    .tb-product-grid.columns-4,
    .tb-product-grid.columns-5,
    .tb-product-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tb-product-grid.columns-2,
    .tb-product-grid.columns-3,
    .tb-product-grid.columns-4,
    .tb-product-grid.columns-5,
    .tb-product-grid.columns-6 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 产品分类标签样式 */
.tb-product-tabs-container {
    margin-bottom: 40px;
}

.tb-product-tabs-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #243E2C;
}

.tb-product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    /* 移除底部边框 */
    flex-wrap: wrap;
}

.tb-product-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}

.tb-product-tab:hover {
    color: #243E2C;
}

.tb-product-tab.active {
    color: #243E2C;
    font-weight: 600;
}

.tb-product-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fc6e20;
}

.tb-product-tab-content {
    display: none;
}

.tb-product-tab-content.active {
    display: block;
}

/* 产品网格增强样式 */
.tb-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border-radius: 2px;
}

/* 产品滑块容器 */
.tb-product-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

.tb-product-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    gap: 20px;
}

.tb-product-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tb-product-slide {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.tb-product-slide:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* 滑动导航按钮 */
.tb-slider-prev, .tb-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

.tb-slider-prev:hover, .tb-slider-next:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tb-slider-prev {
    left: 10px;
}

.tb-slider-next {
    right: 10px;
}

.tb-product-slider-container:hover .tb-slider-prev,
.tb-product-slider-container:hover .tb-slider-next {
    display: block;
}

@media (max-width: 768px) {
    .tb-product-slide {
        flex: 0 0 250px;
    }
    /* 手机端分类标签居中显示 */
    .tb-product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 10px;
    }
    
    .tb-product-tab {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
        text-align: center;
    }
    
    /* 确保滚动条可见 */
    .tb-product-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .tb-product-tabs::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }
    
    .tb-slider-prev, .tb-slider-next {
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .tb-product-slide {
        flex: 0 0 220px;
    }
}

/* Dr. Squatch 风格的按钮 */
.tb-button {
    display: inline-block;
    padding: 12px 25px;
    color: #fff;
    background-color: #d35400;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.tb-button:hover {
    background-color: #e67e22;
    color: #fff;
    transform: translateY(-3px);
}

.tb-product-grid-subtitle {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 25px;
    text-align: center;
    color: #666;
}

/* 修复对齐问题 */
.tb-hero-subtitle {
    width: 100%;
   display: block;
}

/* 确保按钮样式正确 */
.tb-hero-button {
   display: inline-block;
   padding: 12px 25px;
   text-decoration: none;
   font-weight: 600;
   border-radius: 4px;
   transition: all 0.3s ease;
   text-transform: uppercase;
}

/* 移动端响应式图片背景 */
@media only screen and (max-width: 768px) {
   .tb-hero-banner.has-mobile-bg {
       background-image: var(--mobile-bg-image) !important;
   }
}

/* 滑动条导航按钮样式 */
.tb-slider-prev, .tb-slider-next {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.7);
   border: none;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   font-size: 24px;
   line-height: 40px;
   text-align: center;
   color: #333;
   cursor: pointer;
   z-index: 2;
   transition: all 0.3s ease;
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
   display: none;
}

.tb-slider-prev:hover, .tb-slider-next:hover {
   background: rgba(255, 255, 255, 0.9);
   box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tb-slider-prev {
   left: 10px;
}

.tb-slider-next {
   right: 10px;
}

.tb-product-slider-container:hover .tb-slider-prev,
.tb-product-slider-container:hover .tb-slider-next {
   display: block;
}

@media (max-width: 768px) {
   .tb-slider-prev, .tb-slider-next {
       width: 30px;
       height: 30px;
       font-size: 20px;
       line-height: 30px;
   }
}
/* 产品滑块样式 */
.tb-product-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

/* 产品滑块 */
.tb-product-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    gap: 20px;
}

/* 移除旧的进度条隐藏样式，确保进度条可见 */
.tb-slider-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
    display: block; /* 确保显示进度条 */
}

.tb-product-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tb-product-slide {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.tb-product-slide:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tb-product-slide {
        flex: 0 0 250px;
    }
    
    .tb-slider-prev, .tb-slider-next {
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .tb-product-slide {
        flex: 0 0 220px;
    }
}
/* 订阅模块样式 */
.tb-subscription-module {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.tb-subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tb-subscription-title {
    color: #3c5431;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.tb-subscription-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.tb-subscription-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 15px;
}

.tb-subscription-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #243E2C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-subscription-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.tb-subscription-item-title {
    color: #243E2C;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tb-subscription-description {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.tb-subscription-button-container {
    text-align: center;
    margin-top: 30px;
}

.tb-subscription-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tb-subscription-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .tb-subscription-items {
        flex-direction: column;
        align-items: center;
    }
    
    .tb-subscription-item {
        min-width: 200px;
        max-width: 100%;
    }
    
    .tb-subscription-title {
        font-size: 28px;
    }
}
/* 订阅模块响应式设置 */
@media (max-width: 768px) {
    .tb-subscription-items {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    
    .tb-subscription-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
        margin-right: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
    }
}
/* 媒体文本模块样式 */
.tb-media-text-container {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.tb-media-text-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.tb-media-text-media {
    flex: 1;
    position: relative;
}

.tb-media-text-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tb-media-text-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-media-text-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tb-media-text-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tb-media-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tb-media-text-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #243E2C;
}

.tb-media-text-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    width: 100%;
    display: block;
    line-height: 1.4;
    color: #333;
}

.tb-media-text-description {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.tb-media-text-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d86c10;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tb-media-text-button:hover {
    background-color: #c05b0b;
    transform: translateY(-2px);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .tb-media-text-inner {
        flex-direction: column;
    }
    
    .tb-media-text-media,
    .tb-media-text-content {
        width: 100%;
    }
    
    .tb-media-text-title {
        font-size: 32px;
    }
    
    .tb-media-text-subtitle {
        font-size: 18px;
    }
}