/* 手机端会员前台样式：简洁实用 */
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f4f6f8;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    padding-bottom: 60px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 12px; }

/* 顶部 */
.topbar {
    background: #0a8fd4;
    color: #fff;
    padding: 14px 12px;
}
.topbar .t-title { font-size: 17px; font-weight: 600; }
.topbar .t-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.topbar-back {
    background: #0a8fd4;
    color: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
}
.topbar-back a { color: #fff; font-size: 15px; }
.topbar-back span { margin: 0 auto; font-size: 16px; font-weight: 600; }

/* 卡片 */
.card { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.card-h { font-size: 15px; font-weight: 600; margin-bottom: 8px; border-left: 3px solid #0a8fd4; padding-left: 8px; }

/* 商品列表 */
.goods { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.goods-item { width: 50%; padding: 5px; }
.goods-box { background: #fff; border-radius: 8px; overflow: hidden; }
.goods-box img { width: 100%; height: 130px; object-fit: cover; background: #eef3f7; }
.goods-info { padding: 8px; }
.goods-name { font-size: 14px; font-weight: 600; }
.goods-spec { color: #888; font-size: 12px; margin: 2px 0 4px; }
.goods-price { color: #e4393c; font-size: 15px; font-weight: 600; }
.goods-price em { font-style: normal; font-size: 12px; }
.goods-ex {
    color: #0a8fd4;
    font-size: 12px;
    margin-top: 3px;
    background: #eaf6fd;
    border-radius: 3px;
    padding: 3px 5px;
}
.btn-buy {
    display: block;
    text-align: center;
    background: #0a8fd4;
    color: #fff;
    border-radius: 4px;
    padding: 7px 0;
    margin-top: 6px;
    font-size: 14px;
}

/* 下单数量 */
.buy-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.buy-row img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.buy-row .b-info { flex: 1; padding: 0 10px; }
.buy-row .b-name { font-size: 14px; }
.buy-row .b-price { color: #e4393c; font-size: 14px; font-weight: 600; }
.stepper { display: flex; align-items: center; }
.stepper button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 16px;
    line-height: 1;
}
.stepper input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
}

/* 表单 */
.form-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.form-item label { display: block; color: #666; font-size: 13px; margin-bottom: 5px; }
.form-item input, .form-item select, .form-item textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px;
    outline: none;
}
.form-item textarea { min-height: 60px; resize: vertical; }
.btn-submit {
    display: block;
    width: 100%;
    background: #0a8fd4;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 16px;
    margin-top: 15px;
}
.btn-code {
    background: #0a8fd4;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 9px 10px;
    font-size: 13px;
    white-space: nowrap;
}
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }

/* 状态标签 */
.st-pending { color: #e4393c; }
.st-accepted { color: #0a8fd4; }
.st-shipping { color: #f5a623; }
.st-completed { color: #52c41a; }
.st-canceled { color: #999; }

/* 订单卡片 */
.order { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.order-h { display: flex; justify-content: space-between; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
.order-no { color: #888; font-size: 12px; }
.order-body { padding: 8px 0; font-size: 13px; }
.order-line { display: flex; justify-content: space-between; margin-bottom: 3px; }
.order-t { font-size: 12px; color: #999; border-top: 1px dashed #f0f0f0; padding-top: 8px; }

/* 消息提示 */
.msg { padding: 10px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; }
.msg-ok { background: #f0f9eb; color: #52c41a; border: 1px solid #e1f3d8; }
.msg-err { background: #fef0f0; color: #e4393c; border: 1px solid #fde2e2; }
.empty { text-align: center; color: #999; padding: 40px 0; }

/* 底部导航 */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 99;
}
.tabbar a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: #999;
    font-size: 12px;
}
.tabbar a.on { color: #0a8fd4; }
.tabbar a .ic { display: block; font-size: 17px; line-height: 1.4; }

/* 筛选 */
.filter { display: flex; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.filter a { flex: 1; text-align: center; padding: 10px 0; color: #666; font-size: 13px; }
.filter a.on { background: #0a8fd4; color: #fff; }

/* 汇总条 */
.sum-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 98;
}
.sum-bar .sum { color: #e4393c; font-size: 17px; font-weight: 600; }
.sum-bar button { background: #0a8fd4; color: #fff; border: 0; border-radius: 4px; padding: 9px 20px; font-size: 15px; }
