/* =========================================
   产品详情页样式 (Product Single Page)
   主色: var(--brand-blue, #2793ff)
   ========================================= */

.product-single-page {
    padding: 40px 0 80px;
    background: #fff;
    min-height: 600px;
}

.product-single-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   左侧侧边栏
   ========================================= */
.products-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-header {
    background-color: var(--brand-blue, #2793ff);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 20px;
    margin-bottom: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-top: none;
    background: #fff;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.category-list li a:hover {
    background-color: #f0f7ff;
    color: var(--brand-blue, #2793ff);
}

.category-list li.active a {
    font-weight: bold;
    color: var(--brand-blue, #2793ff);
    background-color: #f0f7ff;
}

/* =========================================
   右侧主内容区
   ========================================= */
.product-detail-main {
    flex: 1;
    min-width: 0;
}

/* 产品大标题 */
.product-main-title {
    font-size: 28px;
    color: var(--brand-blue, #2793ff);
    margin: 0 0 30px 0;
    font-weight: bold;
    line-height: 1.4;
}

/* 内容包装器 */
.product-content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

/* --- 左侧图片区 --- */
.product-images {
    flex: 1;
    max-width: 55%;
}

.main-image {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品画廊 */
.product-gallery {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--brand-blue, #2793ff);
}

.gallery-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--brand-blue, #2793ff);
    border-color: var(--brand-blue, #2793ff);
    color: #fff;
}

/* --- 右侧信息区 --- */
.product-info {
    flex: 1;
}

/* 信息区块通用样式 */
.short-desc-section,
.specs-section {
    margin-bottom: 25px;
}

.info-label {
    font-size: 16px;
    color: #999;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.info-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

.info-content p {
    margin: 0 0 15px 0;
}

/* 规格表 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 15px;
    color: #999;
    font-weight: 500;
    padding: 12px 0;
    width: 120px;
    vertical-align: top;
}

.spec-value {
    font-size: 15px;
    color: #000;
    padding: 12px 0 12px 20px;
    line-height: 1.6;
}

/* 询盘按钮 */
.inquiry-action {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-blue, #2793ff);
    color: #fff !important;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.inquiry-btn:hover {
    background: #1a7acc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 147, 255, 0.3);
}

/* =========================================
   Tab 切换区域
   ========================================= */
.product-tabs {
    margin-top: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #fff;
    color: var(--brand-blue, #2793ff);
}

.tab-btn.active {
    background: #fff;
    color: var(--brand-blue, #2793ff);
    border-bottom: 2px solid var(--brand-blue, #2793ff);
}

.tabs-content {
    padding: 30px;
    background: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.tab-content-body {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.tab-content-body p {
    margin: 0 0 20px 0;
}

.tab-content-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.tab-content-body h2,
.tab-content-body h3,
.tab-content-body h4 {
    color: #2d3748;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.tab-content-body h2 { font-size: 24px; }
.tab-content-body h3 { font-size: 20px; }
.tab-content-body h4 { font-size: 17px; }

.tab-content-body ul,
.tab-content-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.tab-content-body li {
    margin-bottom: 10px;
}

.tab-content-body a {
    color: var(--brand-blue, #2793ff);
    text-decoration: underline;
}

/* 标签列表 */
.product-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-tags-list span {
    display: inline-block;
    background: #f0f7ff;
    color: var(--brand-blue, #2793ff);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.product-tags-list span:hover {
    background: var(--brand-blue, #2793ff);
    color: #fff;
}

/* =========================================
   响应式适配
   ========================================= */

/* 平板端 */
@media (max-width: 992px) {
    .product-single-container {
        flex-direction: column;
    }
    
    .products-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .product-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-images {
        max-width: 100%;
    }
    
    .product-main-title {
        font-size: 24px;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .product-single-page {
        padding: 20px 0 50px;
    }
    
    .product-single-container {
        padding: 0 15px;
    }
    
    .product-main-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .spec-label {
        width: 100px;
        font-size: 14px;
    }
    
    .spec-value {
        font-size: 14px;
        padding-left: 10px;
    }
    
    .inquiry-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .product-images {
        padding: 0 10px;
    }
    
    .product-info {
        padding: 0 10px;
    }
    
    .spec-label {
        width: 90px;
    }
}