/* ============================================================
   GLOBAL & BOX-SIZING RESET (解决溢出且不破坏 Sticky 滚动)
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 核心：绝对不能在 html/body 或父容器上加 overflow: hidden，否则会导致 position: sticky 失效 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ============================================================
   PRODUCT LIST PAGE STYLES
   ============================================================ */
.page-content {
    flex: 1;
    padding: 32px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 16px;
    flex-wrap: wrap;
    word-break: break-word;
}

.breadcrumb a {
    color: var(--slate-500);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--blue-500);
}

.breadcrumb .sep {
    color: var(--slate-300);
    font-size: 10px;
}

.breadcrumb .current {
    color: #000000;
    font-weight: 600;
}

/* ---- Product Series Nav (Sticky) ---- */
.product-series-nav {
    position: sticky;
    top: var(--navbar-height, 80px);
    z-index: 140;
    background: var(--white, #ffffff);
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    transition: top 0.2s ease;
}

.product-series-nav .series-nav-link {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    border-radius: 100px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.product-series-nav .series-nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.product-series-nav .series-nav-link.active {
    color: var(--white);
    background: var(--blue-500);
    border-color: var(--blue-500);
    box-shadow: 0 2px 12px rgba(0, 104, 204, 0.25);
}

/* ---- Product Series ---- */
.product-series {
    scroll-margin-top: 140px;
    margin-bottom: 56px;
    padding-top: 8px;
}

.product-series:last-child {
    margin-bottom: 0;
}

.series-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 6px;
}

.series-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin: 0;
}

.series-title .series-count {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-400);
    margin-left: 6px;
}

/* ---- Series Description (expand/collapse) ---- */
.series-description-wrap {
    position: relative;
    margin-bottom: 24px;
    max-width: 820px;
}

.series-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate-600);
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-description.expanded {
    max-height: 600px;
}

.series-description p {
    margin-bottom: 8px;
}

.series-description p:last-child {
    margin-bottom: 0;
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-500);
    padding: 4px 0;
    margin-top: 6px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.expand-btn:hover {
    color: var(--blue-600);
}

.expand-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* ---- Product Grid ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid-item {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 18px 14px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-grid-item:hover {
    border-color: var(--blue-500);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.product-grid-item .prod-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-100);
    margin-bottom: 10px;
}

.product-grid-item .prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-grid-item:hover .prod-img img {
    transform: scale(1.05);
}

.product-grid-item .prod-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.3;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid-item .prod-name a {
    color: inherit;
    transition: color 0.2s ease;
}

.product-grid-item .prod-name a:hover {
    color: var(--blue-500);
}

/* ============================================================
   PRODUCT DETAIL PAGE LAYOUT (包含左侧边栏 Sticky 修复与防溢出)
   ============================================================ */

.page-content.product-page-wide {
    max-width: 1480px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.product-page-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    min-width: 0; /* 防止子元素撑开 Flex 容器 */
}

/* ---- 左侧边栏 Sticky 属性正确设置 ---- */
.product-sidebar-left {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--navbar-height, 80px) + 20px);
    box-sizing: border-box;
    min-width: 0;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* 防止内部超长内容撑开卡片 */
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900, #0f172a);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100, #f1f5f9);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.sidebar-widget .widget-title i {
    color: var(--blue-500, #0068cc);
    flex-shrink: 0;
}

.category-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.category-menu-list .cat-item {
    width: 100%;
}

.category-menu-list .cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--slate-700, #334155);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
}

