/* 产品列表页样式表 */
/* 页面内部Banner */
.inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/pro.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
/* 主内容区域 */
.main-content {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.product-list-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 筛选工具栏 */
.filter-toolbar {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #007bff;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 250px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-btn {
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #0056b3;
}

.reset-btn {
    padding: 8px 20px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.reset-btn:hover {
    background-color: #5a6268;
}

/* 产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 产品图片区域 */
.product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-images {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    max-width: 100%;
}

.product-card:hover .product-images {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.new {
    background-color: #28a745;
}

.product-badge.hot {
    background-color: #dc3545;
}

/* 产品信息区域 */
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 产品详细信息 */
.product-details {
    flex-grow: 1;
}

.detail-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    flex-shrink: 0;
    width: 90px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

/* 产品特性标签 */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.feature-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* 查看详情按钮 */
.view-detail-btn {
    margin-top: 15px;
    padding: 10px 0;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-detail-btn:hover {
    background-color: #0056b3;
}

.view-detail-btn i {
    transition: transform 0.3s;
}

.view-detail-btn:hover i {
    transform: translateX(3px);
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #333;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    padding: 0 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .inner-banner {
        height: 280px;
    }
    
    .inner-banner-title {
        font-size: 2rem;
    }
    
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .inner-banner {
        height: 220px;
    }
    
    .inner-banner-title {
        font-size: 1.8rem;
    }
    
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .detail-label {
        width: 80px;
        font-size: 0.85rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .inner-banner {
        height: 180px;
    }
    
    .inner-banner-title {
        font-size: 1.5rem;
    }
    
    .inner-banner-subtitle {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .filter-toolbar {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 产品详情模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-modal {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff4444;
    background: #fff;
    transform: scale(1.1);
}

#productDetailContent {
    padding: 30px;
}

#productDetailContent h2 {
    color: #2c5282;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 20px;
}

.product-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-detail-info p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
    line-height: 1.5;
}

.product-detail-info p:last-child {
    border-bottom: none;
}

.product-detail-info strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.product-detail-info .product-features {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

.product-detail-info .product-features .feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 5px 5px 5px 0;
    font-weight: 500;
}

/* 模态框动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-image {
        height: 250px;
    }
    
    #productDetailContent {
        padding: 20px;
    }
    
    #productDetailContent h2 {
        font-size: 24px;
    }
    
    .product-detail-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    #productDetailContent {
        padding: 15px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* ========== 分页导航详细样式 ========== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    flex: 1;
    color: #666;
    font-size: 0.95rem;
    white-space: nowrap;
    font-weight: 500;
}

.pagination-info strong {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-btn {
    padding: 10px 18px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #adb5bd;
}

.prev-btn i, .next-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.page-btn:hover:not(:disabled) i {
    transform: translateX(-2px);
}

.next-btn:hover:not(:disabled) i {
    transform: translateX(2px);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px;
}

.page-number {
    min-width: 42px;
    height: 42px;
    padding: 0 5px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.page-number.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    font-weight: 600;
}

.page-ellipsis {
    padding: 0 10px;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #6c757d;
}

.jump-input {
    width: 65px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jump-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.jump-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.jump-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* 分页导航响应式设计 */
@media (max-width: 992px) {
    .pagination {
        gap: 15px;
        padding: 15px;
    }
    
    .page-btn {
        padding: 8px 14px;
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .page-number {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .pagination-controls {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-info {
        order: 1;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .pagination-jump {
        order: 3;
        justify-content: center;
    }
    
    .page-numbers {
        margin: 0 8px;
        gap: 4px;
    }
    
    .page-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .pagination {
        padding: 12px;
        gap: 12px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-numbers {
        order: 2;
        margin: 0;
        justify-content: center;
    }
    
    .prev-btn {
        order: 1;
    }
    
    .next-btn {
        order: 3;
    }
    
    .page-btn {
        min-width: auto;
        width: 100%;
        max-width: 120px;
    }
    
    .jump-input {
        width: 55px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .jump-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .pagination-info {
        font-size: 0.85rem;
    }
    
    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pagination-jump {
        font-size: 0.85rem;
    }
}

