/* 产品详情页主容器 - 暗色主题 */
.product-page {
    background-color: var(--gaming-black);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    margin-top: -80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 装饰背景 - 强化电竞氛围 */
.product-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px; /* 限制高度，只在顶部区域生效 */
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.5) 0%, 
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* 背景光晕优化 */
.product-page .hero-glow {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.6;
}

/* 产品头部区域 - 现代化美化 */
.product-hero {
    background: transparent;
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 10;
}

/* 产品展示区域 - 现代化美化 */
.product-gallery {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
}

/* 禁用主图区域的悬停闪光效果，防止干扰 */
.product-gallery::after {
    display: none !important;
}

/* 产品信息样式 - 现代化美化 */
.product-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 0 4px 12px var(--gaming-glow);
    letter-spacing: -1px;
}

.product-subtitle {
    color: var(--gaming-cyan);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 32px;
    letter-spacing: 0.3px;
    font-weight: 500;
    max-width: 600px;
}

/* 产品徽章样式 - 现代化美化 */
.product-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--gaming-glow);
    border: 1px solid var(--gaming-border);
    background: var(--gaming-glass);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-chip i {
    font-size: 14px;
}

.badge-nvidia { border-color: var(--brand-nvidia); color: var(--brand-nvidia); background: rgba(118, 185, 0, 0.1); }
.badge-amd { border-color: var(--brand-amd); color: var(--brand-amd); background: rgba(237, 28, 36, 0.1); }
.badge-new { border-color: var(--gaming-cyan); color: var(--gaming-cyan); background: rgba(6, 182, 212, 0.1); }
.badge-hot { border-color: var(--brand-hot); color: var(--brand-hot); background: rgba(245, 158, 11, 0.1); }

/* 核心参数卡片样式 - 现代化美化 */
.key-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}

.key-spec-card {
    flex: 1;
    min-width: 140px;
    max-width: 160px;
    padding: 24px 10px;
    background: var(--gaming-glass);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--gaming-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--gaming-card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.key-spec-card:hover {
    border-color: var(--gaming-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--gaming-glow);
}

.key-spec-card .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.key-spec-card .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 价格样式 - 现代化美化 */
.product-price-section {
    margin-bottom: 32px;
    padding: 24px 30px;
    background: var(--gaming-glass);
    border-radius: 20px;
    border: 1px solid var(--gaming-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--gaming-card-shadow);
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

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

.price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

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

.btn-buy {
    flex: 1;
    min-width: 160px;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px var(--gaming-glow);
    border: 1px solid var(--gaming-border);
    background: var(--gaming-glass);
}

.btn-buy:hover {
    transform: translateY(-3px);
    background: var(--gaming-gradient);
    border-color: transparent;
    box-shadow: 0 10px 25px var(--gaming-glow);
}

.buy-actions .btn-tmall { border-color: var(--brand-tmall); color: white !important; }
.buy-actions .btn-tmall:hover { background: var(--brand-tmall); color: white !important; border-color: var(--brand-tmall); }
.buy-actions .btn-jd { border-color: var(--brand-jd); color: white !important; }
.buy-actions .btn-jd:hover { background: var(--brand-jd); color: white !important; border-color: var(--brand-jd); }

.btn-buy i {
    line-height: 1;
}

/* Tab导航样式 - 现代化美化 */
.product-tabs-section {
    background: transparent;
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.nav-tabs-custom {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    border: none;
}

.nav-tabs-custom .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: var(--gaming-glass);
    border: 1px solid var(--gaming-border);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.nav-tabs-custom .nav-link:hover {
    color: white;
    border-color: var(--gaming-blue);
    transform: translateY(-2px);
}

.nav-tabs-custom .nav-link.active {
    background: var(--gaming-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px var(--gaming-glow);
}

/* Tab内容样式 - 现代化美化 */
.tab-content-custom {
    background: var(--gaming-glass);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--gaming-card-shadow);
    border: 1px solid var(--gaming-border);
    backdrop-filter: blur(20px);
}

/* 产品概述样式 - 暗色主题优化 */
.overview-description {
    margin-bottom: 32px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.overview-content {
    margin-bottom: 32px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.overview-content h2,
.overview-content h3,
.overview-content h4 {
    margin-top: 32px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

.overview-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--gaming-border);
    padding-bottom: 16px;
}

.overview-content h3 {
    font-size: 1.5rem;
}

.overview-content h4 {
    font-size: 1.25rem;
}

.overview-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.overview-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: var(--gaming-card-shadow);
    border: 1px solid var(--gaming-border);
    transition: all 0.3s ease;
}

.overview-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px var(--gaming-glow);
}

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

.overview-features h4 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    text-shadow: 0 4px 12px var(--gaming-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-features h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gaming-gradient);
    border-radius: 2px;
}

.overview-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.overview-features li {
    padding: 20px 20px 20px 45px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gaming-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.overview-features li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gaming-cyan);
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 18px;
    /* 不添加任何效果 */
    text-shadow: none;
    transition: none;
    box-shadow: none;
    /* 基础字体渲染优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.overview-features li:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--gaming-glow);
    border-color: var(--gaming-blue);
}



/* 规格参数表格样式 - 现代化美化 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.specs-table thead {
    background: var(--gaming-gradient);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: block;
    margin-bottom: 20px;
}

.specs-table thead tr {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.specs-table th {
    background: transparent;
    color: white;
    font-weight: 700;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.specs-table tbody {
    display: grid;
    gap: 12px;
}

.specs-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gaming-glass);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gaming-border);
}

.specs-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gaming-glow);
    border-color: var(--gaming-blue);
}

.specs-table td {
    padding: 18px 24px;
    text-align: left;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    display: block;
}

.specs-table td:first-child {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border-right: 1px solid var(--gaming-border);
}

/* 下载列表样式 - 现代化美化 */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--gaming-glass);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gaming-border);
    box-shadow: var(--gaming-card-shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-item:hover::before {
    left: 100%;
}

.download-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(6px);
    box-shadow: 0 8px 24px var(--gaming-glow);
    border-color: var(--gaming-blue);
}

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

