﻿


/* 通用卡片容器 - 独立成行 */
.full-width-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px; /* 卡片之间的间距 */
    border: 1px solid #f0f0f0;
}

.card-header-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

    .card-header-title h5 {
        font-weight: 700;
        margin: 0;
        color: #333;
        padding-left: 15px;
        border-left: 5px solid #DAB273; /* 品牌色 */
    }

/* 1. 相关导购：图片比例死守 */
.guide-list-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none !important;
    transition: 0.3s;
}

    .guide-list-item:last-child {
        border-bottom: none;
    }

    .guide-list-item:hover {
        background-color: #fcfcfc;
    }

.guide-content {
    flex: 1;
    padding-right: 30px;
}

.guide-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    /* 限制标题行数，防止过长撑开高度 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-item-meta {
    font-size: 13px;
    color: #999;
}

/* 图片容器强制 3:2 比例 */
.guide-img-container {
    flex: 0 0 150px; /* 固定宽度 */
    width: 150px;
    height: 100px; /* 固定高度 */
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

    .guide-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 裁剪填充，绝不拉伸 */
    }

/* 2. FAQ：交替背景增加易读性 */
.faq-block {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    font-weight: 700;
    color: #DAB273;
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14.5px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 3. 购买渠道：居中排版显得更正式 */
.channel-box {
    text-align: center;
    padding: 20px;
    background: #fffcf5;
    border: 1px dashed #DAB273;
    border-radius: 10px;
}

.channel-link {
    display: inline-block;
    padding: 10px 30px;
    margin: 10px;
    border-radius: 50px;
    background: #333;
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
}

    .channel-link.alt {
        background: transparent;
        border: 1px solid #333;
        color: #333 !important;
    }

/* 4. 更多获奖：横向平铺卡片 */
.award-item-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.award-mini-box {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
}


.product_det_text .details_title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    /* 自动换行 */
    word-wrap: break-word; /* 长单词换行 */
    word-break: break-all; /* 中文、英文都能断开 */
    white-space: normal; /* 允许换行 */
}

.product_det_text .sku {
    margin-bottom: 5px;
    /* 自动换行 */
    word-wrap: break-word; /* 长单词换行 */
    word-break: break-all; /* 中英文都能断开 */
    white-space: normal; /* 允许换行 */
}

.sku-card {
    margin-top: 18px;
    display: inline-block;
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.06);
    border: 1px solid rgba(15,23,42,0.04)
}

    .sku-card .sku {
        margin: 0;
        display: block;
        text-align: center
    }

    .sku-card img {
        max-width: 220px;
        width: 100%;
        height: auto;
        border-radius: 8px;
        display: inline-block
    }

.sku-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

.sku-label {
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin-top: 8px;
    font-weight: 600
}

.shop_det_additional_info table tr td:last-child {
    font-style: normal;
}

.common_btn span {
    background: none;
}


.product-carousel {
    max-width: 780px;
    margin: 0 auto;
    --thumb-h: 72px;
    position: relative;
}

    .product-carousel .viewer {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        background: #f8f8f8;
        min-height: 240px;
    }

    /* slides & slide */
    .product-carousel .slides {
        display: flex;
        transition: transform .45s cubic-bezier(.2,.9,.2,1);
        will-change: transform;
    }

    .product-carousel .slide {
        min-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

        .product-carousel .slide img {
            max-width: 100%;
            max-height: 560px;
            object-fit: contain;
            display: block;
            opacity: 0;
            transform: scale(1.02);
            transition: opacity .5s ease, transform .5s ease;
        }

        /* 图片加载完成后的类 */
        .product-carousel .slide.loaded img {
            opacity: 1;
            transform: scale(1);
        }

    /* loading 覆盖层 */
    .product-carousel .loading-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.92);
        z-index: 40;
        transition: opacity .45s ease;
    }

        .product-carousel .loading-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

    /* 简易 spinner */
    .product-carousel .spinner {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 5px solid rgba(0,0,0,0.08);
        border-top-color: rgba(0,0,0,0.45);
        animation: spin 1s linear infinite;
        box-sizing: border-box;
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 控制按钮 */
.product-carousel .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
}

    .product-carousel .btn:active {
        transform: translateY(-50%) scale(.98)
    }

    .product-carousel .btn.prev {
        left: 10px
    }

    .product-carousel .btn.next {
        right: 10px
    }

/* 缩略图行 */
.product-carousel .thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: left;
    flex-wrap: wrap;
}

.product-carousel .thumb {
    width: var(--thumb-h);
    height: var(--thumb-h);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    display: block;
}

    .product-carousel .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .product-carousel .thumb.active {
        border-color: #d9a961;
    }

/* 响应式 */
@media (max-width: 768px) {
    .product-carousel {
        max-width: 100%;
    }

        .product-carousel .slide img {
            max-height: 360px;
        }

        .product-carousel .btn {
            width: 36px;
            height: 36px;
        }

    :root {
        --thumb-h: 56px;
    }
}

.product-img {
    width: 96% !important; /* 控制宽度为容器的 80% */
    height: auto !important; /* 保持比例 */
    display: block; /* 去掉默认 inline 的小间隙 */
    margin: 0 auto; /* 水平居中 */
}