.category-menu-list .cat-item a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-menu-list .cat-item a i {
    font-size: 11px;
    color: var(--slate-400, #94a3b8);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.category-menu-list .cat-item a:hover {
    background: var(--slate-50, #f8fafc);
    color: var(--blue-500, #0068cc);
}

.category-menu-list .cat-item a:hover i {
    transform: translateX(3px);
    color: var(--blue-500, #0068cc);
}

.category-menu-list .cat-item.current-cat a {
    background: rgba(0, 104, 204, 0.08);
    color: var(--blue-500, #0068cc);
    font-weight: 700;
}

/* 最新产品列表适配强化 */
.latest-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.latest-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.latest-product-item:hover {
    background: var(--slate-50, #f8fafc);
}

.latest-product-item .lp-thumb {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--slate-100, #f1f5f9);
    flex-shrink: 0;
    border: 1px solid var(--slate-200, #e2e8f0);
}

.latest-product-item .lp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-product-item .lp-info {
    flex: 1;
    min-width: 0; /* 强制省略长文本的关键 */
}

.latest-product-item .lp-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800, #1e293b);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 文字超出自动点点点 */
    line-height: 1.3;
}

.latest-product-item:hover .lp-title {
    color: var(--blue-500, #0068cc);
}

.latest-product-item .lp-date {
    font-size: 11px;
    color: var(--slate-400, #94a3b8);
    display: block;
}

/* ---- 中间产品详情容器 ---- */
.product-page-layout .product-detail {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.product-detail {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    padding: 32px 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* ---- 画廊 (主图防溢出修复) ---- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.product-gallery .main-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.product-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-gallery .main-img:hover img {
    transform: scale(1.02);
}

.product-gallery .main-img .zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-gallery .main-img:hover .zoom-hint {
    opacity: 1;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.product-gallery .thumbnails .thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    background: var(--slate-100);
    flex-shrink: 0;
}

.product-gallery .thumbnails .thumb:hover {
    border-color: var(--blue-500);
    transform: translateY(-2px);
}

.product-gallery .thumbnails .thumb.active {
    border-color: var(--blue-500);
}

.product-gallery .thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- 产品基本信息 ---- */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.product-info .product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-500);
    background: rgba(0, 104, 204, 0.08);
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
}

.product-info .product-model {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-400);
    margin-top: -4px;
    word-break: break-word;
}

.product-info .product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.product-info .product-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--red-600);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(163, 0, 0, 0.20);
    border: none;
    cursor: pointer;
}

.product-info .product-actions .btn-primary:hover {
    background: var(--red-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(163, 0, 0, 0.30);
}

.product-info .product-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--white);
    color: var(--slate-700);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    transition: all 0.25s ease;
    text-decoration: none;
}

.product-info .product-actions .btn-secondary:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
    background: rgba(0, 104, 204, 0.04);
    transform: translateY(-2px);
}

/* ---- 详情内容块 ---- */
.product-detail-section {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    padding: 32px 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.product-detail-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.product-detail-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate-600);
    margin-bottom: 12px;
    word-break: break-word;
}

.product-detail-section p:last-child {
    margin-bottom: 0;
}

/* ---- 规格表格 ---- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 4px;
}

.specs-table tr {
    border-bottom: 1px solid var(--slate-100);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 8px;
    vertical-align: top;
    word-break: break-word;
}

.specs-table .spec-label {
    font-weight: 600;
    color: var(--slate-700);
    width: 36%;
    padding-right: 16px;
}

.specs-table .spec-value {
    color: var(--slate-600);
    width: 64%;
}

/* ---- 特点 & 应用 ---- */
.feature-grid,
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 4px;
    width: 100%;
}

.feature-grid .feature-item,
.app-grid .app-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.5;
    word-break: break-word;
}

.feature-grid .feature-item i,
.app-grid .app-item i {
    color: var(--blue-500);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
}

/* ---- 相关产品轮播 ---- */
.related-products-section {
    padding: 32px 36px;
    width: 100%;
    box-sizing: border-box;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.related-header h2 {
    margin: 0;
}

.related-controls {
    display: flex;
    gap: 10px;
}

.related-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 14px;
    cursor: pointer;
}

.related-controls button:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
    box-shadow: 0 2px 8px rgba(0, 104, 204, 0.08);
}

.related-controls button:active {
    transform: scale(0.95);
}

.related-products-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -4px;
    width: 100%;
}

.related-products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.related-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px 12px 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    text-decoration: none;
}

.related-item:hover {
    border-color: var(--blue-500);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.related-item .rel-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-200);
    margin-bottom: 8px;
}

.related-item .rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-item:hover .rel-img img {
    transform: scale(1.04);
}

.related-item .rel-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.3;
    word-break: break-word;
}

.related-item .rel-name:hover {
    color: var(--blue-500);
}

/* ---- 产品导航（上一篇/下一篇） ---- */
.product-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0 0 0;
    border-top: 1px solid var(--slate-200);
    margin-top: 12px;
    gap: 20px;
    width: 100%;
}

.product-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    max-width: 45%;
    text-decoration: none;
    word-break: break-word;
}

.product-navigation a:hover {
    color: var(--blue-500);
    background: rgba(0, 104, 204, 0.04);
}

.product-navigation .nav-next {
    text-align: right;
    justify-content: flex-end;
}

