/* products.css - 产品列表页面样式 */

:root {
    --primary-color: #002878;
    --secondary-color: #f2f2f2;
    --accent-color: #00aaff;
    --text-color: #333;
    --text-secondary: #666;
    --light-gray: #f9f9f9;
    --dark-gray: #666;
    --gradient-blue: linear-gradient(135deg, #0066cc, #003d7a);
    --border-radius: 8px;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.12);
    --hot-badge-color: #e63946;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
   
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
}

/* 顶部信息栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    z-index: 1001; /* 高于导航栏 */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-phone i {
    font-size: 1rem;
}

.top-phone span {
    color: white;
}

/* 页面头部横幅 */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/static/img/pro/pro.jpg');
    background-size: cover;
    background-position: center;
    animation: zoom-in 10s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fade-in-up 1s ease-out;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
}

/* 产品主内容区域 */
.products-main-section {
    padding: 80px 0;
    background: white;
}

/* 产品分类区域 */
.product-category-section {
    margin-bottom: 100px;
}

.product-category-section:last-child {
    margin-bottom: 0;
}

/* 分类标题 */
.category-header {
    margin-bottom: 50px;
    text-align: left;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 400;
}

/* 产品行布局 - 3个产品 + 1个查看更多卡片 */
.products-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 产品卡片样式 */
.product-card {
    position: relative;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

/* 热销标签 */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--hot-badge-color);
    color: white;
    padding: 5px 14px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* 产品图片区域 */
.product-image-wrapper {
    width: 100%;
   
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: #f8f9fa;
   
}

.product-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-main-img {
    transform: scale(1.05);
}

/* 产品详情区域 */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 45px;
}

/* 产品规格行 */
.product-specs-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-voltage,
.product-capacity {
    font-weight: 500;
    color: var(--dark-gray);
}

.product-divider {
    color: var(--dark-gray);
    margin: 0 4px;
}

/* 产品特点 */
.product-features {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: auto;
}

.product-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 4px;
}

/* 查看更多卡片 */
.view-more-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border-radius: 0;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.view-more-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.view-more-content {
    width: 100%;
}

.view-more-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.view-more-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* 动画效果 */
@keyframes zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .view-more-card {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* 顶部信息栏响应式 */
    .top-bar {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left {
        display: none; /* 小屏幕隐藏欢迎语 */
    }
    
    /* 导航栏位置调整 */
    .navbar {
        top: 35px !important; /* 小屏幕顶部信息栏高度较小 */
    }
    
    body {
        padding-top: 35px; /* 调整页面上边距 */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .products-main-section {
        padding: 50px 0;
    }
    
    .product-category-section {
        margin-bottom: 60px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .products-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .view-more-card {
        grid-column: 1;
        padding: 30px 25px;
    }
    
    .product-card {
        padding: 25px 20px;
    }
    
    .product-image-wrapper {
        height: 180px;
        margin-bottom: 20px;
    }
    
    .product-name {
        font-size: 1rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* 顶部信息栏响应式 */
    .top-phone {
        font-size: 0.85rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .view-more-title {
        font-size: 1.4rem;
    }
}
