:root {
    --primary-color: #FF5722;
    --danger-color: #FF2E54;
    --text-dark: #333;
    --text-gray: #999;
    --bg-gray: #f8f8f8;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
/* 搜索区域 */
.search-area {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #23262E;
    margin-bottom: 15px;
}

.layui-btn-danger{
    background: var(--danger-color) !important;
}
.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--danger-color);
    color: var(--danger-color);
}
/* ========== 商品列表整体布局 ========== */
.products-area {
    padding: 10px 0;
    background: var(--white);
    margin-top: 5px;
    padding-bottom: 50px;
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}
.logo{
    color: var(--danger-color) !important;
}

/* ========== 商品卡片：等高 + 对齐 ========== */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}


/* ========== 商品图片：统一高度 + 完整显示 ========== */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: #f9f9f9;
    padding: 10px;
    display: block;
}

/* ========== 商品信息区域 ========== */
.product-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}/* 按钮基础样式优化 */
.product-info .layui-btn.layui-btn-danger {
    margin-top: auto;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
}
/* 悬浮效果 */
.product-info .layui-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 87, 87, 0.3);
    opacity: 0.92;
}
/* 点击效果 */
.product-info .layui-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 标题：限制2行 + 溢出省略 */
.product-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

/* 按钮固定在底部 */
.product-info .layui-btn {
    margin-top: auto;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .product-img {
        height: 160px;
    }
    .product-name {
        font-size: 13px;
    }
}

