/* Product Detail 页面专用样式 */
/* ========================= 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, #29a7e1);

    outline-offset: 2px;

}



.cta-button:active {

    color: white !important;

    transform: translateY(0);

}



/* Product Tabs */

.office-detail-page {

    background: #fff;

    align-items: stretch;

}



.office-detail-hero {

    display: grid;

    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);

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

    align-items: start;

    max-width: 1500px;

    width: 100%;

    margin: 0 auto calc((58/1918) * 100vw);

}



.office-detail-image {

    width: 100%;

    aspect-ratio: 1.55 / 1;

    overflow: hidden;

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

}



.office-detail-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

}



.office-detail-summary {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

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

}



.office-detail-title {

    width: 100%;

    margin: 0;

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

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

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

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

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

    font-weight: 700;

    line-height: 1.25;

}



.office-detail-intro {

    max-width: calc((640/1918) * 100vw);

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

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

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

    line-height: 1.55;

}



.office-detail-intro p {

    margin: 0 0 0.8em;

}



.office-contact-button,
.office-contact-button:link,
.office-contact-button:visited {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: calc((230/1918) * 100vw);

    min-height: calc((62/1918) * 100vw);

    padding: calc((14/1918) * 100vw) calc((38/1918) * 100vw);

    background: linear-gradient(90deg, #29a7e1 0%, #5667d8 100%);

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

    color: #fff;

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

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

    font-weight: 600;

    text-decoration: none;

    box-sizing: border-box;

    transition: transform 0.2s ease, box-shadow 0.3s ease;

}



.office-contact-button:hover {

    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(41, 167, 225, 0.22);

}



.office-contact-section {

    max-width: 1500px;

    width: 100%;

    margin: 0 auto;

}



.office-contact-title {

    margin: 0 0 calc((24/1918) * 100vw);

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

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

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

    font-weight: 700;

    line-height: 1.25;

}



.office-contact-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(20px, calc((22/1918) * 100vw), 28px);

    align-items: stretch;

}



.office-contact-card {

    display: grid;

    grid-template-columns: clamp(44px, calc((54/1918) * 100vw), 58px) minmax(0, 1fr);

    gap: clamp(18px, calc((22/1918) * 100vw), 30px);

    align-items: center;

    min-height: clamp(148px, calc((154/1918) * 100vw), 176px);

    padding: clamp(24px, calc((28/1918) * 100vw), 36px) clamp(28px, calc((36/1918) * 100vw), 46px);

    border: 1px solid rgba(31, 41, 55, 0.35);

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

    background: #fff;

    box-sizing: border-box;

    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

}



.office-contact-card:hover {

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

    box-shadow: 0 8px 20px rgba(41, 167, 225, 0.12);

    transform: translateY(-2px);

}



.office-contact-icon {

    width: clamp(36px, calc((44/1918) * 100vw), 46px);

    height: clamp(36px, calc((44/1918) * 100vw), 46px);

    min-width: 34px;

    min-height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--brand-primary);

}

.office-contact-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

}



.office-contact-icon svg {

    width: 70%;

    height: 70%;

}



.office-contact-card h3 {

    margin: 0 0 clamp(8px, calc((8/1918) * 100vw), 12px);

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

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

    font-size: clamp(18px, calc((20/1918) * 100vw), 22px);

    font-weight: 700;

    line-height: 1.25;

}



.office-contact-value {

    margin: 0;

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

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

    font-size: clamp(16px, calc((18/1918) * 100vw), 20px);

    line-height: 1.45;

    max-width: 100%;

    overflow-wrap: anywhere;

    word-break: break-word;

}



.office-contact-value p {

    margin: 0;

}



.office-contact-value a {

    color: var(--brand-primary);

    text-decoration: none;

}



.office-contact-value a:hover {

    text-decoration: underline;

}



.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;

    }



    .office-detail-hero {

        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 42px;

    }



    .office-detail-title {

        font-size: 30px;

    }



    .office-detail-intro {

        max-width: 100%;

        font-size: 15px;

    }



    .office-contact-button {

        min-width: 180px;

        min-height: 48px;

        padding: 12px 28px;

        font-size: 16px;

        border-radius: 8px;

    }



    .office-contact-title {

        font-size: 24px;

    }



    .office-contact-card {

        grid-template-columns: 44px minmax(0, 1fr);

        min-height: 132px;

        padding: 22px;

    }



    .office-contact-card h3 {

        font-size: 18px;

    }



    .office-contact-value {

        font-size: 16px;

    }

}



/* Mobile */

@media (max-width: 768px) {

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

    .office-detail-page {

        padding-top: 28px;

        padding-bottom: 36px;

    }



    .office-detail-hero {

        width: 100%;

        gap: 22px;

        margin-bottom: 34px;

    }



    .office-detail-title {

        font-size: 24px;

        padding-bottom: 14px;

    }



    .office-detail-image {

        aspect-ratio: 16 / 10;

    }



    .office-detail-intro {

        font-size: 14px;

    }



    .office-contact-button,
    .office-contact-button:link,
    .office-contact-button:visited {

        width: 100%;

        min-width: 0;

        min-height: 46px;

        font-size: 15px;

    }



    .office-contact-title {

        font-size: 22px;

        margin-bottom: 18px;

    }



    .office-contact-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }



    .office-contact-card {

        grid-template-columns: 40px minmax(0, 1fr);

        min-height: 118px;

        padding: 16px;

        border-radius: 6px;

    }



    .office-contact-icon {

        width: 36px;

        height: 36px;

    }



    .office-contact-card h3 {

        font-size: 16px;

    }



    .office-contact-value {

        font-size: 14px;

    }



    #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%;

    }

}


/* 已移除：header样式已统一到header-index.css */
/* Product Detail 页面：header 默认显示深色文字（因为页面背景是白色）
   通过检查页面中是否有 #product-overview 元素来识别 product_detail 页面 */
/* body:has(#product-overview) .site-header:not(.is-solid) .header__nav a,
/* 已移除：header样式已统一到header-index.css */
/* body:has(#product-overview) .site-header:not(.is-solid) .lang-toggle,
body:has(#product-overview) .site-header:not(.is-solid) .lang-toggle span {
    color: #0f1f3f !important;
}

body:has(#product-overview) .site-header:not(.is-solid) .header__menu span {
    background: #0f1f3f !important;
} */

兼容不支持 :has() 的浏览器：使用更通用的方法
   当页面没有 hero 区域时，header 默认显示深色文字 */
/* body:not(:has(.hero)):not(:has(.news-hero-section)):not(:has(.contact-hero-section)):not(:has(.hero-section)):not(:has([class*="hero"])):has(#product-overview) .site-header:not(.is-solid) .header__nav a,
body:not(:has(.hero)):not(:has(.news-hero-section)):not(:has(.contact-hero-section)):not(:has(.hero-section)):not(:has([class*="hero"])):has(#product-overview) .site-header:not(.is-solid) .lang-toggle,
body:not(:has(.hero)):not(:has(.news-hero-section)):not(:has(.contact-hero-section)):not(:has(.hero-section)):not(:has([class*="hero"])):has(#product-overview) .site-header:not(.is-solid) .lang-toggle span {
    color: #0f1f3f !important;
}

body:not(:has(.hero)):not(:has(.news-hero-section)):not(:has(.contact-hero-section)):not(:has(.hero-section)):not(:has([class*="hero"])):has(#product-overview) .site-header:not(.is-solid) .header__menu span {
    background: #0f1f3f !important;
} */

