/* 产品中心增强样式 */

/* 产品英雄区域优化 */
.products-hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-dots.png');
    opacity: 0.1;
    z-index: 1;
}

.products-hero .container {
    position: relative;
    z-index: 2;
}

.products-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.products-hero p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

/* 产品统计数据样式优化 */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    animation: fadeInUp 1.2s ease;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 产品分类导航优化 */
.product-categories-nav {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.categories-nav-sticky {
    padding: 15px 0;
}

.categories-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.categories-list::-webkit-scrollbar {
    height: 4px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.categories-list li {
    flex: 0 0 auto;
    margin-right: 20px;
}

.category-link {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-link:hover,
.category-link.active {
    background: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* 产品展示区域优化 */
.products-showcase {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-category {
    margin-bottom: 80px;
    scroll-margin-top: 150px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.category-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.category-header p {
    color: #7f8c8d;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* 产品网格优化 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 产品卡片优化 */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-placeholder {
    position: relative;
    padding-top: 75%;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    overflow: hidden;
}

.placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.7;
}

.placeholder-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
}

/* 产品徽章优化 */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.product-badge.new {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.product-badge.eco {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.product-badge.smart {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.product-badge.economy {
    background: linear-gradient(135deg, #f46b45, #eea849);
}

.product-badge.premium {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.product-badge.industrial {
    background: linear-gradient(135deg, #283c86, #45a247);
}

.product-badge.heavy {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

/* 产品信息优化 */
.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

.product-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
}

/* 产品对比面板优化 */
.comparison-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #3498db;
}

.comparison-panel.active {
    transform: translateY(0);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comparison-header h3 {
    font-size: 18px;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
}

.comparison-products {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.comparison-product {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
    position: relative;
}

.comparison-product h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.remove-product {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

.comparison-actions {
    display: flex;
    justify-content: flex-end;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .products-hero {
        padding: 100px 0 60px;
    }
    
    .products-hero h1 {
        font-size: 36px;
    }
    
    .products-hero p {
        font-size: 18px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .product-categories-nav {
        top: 60px;
    }
    
    .category-header h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 28px;
    }
    
    .products-hero p {
        font-size: 16px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .comparison-products {
        flex-direction: column;
    }
    
    .comparison-product {
        width: 100%;
    }
}

/* 产品详情页样式增强 */
.product-detail-hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    padding: 120px 0 60px;
    color: white;
    position: relative;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-dots.png');
    opacity: 0.1;
}

.product-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.product-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: white;
}

.product-breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-detail-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-detail-info h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-detail-info p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-icon {
    font-size: 18px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.product-detail-actions .btn {
    padding: 12px 25px;
}

/* 产品详情主体内容 */
.product-detail-body {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-tabs {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-button {
    padding: 20px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #3498db;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-specs-table th {
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.product-specs-table td {
    color: #7f8c8d;
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
    border-bottom: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.feature-content p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 相关产品 */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-detail-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .product-detail-hero {
        padding: 100px 0 40px;
    }
    
    .product-detail-info h1 {
        font-size: 28px;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 15px 20px;
        font-size: 14px;
    }
}