.product-navigation a i {
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.product-navigation .nav-prev:hover i {
    transform: translateX(-4px);
}

.product-navigation .nav-next:hover i {
    transform: translateX(4px);
}

.product-navigation .disabled {
    visibility: hidden;
}

/* ---- 分享栏 ---- */
.product-share-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--slate-200, #e2e8f0);
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-share-bar .share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600, #475569);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-share-bar .share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook  { background: #1877f2; }
.share-btn.twitter   { background: #1da1f2; }
.share-btn.linkedin  { background: #0a66c2; }
.share-btn.whatsapp  { background: #25d366; }
.share-btn.email     { background: #64748b; }

/* ---- 灯箱 ---- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
}

.lightbox-nav:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ============================================================
   RESPONSIVE MEDIA QUERIES (响应式断点)
   ============================================================ */

@media (max-width: 1100px) {
    .product-page-layout {
        flex-direction: column;
    }
    .product-sidebar-left {
        width: 100%;
        position: static; /* 中小屏下取消侧边栏固定，防止遮挡主内容 */
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .product-detail-main {
        grid-template-columns: 1fr 1fr;
        padding: 28px 28px;
        gap: 28px;
    }
    .related-item {
        flex: 0 0 calc(33.33% - 14px);
    }
}

@media (max-width: 820px) {
    .page-content,
    .page-content.product-page-wide {
        padding: 20px 16px 40px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .series-title {
        font-size: 24px;
    }
    .product-detail-main {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 24px;
    }
    .product-info h1 {
        font-size: 28px;
    }
    .product-detail-section {
        padding: 24px 20px;
    }
    .product-detail-section h2 {
        font-size: 20px;
    }
    .feature-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
    .specs-table .spec-label {
        width: 40%;
    }
    .specs-table .spec-value {
        width: 60%;
    }
    .related-item {
        flex: 0 0 calc(50% - 10px);
    }
    .product-navigation a {
        font-size: 13px;
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .page-content,
    .page-content.product-page-wide {
        padding: 16px 12px 32px;
    }
    .breadcrumb {
        font-size: 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .product-series-nav {
        top: var(--navbar-height, 60px);
        padding: 8px 0;
        margin-bottom: 16px;
        gap: 4px 2px;
    }
    .product-series-nav .series-nav-link {
        padding: 4px 14px;
        font-size: 12px;
    }
    .series-title {
        font-size: 20px;
    }
    .series-title .series-count {
        font-size: 13px;
    }
    .series-description {
        font-size: 14px;
        max-height: 66px;
    }
    .series-description.expanded {
        max-height: 500px;
    }
    .product-series {
        scroll-margin-top: 130px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-grid-item {
        padding: 14px 10px 16px;
    }
    .product-grid-item .prod-name {
        font-size: 13px;
    }
    .product-detail-main {
        padding: 20px 16px;
        border-radius: 12px;
        gap: 20px;
    }
    .product-info h1 {
        font-size: 24px;
    }
    .product-info .product-actions .btn-primary,
    .product-info .product-actions .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    .product-info .product-actions {
        flex-direction: column;
    }
    .product-detail-section {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .product-detail-section h2 {
        font-size: 18px;
    }
    .specs-table {
        font-size: 13px;
    }
    .specs-table td {
        padding: 10px 4px;
    }
    .specs-table .spec-label {
        width: 44%;
        padding-right: 10px;
    }
    .specs-table .spec-value {
        width: 56%;
    }
    .related-item {
        flex: 0 0 calc(50% - 10px);
    }
    .related-item .rel-name {
        font-size: 12px;
    }
    .product-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 20px;
    }
    .product-navigation a {
        max-width: 100%;
        padding: 8px 0;
        justify-content: flex-start;
    }
    .product-navigation .nav-next {
        text-align: left;
        justify-content: flex-start;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .lightbox-nav.prev { left: 12px; }
    .lightbox-nav.next { right: 12px; }
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .lightbox-content img {
        max-height: 70vh;
    }
    .lightbox-counter {
        font-size: 12px;
        bottom: -32px;
        padding: 3px 14px;
    }
    .related-products-section {
        padding: 20px 16px;
    }
    .related-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .product-sidebar-left {
        grid-template-columns: 1fr;
    }
    .product-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page-content,
    .page-content.product-page-wide {
        padding: 12px 8px 24px;
    }
    .breadcrumb {
        font-size: 11px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        gap: 4px;
    }
    .product-series-nav {
        top: var(--navbar-height, 50px);
    }
    .product-series-nav .series-nav-link {
        padding: 3px 10px;
        font-size: 11px;
    }
    .series-title {
        font-size: 18px;
    }
    .series-title .series-count {
        font-size: 12px;
    }
    .series-description {
        font-size: 13px;
        max-height: 60px;
    }
    .series-description.expanded {
        max-height: 400px;
    }
    .product-series {
        scroll-margin-top: 120px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-grid-item {
        padding: 10px 8px 14px;
        border-radius: 10px;
    }
    .product-grid-item .prod-name {
        font-size: 12px;
    }
    .product-grid-item .prod-img {
        border-radius: 6px;
        margin-bottom: 6px;
    }
    .product-detail-main {
        padding: 16px 12px;
        border-radius: 10px;
        gap: 16px;
    }
    .product-gallery .thumbnails .thumb {
        width: 54px;
        height: 54px;
    }
    .product-info h1 {
        font-size: 20px;
    }
    .product-info .product-model {
        font-size: 13px;
    }
    .product-info .product-actions .btn-primary,
    .product-info .product-actions .btn-secondary {
        font-size: 12px;
        padding: 9px 16px;
    }
    .product-detail-section {
        padding: 16px 12px;
        border-radius: 10px;
    }
    .product-detail-section h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .product-detail-section p {
        font-size: 14px;
    }
    .specs-table {
        font-size: 12px;
    }
    .specs-table td {
        padding: 8px 4px;
    }
    .specs-table .spec-label {
        width: 46%;
        padding-right: 8px;
    }
    .specs-table .spec-value {
        width: 54%;
    }
    .feature-grid .feature-item,
    .app-grid .app-item {
        font-size: 13px;
        padding: 6px 0;
    }
    .related-item {
        flex: 0 0 calc(50% - 10px);
    }
    .related-item .rel-name {
        font-size: 11px;
    }
    .product-navigation a {
        font-size: 12px;
    }
    .lightbox {
        padding: 12px;
    }
    .lightbox-nav {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .lightbox-nav.prev { left: 4px; }
    .lightbox-nav.next { right: 4px; }
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .lightbox-content img {
        max-height: 60vh;
    }
    .lightbox-counter {
        font-size: 10px;
        bottom: -24px;
        padding: 2px 10px;
    }
    .product-gallery .main-img .zoom-hint {
        display: none;
    }
    .related-products-section {
        padding: 16px 12px;
    }
    .related-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .related-controls {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-grid-item .prod-name {
        font-size: 11px;
    }
    .series-title {
        font-size: 16px;
    }
    .product-info h1 {
        font-size: 18px;
    }
    .specs-table .spec-label { width: 50%; }
    .specs-table .spec-value { width: 50%; }
    .lightbox-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .lightbox-content img {
        max-height: 55vh;
    }
    .related-item {
        flex: 0 0 calc(50% - 8px);
    }
    .related-item .rel-name {
        font-size: 10px;
    }
}

/* ============================================================
   PRODUCT REVIEW & B2B QUOTE MODAL STYLES
   ============================================================ */

.product-grid-item .grid-item-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 6px;
}
.product-grid-item .grid-item-rating .stars {
    color: #F59E0B;
    font-size: 11px;
}
.product-grid-item .grid-item-rating .score {
    font-weight: 700;
    color: var(--slate-800);
}
.product-grid-item .grid-item-rating .count {
    color: var(--slate-400);
}

.product-info .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-500);
    transition: opacity 0.2s ease;
}
.product-info .product-rating.has-reviews {
    cursor: pointer;
}
.product-info .product-rating.has-reviews:hover {
    opacity: 0.8;
}
.product-info .product-rating .reviews-link,
.product-info .product-rating .write-first-review-link {
    color: var(--blue-500);
    text-decoration: underline;
    cursor: pointer;
}

.review-modal {
    z-index: 1000 !important;
}

.review-modal .review-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    padding: 32px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--slate-800, #1e293b);
    box-sizing: border-box;
    position: relative;
    align-items: stretch !important;
}

.review-modal-header {
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    padding-bottom: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-modal-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-right: 28px;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-900, #0f172a);
}

.review-modal-header .summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-modal-header .summary-score .score-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1;
}
.review-modal-header .summary-score .stars {
    color: #F59E0B;
    font-size: 16px;
}
.review-modal-header .summary-score .total-text {
    font-size: 13px;
    color: var(--slate-500);
    margin-left: 4px;
}

.review-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-item-card {
    background: #F8FAFC;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px 20px;
    box-sizing: border-box;
}
.review-item-card .rev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}
.review-item-card .rev-author {
    font-weight: 700;
    color: var(--slate-900);
}
.review-item-card .rev-date {
    color: var(--slate-400);
    font-size: 12px;
}
.review-item-card .rev-stars {
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 8px;
}
.review-item-card .rev-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate-700);
    word-break: break-word;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.review-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    width: 100%;
}

.review-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700, #334155);
}

.review-form label .req {
    color: #DC2626;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form input[type="number"],
.review-form textarea {
    width: 100% !important;
    padding: 10px 14px;
    border: 1px solid var(--slate-200, #cbd5e1);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #FFFFFF;
    color: var(--slate-800, #1e293b);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-form input:focus, 
.review-form textarea:focus {
    border-color: var(--blue-500, #0068cc);
    box-shadow: 0 0 0 3px rgba(0, 104, 204, 0.1);
}

.rating-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFC;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--slate-200, #e2e8f0);
    width: 100%;
    box-sizing: border-box;
}

.star-rating-select {
    display: flex;
    gap: 6px;
    font-size: 20px;
    color: #CBD5E1;
    cursor: pointer;
}

.star-rating-select i.active {
    color: #F59E0B;
}

.rating-number-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.rating-number-input input[type="number"] {
    width: 68px !important;
    padding: 4px 8px;
    text-align: center;
    font-weight: 700;
    color: #0F172A;
}

.rating-number-input .score-unit {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
}

.review-modal .btn-primary {
    width: 100% !important;
    padding: 12px 24px !important;
    background: var(--red-600, #DC2626) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(163, 0, 0, 0.20) !important;
    margin-top: 8px;
}

.review-modal .btn-primary:hover {
    background: var(--red-500, #EF4444) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(163, 0, 0, 0.30) !important;
}

.review-modal .btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.review-form-msg {
    font-size: 13px;
    min-height: 18px;
}
.review-form-msg.success { color: #16A34A; font-weight: 600; }
.review-form-msg.error { color: #DC2626; font-weight: 600; }

@media (max-width: 580px) {
    .review-modal .review-modal-content {
        padding: 24px 18px;
    }
    .review-form .form-group-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .rating-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .rating-number-input {
        margin-left: 0;
    }
}

/* ============================================================
   B2B MULTI-PRODUCT QUOTE LIST & FLOATING BADGE STYLES
   ============================================================ */

.product-grid-item .prod-img {
    position: relative;
}
.grid-add-quote-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-500, #0068cc);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
}
.grid-add-quote-btn:hover {
    background: var(--red-600, #dc2626);
    transform: scale(1.15) rotate(90deg);
}
.grid-add-quote-btn.added {
    background: #16a34a;
}

.product-actions .add-to-quote-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.floating-quote-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--slate-900, #0f172a);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 990;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.floating-quote-badge:hover {
    transform: translateY(-4px) scale(1.03);
    background: var(--blue-600, #0052a3);
    box-shadow: 0 14px 36px rgba(0, 104, 204, 0.4);
}
.floating-quote-badge .badge-icon {
    position: relative;
    font-size: 18px;
    color: #38bdf8;
}
.floating-quote-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-quote-badge .badge-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.quote-list-modal .quote-list-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 92%;
    max-width: 680px;
    padding: 28px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    color: #1e293b;
    position: relative;
    text-align: left;
    box-sizing: border-box;
}
.quote-list-modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.quote-list-modal .modal-header h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quote-list-modal .modal-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.quote-items-wrapper {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quote-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.quote-item-row img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
}
.quote-item-row .item-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}
.quote-item-row .item-qty-input {
    width: 65px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
}
.quote-item-row .remove-item-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s;
}
.quote-item-row .remove-item-btn:hover {
    color: #b91c1c;
}

.combined-inquiry-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
}
.combined-inquiry-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.combined-inquiry-form label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.combined-inquiry-form label .req {
    color: #dc2626;
}
.combined-inquiry-form input,
.combined-inquiry-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.combined-inquiry-form input:focus,
.combined-inquiry-form textarea:focus {
    border-color: #0068cc;
}
.combined-inquiry-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.combined-inquiry-form .btn-clear-quote {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.combined-inquiry-form .btn-clear-quote:hover {
    color: #dc2626;
}

@media (max-width: 640px) {
    .combined-inquiry-form .form-grid {
        grid-template-columns: 1fr;
    }
    .floating-quote-badge {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
}

/* ============================================================
   PRODUCT QUICK HIGHLIGHTS LIST
   ============================================================ */
.product-highlights-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-highlights-list li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-700, #334155);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-highlights-list li i {
    color: var(--blue-500, #0068cc);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ============================================================
   PRODUCT ARCHIVE BANNER STYLES
   ============================================================ */
.product-archive-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    background: var(--slate-100);
}

.product-archive-banner .archive-banner-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-archive-banner:hover .archive-banner-img {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .product-archive-banner {
        margin-bottom: 14px;
        border-radius: 8px;
    }
    .product-archive-banner .archive-banner-img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .product-archive-banner .archive-banner-img {
        max-height: 150px;
    }
}