* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; width: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f6f8;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom:100px;
}
body.has-tabbar {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }
input, textarea { font-family: inherit; outline: none; }

.header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #eee;
    height: 48px;
}
.header .back { font-size: 20px; color: #333; padding: 4px 8px; margin: -4px -16px; }
.header .title { font-size: 17px; font-weight: 600; color: #222; }
.header .right { color: #666; font-size: 14px; }

.konghang{ min-height: 10vh; }
.btn {
    display: inline-block; padding: 12px 24px;
    border-radius: 24px; font-size: 15px;
    text-align: center; width: 100%;
    transition: opacity .2s;
}
.btn-primary { background: linear-gradient(135deg, #ff5000, #ff8040); color: #fff; font-weight: 600; }
.btn-primary:active { opacity: .85; }

.btn2 {
    display: inline-block; padding: 12px 24px;
    border-radius: 10px; font-size: 15px;
    text-align: center; width: 100%;
    transition: opacity .2s;
}
.btn-primary2 { background: linear-gradient(135deg, #ff5000, #ff8040); color: #fff; font-weight: 600;width:200px; }
.btn-primary2:active { opacity: .85; }
.btn-outline { border: 1px solid #ff5000; color: #ff5000; background: #fff; }
.btn-disabled { background: #f0f0f0; color: #999; border: none; cursor: not-allowed; }
.btn-block { display: block; }

.input-group {
    background: #fff; border-radius: 10px; padding: 4px 16px;
    margin-bottom: 12px; display: flex; align-items: center;
}
.input-group input {
    flex: 1; height: 48px; border: none; font-size: 15px; background: transparent;
}
.input-group .sms-btn {
    white-space: nowrap; color: #ff5000; font-size: 13px; padding: 0 8px;
    border-left: 1px solid #eee; margin-left: 8px; height: 32px;
}
.input-group .sms-btn.disabled { color: #999; }

.card {
    background: #fff; border-radius: 12px; margin: 12px; padding: 16px;
}

.tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    background: #fff; display: flex; z-index: 100;
    border-top: 1px solid #eee; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 6px 0; font-size: 11px; color: #999;
}
.tabbar a.active { color: #ff5000; }
.tabbar a .icon { font-size: 22px; margin-bottom: 2px; }
.tabbar a .icon.ri, .tabbar a i.ri { font-size: 24px; line-height: 1; }

.tag {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; margin-right: 6px;
}
.tag-red { background: #fff0f0; color: #ff5000; }
.tag-orange { background: #fff7f0; color: #ff8040; }
.tag-gray { background: #f0f0f0; color: #999; }
.tag-green { background: #f0fff5; color: #00a86b; }

.price { color: #ff5000; font-weight: 700; }
.price::before { content: '\00a5'; font-size: 12px; }
.original-price { color: #999; text-decoration: line-through; font-size: 12px; margin-left: 6px; }

.divider { height: 1px; background: #f0f0f0; margin: 0; }

.empty {
    text-align: center; padding: 60px 20px; color: #999;
}
.empty .icon { font-size: 48px; margin-bottom: 12px; }

.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.8); color: #fff; padding: 10px 20px;
    border-radius: 8px; z-index: 9999; font-size: 14px;
    opacity: 0; transition: opacity .2s;
    pointer-events: none; max-width: 80%;
}
.toast.show { opacity: 1; }

.modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 200; display: none; align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 12px; padding: 20px;
    width: 80%; max-width: 320px; text-align: center;
}
.modal .title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.modal .content { color: #666; font-size: 14px; margin-bottom: 20px; }
.modal .btns { display: flex; gap: 10px; }
.modal .btns .btn { flex: 1; }

.swiper {
    position: relative; overflow: hidden; width: 100%;
}
.swiper-wrapper {
    display: flex; transition: transform .4s ease;
}
.swiper-slide {
    flex: 0 0 100%; width: 100%;
}
.swiper-slide img { width: 100%; aspect-ratio: 18/9; object-fit: cover; }
.swiper-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 4px;
}
.swiper-dots .dot {
    width: 6px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,.5); transition: width .2s;
}
.swiper-dots .dot.active { width: 16px; background: #fff; }

.product-item {
    background: #fff; margin: 8px 12px; border-radius: 12px; overflow: hidden;
}
.product-item img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.product-item .info { padding: 12px; }
.product-item .name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 6px; }
.product-item .bottom { display: flex; align-items: center; justify-content: space-between; }
.product-item .limit-num { font-size: 12px; color: #999; }
.product-item .buy-btn {
    background: linear-gradient(135deg, #ff5000, #ff8040); color: #fff;
    padding: 6px 16px; border-radius: 16px; font-size: 13px; font-weight: 600;
}
.product-item .bottom-left .price { font-size: 20px; }

.order-card {
    background: #fff; margin: 12px; border-radius: 12px; padding: 14px;
}
.order-card .order-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; margin-bottom: 10px;
}
.order-card .order-no { font-size: 12px; color: #999; }
.order-card .order-status { font-size: 13px; color: #ff5000; }
.order-card .order-content { display: flex; gap: 12px; }
.order-card .order-content img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.order-card .order-info { flex: 1; display: flex; flex-direction: column; }
.order-card .order-info .name { font-size: 14px; font-weight: 500; color: #222; }
.order-card .order-info .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.order-card .order-footer {
    margin-top: 12px; padding-top: 10px; border-top: 1px solid #f5f5f5;
    display: flex; justify-content: flex-end; gap: 8px;
}
.order-card .order-footer .btn { width: auto; padding: 6px 14px; font-size: 13px; }

.stat-row {
    display: flex; background: #fff; margin: 12px; border-radius: 12px; padding: 16px;
}
.stat-row .stat-item {
    flex: 1; text-align: center; border-right: 1px solid #f0f0f0;
}
.stat-row .stat-item:last-child { border-right: none; }
.stat-row .stat-item .num { font-size: 22px; font-weight: 700; color: #ff5000; }
.stat-row .stat-item .label { font-size: 12px; color: #999; margin-top: 4px; }

.menu-list {
    background: #fff; margin: 12px; border-radius: 12px; overflow: hidden;
}
.menu-item {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .icon { font-size: 20px; margin-right: 12px; color: #ff5000; }
.menu-item .text { flex: 1; font-size: 15px; color: #333; }
.menu-item .arrow { color: #ccc; font-size: 16px; }

.wallet-card {
    background: linear-gradient(135deg, #ff5000, #ff8040);
    margin: 12px; border-radius: 16px; padding: 20px; color: #fff;
}
.wallet-card .balance-label { font-size: 13px; opacity: .9; }
.wallet-card .balance-value { font-size: 36px; font-weight: 700; margin-top: 6px; }
.wallet-card .balance-value::before { content: '\00a5'; font-size: 18px; margin-right: 2px; }
.wallet-card .sub-row { display: flex; margin-top: 16px; gap: 24px; }
.wallet-card .sub-row .sub-item .val { font-size: 16px; font-weight: 600; }
.wallet-card .sub-row .sub-item .lab { font-size: 11px; opacity: .85; }
.wallet-info { background: rgba(255,255,255,.15); border-radius: 10px; margin-top: 16px; padding: 4px 14px; }
.wallet-info .wi-row { display: flex; align-items: center; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.wallet-info .wi-row:last-child { border-bottom: none; }
.wallet-info .wi-label { font-size: 13px; opacity: .9; width: 100px; flex-shrink: 0; }
.wallet-info .wi-value { flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; padding-right: 4px; }
.wallet-info .wi-arrow { font-size: 18px; opacity: .8; flex-shrink: 0; }

.member-item {
    display: flex; align-items: center; background: #fff;
    margin: 8px 12px; padding: 14px; border-radius: 12px;
}
.member-item .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #ff5000, #ff8040); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; margin-right: 12px; flex-shrink: 0;
}
.member-item .info { flex: 1; min-width: 0; }
.member-item .info .row-top { display: flex; justify-content: space-between; align-items: center; }
.member-item .info .row-top .name { font-size: 15px; font-weight: 500; }
.member-item .info .row-top .uid { font-size: 12px; color: #ff5000; text-align: right; flex-shrink: 0; margin-left: 8px; }
.member-item .info .email { font-size: 12px; color: #999; margin-top: 2px; }
.member-item .info .row-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; margin-top: 4px; }
.member-item .info .row-meta .join-time { color: #999; text-align: right; flex-shrink: 0; margin-left: 8px; }

.refund-banner {
    background: linear-gradient(135deg, #fff7f0, #fff);
    margin: 12px; padding: 16px; border-radius: 12px;
    border: 1px solid #ffe8d6;
}
.refund-banner .title { font-size: 16px; font-weight: 600; color: #ff5000; }
.refund-banner .desc { font-size: 13px; color: #666; margin-top: 6px; }
.refund-banner .progress {
    margin-top: 12px; display: flex; align-items: center; gap: 8px;
}
.refund-banner .progress-bar {
    flex: 1; height: 8px; background: #ffe8d6; border-radius: 4px; overflow: hidden;
}
.refund-banner .progress-fill {
    height: 100%; background: linear-gradient(90deg, #ff5000, #ff8040); border-radius: 4px;
    transition: width .3s;
}
.refund-banner .progress-text { font-size: 13px; color: #ff5000; font-weight: 600; }

.page-title {
    font-size: 16px; font-weight: 600; padding: 16px 16px 8px; color: #333;
}
