/*
 * 旗下产品页面样式文件
 * 包含旗下产品页面的布局和样式
 */
 /* 首页旗下产品部分 */
.cate-box {
    width: 100%;
    height: 100vh;
}
.cate_tit {
    font-size: 4.2em;
    color: #cac9c9;
    font-weight: 300;

}
.cate_ts {
    font-size: 1.1em;
    color: #cac9c9;
    margin-top:-5px;
}
.cate-bt img {
    width: 500px;
    margin: 17vh 0 0 15vw;
}
.cate-ul {
    display: flex;
    margin-top: 30px;
    justify-content: center;
}
.cate-li {
    margin: 2.3em;
    text-align: center;
}
.cate-li img {
    width: 240px;
    height: 240px;
    border-radius: 240px;
    box-shadow: 10px 5px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.cate-li img:hover {
    width: 270px;
    height: 270px;
    border-radius: 18em;
    box-shadow: 10px 5px 20px rgba(0,0,0,0.5);
}
/* 产品展示区域 */
.product-showcase {
    min-height: calc(100vh - 120px); /* 减去导航栏和页脚的高度 */
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.showcase-container {
    width: 100%;
    padding: 0;
}

/* 产品大图和信息 */
.product-main {
    display: flex;
    margin-bottom: 0;
    background-color: white;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 500px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.product-image {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.product-volume {
    position: relative;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    margin:20px 10vw 0 0 ;
}

#product-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 产品序号和总数 */
.product-buttons {
    margin-top: auto;
    padding-top: 20px;
}

.product-number {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 产品分类和缩略图整合模块 */
.product-category-thumbnails {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 产品缩略图滚动列表 */
.ul-box {
    position: relative;
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.thumbnails-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: #e60012 #f1f1f1;
    justify-content: center;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #e60012;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #c40010;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 150px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #e60012;
}

.thumbnail-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.thumbnail-label {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 滚动按钮 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(230, 0, 18, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.scroll-btn:hover {
    background-color: #e60012;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

/* 产品分类选项卡 */
.first-category {
    padding: 0;
    display: flex;
    justify-content: center;
}

.categories-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.category-item:hover {
    background-color: #f5f5f5;
}

.category-item.active {
    color: #e60012;
    font-weight: 400;
    border-top-color: #e60012;
}

.category-name {
    font-size: 14px;
}

.category-count {
    position: relative;
    top: 0;
    right: 0;
    background-color: #e60012;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-showcase {
        min-height: auto;
        padding: 30px 0;
    }
    
    .showcase-container {
        padding: 0;
    }
    
    .product-main {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .product-image {
        margin-right: 0;
        margin-bottom: 30px;
        height: 300px;
    }
    
    .product-image img {
        max-height: 80%;
    }
    
    #product-title {
        font-size: 24px;
    }
    
    .ul-box {
        padding: 20px;
    }
    
    .thumbnail-item {
        width: 120px;
    }
    
    .thumbnail-item img {
        height: 120px;
    }
    
    .category-item {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .product-main {
        padding: 15px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .ul-box {
        padding: 15px;
    }
    
    .thumbnail-item {
        width: 100px;
    }
    
    .thumbnail-item img {
        height: 100px;
    }
    
    .thumbnail-label {
        font-size: 12px;
        padding: 8px;
    }
    
    .category-item {
        padding: 8px 12px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .category-count {
        font-size: 10px;
        padding: 1px 4px;
    }
}