/* 透气产品项悬停效果 */
/* 确保产品项有正确的定位和溢出设置 */
.product-item {
    position: relative;
    overflow: hidden;
}

/* 产品内容保持在最上层 */
.product-item img,
.product-item h3,
.product-item p {
    position: relative;
    z-index: 2;
}

/* 透气产品项悬停效果 */
.product-item-breathable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hover_1.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-breathable:hover::before {
    opacity: 1;
}

.hero-slider-container p {
    font-size: 72px !important;
    font-weight: 500;
    margin: 0px;
}

/* 轻盈产品项悬停效果 */
.product-item-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/轻量.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-light:hover::before {
    opacity: 1;
}

/* 防水产品项悬停效果 */
.product-item-waterproof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/防水_2.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-waterproof:hover::before {
    opacity: 1;
}

/* 防绒产品项悬停效果 */
.product-item-downproof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/防绒_1.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-downproof:hover::before {
    opacity: 1;
}

#outdoors {
    max-width: 2560px;
    position: relative;
    height: 959px;
    overflow: hidden;
}

#fashion,#casual,#workwear-section {
    max-width: 2560px;
    position: relative;
    height: 616px;
    overflow: hidden;
}

#lotak-section {
    max-width: 2560px;
    height: 550px;
    position: relative;
    overflow: hidden;
}

#sustainable-section {
    max-width: 2560px;
    height: 533px;
    position: relative;
    overflow: hidden;
}

#vietnam-section {
    max-width: 2560px;
    height: 533px;
    position: relative;
    overflow: hidden;
}

.cell-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 90%;
}

/* 全屏菜单响应式样式已统一在main.css中定义 */
/* 此处保留空媒体查询以避免样式冲突 */
@media screen and (max-width: 1100px) {

    /* 全屏菜单样式已在main.css中统一定义 */
    /* 防止页面出现水平滚动条和右侧黑框 */
    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 产品特性网格布局调整为单列 */
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    /* 调整产品特性项目样式 */
    .product-item {
        border-left: none !important;
        border-bottom: 1px solid #333131 !important;
    }

    /* 最后一个项目不需要下边框 */
    .product-item:last-child {
        border-bottom: none !important;
    }
}

/* 产品特性部分样式 */
.features.parallax-section {
    background-color: #000000;
}

.product-container {
    margin: 0 auto;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background-color: #000000;
    border-top: 1px solid #333131;
}

.product-item {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-item:not(:first-child) {
    border-left: 1px solid #333131;
}

.product-item img {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    margin-top: 45px;
    position: relative;
    z-index: 2;
}

.product-item h3 {
    font-size: 30px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.product-item p {
    font-size: 16px;
    margin-left: 12%;
    margin-right: 12%;
    margin-bottom: 38px;
    position: relative;
    z-index: 2;
}

/* 透气产品项悬停效果 */
.product-item-breathable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hover_1.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-breathable:hover::before {
    opacity: 1;
}

/* 轻盈产品项悬停效果 */
.product-item-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/轻量.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-light:hover::before {
    opacity: 1;
}

/* 防水产品项悬停效果 */
.product-item-waterproof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/防水_2.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-waterproof:hover::before {
    opacity: 1;
}

/* 防绒产品项悬停效果 */
.product-item-downproof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/防绒_1.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-item-downproof:hover::before {
    opacity: 1;
}

/* 产品系列部分样式 */
#product-series {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

#product-series>div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 540px;
    background-image: url('../images/核心功能_11.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

#product-series>div:last-child {
    position: relative;
    padding: 30px 40px;
    z-index: 2;
    width: 100%;
}

#product-series h2 {
    font-size: 30px;
    text-align: left;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 50px;
}

/* 系列通用样式 */
.series-section {
    max-width: 2560px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.series-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.series-content {
    position: relative;
    z-index: 2;
    text-align: left;
    top: 182px;
}

.series-table table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    padding: 0;
}

.series-table tr {
    height: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.series-table .collapsible-cell {
    position: relative;
    cursor: pointer;
    font-size: 30px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.series-table .collapsible-cell:first-child {
    width: 50%;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-left: none;
}

.series-table .collapsible-cell:last-child {
    width: 50%;
    border-right: none;
    border-top: none;
    border-left: none;
}

.series-table .collapsible-cell[colspan="2"] {
    width: 100%;
    border-right: none;
    border-top: none;
    border-left: none;
}

.series-table .cell-title {
    font-size: 24px;
    font-weight: 550;
    margin: 12px auto 0;
    letter-spacing: 0.05em;
}

.series-table .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../images/下箭头.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.series-table .cell-content-area {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 1);
    display: none;
    position: absolute;
    left: 0;
    z-index: 100;
}

.series-table .cell-content-area.text-center {
    text-align: center;
}

.series-table .cell-content-area.text-right {
    text-align: right;
}

.series-table .cell-content-area table {
    width: auto;
    border-collapse: collapse;
    border: 0px solid rgba(255, 255, 255, 0.3);
}

.series-table .cell-content-area tr {
    height: 48px;
}

.series-table .cell-content-area td {
    font-size: 18px;
    font-weight: 500;
    padding: 0 20px;
    height: 48px;
    line-height: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 户外系列部分样式 */
#outdoors {
    height: 780px;
}

#outdoors .series-bg {
    background-image: url('../images/户外系列.png');
}

.series-content h2 {
    margin-top: 135px;
    margin-left: 40px;
    font-size: 72px;
    margin-bottom: 18px;
}

.series-table .collapsible-cell {
    padding-left: 40px;
}

/* 运动系列部分样式 */
#sports {
    height: 616px;
}

