/* =====================================================================
 * [PBCS PATCH] product.html 专用现代样式 — product-modern.css
 * ---------------------------------------------------------------------
 * 背景：product.html 之前是 swiper 大图 + 灰底属性表，视觉普通。
 * 改成与 home/about/contact/foot/list-download 配套的现代风格：
 *   - 紫蓝渐变 banner
 *   - 主图 + 缩略图导航（紫蓝 active 边框）
 *   - 价格大字 + icon 化属性表
 *   - 立即咨询 CTA 紫蓝渐变
 *
 * 命名空间：.pbcs-pd- 前缀（pd = product detail）
 * ===================================================================== */

/* ---------- 主题变量 ---------- */
.pbcs-pd-page {
    --pbcs-primary: #667eea;
    --pbcs-primary-dark: #5568d3;
    --pbcs-accent: #ff6b35;
    --pbcs-price: #ff4757;
    --pbcs-text: #212529;
    --pbcs-muted: #6c757d;
    --pbcs-border: #e9ecef;
    --pbcs-radius: 12px;
    --pbcs-radius-lg: 16px;
    --pbcs-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --pbcs-shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --pbcs-shadow-lg: 0 16px 40px rgba(0, 0, 0, .12);
}

/* =====================================================================
 * 顶部 Banner — 全宽紫蓝渐变（与列表页一致）
 * ===================================================================== */
.pbcs-pd-banner {
    position: relative;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-image: url("https://cdn.xiaoniba.com/xiaoniba.com/bgImg/banner-3360.avif");
    color: #fff;
    padding: 64px 0 56px;
    overflow: hidden;
    text-align: center;
}
/* 视频背景核心样式 */
.pbcs-pd-banner .bg-video{
    position:absolute;
    width:100%;
    height:100%;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    /* 等同object-fit:cover，和图片background-size:cover逻辑一致 */
    object-fit:cover;
    z-index:1;
}
.pbcs-pd-banner::before,
.pbcs-pd-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.pbcs-pd-banner::before {
    top: -60px; left: 10%;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, .12);
}
.pbcs-pd-banner::after {
    bottom: -80px; right: 5%;
    width: 240px; height: 240px;
    background: rgba(255, 107, 53, .25);
}
.pbcs-pd-banner > * { position: relative; z-index: 1; }
.pbcs-pd-banner .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.pbcs-pd-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.pbcs-pd-banner .sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}
.pbcs-pd-banner .deco {
    margin-top: 16px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

/* =====================================================================
 * 面包屑
 * ===================================================================== */
.pbcs-pd-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    font-size: 13px;
    color: var(--pbcs-muted);
}
.pbcs-pd-breadcrumb a {
    color: var(--pbcs-muted);
    text-decoration: none;
    transition: color .2s;
}
.pbcs-pd-breadcrumb a:hover { color: var(--pbcs-primary); }
.pbcs-pd-breadcrumb .sep {
    color: #adb5bd;
    margin: 0 6px;
}
.pbcs-pd-breadcrumb .current { color: var(--pbcs-text); }

/* =====================================================================
 * 主内容网格：左 5/12 主图 + 右 7/12 信息
 * ===================================================================== */
.pbcs-pd-main {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    margin: 32px 0;
}
@media (max-width: 991.98px) {
    .pbcs-pd-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =====================================================================
 * 左：主图 + 缩略图导航
 * ===================================================================== */
.pbcs-pd-gallery {
    background: #fff;
    border-radius: var(--pbcs-radius-lg);
    border: 1px solid var(--pbcs-border);
    padding: 16px;
    box-shadow: var(--pbcs-shadow-sm);
    position: relative;
}
.pbcs-pd-view {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}
.pbcs-pd-view .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pbcs-pd-view .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* 主图左右箭头 */
.pbcs-pd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--pbcs-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: all .2s;
    font-size: 14px;
    border: 0;
    padding: 0;
}
.pbcs-pd-arrow:hover {
    background: var(--pbcs-primary);
    color: #fff;
}
.pbcs-pd-arrow.arrow-left { left: 12px; }
.pbcs-pd-arrow.arrow-right { right: 12px; }

/* 缩略图 */
.pbcs-pd-preview {
    margin-top: 12px;
    overflow: hidden;
}
.pbcs-pd-preview .swiper-container {
    padding: 4px 0;
}
.pbcs-pd-preview .swiper-slide {
    width: 80px !important;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    opacity: .65;
}
.pbcs-pd-preview .swiper-slide:hover { opacity: 1; }
.pbcs-pd-preview .swiper-slide.active-nav {
    border-color: var(--pbcs-primary);
    opacity: 1;
}
.pbcs-pd-preview .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================================
 * 右：产品信息
 * ===================================================================== */
.pbcs-pd-info {
    background: #fff;
    border-radius: var(--pbcs-radius-lg);
    border: 1px solid var(--pbcs-border);
    padding: 28px;
    box-shadow: var(--pbcs-shadow-sm);
}
.pbcs-pd-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pbcs-text);
    line-height: 1.4;
    margin: 0 0 8px;
}
.pbcs-pd-subtitle {
    color: var(--pbcs-muted);
    font-size: 13px;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--pbcs-border);
}

