/* ========================= Product Detail Page Styles ========================= */



/* 通用 a 标签样式 */

a,

a:link,

a:visited,

a:hover,

a:active {

    color: white;

    text-decoration: none;

}



/* Product Overview Section */

#product-overview {

    background-color: rgb(249, 249, 249);

}



/* Product Overview Layout */

.product-layout {

    display: grid;

    grid-template-columns: 0.3fr 0.4fr;

    gap: calc((60/1918) * 100vw);

    width: 100%;

    max-width: 100%;

    align-items: start;

    box-sizing: border-box;

}



/* Product Gallery */

.product-gallery {

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

}



/* Gallery Main Wrapper - 用于放大镜容器 */

.gallery-main-wrapper {

    width: 100%;

    max-width: 100%;

    margin-bottom: calc((20/1918) * 100vw);

    position: relative;

}



.gallery-main {

    width: 100%;

    max-width: 100%;

    background-color: rgb(249, 249, 249);

    border-radius: calc((8/1918) * 100vw);

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    position: relative;

    cursor: crosshair;

}



.main-product-image {

    width: 100%;

    height: auto;

    object-fit: contain;

    display: block;

}



/* 图片放大镜效果 */

.zoom-lens {

    position: absolute;

    border: 2px solid var(--brand-primary);

    width: 150px;

    height: 150px;

    pointer-events: none;

    display: none;

    background-color: rgba(255, 255, 255, 0.2);

    z-index: 10;

}



.zoom-result {

    position: absolute;

    top: 0;

    left: calc(100% + calc((20/1918) * 100vw));

    width: 100%;

    height: 0;

    padding-bottom: 100%;

    border: 1px solid var(--brand-gray-light);

    border-radius: calc((8/1918) * 100vw);

    overflow: hidden;

    display: none;

    background-color: var(--brand-white);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    z-index: 100;

}



.zoom-result img {

    position: absolute;

    top: 0;

    left: 0;

    max-width: none;

    max-height: none;

    object-fit: none;

}



/* Drift paneContainer：避免遮挡右侧按钮或文本的鼠标事件 */

#driftZoomPane {

    pointer-events: none;

    z-index: 1;

}



/* Thumbnail Carousel */

.gallery-carousel {

    display: flex;

    align-items: center;

    gap: calc((10/1918) * 100vw);

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

}



.carousel-arrow {

    width: calc((40/1918) * 100vw);

    height: calc((40/1918) * 100vw);

    min-width: 35px;

    min-height: 35px;

    background-color: var(--white);

    border: 2px solid var(--brand-gray-light);

    border-radius: 50%;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: calc((18/1918) * 100vw);

    color: var(--text-gray-700);

    transition: all 0.3s ease;

    flex-shrink: 0;

}



.carousel-arrow:hover {

    background-color: var(--brand-primary);

    border-color: var(--brand-primary);

    color: var(--white);

}



.gallery-thumbnails {

    display: flex;

    gap: calc((10/1918) * 100vw);

    flex: 1;

    overflow-x: auto;

    scrollbar-width: none;

}



.gallery-thumbnails::-webkit-scrollbar {

    display: none;

}



.thumbnail {

    width: calc((80/1918) * 100vw);

    height: calc((80/1918) * 100vw);

    min-width: 70px;

    min-height: 70px;

    object-fit: cover;

    border: 2px solid var(--brand-gray-light);

    border-radius: calc((4/1918) * 100vw);

    cursor: pointer;

    transition: all 0.3s ease;

    flex-shrink: 0;

}



.thumbnail:hover {

    border-color: var(--brand-primary);

}



.thumbnail.active {

    border-color: var(--brand-primary);

    border-width: 3px;

}



/* Product Information */

.product-info {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: calc((25/1918) * 100vw);

}



.product-title {

    font-family: var(--font-heading);

    font-size: calc((36/1918) * 100vw);

    font-weight: bold;

    color: var(--brand-primary);

    margin: 0;

    padding-bottom: calc((15/1918) * 100vw);

    border-bottom: 1px solid var(--brand-gray-light);

    line-height: 1.3;

}



/* Introduction Section */

.product-intro-section {

    display: flex;

    flex-direction: column;

    gap: calc((12/1918) * 100vw);

}



.intro-heading {

    font-family: var(--font-heading);

    font-size: calc((16/1918) * 100vw);

    font-weight: 600;

    color: var(--text-gray-700);

    margin: 0;

    letter-spacing: 1px;

}



.intro-text {

    font-family: var(--font-body);

    font-size: calc((14/1918) * 100vw);

    color: var(--text-gray-700);

    line-height: 1.7;

    margin: 0;

}



