﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 8px;
    /* 手机端安全边距 */
    padding-bottom: env(safe-area-inset-bottom);
}

.list-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

    .list-item:last-child {
        border-bottom: none;
    }
/* 手机端图片自适应 */
.item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
   /* object-fit: cover;*/
    flex-shrink: 0;
    margin-right: 10px;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    min-width: 0; /* 解决文字挤压问题 */
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    /* 文字超出省略 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.item-title2 {
    font-size: 13px;
    font-weight:300;
    color: #999;
    line-height: 1.3;
    /* 文字超出省略 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-area {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.btn-area {
   float:right
}

.price-current {
    font-size: 16px;
    color: #ff4d4f;
    font-weight: 400;
}

.price-tag {
    background-color: #fff2e8;
    color: #ff4d4f;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
}

.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.sales-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}
/* 手机端按钮适配 */
.buy-btn {
    background-color: #ff7d00;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}

    .buy-btn:active {
        background-color: #e67000;
    }