.download-info i {
    color: var(--gaming-blue);
    font-size: 28px;
    text-shadow: 0 4px 12px var(--gaming-glow);
    transition: all 0.3s ease;
}

.download-item:hover .download-info i {
    transform: scale(1.2) rotate(10deg);
}

.download-name {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    flex: 1;
    line-height: 1.5;
}

.btn-download {
    background: var(--gaming-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--gaming-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gaming-glow);
    filter: brightness(1.1);
}

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

.overview-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--gaming-card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid var(--gaming-border);
    backdrop-filter: blur(5px);
}

.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: 100%;
        max-width: 946px;
        margin: 0 auto;
    }
    .overview-images img.img-natural-size {
        width: auto !important;
    }
}

.overview-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px var(--gaming-glow);
    border-color: var(--gaming-blue);
}

/* 相关产品 - 现代化美化 */
.related-section {
    margin-top: 48px; /* 减小间距 */
    padding-top: 30px; /* 减小间距 */
    border-top: 1px solid var(--gaming-border);
}

.section-title-dark {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px; /* 减小间距 */
    text-align: center;
    text-shadow: 0 4px 12px var(--gaming-glow);
    position: relative;
    padding-bottom: 20px;
}

.section-title-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gaming-gradient);
    border-radius: 2px;
}

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

/* 确保相关产品卡片使用暗色样式 - 保持原有产品卡片样式不变 */
.products-grid .product-card {
    background: var(--gaming-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--gaming-card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    border: 1px solid var(--gaming-border);
    position: relative;
}

.products-grid .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px var(--gaming-glow);
}

/* 响应式设计 - 现代化美化深度优化 */
@media (max-width: 767px) {
    .product-hero {
        padding: 40px 0 80px 0;
    }
    
    .product-name {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .price-value {
        font-size: 2.2rem;
    }
    
    .overview-features ul {
        grid-template-columns: repeat(2, 1fr); /* 移动端也尝试双列显示特性 */
        gap: 12px;
    }

    .key-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tab-content-custom {
        padding: 32px 20px;
    }
    
    .product-tabs {
        margin-top: 1.5rem;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs-custom {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        padding: 4px;
        border-radius: 50px;
    }
    
    .nav-tabs-custom .nav-link {
        white-space: nowrap;
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 50px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .product-page {
        margin-top: -60px !important;
        padding-top: 0 !important;
    }

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

    /* .product-hero 已经在上面定义过 */

    .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;
        padding: 10px 0;
    }

    .main-image-container {
        aspect-ratio: 4 / 3; /* 同步调整为 4:3 */
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden !important;
    }
    
    /* .product-name 已经在上面定义过 */
    
    .product-subtitle {
        font-size: 0.95rem;
    }
    
    .buy-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .btn-buy {
        flex: 1 1 calc(50% - 5px);
        width: auto;
        height: 48px;
        line-height: 1;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }

    /* 移动端相关产品网格优化：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 !important; /* 移动端标题字号缩小 */
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }
}
    
    .tab-content-custom {
        padding: 24px 15px;
    }
    
    .overview-features li {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }

    .overview-features li::before {
        left: 12px;
        top: 14px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .overview-features ul {
        grid-template-columns: 1fr; /* 极小屏幕回退到单列 */
    }

    .btn-buy {
        flex: 1 1 100%;
        height: 50px;
    }
    
    .product-name {
        font-size: 1.6rem;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .key-spec-card .value {
        font-size: 1.2rem;
    }

    .overview-features li {
        padding: 16px 16px 16px 48px;
    }
}
