/* 产品详情页图片画廊样式 */

/* 覆盖 gaming-glass-card 的 overflow 属性，确保放大镜不被遮挡 */
.product-gallery.gaming-glass-card {
    overflow: visible !important;
    padding: 0; /* 移除外层容器间距 */
    position: relative;
    z-index: 100;
    background: transparent; /* 背景透明，让内部白色容器更突出 */
    border: none;
    box-shadow: none;
}

/* 解决左侧画廊容器溢出部分（放大镜）被右侧信息栏遮挡的问题 */
.product-hero .col-lg-6:nth-child(1) {
    position: relative !important;
    z-index: 100 !important;
}

.product-hero .col-lg-6:nth-child(2) {
    position: relative !important;
    z-index: 1 !important; /* 确保右侧列在左侧列之下 */
}

/* 移除可能导致布局跳动的悬停效果 */
.main-image-container:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transform: none !important; /* 强制禁用 transform，防止布局偏移 */
}

/* 彻底禁用整个画廊卡片的悬停位移，防止放大镜对不准及跳动 */
.product-gallery.gaming-glass-card:hover {
    transform: none !important;
}

/* 确保父级容器不裁剪放大区域 */
.product-hero, 
.product-hero .container-xxl, 
.product-hero .row,
.product-hero .col-lg-6 {
    overflow: visible !important;
}

.product-page {
    overflow: visible !important; /* 覆盖可能存在的 overflow: hidden */
}

/* 主图片容器 */
.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: crosshair;
    z-index: 10;
    margin-bottom: 24px;
    padding: 0;
    transform: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

.main-image-container:hover {
    border-color: var(--gaming-cyan); /* 悬停时边框变色 */
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* 移除可能导致布局跳动的全局动画类干扰 */
.product-hero .animate-up {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* 放大区域 - 负责裁剪内部图片 */
.zoom-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px; /* 同步大容器圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-sizing: border-box !important;
    padding: 0; /* 移除内边距，让图片圆角裁剪更贴合边框 */
}

/* 主图片 */
.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    display: block;
    padding: 0;
    box-sizing: border-box !important;
}

/* 放大镜遮罩 - 重新启用并美化 */
.zoom-lens {
    position: absolute;
    border: 2px solid rgba(0, 163, 255, 0.5); /* 增加边框宽度使其更清晰 */
    background-color: rgba(0, 163, 255, 0.15);
    cursor: crosshair;
    z-index: 100;
    display: none;
    pointer-events: none;
    box-sizing: border-box !important; /* 核心：确保边框不增加尺寸 */
}

/* 产品详情 Hero 区域 */
.product-hero {
    padding: 60px 0 100px 0; /* 增加底部内边距，为渐变过渡留出空间 */
    background: linear-gradient(180deg, var(--gaming-navy) 0%, var(--gaming-black) 100%);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* 添加一个底部装饰性渐变 */
.product-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--gaming-black), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Tab内容区 */
.product-tabs-section {
    margin-top: -60px; /* 向上移动，与 Hero 区域融合 */
    position: relative;
    z-index: 100;
    padding-bottom: 80px;
}

/* 允许选择特定的文本 */
.product-name, .product-subtitle, .key-specs, .product-price-section, .product-description, .specs-table {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* 左右两列的层级管理 - 恢复正常层级，确保内容显示 */
.product-hero .row > div:first-child {
    z-index: 100;
    position: relative;
}

.product-hero .row > div:last-child {
    z-index: 1;
    position: relative;
}

/* 放大镜结果区域 */
.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 20px); /* 间距 20px */
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 99999 !important;
    background-repeat: no-repeat;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none !important; /* 核心：绝对禁止响应任何鼠标事件，确保不遮挡右侧点击 */
    display: none; /* 初始隐藏 */
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 缩略图列表布局优化 */
.thumbnail-list {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
    padding: 5px;
}

/* 自定义滚动条样式 */
.thumbnail-list::-webkit-scrollbar {
    height: 4px; /* 滚动条更细一点，更精致 */
}

.thumbnail-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: var(--gaming-border);
    border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: var(--gaming-blue);
}

/* 缩略图项尺寸增大 */
.thumbnail-item {
    width: 100px !important;
    height: 75px !important;
    flex: 0 0 100px !important;
    min-width: 100px !important;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 150, 255, 0.5);
}

