/* 商品页面整体布局 - 1560px宽屏版 */
.product-container-wide {
    display: flex;
    max-width: 1560px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 10px;
}

/* 左侧类别栏 - 宽度增加，改为单列 */
.product-sidebar-wide {
    width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-content-wide {
    flex: 1;
    min-width: 0;
}

.product-sidebar-right {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 5px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 左侧类别区域 - 改为单列布局 */
.product-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.product-categories h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #0094ff;
    padding-bottom: 5px;
}

.category-item {
    display: block;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-item:hover {
    background-color: #0094ff;
    color: white;
    border-color: #007bff;
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 商品网格布局 - 一行4个 */
.product-grid-wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 固定4列 */
    gap: 25px;
    margin-bottom: 20px;
}

.product-category-group {
    display: contents;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px; /* 增加最小高度以适应宽屏 */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-thumb {
    width: 100%;
    height: 180px; /* 增加图片高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    flex-shrink: 0;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

.product-text {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 50px; /* 增加标题区域高度 */
}

.product-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a:hover {
    color: #0094ff;
}

/* 分页样式 */
.product-pagination {
    text-align: center;
    margin-top: 20px;
}

/* 右侧推广区域 */
.product-promo {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0094ff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    margin: 10px 0;
    font-weight: 500;
}

.btn-wechat {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
}

.product-vip {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.product-vip h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-hot-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-hot-list li:last-child {
    border-bottom: none;
}

.product-hot-list a {
    color: #666;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-hot-list a:hover {
    color: #0094ff;
}

/* 链接部分样式 */
.links-section-wide {
    margin: 20px auto;
    max-width: 1560px;
    padding: 0 10px;
}

.links-section-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.links-section-tab {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.links-section-tab.active {
    background-color: #0094ff;
    color: white;
    border-color: #0094ff;
}

.links-section-title-row {
    flex: 1;
    text-align: right;
}

.links-section-content {
    min-height: 100px;
}

.links-section-content-item {
    display: none;
}

.links-section-content-item.active {
    display: block;
}

/* 响应式设计 - 适应不同屏幕尺寸 */
@media (max-width: 1599px) {
    .product-container-wide,
    .links-section-wide {
        max-width: 1190px;
    }
    
    .product-grid-wide {
        grid-template-columns: repeat(3, 1fr); /* 中等宽屏显示3列 */
    }
    
    .product-sidebar-wide {
        width: 220px;
    }
    
    .product-thumb {
        height: 160px;
    }
}

@media (max-width: 1200px) {
    .product-container-wide,
    .links-section-wide {
        max-width: 960px;
    }
    
    .product-grid-wide {
        grid-template-columns: repeat(2, 1fr); /* 中屏显示2列 */
    }
    
    .product-sidebar-wide {
        width: 200px;
    }
    
    .product-thumb {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .product-container-wide,
    .links-section-wide {
        max-width: 720px;
    }
    
    .product-grid-wide {
        grid-template-columns: repeat(2, 1fr); /* 小屏显示2列 */
    }
    
    .product-thumb {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .product-container-wide,
    .links-section-wide {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .product-sidebar-wide,
    .product-sidebar-right {
        width: 100%;
    }
    
    .product-grid-wide {
        grid-template-columns: repeat(1, 1fr); /* 超小屏显示1列 */
    }
    
    .product-thumb {
        height: 120px;
    }
    
    .links-section-wide {
        padding: 0 5px;
    }
    
    .links-section-title-row {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .product-grid-wide {
        gap: 15px;
    }
    
    .product-thumb {
        height: 100px;
    }
    
    .product-text {
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .category-item {
        padding: 10px 8px;
        font-size: 13px;
    }
}