/* Products页面专用样式 */

/* 页面头部 - 确保不被导航栏遮挡 */
.page-header {
    margin-top: 80px; /* 为固定导航栏留出空间 */
    padding: 60px 0 40px;
    background: var(--gradient-primary);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* 产品筛选区域 - 专业设计 */
.product-filters {
    background: var(--bg-secondary);
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
    position: static;
    z-index: 100;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--bg-primary);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232c3e50' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--metal-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover {
    border-color: var(--metal-accent);
}

/* 产品区域 */
.products-section {
    padding: 40px 0;
    background: var(--bg-primary);
    min-height: 60vh;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.products-count span {
    color: var(--text-primary);
    font-weight: 700;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn:hover {
    border-color: var(--metal-accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.view-btn.active {
    background: var(--metal-primary);
    border-color: var(--metal-primary);
    color: var(--text-white);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* 加载状态 */
.products-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--metal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无产品状态 */
.no-products {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
}

.no-products i {
    font-size: 4rem;
    color: var(--metal-accent);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .filter-controls {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .filter-group {
        min-width: 160px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 70px;
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .product-filters {
        position: static;
        top: auto;
        padding: 20px 0;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 20px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filter-controls {
        padding: 15px;
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .filter-group {
        margin-bottom: 10px;
    }
    
    .filter-group select {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    .products-grid {
        gap: 1rem;
        padding: 0 10px;
    }
}

/* 专业增强效果 */
.filter-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 12px 12px 0 0;
}

.filter-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* 悬停效果增强 */
.filter-group:hover label {
    color: var(--metal-primary);
}

/* 专业阴影效果 */
.product-filters {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.filter-controls {
    box-shadow: 0 8px 25px var(--shadow-light);
} 