.thumbnail-item.active {
    border-color: var(--gaming-blue);
    box-shadow: 0 0 15px var(--gaming-glow);
    transform: translateY(-4px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.05); /* 内部图片也稍微放大 */
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important; /* 确保在最顶层，覆盖导航栏 */
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    max-width: 90vw; /* 限制最大宽度为视口宽度的90% */
    max-height: 90vh; /* 限制最大高度为视口高度的90% */
    width: auto; /* 宽度自适应 */
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 保持图片比例 */
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8); /* 增强阴影，区分背景 */
    user-select: none; /* 禁止选中 */
    cursor: default; /* 图片上显示默认指针，表示不可点击关闭 */
}

/* 查看器控制按钮 */
.image-viewer-close,
.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-viewer-close {
    top: 30px;
    right: 30px;
}

.image-viewer-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.image-viewer-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.image-viewer-close:hover,
.image-viewer-prev:hover,
.image-viewer-next:hover {
    background: var(--gaming-blue);
    border-color: var(--gaming-blue);
    color: white;
    box-shadow: 0 0 20px var(--gaming-glow);
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.image-viewer-prev:active,
.image-viewer-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* 占位图样式 */
.placeholder-img {
    background-color: var(--gaming-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    min-height: 300px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .zoom-result {
        display: none !important; /* 在移动端隐藏放大镜结果区域 */
    }
    
    .image-viewer-prev {
        left: 10px;
    }
    
    .image-viewer-next {
        right: 10px;
    }
    
    .image-viewer-close {
        top: 10px;
        right: 10px;
    }
    
    .thumbnail-item {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
}

/* 图片加载动画 */
.zoom-image {
    transition: opacity 0.3s ease;
}

.zoom-image.loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 确保图片查看器在所有元素之上 */
.image-viewer {
    z-index: 9999 !important;
}

/* 图片查看器淡入淡出效果 */
.image-viewer {
    transition: opacity 0.3s ease;
}

.image-viewer-content img {
    transition: opacity 0.3s ease;
}

/* 产品详情页概述图片样式 */
.overview-images {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.overview-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--gaming-card-shadow);
    transition: transform 0.2s ease;
    display: block;
}

.overview-images img.img-natural-size {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* 桌面/平板端（768px及以上）概述图片宽度调整 */
@media (min-width: 768px) {
    .overview-images img {
        width: 946px;
        margin: 0 auto;
    }
    .overview-images img.img-natural-size {
        width: auto !important;
    }
}

.overview-images img:hover {
    transform: scale(1.02);
}



/* 产品特性列表样式 */
.overview-features {
    margin-top: 32px;
    padding: 24px;
    background: var(--gaming-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--gaming-border);
    box-shadow: var(--gaming-card-shadow);
}

.overview-features h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.overview-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overview-features li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 16px;
}

.overview-features li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gaming-blue);
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 18px;
    text-shadow: 0 2px 4px var(--gaming-glow);
}



/* 规格参数表格样式 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    background: var(--gaming-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--gaming-card-shadow);
    border: 1px solid var(--gaming-border);
}

.specs-table th,
.specs-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gaming-border);
}

.specs-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    color: white;
    width: 35%;
    white-space: nowrap;
    font-size: 16px;
}

.specs-table td {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

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

.specs-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 下载列表样式 */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gaming-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--gaming-border);
    box-shadow: var(--gaming-card-shadow);
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--gaming-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-info i {
    color: var(--gaming-blue);
    font-size: 24px;
    text-shadow: 0 2px 4px var(--gaming-glow);
}

.download-name {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.btn-download {
    background: var(--gaming-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--gaming-glow);
}

.btn-download:hover {
    background: var(--gaming-gradient);
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gaming-glow);
}

/* 相关产品推荐样式 */
.related-section {
    margin-top: 48px; /* 减小间距 */
    padding-top: 30px; /* 减小间距 */
    border-top: 1px solid var(--gaming-border);
}

.section-title-dark {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px; /* 减小间距 */
    text-align: center;
    text-shadow: 0 2px 4px var(--gaming-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* 确保相关产品卡片使用深色样式 */
.products-grid .product-card {
    background: var(--gaming-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gaming-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--gaming-card-shadow);
}

.products-grid .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--gaming-glow);
    border-color: var(--gaming-blue);
}

/* 产品徽章样式 */
.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-chip:hover {
    transform: translateY(-2px) scale(1.05);
}

.badge-nvidia {
    background-color: var(--brand-nvidia);
    color: white;
    box-shadow: 0 0 10px rgba(118, 185, 0, 0.3);
}

