/* 产品展示新布局样式 - 参照图片样式 */

/* 产品列表容器 - 垂直布局，一行一个 */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 单个产品项 - 垂直卡片布局 */
.product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 产品名称 - 顶部标题 */
.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding: 1.5rem 1rem 1rem 1rem;
    text-align: center;
    line-height: 1.2;
}

/* 产品图片区域 - 中间，显示三张图片 */
.product-images {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 1rem 0;
    padding: 1rem;
}

.product-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.product-image-item {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.product-image-item:hover {
    transform: scale(1.05);
}

.product-image-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.2;
}

.product-image-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70%;                     /* 增加宽度确保文字不换行 */
    max-width: 120px;               /* 增加最大宽度 */
    margin: 0 auto;                 /* 居中显示 */
    white-space: nowrap;            /* 防止文字换行 */
}

.product-image-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 产品内容区域 - 底部按钮 */
.product-content {
    padding: 0 1rem 1.5rem 1rem;
    text-align: center;
}

/* Quote Now 按钮 */
.btn-quote-product {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-quote-product:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 管理后台产品图片管理样式 */
.product-images-manager {
    margin-top: 1rem;
}

.product-images-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-image-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
}

.product-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-image-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.product-image-content {
    display: flex;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-images {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .product-image-item {
        height: 220px;
    }
    
    .product-image-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .products-list {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .product-images {
        flex-direction: column;        /* 手机端垂直排列 */
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .product-image-container {
        width: 100%;                  /* 手机端全宽 */
    }
    
    .product-image-item {
        height: 230px;                /* 手机端图片高度 */
    }
    
    .product-image-name {
        font-size: 0.8rem;
        margin: 0.4rem 0;
        padding: 0.2rem 0.4rem;
    }
    
    .product-image-btn {
        font-size: 1rem;
        padding: 10px 20px;
        width: 80%;                 /* 手机端更宽确保文字不换行 */
        max-width: 140px;
        white-space: nowrap;
    }
    
    .product-name {
        font-size: 1.3rem;
        padding: 1rem 0.8rem 0.8rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-list {
        gap: 1rem;
    }
    
    .product-images {
        flex-direction: column;        /* 小屏手机也垂直排列 */
        gap: 1rem;
        padding: 0.3rem;
    }
    
    .product-image-container {
        width: 100%;                  /* 小屏手机全宽 */
    }
    
    .product-image-item {
        height: 200px;                /* 小屏手机图片高度 */
    }
    
    .product-image-name {
        font-size: 0.75rem;
        margin: 0.3rem 0;
        padding: 0.15rem 0.3rem;
    }
    
    .product-image-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        width: 80%;                 /* 小屏手机也确保文字不换行 */
        max-width: 120px;
        white-space: nowrap;
    }
    
    .product-name {
        font-size: 1.2rem;
        padding: 1rem 1rem 0.8rem 1rem;
    }
}