/* 价格区 */
.pbcs-pd-price-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #ffd4d4;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pbcs-pd-price-label {
    color: var(--pbcs-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pbcs-pd-price-label i { color: var(--pbcs-price); }
.pbcs-pd-price-value {
    color: var(--pbcs-price);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    flex: 1;
}
.pbcs-pd-price-value::before { content: '￥'; font-size: 18px; margin-right: 2px; }

/* 属性表 */
.pbcs-pd-attrs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.pbcs-pd-attr {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--pbcs-border);
    font-size: 14px;
    line-height: 1.6;
}
.pbcs-pd-attr:last-child { border-bottom: 0; }
.pbcs-pd-attr-label {
    width: 100px;
    color: var(--pbcs-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pbcs-pd-attr-label i {
    color: var(--pbcs-primary);
    font-size: 12px;
    width: 14px;
    text-align: center;
}
.pbcs-pd-attr-value {
    color: var(--pbcs-text);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

/* CTA 按钮 */
.pbcs-pd-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.pbcs-pd-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all .25s;
    border: 0;
    cursor: pointer;
    line-height: 1.5;
}
.pbcs-pd-btn.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, .35);
}
.pbcs-pd-btn.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, .45);
}
.pbcs-pd-btn.is-outline {
    background: #fff;
    color: var(--pbcs-primary) !important;
    border: 1px solid var(--pbcs-primary);
}
.pbcs-pd-btn.is-outline:hover {
    background: rgba(102, 126, 234, .08);
    transform: translateY(-2px);
}
.pbcs-pd-btn i { font-size: 14px; }

/* =====================================================================
 * 产品详情内容区
 * ===================================================================== */
.pbcs-pd-content {
    background: #fff;
    border-radius: var(--pbcs-radius-lg);
    border: 1px solid var(--pbcs-border);
    padding: 32px;
    margin: 32px 0;
    box-shadow: var(--pbcs-shadow-sm);
}
.pbcs-pd-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pbcs-primary);
    color: var(--pbcs-text);
}
.pbcs-pd-section-head h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.pbcs-pd-section-head i {
    color: var(--pbcs-primary);
    font-size: 18px;
}
.pbcs-pd-content .content {
    color: var(--pbcs-text);
    line-height: 1.8;
    font-size: 14px;
}
.pbcs-pd-content .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.pbcs-pd-content .content p { margin: 0 0 16px; }
.pbcs-pd-content .content h1,
.pbcs-pd-content .content h2,
.pbcs-pd-content .content h3,
.pbcs-pd-content .content h4 {
    color: var(--pbcs-text);
    margin: 24px 0 12px;
}

/* =====================================================================
 * 分享按钮 + 上下篇导航
 * [PBCS PATCH 2026-08-01] 与 show-news.html / show-download.html 一致
 * 之前是简单虚线分隔的 prevnext item 列表，弱
 * 现在换成：
 *   - 分享按钮：5 个圆形彩色按钮（复制/微信/QQ/微博 + 二维码弹层）
 *   - 上下篇：2 卡片横排（每张卡含 icon + 标题 + hover 紫蓝上浮）
 * 样式来源：show-news-modern.css（命名空间沿用 pbcs-news-share / pbcs-news-prevnext
 *          以保持三个详情页统一）
 * ===================================================================== */

/* ---------- 分享按钮 ---------- */
.pbcs-news-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 14px 18px;
    background: #f7f9fc;
    border-radius: 10px;
}
.pbcs-news-share .share-label {
    font-size: 13px;
    color: var(--pbcs-muted);
    font-weight: 500;
    margin-right: 6px;
}
.pbcs-news-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.pbcs-news-share .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
    color: #fff;
    text-decoration: none;
}
.pbcs-news-share .share-copy   { background: #6c757d; }
.pbcs-news-share .share-wechat { background: #07c160; }
.pbcs-news-share .share-qq     { background: #12b7f5; }
.pbcs-news-share .share-weibo  { background: #e6162d; }
.pbcs-news-share .share-link   { background: #495057; }
.pbcs-news-share .share-success {
    margin-left: auto;
    color: #5fb878;
    font-size: 13px;
    opacity: 0;
    transition: opacity .2s ease;
}
.pbcs-news-share .share-success.show { opacity: 1; }

/* 微信二维码弹层（点击微信图标 → 图标正上方弹出二维码） */
.pbcs-news-share .share-wechat-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.pbcs-qr-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    padding: 14px 14px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    z-index: 9999;
    text-align: center;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    border: 1px solid #eef1f5;
}
.pbcs-qr-popover.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* 弹层下方的小三角（指向图标） */
.pbcs-qr-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .05));
}
.pbcs-qr-popover img {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 0 8px 0;
    border-radius: 4px;
    box-shadow: none;
}
.pbcs-qr-popover .qr-text {
    font-size: 12px;
    color: var(--pbcs-muted);
    margin: 0;
    line-height: 1.4;
}
.pbcs-qr-popover .qr-text strong {
    color: #07c160;
    font-weight: 500;
}

/* ---------- 上下篇（2 卡片横排） ---------- */
.pbcs-news-prevnext {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
@media (min-width: 576px) {
    .pbcs-news-prevnext { grid-template-columns: 1fr 1fr; }
}
.pbcs-news-prevnext a {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: var(--pbcs-radius);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--pbcs-text);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.pbcs-news-prevnext a:hover {
    transform: translateY(-2px);
    box-shadow: var(--pbcs-shadow-sm);
    border-color: rgba(102, 126, 234, .3);
    text-decoration: none;
    color: var(--pbcs-text);
}
.pbcs-news-prevnext .pn-label {
    font-size: 12px;
    color: var(--pbcs-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pbcs-news-prevnext .pn-label i { color: var(--pbcs-primary); }
/* 下一篇靠右对齐 */
.pbcs-news-prevnext .pn-next .pn-label { justify-content: flex-end; }
.pbcs-news-prevnext .pn-next .pn-title { text-align: right; }
.pbcs-news-prevnext .pn-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pbcs-news-prevnext .pn-empty {
    color: var(--pbcs-muted);
    font-style: italic;
}
.pbcs-news-prevnext .pn-next { text-align: right; }