/* 证书轮播（严格限定在 .shop_details_banner 下） */
.shop_details_banner .cert-carousel {
    --cert-max-w: 320px;
    max-width: var(--cert-max-w);
    margin: 0 auto;
    position: relative;
}

    .shop_details_banner .cert-carousel .viewer {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        background: #fff;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    .shop_details_banner .cert-carousel .slides {
        display: flex;
        transition: transform .45s cubic-bezier(.2,.9,.2,1);
        width: 100%;
    }

    .shop_details_banner .cert-carousel .slide {
        min-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

        .shop_details_banner .cert-carousel .slide img {
            max-width: 100%;
            max-height: 260px;
            object-fit: contain;
            display: block;
            opacity: 0;
            transform: scale(1.02);
            transition: opacity .35s ease, transform .35s ease;
        }

        .shop_details_banner .cert-carousel .slide.loaded img {
            opacity: 1;
            transform: scale(1);
        }

    /* 控制按钮（仅 cert-carousel） */
    .shop_details_banner .cert-carousel .cert-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0,0,0,.45);
        color: #fff;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 30;
        font-size: 20px;
        line-height: 1;
    }

        .shop_details_banner .cert-carousel .cert-btn.prev {
            left: 8px;
        }

        .shop_details_banner .cert-carousel .cert-btn.next {
            right: 8px;
        }

        .shop_details_banner .cert-carousel .cert-btn:focus {
            outline: 2px solid #fff;
        }

    /* 小点导航，仅作用在证书区域 */
    .shop_details_banner .cert-carousel .cert-dots {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 10px;
    }

    .shop_details_banner .cert-carousel .cert-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ddd;
        border: 0;
        cursor: pointer;
    }

        .shop_details_banner .cert-carousel .cert-dot[aria-selected="true"] {
            background: #d9a961;
        }

/* 响应式只影响证书区域：不要使用 :root 全局变量或通用变量名 */
@media (max-width:1200px) {
    .shop_details_banner .cert-carousel {
        --cert-max-w: 260px;
    }

        .shop_details_banner .cert-carousel .slide img {
            max-height: 200px;
        }
}
/* 只隐藏横向溢出，允许纵向显示（避免竖向裁切） */
.product-carousel .viewer,
.shop_details_banner .cert-carousel .viewer {
    overflow-x: hidden; /* 保持水平滚动/平移隐藏 */
    overflow-y: visible; /* 允许图片超出垂直显示，不被裁切 */
}
/* 限制图片高度为 viewer 可见高度，保持纵向完整 */
.product-carousel .viewer,
.shop_details_banner .cert-carousel .viewer {
    /* 例如：确保 viewer 最小高度比原先更大，或移除固定 min-height */
    min-height: auto;
    height: auto;
    align-items: center; /* 保持垂直居中 */
}

.product-carousel .slide img,
.shop_details_banner .cert-carousel .slide img {
    max-width: 100%;
    height: auto; /* 保持宽度自适应高度自动 */
    max-height: 560px; /* 或根据需要调整（改成更高或去掉） */
    object-fit: contain; /* 保持不裁切 */
}


/* =========================
        2) 弹窗样式（严格作用域，避免影响其它样式）
        放到页面样式区末尾优先覆盖
         ========================= */
#globalImageLightbox.glb-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
    font-family: inherit;
}

    #globalImageLightbox.glb-lightbox[aria-hidden="false"] {
        display: block;
    }

/* 背景遮罩 */
#globalImageLightbox .glb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

/* 内容容器 居中 */
#globalImageLightbox .glb-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    max-width: 96vw;
    width: auto;
    max-height: 96vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 使 backdrop 捕获点击（具体可由子元素覆盖） */
    transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .24s;
    opacity: 0;
}

/* 打开动画：设置 aria-hidden=false 时再开启 */
#globalImageLightbox[aria-hidden="false"] .glb-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 舞台：放图片 */
#globalImageLightbox .glb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    padding: 8px;
    box-sizing: border-box;
}

/* 图片 */
#globalImageLightbox .glb-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform .25s ease, opacity .2s ease;
}

/* 右上关闭 */
#globalImageLightbox .glb-close {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 100000;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 上下切换按钮 */
#globalImageLightbox .glb-prev,
#globalImageLightbox .glb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#globalImageLightbox .glb-prev {
    left: 12px;
}

#globalImageLightbox .glb-next {
    right: 12px;
}

/* 小说明/数字 */
#globalImageLightbox .glb-caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    color: #fff;
    font-size: 13px;
    opacity: 0.95;
    z-index: 100000;
}

/* 点击遮罩时提供关闭手感（无 effect） */
#globalImageLightbox .glb-backdrop {
    cursor: zoom-out;
}

/* 触控优化：禁选中 */
#globalImageLightbox img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 小屏下按钮微调 */
@media (max-width: 520px) {
    #globalImageLightbox .glb-prev, #globalImageLightbox .glb-next {
        width: 40px;
        height: 40px;
    }

    #globalImageLightbox .glb-close {
        width: 32px;
        height: 32px;
        right: 6px;
        top: 6px;
    }
}
