﻿
.product-nav-placeholder {
    height: 75px; /* 设置为导航栏的实际高度 */
    width: 100%;
    background: transparent;
}
/* 主容器 - 案例展示页面核心，不包含任何外部导航 */
.product-showcase {
    max-width: 1280px;
    margin: 10rem auto 4rem;
    padding: 0 2rem;
}

/* 页面标题区 */
.product-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-page-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(125deg, #0f172a, #2d3a6e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.product-page-sub {
    font-size: 1.8rem;
    color: #475569;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 筛选标签栏 (纯案例筛选) */
.product-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.product-filter-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .product-filter-btn:hover {
        border-color: #2563eb;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.04);
    }

    .product-filter-btn.product-active-filter {
        background: #2563eb;
        border-color: #2563eb;
        color: white;
        box-shadow: 0 4px 10px rgba(37,99,235,0.2);
    }

/* 案例网格 - 卡片区域 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 默认每行4个 */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 案例卡片样式 product- 前缀完整 */
.product-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.1);
    }

.product-card-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.4s;
}

/* 内容区 */
.product-card-content {
    padding: 1.5rem 1.25rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 0.8rem;
}

.product-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.product-card-desc {
    color: #475569;
    font-size: 1.5rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
    flex: 1;
}

.product-card-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

    .product-card-link:hover {
        gap: 10px;
        text-decoration: underline;
    }

/* 空状态样式 */
.product-empty-message {
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 2rem;
    color: #64748b;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* 加载更多按钮 */
.product-load-more {
    text-align: center;
    margin-top: 1rem;
}

.product-btn-more {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .product-btn-more:hover {
        border-color: #2563eb;
        background: #2563eb;
        color: white;
    }

/* 简单响应式 */
@media (max-width: 640px) {
    .product-showcase {
        padding: 0 1.2rem;
        margin: 1.5rem auto 3rem;
    }

    .product-page-title {
        font-size: 2rem;
    }

    .product-grid {
        gap: 1.2rem;
    }
}


/* 加载动画 */
.product-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态样式 */
.product-empty-message {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #999;
    grid-column: 1 / -1;
}

/* 卡片悬停效果增强 */
.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.product-card-link {
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 小于1200px显示3个 */
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 小于900px显示2个 */
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr; /* 小于640px显示1个 */
        gap: 1.2rem;
    }
}