/* 产品中心 UI 专业优化版 v2.0 - 2026-04-03 */
/* 优化原则：视觉层次清晰、信息密度合理、转化路径明确 */

/* ==================== 页面整体 ==================== */
.products-page {
    padding: 140px 0 80px !important;
    background: linear-gradient(180deg, #0a0a1a 0%, #0a1628 40%, #0d1b2a 70%, #0a0a1a 100%) !important;
    position: relative !important;
}

/* 添加微妙的背景装饰 */
.products-page::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1200px !important;
    height: 600px !important;
    background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

/* ==================== 系列标题区域 ==================== */
.series-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 48px !important;
    position: relative !important;
}

/* 系列标签 - 增强视觉识别 */
.series-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%) !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
    box-shadow: 0 8px 32px rgba(0,212,255,0.3), 0 0 0 1px rgba(255,255,255,0.1) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 系列标签光晕效果 */
.series-tag::after {
    content: '' !important;
    position: absolute !important;
    inset: -2px !important;
    background: linear-gradient(135deg, #00d4ff, #0099ff, #00d4ff) !important;
    border-radius: 50px !important;
    z-index: -1 !important;
    opacity: 0 !important;
    animation: glow 3s ease-in-out infinite !important;
}

@keyframes glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* ==================== 热门推荐标签 ==================== */
.hot-badge {
    padding: 6px 16px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%) !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255,75,87,0.4) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

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

/* ==================== 产品网格布局 ==================== */
.products-grid {
    display: grid !important;
    gap: 32px !important;
    margin-bottom: 80px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 桌面端：标准 3 列布局 */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 平板端：2 列布局 */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 移动端：1 列布局 */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==================== 特殊系列布局 ==================== */
/* 12V 系列 - 2 个产品并排 */
.series-block:nth-of-type(1) .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 24V 系列 - 2 个产品并排 */
.series-block:nth-of-type(2) .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 48V 系列 - 1 个产品居中 + 定制服务 */
.series-block:nth-of-type(3) .products-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
    flex-wrap: wrap !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.series-block:nth-of-type(3) .product-card {
    flex: 0 0 auto !important;
    max-width: 400px !important;
}

/* ==================== 产品卡片 ==================== */
.product-card {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
}

/* 悬停效果 - 增强反馈 */
.product-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    border-color: rgba(0,212,255,0.4) !important;
    box-shadow: 0 24px 80px rgba(0,212,255,0.2), 0 0 0 1px rgba(0,212,255,0.1) !important;
}

/* 热门推荐产品 - 特殊边框 */
.product-card.featured {
    border-color: rgba(0,212,255,0.3) !important;
    box-shadow: 0 0 40px rgba(0,212,255,0.1) !important;
}

/* ==================== 产品图片区域 ==================== */
.product-img {
    height: 240px !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 图片区域光晕 */
.product-img::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100px !important;
    height: 100px !important;
    background: radial-gradient(circle, rgba(0,212,255,0.25) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    transition: all 0.4s ease !important;
}

.product-card:hover .product-img::before {
    width: 140px !important;
    height: 140px !important;
    background: radial-gradient(circle, rgba(0,212,255,0.35) 0%, transparent 70%) !important;
}

/* 产品图片占位符 */
.product-img img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)) !important;
    transition: transform 0.4s ease !important;
}

.product-card:hover .product-img img {
    transform: scale(1.08) !important;
}

/* ==================== 产品信息区域 ==================== */
.product-info {
    padding: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* 产品系列标签 */
.product-series {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #00d4ff !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    display: inline-block !important;
}

/* 产品名称 */
.product-name {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* 产品描述 */
.product-description {
    font-size: 14px !important;
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ==================== 价格区域优化 ==================== */
.product-price-wrapper {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.product-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.product-original-price {
    font-size: 16px !important;
    color: rgba(255,255,255,0.4) !important;
    text-decoration: line-through !important;
}

.product-unit {
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
    margin-left: 4px !important;
}

/* ==================== 产品规格快速预览 ==================== */
.product-specs-preview {
    display: flex !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    margin: 12px 0 !important;
}

.spec-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.spec-label {
    font-size: 11px !important;
    color: rgba(255,255,255,0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.spec-value {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.9) !important;
}

/* ==================== CTA 按钮优化 ==================== */
.product-card .btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,153,255,0.1) 100%) !important;
    border: 1px solid rgba(0,212,255,0.4) !important;
    border-radius: 50px !important;
    color: #00d4ff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

.product-card .btn-outline:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.25) 0%, rgba(0,153,255,0.2) 100%) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 8px 30px rgba(0,212,255,0.3) !important;
    transform: translateY(-2px) !important;
}

/* 按钮图标 */
.product-card .btn-outline::after {
    content: '→' !important;
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

.product-card .btn-outline:hover::after {
    transform: translateX(4px) !important;
}

/* ==================== 分割线 ==================== */
.series-line {
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent) !important;
    margin: 60px 0 !important;
    position: relative !important;
}

/* 分割线中心装饰 */
.series-line::after {
    content: '◆' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: rgba(0,212,255,0.4) !important;
    font-size: 12px !important;
    background: #0a0a1a !important;
    padding: 0 16px !important;
}

/* ==================== 定制服务卡片 ==================== */
.custom-card {
    background: linear-gradient(135deg, rgba(244,114,182,0.08) 0%, rgba(168,85,247,0.06) 100%) !important;
    border: 1px solid rgba(244,114,182,0.25) !important;
    border-radius: 32px !important;
    padding: 60px 48px !important;
    text-align: center !important;
    transition: all 0.4s ease !important;
    max-width: 400px !important;
}

.custom-card:hover {
    border-color: rgba(244,114,182,0.5) !important;
    box-shadow: 0 20px 60px rgba(244,114,182,0.2) !important;
    transform: translateY(-8px) !important;
}

.custom-icon {
    font-size: 48px !important;
    margin-bottom: 24px !important;
}

.custom-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 16px !important;
}

.custom-desc {
    font-size: 16px !important;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
}

.custom-card .btn-outline {
    background: linear-gradient(135deg, rgba(244,114,182,0.2) 0%, rgba(168,85,247,0.15) 100%) !important;
    border-color: rgba(244,114,182,0.4) !important;
    color: #f472b6 !important;
}

.custom-card .btn-outline:hover {
    background: linear-gradient(135deg, rgba(244,114,182,0.3) 0%, rgba(168,85,247,0.25) 100%) !important;
    border-color: #f472b6 !important;
    box-shadow: 0 8px 30px rgba(244,114,182,0.3) !important;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 767px) {
    .products-page {
        padding: 120px 0 60px !important;
    }
    
    .series-tag {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
    
    .product-card {
        margin: 0 16px !important;
    }
    
    .product-name {
        font-size: 20px !important;
    }
    
    .product-price {
        font-size: 26px !important;
    }
    
    .product-specs-preview {
        flex-wrap: wrap !important;
    }
    
    .custom-card {
        padding: 40px 24px !important;
        margin: 0 16px !important;
    }
}

/* ==================== 辅助类 ==================== */
/* 折扣标签 */
.discount-badge {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    z-index: 10 !important;
}

/* 销量提示 */
.sales-count {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 8px !important;
}

.sales-count::before {
    content: '🔥' !important;
    font-size: 14px !important;
}
