/* ========================================
   产品中心页面样式
   与主页共用 style.css 中的全局样式
   本文件仅定义产品中心页面独有样式
   ======================================== */

/* ---------- 页面标题区 ---------- */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 60%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

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

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #475569;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #f97316, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 500px;
}

/* ---------- 导航栏激活状态 ---------- */
.nav-links a.active {
    color: var(--secondary-color);
    background-color: rgba(249, 115, 22, 0.15);
}

/* ---------- 产品分类筛选 ---------- */
.product-filter {
    background-color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 68px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    background: white;
    color: var(--gray-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    color: white;
    border-color: var(--secondary-color);
}

/* ---------- 产品列表区 ---------- */
.product-list {
    padding: 3rem 0;
    background-color: #f8fafc;
    min-height: 400px;
}

.products-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

/* ---------- 产品详情卡片 ---------- */
.product-detail-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease both;
}

.product-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-detail-image {
    height: 220px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.product-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

.product-detail-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
}

.product-detail-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.product-detail-badge.recommend {
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
}

.product-detail-badge.new {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.product-detail-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-body h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-detail-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.product-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 6px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.88rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* ---------- 咨询按钮 ---------- */
.btn-inquiry {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ---------- 无结果提示 ---------- */
.no-result {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* ---------- 定制咨询 CTA ---------- */
.custom-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 75% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
}

.custom-cta .container {
    position: relative;
    z-index: 1;
}

.custom-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.custom-cta p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .products-grid-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-specs {
        grid-template-columns: 1fr 1fr;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .product-filter {
        top: auto;
        position: relative;
    }
}

@media (max-width: 480px) {
    .product-detail-specs {
        grid-template-columns: 1fr;
    }

    .custom-cta h2 {
        font-size: 1.5rem;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
    }
}
