body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f7f7;
}

/* 顶部导航 */
.header {
    background: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

/* 筛选栏 */
.filters-box {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column; /* ← 改成上下排列 */
    gap: 10px;
}
.filters {
    display: flex;
    gap: 8px;
    background: #fff;
}
.filters input,
.filters select {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#region-select {
    display: block;
    width: 137px !important; /* 强制宽度生效 */
    max-width: 137px;
    min-width: 137px;
}


#category-select {
    display: block;
    width: 150px !important; /* 强制宽度生效 */
}

#commission-select{
    display: block;
    width: 150px !important; /* 强制宽度生效 */
}

#price-select{
    display: block;
    width: 150px !important; /* 强制宽度生效 */
    min-width: 137px;
}

/* 商品列表 */
#product-list {
    padding: 10px;
}

.product-card {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee; /* 分割线 */
    margin-bottom: 10px;           /* 可选间隔 */
}

.product-card .product-detail {
    display: flex;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.product-card .product-detail img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
}
.product-card .product-detail .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card .product-detail .info h2 {
    font-size: 16px !important;
    margin: 0 0 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card .product-detail .info h2 a {
    color: #333;
    text-decoration: none;
}

.product-card .product-detail .info h2 a:hover {
    color: #1E90FF;  /* 悬停变蓝 */
    text-decoration: underline;
}

.product-card .product-detail .price {
    font-size: 20px;
    font-weight: bold;
    color: #ff4d4f;
    margin: 0 0 5px;
}

.product-card .product-detail .item1 {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
}

.product-card .meta {
    display: flex;
    justify-content: space-between;
}

.product-card .sxbj {
    display: flex;
    flex-direction: column; /* ← 改成上下排列 */
}

.product-card .sxbj2 {
    display: flex;
    flex-direction: column; /* ← 改成上下排列 */
    align-items: center;    /* 水平居中 */
    justify-content: center;

    width: 80px;
    background-color: #3B82F6; /* 背景色 */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;        /* 禁止选中文字 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-card .sxbj2:hover {
    background-color: #2563EB; /* hover 提示颜色 */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.product-card .sxbj2:active {
    background-color: #1D4ED8; /* 点击时稍暗 */
    transform: scale(0.98);
}

.product-card .sxbj span + span {
    margin-top: -6px; /* 让文字靠近一些 */
}

.product-card .sxbj2 span + span {
    margin-top: -6px; /* 让文字靠近一些 */
}

.product-card .item2 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin: 0 0 5px;
}

.product-card .item3 {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
}

.product-card .item4 {
    font-size: 13px;
    color: white;
    margin: 0 0 5px;
}

.product-card .icon-wrapper {
    display: inline-block;
    width: 25px;   /* 固定大小 */
    height: 25px;
}

.product-card .icon-wrapper svg {
    width: 25px;
    height: 25px;
    transition: transform 0.2s;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
}
.footer a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}
.footer a.active {
    color: #ff4d4f;
}
.footer span {
    display: block;
}
