/* ==================== 产品中心页面样式 ==================== */

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1a5fa8 0%, #2d7dd2 100%);
    color: white;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-header .en-title {
    font-size: 16px;
    opacity: 0.9;
    font-family: Arial;
}

/* 主布局：左侧导航 + 右侧产品 */
.main-layout {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

/* 左侧导航 */
.sidebar {
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-header {
    background: #1a5fa8;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header .en {
    font-size: 12px;
    opacity: 0.8;
}

/* 三级导航 */
.nav-tree {
    padding: 10px 0;
}

.nav-level1 {
    border-bottom: 1px solid #eee;
}

.nav-level1:last-child {
    border-bottom: none;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    background: #f0f7ff;
}

.nav-item.active {
    background: #e6f2ff;
    color: #1a5fa8;
    font-weight: bold;
}

.nav-item .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 12px;
    color: #999;
}

.nav-item.expanded .icon {
    transform: rotate(90deg);
}

.nav-item .name-area {
    flex: 1;
    padding-left: 8px;
}

.nav-item .name {
    display: block;
}

.nav-item .name-en {
    font-size: 12px;
    color: #999;
    font-family: Arial;
}

.nav-item .count {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 二级导航 */
.nav-level2 {
    display: none;
    background: #fafafa;
    padding-left: 20px;
}

.nav-level2.show {
    display: block;
}

.nav-level2 .nav-item {
    padding: 10px 15px 10px 30px;
    font-size: 14px;
}

/* 三级导航 */
.nav-level3 {
    display: none;
    background: #f5f5f5;
    padding-left: 20px;
}

.nav-level3.show {
    display: block;
}

.nav-level3 .nav-item {
    padding: 8px 15px 8px 50px;
    font-size: 13px;
    color: #666;
}

.nav-level3 .nav-item:hover {
    color: #1a5fa8;
}

/* 右侧产品展示区 */
.product-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

/* 产品筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.current-category {
    font-size: 16px;
    color: #1a5fa8;
    font-weight: bold;
}

.current-category .en {
    font-size: 12px;
    color: #666;
    font-family: Arial;
}

.current-category .count {
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}

.sort-options {
    display: flex;
    gap: 15px;
}

.sort-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.sort-btn:hover,
.sort-btn.active {
    background: #1a5fa8;
    color: white;
    border-color: #1a5fa8;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 产品卡片 */
.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 168, 0.15);
    transform: translateY(-3px);
    border-color: #1a5fa8;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image .placeholder {
    font-size: 60px;
    color: #1a5fa8;
    opacity: 0.3;
}

.product-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.4;
}

.product-name-en {
    font-size: 12px;
    color: #666;
    font-family: Arial;
    margin-bottom: 8px;
}

.product-model {
    font-size: 13px;
    color: #1a5fa8;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-params {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.product-params span {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    background: #f0f7ff;
    color: #1a5fa8;
    border-radius: 3px;
}

.product-actions {
    padding: 10px 15px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btn-inquiry {
    flex: 1;
    padding: 10px 20px;
    background: #1a5fa8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-inquiry:hover {
    background: #2d7dd2;
}

.btn-inquiry .en {
    font-size: 12px;
}

.btn-detail {
    flex: 1;
    padding: 10px 20px;
    background: white;
    color: #1a5fa8;
    border: 1px solid #1a5fa8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-detail:hover {
    background: #f0f7ff;
}

.btn-detail .en {
    font-size: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
}

.page-btn {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #1a5fa8;
    color: white;
    border-color: #1a5fa8;
}

.page-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 10px;
    }

    .page-header {
        padding: 20px 10px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 180px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-inquiry,
    .btn-detail {
        width: 100%;
    }
}