.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    color: #1a5fad;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0eeff;
    font-size: 1.8rem;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* 左侧分类导航样式 */
.category-sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.08);
    padding: 20px;
    height: fit-content;
}

.category-title {
    color: #1a5fad;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 10px;
    color: #3a86ff;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background-color: #e8f2ff;
    color: #1a5fad;
    transform: translateX(5px);
}

.category-link.active {
    background-color: #1a5fad;
    color: white;
}

.category-count {
    float: right;
    background-color: #e8f2ff;
    color: #1a5fad;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.category-link.active .category-count {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

/* 右侧内容区域 */
.main-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.08);
    padding: 25px;
}

/* 产品列表页样式 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.products-header h2 {
    font-size: 1.4rem;
    color: #2c3e66;
}

.products-sort {
    padding: 10px 15px;
    border: 1px solid #d0e4ff;
    border-radius: 6px;
    color: #4a4a4a;
    background-color: #f9fbff;
    font-size: 0.95rem;
    cursor: pointer;
}

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

.product-card {
    border: 1px solid #e0eeff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.12);
}

.product-img {
    height: 180px;
    width: 100%;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2a2a2a;
    font-size: 1.0rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-view {
    display: inline-block;
    background-color: #e8f2ff;
    color: #1a5fad;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.btn-view:hover {
    background-color: #d4e6ff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a, .pagination span {
    color: #4a4a4a;
    padding: 8px 15px;
    text-decoration: none;
    border: 1px solid #e0eeff;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.pagination a:hover {
    background-color: #e8f2ff;
    color: #1a5fad;
}

.pagination .active {
    background-color: #1a5fad;
    color: white;
    border-color: #1a5fad;
}

/* 产品详情页样式 */
.product-detail-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-images {
    flex: 1;
}

.image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f9fbff;
    height: 18rem;
    width: 30rem;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #1a5fad;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 95, 173, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.slider-nav:hover {
    background-color: rgba(26, 95, 173, 1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    border-color: #1a5fad;
}

.thumbnail img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info-detail {
    flex: 1;
}

.product-title {
    color: #1a5fad;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-description-detail {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* 按钮组区域：联系我们 + 在线留言 */
.action-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-contact, .btn-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-contact {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-contact:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-message {
    background: linear-gradient(135deg, #1a5fad 0%, #0f4a8a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 95, 173, 0.3);
}

.btn-message:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 95, 173, 0.4);
}

/* 提示小标签样式 */
.action-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #5a6874;
    background-color: #f0f7fa;
    padding: 8px 16px;
    border-radius: 30px;
    width: fit-content;
}

.action-hint i {
    font-size: 1rem;
}

.hint-wechat {
    color: #25D366;
}

.hint-message {
    color: #1a5fad;
}

/* 相关产品推荐区域（无价格） */
.related-products-section {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e0eeff;
}

.related-title {
    font-size: 1.4rem;
    color: #1a5fad;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    border: 1px solid #e0eeff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #fff;
    text-decoration: none;
    display: block;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #b8d4ff;
}

.related-img {
    height: 140px;
    background-color: #f9fbff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.related-info {
    padding: 12px;
}

.related-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #2c3e66;
}

.related-view-btn {
    margin-top: 8px;
    background-color: #e8f2ff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #1a5fad;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.related-view-btn:hover {
    background-color: #d4e6ff;
}

/* 产品详情标签页 (只保留产品详情和规格参数，无评价) */
.product-tabs {
    margin-top: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e0eeff;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #1a5fad;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a5fad;
}

.tab-content {
    display: none;
    padding: 15px 0;
    line-height: 1.3rem;
}

.tab-content.active {
    display: block;
}

.pro-specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.pro-specs-table table tr {
    border-bottom: 1px solid #e0eeff;
}

.pro-specs-table table td {
    padding: 12px 15px;
}

.pro-specs-table table td:first-child {
    font-weight: 600;
    color: #4a4a4a;
    width: 30%;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
    }
    .product-detail-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .tab-btn {
        padding: 8px 16px;
    }
    .product-title {
        font-size: 1.4rem;
    }
    .slider-nav {
        width: 32px;
        height: 32px;
    }
}

/* 页面切换样式 */
.page-toggle {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0eeff;
    gap: 10px;
}

.page-toggle-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    position: relative;
    font-weight: 600;
    transition: color 0.2s;
}

.page-toggle-btn.active {
    color: #1a5fad;
}

.page-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a5fad;
}

.page-content.active {
    display: block;
}