/* 产品列表页面特定样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FF9900;
}

.breadcrumb i {
    margin: 0 10px;
    color: #666;
}

.breadcrumb span {
    color: #666;
}

/* 产品分类筛选 */
.product-filter-section {
    margin-bottom: 40px;
}

.filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.filter-header h2 {
    color: #003366;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-header h2 i {
    margin-right: 10px;
    color: #FF9900;
}

.filter-header p {
    color: #666;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.filter-btn {
    background-color: white;
    border: 2px solid #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #003366;
    color: #003366;
}

.filter-btn.active {
    background-color: #003366;
    border-color: #003366;
    color: white;
}

/* 产品列表头部 */
.product-list-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
    font-weight: 500;
    color: #333;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-family: inherit;
}

.view-options {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    background-color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s;
}

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

.view-btn.active {
    background-color: #003366;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
    font-family: inherit;
}

.search-box button {
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #002244;
}

/* 产品列表容器 */
.product-list-container {
    min-height: 600px;
    margin-bottom: 40px;
}

/* 网格视图样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 列表视图样式 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 产品项样式 */
.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 网格视图产品项 */
.product-item.grid-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-container {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-img-container i {
    font-size: 3.5rem;
    color: #003366;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: #003366;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-model {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-specs {
    margin-bottom: 15px;
    flex-grow: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.spec-label {
    color: #666;
}

.spec-value {
    color: #333;
    font-weight: 500;
}

.product-price {
    color: #FF9900;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.product-phone {
    color: #FF9900;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.detail-btn, .inquiry-btn {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
    flex: 1;
}

.detail-btn {
    background-color: #f8f9fa;
    color: #003366;
    border: 1px solid #ddd;
}

.detail-btn:hover {
    background-color: #e9ecef;
}

.inquiry-btn {
    background-color: #FF9900;
    color: white;
    border: none;
}

.inquiry-btn:hover {
    background-color: #e68a00;
}

/* 列表视图产品项 */
.product-item.list-view {
    display: flex;
    align-items: center;
    padding: 20px;
}

.product-item.list-view .product-img-container {
    width: 150px;
    height: 150px;
    margin-right: 20px;
    flex-shrink: 0;
}

.product-item.list-view .product-info {
    flex-grow: 1;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.product-item.list-view .product-title {
    margin-bottom: 5px;
}

.product-item.list-view .product-model {
    margin-bottom: 0;
}

.product-item.list-view .product-specs {
    margin-bottom: 0;
}

.product-item.list-view .spec-item {
    margin-bottom: 3px;
}

.product-item.list-view .product-price {
    margin-bottom: 0;
    text-align: center;
}

.product-item.list-view .product-actions {
    flex-direction: column;
    gap: 10px;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-btn {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-num {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-num:hover {
    background-color: #f5f5f5;
}

.page-num.active {
    background-color: #003366;
    border-color: #003366;
    color: white;
}

/* 产品详情模态框 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background-color: #f5f5f5;
}

.modal-product-info {
    padding: 30px;
}

.modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-img-container {
    flex: 0 0 300px;
    height: 250px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-img-container i {
    font-size: 4rem;
    color: #003366;
}

.modal-title-section {
    flex: 1;
    min-width: 300px;
}

.modal-title-section h2 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-model {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.modal-price {
    color: #FF9900;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-inquiry-btn {
    background-color: #FF9900;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.modal-inquiry-btn:hover {
    background-color: #e68a00;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.modal-specs-table th,
.modal-specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.modal-specs-table th {
    background-color: #f8f9fa;
    color: #003366;
    font-weight: 600;
    width: 30%;
}

.modal-specs-table tr:hover {
    background-color: #f9f9f9;
}

.modal-description h3,
.modal-features h3 {
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF9900;
}

.modal-description p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-features ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-list-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .list-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .product-item.list-view {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-item.list-view .product-img-container {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .product-item.list-view .product-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-header {
        flex-direction: column;
    }
    
    .modal-img-container {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .list-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-options {
        align-self: flex-start;
    }
    
    .modal-product-info {
        padding: 20px;
    }
    
    .modal-specs-table th,
    .modal-specs-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 1;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    
    .page-btn {
        order: 2;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-inquiry-btn {
        justify-content: center;
    }
}