.badge-amd {
    background-color: var(--brand-amd);
    color: white;
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.3);
}

.badge-new {
    background-color: var(--gaming-blue);
    color: white;
    box-shadow: 0 0 10px var(--gaming-glow);
}

.badge-hot {
    background: var(--gaming-gradient);
    color: white;
    box-shadow: 0 0 10px var(--gaming-glow);
}

/* 产品信息样式 */
.product-name {
    font-size: 38px; /* 调大一点，更有冲击力 */
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 163, 255, 0.3);
    letter-spacing: -1px;
}

.product-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    letter-spacing: 0.2px;
    font-weight: 400;
    border-left: 3px solid var(--gaming-blue);
    padding-left: 20px;
}

/* 核心参数卡片样式 */
.key-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.key-spec-card {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.key-spec-card:hover {
    border-color: var(--gaming-blue);
    background: rgba(0, 163, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 163, 255, 0.1);
}

.key-spec-card .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-spec-card .value {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

/* 价格样式 */
.product-price-section {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--gaming-blue);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.price-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 38px;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(0, 163, 255, 0.4);
    line-height: 1;
}

/* 购买按钮样式 */
.buy-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-buy {
    flex: 1;
    min-width: 160px;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 27px; /* 胶囊形状 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 天猫购买按钮 - 经典红 */
.buy-actions .btn-tmall {
    background: linear-gradient(135deg, #ff0036 0%, #ff4b2b 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 54, 0.3);
}

/* 京东购买按钮 - 亮红/深色 */
.buy-actions .btn-jd {
    background: linear-gradient(135deg, #e1251b 0%, #ff5248 100%);
    box-shadow: 0 4px 15px rgba(225, 37, 27, 0.3);
}

.buy-actions .btn-detail {
    background: var(--gaming-gradient);
}

.btn-buy i {
    font-size: 18px;
    transition: transform 0.3s ease;
        line-height: 1;
}

.btn-buy:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.btn-buy.btn-tmall:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 54, 0.5);
}

.btn-buy.btn-jd:hover {
    box-shadow: 0 8px 25px rgba(225, 37, 27, 0.5);
}

.btn-buy:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* 添加一个扫光效果 */
.btn-buy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
}

.btn-buy:hover::after {
    left: 140%;
    transition: all 0.6s ease-in-out;
}

/* 产品元信息样式 */
.product-meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.product-meta i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.6);
}

/* 导航栏容器样式优化 */
.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.nav-tabs-custom {
    list-style: none;
    padding: 6px;
    margin: 0;
    display: inline-flex;
    gap: 8px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-tabs-custom .nav-item {
    margin: 0;
}

.nav-tabs-custom .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.nav-tabs-custom .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tabs-custom .nav-link.active {
    background: var(--gaming-gradient);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.4);
}

