/* 产品列表页通用样式 */

/* 简单的产品列表样式 */
.product-list-content {
    padding-top: 0;
}

/* 品牌宣语区域样式 - 从product.css复制 */
.brand-slogan {
    text-align: center;
    padding: 0;
    background-color: #111;
    position: relative;
    margin-bottom: 60px;
    height: 31.25rem; /* 500px转换为rem单位（假设16px=1rem） */
    background-image: url('../images/brand-concept.jpg'); /* 使用品牌概念图作为背景 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-slogan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 半透明黑色遮罩 */
    z-index: 1;
}

.brand-slogan .container {
    position: relative;
    z-index: 2;
}

.brand-slogan h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    opacity: 1; /* 强制显示 */
    transform: none; /* 移除动画效果 */
    animation: none; /* 禁用动画，确保始终可见 */
}

.brand-slogan p {
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 4px;
    opacity: 1; /* 强制显示 */
    transform: none; /* 移除动画效果 */
    animation: none; /* 禁用动画，确保始终可见 */
}

/* 系列简介样式 */
.series-description {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background-color: rgba(140, 110, 74, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.series-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(140, 110, 74, 0.15);
    background-color: rgba(140, 110, 74, 0.1);
}

.series-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8c6e4a, #d4b18a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.series-description:hover::before {
    transform: scaleX(1);
}

.series-description::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewY(20deg);
    transition: top 0.8s ease;
}

.series-description:hover::after {
    top: 100%;
}

.series-description p {
    font-size: 1.1rem;
    color: #e0e0e0; /* 修改为更偏白色的文本颜色 */
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.series-description:hover p {
    color: #ffffff; /* 悬停时改为纯白色 */
}

/* 产品网格 - 一排四个布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* CSS3效果增强 */
.product-item {
    background-color: rgba(140, 110, 74, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    height: auto;
}

/* 响应式设计 - 确保容器在移动设备上正确显示 */
@media (max-width: 992px) {
    .container {
        width: 100% !important;
        padding: 0 1.25rem !important;
        margin: 0 auto !important;
    }
    
    /* 产品网格响应式调整 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .brand-slogan {
        height: 25rem;
    }
    
    .brand-slogan h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-slogan {
        height: 20rem;
    }
    
    .brand-slogan h1 {
        font-size: 2rem;
    }
    
    .brand-slogan p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100% !important;
        padding: 0 0.75rem !important;
    }
    
    .brand-slogan {
        height: 15rem;
    }
    
    .brand-slogan h1 {
        font-size: 1.5rem;
    }
}

.product-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: rgba(140, 110, 74, 0.1);
}

.product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比，确保正方形 */
    overflow: hidden;
    position: relative;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.15);
    filter: brightness(1.05) contrast(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(249, 249, 249, 0.9));
}

/* 确保product-link占据整个产品项 */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-right: 8px;
}

.product-item:hover .product-info h3 {
    color: #8c6e4a;
}

.product-info p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.product-item:hover .product-info p {
    color: #555;
}

/* 悬停时添加额外效果 */
.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8c6e4a, #d4b18a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-item:hover::after {
    transform: scaleX(1);
}

/* 返回按钮样式 */
.back-to-series {
    text-align: center;
    margin: 60px 0;
    padding: 20px;
}

.back-to-series a {
    display: inline-block;
    padding: 14px 40px;
    background-color: #8c6e4a;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-to-series a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.back-to-series a:hover {
    background-color: #a88858;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(140, 110, 74, 0.3);
}

.back-to-series a:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .brand-slogan h1 {
        font-size: 2.2rem;
    }
    
    .brand-slogan p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-slogan h1 {
        font-size: 1.8rem;
    }
}