/* Specifications List */

.product-specs-list {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    gap: calc((12/1918) * 100vw);

}



.spec-item {

    font-family: var(--font-body);

    font-size: calc((14/1918) * 100vw);

    color: var(--text-gray-700);

    display: flex;

    gap: calc((8/1918) * 100vw);

}



.spec-item::before {

    content: '•';

    color: var(--brand-primary);

    font-weight: bold;

}



.spec-label {

    font-weight: 600;

}



.spec-value {

    color: var(--text-gray-500);

}



/* CTA Button */

.cta-button {

    /* 布局 */

    display: inline-flex;

    align-items: center;

    justify-content: center;

    align-self: flex-start;

    box-sizing: border-box;

    

    /* 间距 */

    padding: calc((12/1918) * 100vw) calc((40/1918) * 100vw);

    margin: 0;

    

    /* 外观 */

    background-color: var(--brand-primary);

    color: white !important;

    border: none;

    border-radius: calc((8/1918) * 100vw);

    

    /* 字体 */

    font-family: var(--font-body);

    font-size: calc((16/1918) * 100vw);

    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    

    /* 交互 */

    cursor: pointer;

    transition: background-color 0.3s ease, transform 0.2s ease;

}



.cta-button:hover {

    background-color: var(--brand-primary-dark);

    color: white !important;

    transform: translateY(-2px);

}