#sports .series-bg {
    background-image: url('../images/运动系列.png');
}

#sports .series-table .cell-content-area {
    z-index: 10;
}

/* 时尚系列部分样式 */
#fashion .series-bg {
    background-image: url('../images/时尚.png');
}

#fashion .series-table .cell-content-area div {
    display: flex;
    flex-wrap: wrap;
}

#fashion .series-table .cell-content-area>div>div {
    font-size: 20px;
    font-weight: 700;
    padding: 10px 20px;
    height: auto;
    line-height: 1.2;
    width: 312px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* 休闲系列部分样式 */
#casual .series-bg {
    background-image: url('../images/休闲.png');
}

/* 可持续系列部分样式 */
#sustainable-section .series-bg {
    background-image: url('../images/可持续.png');
}

/* 越南系列部分样式 */
#vietnam-section .series-bg {
    background-image: url('../images/越南.png');
}

/* Lotak系列部分样式 */
#lotak-section .series-bg {
    background-image: url('../images/Lotak.png');
}

#workwear-section .series-bg {
    background-image: url('../images/workwear.png');
}

/* Lotak系列表格特定样式 */
#lotak-section .series-table table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    padding: 0;
}

#lotak-section .series-table tr {
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#lotak-section .series-table .collapsible-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-left: none;
    padding: 20px;
    position: relative;
    cursor: pointer;
    font-size: 30px;
    height: 102px;
}

#lotak-section .series-table .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('../images/下箭头.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#lotak-section .series-table .cell-content-area {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 1);
    display: none;
    position: absolute;
    left: 0;
    z-index: 100;
}

#lotak-section .series-table .cell-content-area table {
    width: auto;
    height: auto;
    border-collapse: collapse;
}

#lotak-section .series-table .cell-content-area td {
    font-size: 20px;
    padding: 10px 20px;
    height: auto;
    line-height: 23px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 响应式设计 - 屏幕宽度小于1000px时 */
@media screen and (max-width: 999px) {
    .series-table table {
        width: 100%;
        table-layout: fixed;
    }

    /* 小屏幕上outdoors的基础高度，会被JavaScript中的具体设置覆盖 */
    #outdoors {
        height: 1260px;
    }

    #sports,
    #fashion,
    #casual,
    #workwear-section {
        height: 856px;
    }


    /* 重置表格的flex布局 */
    .series-table table,
    .series-table tbody,
    .series-table tr {
        display: table;
        width: 100%;
    }

    /* 为每个单元格创建新行，保持原有tr高度 */
    .series-table tbody {
        display: block;
    }

    .series-table tr {
        display: block;
        height: auto;
    }

    .series-table .collapsible-cell:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .series-table .collapsible-cell:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .series-table .collapsible-cell {
        display: block;
        width: 100%;
        height: 102px;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 20px;
        font-size: 24px;
    }

    /* 移除原有的:first-child和:last-child样式，确保所有单元格样式一致 */
    .series-table .collapsible-cell:first-child,
    .series-table .collapsible-cell:last-child {
        width: 100%;
        display: block;
        border-right: none;
    }

    #lotak-section .series-table .cell-content-area td {
        font-size: 19px !important;
        line-height: 23px !important;
    }

    .series-table .cell-content-area {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 0;
    }

    .series-content h2 {
        font-size: 72px;
        margin-top: 135px;
        margin-left: 20px;
    }
}

@media screen and (max-width: 470px) {

    body > section.hero-slider-container > div > video {
        height: 300px !important;
    }
    .hero-slider-container>div:nth-child(1) {
        height: 360px !important;
    }
    #product-series>div:last-child {
        padding: 30px 20px !important;
    }

    .hero-slider-container p {
        font-size: 36px !important;
    }
    .features{
        padding: 0 !important;
    }
    body > section.hero-slider-container > div > div:nth-child(3) {
        left: 30px !important;
    }
    .series-content h2 {
        font-size: 48px !important;
        line-height: 1.2 !important;
    }
    #product-series>div:first-child {
        height: 240px !important;
    }
    #product-series {
        height: 340px !important;
    }
    .series-table tr {
        border-top: none !important;
    }

    #outdoors {
        height: 1160px;
    }

    #sports {
        height: 756px;
    }

    #fashion {
        height: 756px;
    }

    #casual {
        height: 756px;
    }

    #lotak-content h2 {
        margin-top: 182px !important;
    }

    #vietnam-content h2 {
        margin-top: 192px !important;
    }

    .cell-content-area {
        max-width: 400px;
        display: flex;
        text-align: left !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overflow-y: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    .collapsible-cell {
        border-top: none !important;
    }
    html[lang="en"] #sports-content,
    html[lang="en"] #casual-content,
    html[lang="en"] #sustainable-content {
        top: 240px !important;
    }

    /* .series-table > table > tbody > tr > td:not(.collapsible-cell){
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    } */
}