/* 产品页面样式 */

/* CSS变量定义 */
:root {
    --primary-color: #FF6D00;
    --secondary-color: #E65100;
    --text-dark: #212121;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-cream: #FFF8F0;
    --bg-warm: #FFF3E0;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
}

/* 产品页面整体背景 */
.products-page-wrapper {
    background: linear-gradient(180deg, #FAFAFA 0%, #FFF8F0 50%, #FFF3E0 100%);
    min-height: 100vh;
}

/* 页面标题区域 */
.page-header {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8C42 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 分类标签区域 */
.categories-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #FFF8F0 0%, #FAFAFA 100%);
}

.categories-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid rgba(255, 109, 0, 0.2);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 109, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.4), 0 0 0 3px rgba(255, 109, 0, 0.2);
    transform: translateY(-2px);
    font-weight: 600;
    position: relative;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.category-tab.active i {
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.category-tab i {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* 产品列表区域 */
.products-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFF8F0 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 109, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 109, 0, 0.15);
    border-color: rgba(255, 109, 0, 0.3);
}
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.product-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #ccc;
    font-size: 64px;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 42, 0.4);
}

.product-card-content {
    padding: 24px;
}

.product-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.product-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.product-card-link:hover {
    gap: 12px;
}

/* 加载和空状态 */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
    background: linear-gradient(180deg, #FFF8F0 0%, #FFF3E0 100%);
    border-radius: 16px;
    margin: 20px 0;
}

.loading-state i,
.empty-state i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.6;
}

.loading-state span,
.empty-state p {
    font-size: 18px;
    color: var(--text-light);
}
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.loading-state i,
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.loading-state span,
.empty-state p {
    font-size: 18px;
}

/* 产品详情页面 */
.product-detail-section {
    margin-top: 70px;
    padding: 40px 0 80px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    color: var(--text-gray);
    font-size: 15px;
}

.breadcrumb-nav a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* 产品图片画廊 */
.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 42, 0.4);
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 15px;
}

.product-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 产品规格 */
.product-specs h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 15px;
}

.spec-label {
    color: var(--text-gray);
}

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

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* 联系信息框 */
.contact-info-box {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DB 100%);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--primary-color);
}

.contact-info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--primary-color);
}

.contact-method i {
    color: var(--primary-color);
}

/* 产品详情富文本 */
.product-detail-full {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-light);
}

.product-detail-full h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-content {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 相关产品 */
.related-products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .categories-tabs {
        gap: 12px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-title {
        font-size: 28px;
    }

    .main-image {
        height: 300px;
    }

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

    .product-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}