.cta-button:focus-visible {

    outline: 2px solid var(--brand-primary-hover, #3d8e64);

    outline-offset: 2px;

}



.cta-button:active {

    color: white !important;

    transform: translateY(0);

}



/* Product Tabs */

.product-tabs {

    display: flex;

    gap: calc((80/1918) * 100vw);

    margin-bottom: calc((40/1918) * 100vw);

    border-bottom: 2px solid var(--brand-gray-light);

    justify-content: flex-start;

    width: 100%;

}



.product-tabs .content-title {

    background: none;

    border: none;

    font-family: var(--font-heading);

    font-size: calc((24/1918) * 100vw);

    font-weight: 600;

    color: var(--text-gray-700);

    padding: calc((15/1918) * 100vw) 0;

    cursor: pointer;

    position: relative;

    transition: color 0.3s ease;

}



.product-tabs .content-title.active {

    color: var(--brand-primary);

}



.product-tabs .content-title.active::after {

    content: '';

    position: absolute;

    bottom: -2px;

    left: 0;

    right: 0;

    height: 3px;

    background-color: var(--brand-primary);

}



.product-tabs .content-title:hover {

    color: var(--brand-primary);

}



/* Tab Content */

.tab-content {

    width: 100%;

    margin-bottom: calc((40/1918) * 100vw);

    scroll-margin-top: calc((120/1918) * 100vw);

}



.tab-content:last-child {

    margin-bottom: 0;

}



.tab-section {

    display: flex;

    flex-direction: column;

    gap: calc((20/1918) * 100vw);

}



.tab-section-title {

    font-family: var(--font-heading);

    font-size: calc((20/1918) * 100vw);

    font-weight: 600;

    color: var(--text-gray-700);

    margin: 0;

    display: flex;

    align-items: center;

    gap: calc((12/1918) * 100vw);

}



.section-icon {

    width: calc((20/1918) * 100vw);

    height: calc((20/1918) * 100vw);

    min-width: 16px;

    min-height: 16px;

    background-color: var(--brand-primary);

    flex-shrink: 0;

}



.tab-section-text {

    font-family: var(--font-body);

    font-size: calc((14/1918) * 100vw);

    color: var(--text-gray-700);

    line-height: 1.7;

    margin: 0;

}



/* Data Tables */

.table-wrapper {

    width: 100%;

    overflow-x: auto;

}



.spec-table {

    width: 100%;

    border-collapse: collapse;

    font-family: var(--font-body);

    font-size: calc((14/1918) * 100vw);

}



.spec-table thead {

    background-color: var(--brand-bg-light);

}



.spec-table th {

    font-weight: 600;

    color: var(--text-gray-700);

    text-align: left;

    padding: calc((15/1918) * 100vw) calc((12/1918) * 100vw);

    border: 1px solid var(--brand-gray-light);

}



.spec-table td {

    color: var(--text-gray-700);

    padding: calc((15/1918) * 100vw) calc((12/1918) * 100vw);

    border: 1px solid var(--brand-gray-light);

    vertical-align: top;

}



.spec-table tbody tr:hover {

    background-color: rgba(80, 162, 111, 0.05);

}



/* ========================= Product Page Responsive ========================= */



/* Tablet */

@media (max-width: 1024px) {

    .product-layout {

        grid-template-columns: 1fr;

        gap: 40px;

    }



    .product-title {

        font-size: 30px;

    }

}



/* Mobile */

@media (max-width: 768px) {

    /* 确保 Product Overview Section 不超出 */

    #product-overview {

        width: 100% !important;

        max-width: 100% !important;

        padding-left: 15px !important;

        padding-right: 15px !important;

        margin-left: 0 !important;

        margin-right: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden;

    }

    

    /* 确保 Product Details Section 不超出 */

    #product-details {

        width: 100% !important;

        max-width: 100% !important;

        padding-left: 15px !important;

        padding-right: 15px !important;

        padding-top: 20px !important;

        margin-left: 0 !important;

        margin-right: 0 !important;

        margin-top: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden;

    }



    .product-layout {

        gap: 30px;

        width: 100% !important;

        max-width: 100% !important;

        padding: 0 !important;

        margin: 0 !important;

        box-sizing: border-box !important;

    }



    .product-gallery {

        width: 100% !important;

        max-width: 100% !important;

        padding: 0 !important;

        margin: 0 !important;

        box-sizing: border-box !important;

    }



    .product-info {

        width: 100% !important;

        max-width: 100% !important;

        padding: 0 !important;

        margin: 0 !important;

        box-sizing: border-box !important;

        gap: 20px !important;

    }



    .product-title {

        font-size: 26px;

        padding-bottom: 12px;

    }



    .intro-heading {

        font-size: 14px;

    }



    .intro-text {

        font-size: 14px;

    }



    .spec-item {

        font-size: 13px;

    }



    .cta-button {

        /* 布局 */

        width: 100%;

        max-width: 100%;

        display: block;

        box-sizing: border-box;

        

        /* 间距 */

        padding: 14px 30px;

        margin: 0;

        

        /* 外观 */

        background-color: var(--brand-primary);

        color: var(--white);

        border: none;

        border-radius: 8px;

        

        /* 字体 */

        font-family: var(--font-body);

        font-size: 16px;

        font-weight: 500;

        text-align: center;

        

        /* 交互 */

        cursor: pointer;

        transition: background-color 0.3s ease, transform 0.2s ease;

    }

    

    .cta-button:hover {

        background-color: var(--brand-primary-dark);

        transform: translateY(-1px);

    }

    

    .cta-button:active {

        transform: translateY(0);

    }



    .product-tabs {

        gap: 30px;

    }



    .product-tabs .content-title {

        font-size: 18px;

        padding: 12px 0;

    }



    .tab-content {

        margin-bottom: 35px !important;

        scroll-margin-top: 80px;

    }



    .tab-content:last-child {

        margin-bottom: 0 !important;

    }



    .tab-section {

        gap: 20px !important;

    }



    .tab-section-title {

        font-size: 18px;

        padding-top: 20px !important;

    }

    

    .tab-content:first-of-type .tab-section-title {

        padding-top: 0 !important;

    }



    .section-icon {

        width: 16px;

        height: 16px;

    }



    .tab-section-text {

        font-size: 14px;

    }



    .spec-table {

        font-size: 13px;

    }



    .spec-table th,

    .spec-table td {

        padding: 10px 8px;

    }



    .gallery-main-wrapper {

        margin-bottom: 15px;

    }



    .gallery-main {

        width: 100% !important;

        max-width: 100% !important;

        margin-left: 0;

        margin-right: 0;

        margin-bottom: 0;

        cursor: default;

    }

    

    /* 移动端禁用放大镜 */

    .zoom-lens,

    .zoom-result {

        display: none !important;

    }



    .gallery-carousel {

        gap: 5px;

        width: 100% !important;

        max-width: 100% !important;

        margin-left: 0;

        margin-right: 0;

    }



    .carousel-arrow {

        width: 30px;

        height: 30px;

        min-width: 30px;

        min-height: 30px;

        font-size: 14px;

        flex-shrink: 0;

    }



    .gallery-thumbnails {

        gap: 5px;

        width: 100% !important;

        max-width: 100% !important;

        overflow-x: auto;

        margin-left: 0;

        margin-right: 0;

    }



    .thumbnail {

        width: 50px;

        height: 50px;

        min-width: 50px;

        min-height: 50px;

        flex-shrink: 0;

    }



    .product-specs-list {

        width: 100%;

        max-width: 100%;

        gap: 15px !important;

    }



    .spec-item {

        word-break: break-word;

        width: 100%;

    }

}



