/* 产品展示页面样式 */

/* banner区域 */
.banner {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    background-image: url('../image/product_banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 600px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0
}

.banner-content {
    position: relative;
    z-index: 1;
}

/* 响应式设计 - banner区域 */
@media (max-width: 768px) {
    .banner {
        padding: 50px 0;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 40px 0;
        height: 400px;
    }
}

/* 产品展示标题 */
.product-header {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
}

.product-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -1px;
}

.product-subtitle {
    font-size: 24px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
}

/* 产品推荐 */
.product-recommendation {
    background-color: #f5f5f5;
    padding: 60px 0;
    margin: 0;
}

/* 产品推荐标题 */
.recommendation-title {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 40px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 产品推荐网格 - 一行4张图片 */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommendation-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.recommendation-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    max-width: 100%;
}

.recommendation-name {
    display: none;
}

/* 产品推荐响应式设计 */
@media (max-width: 768px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .recommendation-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recommendation-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .product-recommendation {
        padding: 40px 0;
    }
}

/* 产品分类 */
.product-category {
    margin: 0;
    border-bottom: none;
    background-color: transparent;
}

/* 上部分：背景图和右侧文本模块 */
.category-top {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* 全屏背景图 - 石英表 */
.product-category:not(.mechanical-category) .category-bg {
    background-image: url('../image/category_quartz_bg.jpg');
}

/* 全屏背景图 - 机械表 */
.product-category.mechanical-category .category-bg {
    background-image: url('../image/category_mechanical_bg.jpg');
}

/* 基础背景图样式 */
.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 右侧文本模块 - 石英表 */
.product-category:not(.mechanical-category) .category-text-box {
    background-color: #112037;
}

/* 右侧文本模块 - 机械表 */
.product-category.mechanical-category .category-text-box {
    background-color: #1e1c1d;
}

/* 基础右侧文本模块样式 */
.category-text-box {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 300px;
    padding: 40px 30px;
    color: #fff;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-text-box .category-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 1px;
}

.category-text-box .category-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    font-weight: normal;
    line-height: 1.4;
}

.category-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
    text-align: left;
}

/* 按钮样式 - 圆角 */
.more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: gold;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.more-btn:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 下部分：3张图片展示 */
.category-bottom {
    padding: 80px 0;
    background-color: #fff;
    margin: 0;
}

/* 产品列表 - 3张图片一行 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 0;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    background-color: #fafafa;
    padding: 10px;
    border: 1px solid #eee;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    text-align: left;
    width: 100%;
}

/* 移除旧的分类头部样式 */
.category-header {
    display: none;
}

/* 移除旧的产品详情样式 */
.product-detail {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .category-top {
        height: 450px;
    }
    
    .category-text-box {
        width: 280px;
        padding: 35px 25px;
        right: 5%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .category-bottom {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .category-top {
        height: 400px;
    }
    
    .category-text-box {
        width: 90%;
        max-width: 300px;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        padding: 30px 25px;
        text-align: center;
    }
    
    .category-text-box .category-title,
    .category-text-box .category-subtitle,
    .category-description {
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 80%;
    }
    
    .category-bottom {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .category-top {
        height: 350px;
    }
    
    .category-text-box {
        width: 95%;
        padding: 25px 20px;
    }
    
    .category-text-box .category-title {
        font-size: 28px;
    }
    
    .category-text-box .category-subtitle {
        font-size: 16px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .product-grid {
        max-width: 90%;
    }
    
    .category-bottom {
        padding: 50px 0;
    }
}

.detail-image {
    flex: 1;
    background-color: #fafafa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
}

/* 优化图片加载 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.detail-info {
    flex: 1;
    background-color: #fafafa;
    padding: 40px 50px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.detail-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.detail-info p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
}

.detail-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-detail {
        gap: 50px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .product-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .recommendation-grid {
        gap: 25px;
    }
    
    .recommendation-item {
        text-align: center;
    }
    
    .recommendation-item img {
        width: 130px;
        margin: 0 auto;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-detail {
        flex-direction: column;
        gap: 25px;
        padding: 15px;
    }
    
    .detail-info {
        padding: 30px 15px;
    }
    
    .detail-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }
    
    /* 增强移动端内容区域对比度 */
    .product-category {
        background-color: #fff;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .product-recommendation {
        background-color: #f8f8f8;
    }
    
    /* 统一移动端字体行高 */
    .product-name {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .detail-info p {
        font-size: 15px;
        line-height: 1.6;
        color: #555;
    }
    
    .more-btn {
        font-size: 13px;
        padding: 10px 25px;
        margin-top: 25px;
    }
}

/* 中型手机屏幕优化（480px-768px） */
@media (max-width: 576px) {
    .product-title {
        font-size: 29px;
        letter-spacing: -0.4px;
    }
    
    .product-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .recommendation-grid {
        gap: 22px;
    }
    
    .recommendation-item {
        text-align: center;
    }
    
    .recommendation-item img {
        width: 120px;
        margin: 0 auto;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .product-detail {
        gap: 22px;
        padding: 15px;
    }
    
    .detail-info {
        padding: 28px 15px;
    }
    
    .detail-title {
        font-size: 22px;
        letter-spacing: -0.3px;
    }
    
    /* 统一中型手机字体行高 */
    .product-name {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .detail-info p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .more-btn {
        font-size: 12px;
        padding: 9px 23px;
        margin-top: 23px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 26px;
        letter-spacing: -0.3px;
        margin-bottom: 12px;
    }
    
    .product-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .product-header {
        padding: 40px 0;
    }
    
    .product-recommendation {
        padding: 40px 0;
    }
    
    .product-category {
        padding: 50px 0;
    }
    
    .recommendation-item {
        text-align: center;
    }
    
    .recommendation-item img {
        width: 110px;
        margin: 0 auto;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-item {
        background-color: #fff;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    }
    
    .category-title {
        font-size: 22px;
        letter-spacing: -0.3px;
        margin-bottom: 15px;
    }
    
    .detail-title {
        font-size: 20px;
        letter-spacing: -0.2px;
    }
    
    .product-detail {
        padding: 12px;
        margin-bottom: 30px;
        gap: 20px;
    }
    
    .detail-info {
        padding: 25px 12px;
    }
    
    .detail-image {
        padding: 12px;
    }
    
    /* 优化小屏设备字体 */
    .product-name {
        font-size: 14px;
        font-weight: 600;
    }
    
    .detail-info p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .more-btn {
        font-size: 12px;
        padding: 9px 22px;
        margin-top: 20px;
    }
    
    /* 优化产品分类标题 */
    .category-header {
        margin-bottom: 40px;
    }
}