/* Tab内容样式优化 */
.tab-content-custom {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 概述描述文字优化 */
.overview-description {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.02);
    padding: 32px 40px;
    border-radius: 16px;
    border-left: 4px solid var(--gaming-blue);
    margin-bottom: 48px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 面包屑样式 */
.breadcrumb-dark {
    background-color: transparent;
    padding: 0;
    margin-bottom: 24px;
    list-style: none;
    display: flex;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    visibility: visible;
    opacity: 1;
}

.breadcrumb-dark .breadcrumb-item {
    margin: 0;
}

.breadcrumb-dark .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: var(--gaming-blue);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.breadcrumb-dark .breadcrumb-item::after {
    content: ">";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-dark .breadcrumb-item:last-child::after {
    content: "";
    margin-left: 0;
}

/* 产品概述样式 */
.overview-description {
    margin-bottom: 24px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.overview-content {
    margin-bottom: 24px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.overview-content h2,
.overview-content h3,
.overview-content h4 {
    margin-top: 24px;
    margin-bottom: 16px;
    color: white;
}

.overview-content p {
    margin-bottom: 16px;
}

.overview-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: var(--gaming-card-shadow);
}

    /* 响应式设计 - 深度优化移动端体验 */
@media (max-width: 767px) {
    .product-hero {
        padding: 40px 0 80px 0;
    }
    
    .product-name {
        font-size: 28px;
        text-align: center;
        margin-top: 10px;
    }
    
    .product-subtitle {
        text-align: center;
        border-left: none;
        padding-left: 0;
        font-size: 15px;
    }

    .product-price-section {
        justify-content: center;
        margin: 20px 0;
    }

    .buy-actions {
        justify-content: center;
        gap: 12px;
    }

    .btn-buy {
        flex: 1 1 calc(50% - 6px); /* 平铺显示两个按钮 */
        padding: 12px 15px;
        height: 48px; /* 增加点击区域高度 */
        font-size: 14px;
        border-radius: 24px;
        line-height: 1;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }

    .product-meta {
        justify-content: center;
    }

    .key-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .product-page {
        margin-top: -60px !important; /* 减小负边距，防止内容钻入导航栏下方 */
        padding-top: 0 !important;
    }

    .gaming-hero {
        padding-top: 90px !important;
        padding-bottom: 0.25rem !important;
    }

    .product-hero {
        padding: 0 0 32px 0 !important;
    }

    .breadcrumb-gaming {
        display: none !important;
        margin-bottom: 0 !important;
    }

    .breadcrumb-gaming .breadcrumb {
        padding: 0 !important;
        justify-content: center;
    }

    .product-name {
        font-size: 24px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        text-align: center;
    }

    .product-badges {
        justify-content: center !important;
        margin-bottom: 15px !important;
    }

    /* 移动端图库优化：横向滑动切换 */
    .thumbnail-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        gap: 12px;
        scrollbar-width: none; /* Firefox */
    }

    .thumbnail-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .thumbnail-item {
        width: 80px !important;
        height: 60px !important;
        flex: 0 0 80px !important;
        min-width: 80px !important;
    }

    .main-image-container {
        aspect-ratio: 4 / 3; /* 移动端从 1:1 调整为 4:3，更适配横向显卡图片 */
        margin-bottom: 15px;
        border-radius: 16px; /* 移动端圆角稍微调小 */
        background: rgba(255, 255, 255, 0.05);
        overflow: hidden !important;
    }

    /* 选项卡横向滑动，避免换行 */
    .product-tabs {
        margin-bottom: 25px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 0;
    }

    .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs-custom {
        flex-wrap: nowrap !important;
        padding: 4px;
        border-radius: 50px;
    }

    .nav-tabs-custom .nav-link {
        white-space: nowrap;
        padding: 12px 24px; /* 增加内边距提升触控 */
        font-size: 14px;
        min-height: 44px; /* 确保最小触控高度 */
        display: flex;
        align-items: center;
    }

    .tab-content-custom {
        padding: 24px 15px;
        border-radius: 20px;
    }

    .overview-description {
        padding: 20px;
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* 购买按钮在超小屏幕垂直排列 */
    .btn-buy {
        flex: 1 1 100%;
        min-height: 50px; /* 三重保障 - 第三层：使用 min-height 代替固定 height */
        height: auto;
    }

    /* 移动端相关产品网格优化：2列显示 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* 设置极小间距，让卡片自然撑宽，达到您要求的视觉宽度 */
        overflow: hidden !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .related-section {
        margin-top: 30px; /* 移动端进一步缩小 */
        padding-top: 20px;
    }

    .section-title-dark {
        font-size: 20px; /* 移动端标题字号缩小 */
        margin-bottom: 15px; /* 移动端标题下方间距缩小 */
    }
}

@media (max-width: 575px) {
    .product-name {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 26px;
    }

    .key-specs {
        grid-template-columns: repeat(2, 1fr); /* 即使是 575 也要保持 2 列，避免太长 */
        gap: 10px;
        justify-content: center; /* 确保 grid 项目居中 */
        justify-items: center; /* 确保子项在单元格内居中 */
        width: 100%;
        max-width: 400px; /* 移动端限制最大宽度，便于居中 */
        margin-left: auto;
        margin-right: auto;
    }

    .key-spec-card {
        padding: 12px 10px;
        min-height: 80px; 
        height: auto;
        width: 100%; /* 填满网格单元格 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* 关键：移动端参数项内容居中对齐 */
        text-align: center;
    }

    .key-spec-card .value {
        font-size: 16px !important; /* 物理锁定核心参数字号 */
    }

    .key-spec-card .label {
        font-size: 11px;
    }
}

/* 确保在所有设备上图片查看器都能正常工作 */
    .image-viewer-content {
        width: 100%;
    }
    
    .image-viewer img {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .image-viewer-prev,
    .image-viewer-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .image-viewer-prev {
        left: 5px;
    }
    
    .image-viewer-next {
        right: 5px;
    }
}
