/* ===== 全局 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #333; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: 14px; outline: none; border: none; }
.red { color: #fd4d4d; }
.empty { text-align: center; color: #999; padding: 30px 16px; font-size: 14px; }
.empty.small { padding: 16px; }
.empty-wrap { padding: 60px 20px; text-align: center; }
.empty-big { font-size: 48px; margin-bottom: 12px; }
.block-btn { display: block; width: 88%; margin: 16px auto; text-align: center; border-radius: 22px; height: 44px; line-height: 44px; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mask.show { opacity: 1; pointer-events: auto; }
.skin-pop { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 100; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .25s ease; max-height: 80vh; overflow-y: auto; }
.skin-pop.show { transform: translateY(0); }

/* ===== 布局 ===== */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 56px; }
.content { padding-bottom: 12px; }
.nav { position: sticky; top: 0; z-index: 50; background: #fff; display: flex; align-items: center; height: 48px; padding: 0 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.nav-title { flex: 1; font-size: 16px; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-left { width: 44px; }
.nav-right { width: 44px; text-align: right; }
.nav-back { font-size: 30px; color: #333; line-height: 1; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid #eee; padding-bottom: env(safe-area-inset-bottom); z-index: 60; }
.tab-item { flex: 1; text-align: center; padding: 6px 0 8px; color: #999; font-size: 11px; }
.tab-item.active { color: #fd4d4d; }
.tab-ico { display: block; font-size: 20px; line-height: 1.2; }

/* ===== 首页 ===== */
.home-search { display: flex; margin: 10px 12px 6px; }
.home-search-input { flex: 1; height: 38px; background: #f2f3f5; border-radius: 19px; padding: 0 16px; font-size: 13px; border: none; }
.home-search-btn { width: 56px; height: 38px; background: none; color: #fd4d4d; font-weight: 600; }
.banner { position: relative; margin: 0 12px; border-radius: 12px; overflow: hidden; }
.banner-item { display: none; }
.banner-item.active { display: block; }
.banner-item img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.banner-dots .dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); margin: 0 3px; }
.banner-dots .dot.on { width: 16px; background: #fff; }
.shorcut { display: flex; margin: 12px; background: #fff; border-radius: 12px; padding: 14px 0; }
.shorcut a { flex: 1; text-align: center; font-size: 12px; color: #555; }
.shorcut .sc-ico { display: block; width: 42px; height: 42px; line-height: 42px; margin: 0 auto 6px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 600; }
.section { margin: 14px 12px; }
.section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-hd h2 { font-size: 16px; }
.section-hd a { font-size: 12px; color: #999; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods-card { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.gc-img { aspect-ratio: 1; background: #f2f3f5; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; }
.gc-name { font-size: 13px; padding: 8px 10px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.gc-sub { font-size: 11px; color: #999; padding: 2px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-meta { padding: 4px 10px 10px; font-size: 11px; color: #999; display: flex; justify-content: space-between; align-items: baseline; }
.gc-price { color: #fd4d4d; font-size: 12px; }
.gc-price b { font-size: 17px; }

/* ===== 分类页 ===== */
.cat-page { display: flex; min-height: calc(100vh - 110px); }
.cat-aside { width: 90px; background: #fff; }
.cat-aside-item { display: block; padding: 15px 8px; text-align: center; font-size: 13px; color: #666; border-left: 3px solid transparent; }
.cat-aside-item.active { color: #fd4d4d; background: #f5f6fa; border-left-color: #fd4d4d; font-weight: 600; }
.cat-main { flex: 1; padding: 12px; }
.cat-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { background: #fff; padding: 7px 14px; border-radius: 15px; font-size: 12px; color: #555; }
.cat-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-goods-item { background: #fff; border-radius: 10px; overflow: hidden; }
.cat-goods-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cgi-info { padding: 8px 10px; }
.cgi-name { font-size: 12px; height: 32px; overflow: hidden; line-height: 1.4; }
.cgi-price { color: #fd4d4d; margin-top: 4px; font-size: 12px; }
.cgi-price b { font-size: 16px; }

/* ===== 列表筛选 ===== */
.filterbar { display: flex; align-items: center; background: #fff; padding: 8px 12px; position: sticky; top: 48px; z-index: 40; }
.f-item { font-size: 13px; color: #666; margin-right: 16px; }
.f-item.on { color: #fd4d4d; font-weight: 600; }
.f-total { margin-left: auto; font-size: 11px; color: #999; }
.pager { display: flex; justify-content: center; align-items: center; padding: 16px; gap: 14px; }
.pg-btn { background: #fff; padding: 7px 14px; border-radius: 6px; font-size: 13px; }
.pg-info { color: #999; font-size: 13px; }

/* ===== 搜索 ===== */
.search-bar { background: #fff; padding: 10px 12px; position: sticky; top: 0; z-index: 40; }
.search-form { display: flex; }
.search-input { flex: 1; height: 36px; background: #f2f3f5; border-radius: 18px; padding: 0 14px; }
.search-submit { background: none; color: #fd4d4d; font-weight: 600; }
.search-panel { padding: 16px 14px; }
.sp-block { margin-bottom: 20px; }
.sp-block h4 { font-size: 14px; margin-bottom: 10px; }
.sp-hd { display: flex; justify-content: space-between; align-items: center; }
.sp-clear { color: #999; font-size: 12px; background: none; }
.hot-words { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-word { background: #fff; padding: 7px 14px; border-radius: 15px; font-size: 13px; }
.search-result { padding: 12px; }
.sr-head { font-size: 13px; color: #666; margin-bottom: 10px; }

/* ===== 商品详情 ===== */
.gallery { background: #fff; }
.gallery-inner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-item { flex: none; width: 100%; aspect-ratio: 1; scroll-snap-align: center; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { text-align: center; background: #fff; padding-bottom: 6px; }
.g-info { background: #fff; padding: 12px 14px; }
.g-price { color: #fd4d4d; font-size: 13px; }
.g-price b { font-size: 24px; }
.g-price del { color: #bbb; font-size: 12px; margin-left: 6px; }
.g-name { font-size: 16px; margin: 6px 0; line-height: 1.4; }
.g-sub { font-size: 12px; color: #999; }
.g-meta { font-size: 12px; color: #999; margin-top: 8px; }
.g-coupon-row, .g-select-row { background: #fff; margin-top: 8px; padding: 12px 14px; display: flex; align-items: center; font-size: 13px; }
.g-coupon-row { color: #fd9644; }
.coupon-tag { border: 1px solid #fd9644; border-radius: 3px; font-size: 11px; padding: 1px 4px; margin-right: 8px; }
.g-link-btn { margin-left: auto; background: none; color: #999; font-size: 13px; }
.g-select-row { justify-content: space-between; }
.g-sel-label { color: #666; font-weight: 600; }
.g-sel-val { flex: 1; padding: 0 10px; color: #999; font-size: 13px; }
.g-section { background: #fff; margin-top: 8px; padding: 14px; }
.g-section-title { font-size: 14px; margin-bottom: 12px; }
.g-section-title small { color: #999; font-weight: normal; }
.g-detail { font-size: 14px; line-height: 1.8; }
.comment-item { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.comment-item:last-child { border-bottom: none; }
.cm-hd { display: flex; justify-content: space-between; font-size: 12px; color: #888; }
.cm-score { color: #f7b731; }
.cm-content { font-size: 13px; margin: 6px 0; line-height: 1.6; }
.cm-time { font-size: 11px; color: #ccc; }
.g-actionbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; display: flex; align-items: center; padding: 6px 10px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 50; border-top: 1px solid #f0f0f0; }
.ga-item { width: 54px; text-align: center; color: #555; }
.ga-ico { display: block; font-size: 20px; }
.ga-txt { font-size: 10px; }
.ga-btn { flex: 1; height: 40px; border-radius: 20px; color: #fff; font-size: 14px; font-weight: 600; margin-left: 8px; }
.btn-red { background: linear-gradient(135deg, #ff6b6b, #fd4d4d); color: #fff; border: none; }
.btn-gold { background: linear-gradient(135deg, #ffb347, #ff8c42); color: #fff; }
.btn-gray { background: #eee; color: #666; }
.sk-pop-hd { display: flex; align-items: center; padding: 14px; position: relative; }
.sk-pop-hd img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; margin-right: 12px; }
.sk-price { color: #fd4d4d; font-size: 18px; font-weight: 600; }
.sk-stock { color: #999; font-size: 12px; }
.sk-sel { color: #666; font-size: 12px; }
.sk-close { position: absolute; right: 12px; top: 6px; font-size: 22px; color: #999; background: none; }
.sk-body { padding: 0 14px 14px; }
.sk-label { font-size: 13px; color: #333; margin-bottom: 10px; }
.sk-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sk-opt { border: 1px solid #e5e5e5; background: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; }
.sk-opt.on { border-color: #fd4d4d; color: #fd4d4d; }
.sk-opt:disabled { color: #ccc; text-decoration: line-through; }
.sk-foot { display: flex; gap: 10px; padding: 0 14px 14px; }
.sk-foot button { flex: 1; height: 42px; border-radius: 21px; font-size: 14px; color: #fff; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #e5e5e5; border-radius: 6px; }
.step-btn { width: 30px; height: 30px; background: #f7f8fa; font-size: 16px; }
.step-input { width: 44px; height: 30px; text-align: center; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; background: #fff; }

/* ===== 购物车 ===== */
.cart-list { padding: 10px 12px; }
.cart-item { position: relative; background: #fff; border-radius: 10px; padding: 12px 10px 12px 4px; display: flex; align-items: center; margin-bottom: 10px; }
.check { display: inline-flex; align-items: center; padding: 4px 6px; }
.check input { display: none; }
.check-box { width: 18px; height: 18px; border: 1px solid #ccc; border-radius: 50%; display: inline-block; position: relative; flex: none; }
.check input:checked + .check-box { border-color: #fd4d4d; background: #fd4d4d; }
.check input:checked + .check-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:disabled + .check-box { background: #eee; border-color: #ddd; }
.cart-img { width: 76px; height: 76px; flex: none; border-radius: 8px; overflow: hidden; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; padding: 0 10px; min-width: 0; }
.cart-name { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-spec { font-size: 11px; color: #999; margin: 4px 0; }
.cart-price { color: #fd4d4d; font-size: 13px; }
.cart-price b { font-size: 17px; }
.cart-invalid { color: #ccc; font-size: 12px; }
.cart-del { position: absolute; right: 8px; bottom: 8px; background: none; color: #999; font-size: 12px; }
.cart-bar { position: fixed; bottom: 56px; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; display: flex; align-items: center; padding: 8px 10px; border-top: 1px solid #f0f0f0; z-index: 50; }
.cart-bar-total { flex: 1; text-align: right; font-size: 13px; margin-right: 10px; }
.cart-submit { height: 38px; border-radius: 19px; padding: 0 22px; font-size: 14px; font-weight: 600; }
.cart-submit:disabled { opacity: .5; }

/* ===== 确认订单 ===== */
.ck-address { background: #fff; padding: 14px; display: flex; align-items: center; }
.cka-main { flex: 1; }
.cka-user { font-size: 15px; font-weight: 600; }
.cka-mobile { color: #999; font-weight: normal; margin-left: 8px; }
.cka-street { font-size: 13px; color: #666; margin-top: 4px; line-height: 1.5; }
.cka-arrow { color: #ccc; font-size: 20px; }
.cka-empty { color: #fd4d4d; flex: 1; }
.ck-block { background: #fff; margin-top: 8px; padding: 14px; }
.ck-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ck-item { display: flex; align-items: center; margin-bottom: 10px; }
.ck-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.cki-info { flex: 1; }
.cki-name { font-size: 13px; line-height: 1.4; }
.cki-spec { font-size: 11px; color: #999; margin: 4px 0; }
.cki-price { font-size: 12px; color: #333; }
.ck-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px dashed #f0f0f0; }
.ck-row:last-child { border-bottom: none; }
.ck-val { color: #999; }
.ck-val b { color: #333; font-size: 15px; margin-left: 6px; }
.ck-remark { width: 100%; border: 1px solid #eee; border-radius: 8px; padding: 10px; resize: none; }
.ck-pay-opt { display: flex; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px dashed #f0f0f0; }
.ck-pay-opt:last-child { border-bottom: none; }
.ck-pay-opt input { margin-right: 8px; }
.ck-pay-tip { color: #999; font-size: 12px; margin-left: 6px; }
.coupon-opt { display: flex; align-items: center; padding: 14px; border-bottom: 1px solid #f5f5f5; }
.coupon-opt.on { background: #fff7f7; }
.coupon-opt.no-use { justify-content: space-between; color: #666; }
.co-amount { color: #fd4d4d; font-size: 14px; margin-right: 12px; width: 70px; }
.co-amount b { font-size: 22px; }
.co-info b { display: block; font-size: 14px; }
.co-info small { font-size: 12px; color: #999; }
.ck-bar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; display: flex; align-items: center; padding: 8px 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 50; border-top: 1px solid #f0f0f0; }
.ck-bar-total { flex: 1; text-align: right; font-size: 13px; margin-right: 10px; }
.ck-submit { height: 42px; border-radius: 21px; padding: 0 26px; font-size: 15px; font-weight: 600; }

/* ===== 支付 ===== */
.pay-page { padding: 20px 14px; text-align: center; }
.pay-card { background: #fff; border-radius: 12px; padding: 26px 16px; }
.pay-title { color: #666; font-size: 14px; }
.pay-amount { font-size: 15px; color: #fd4d4d; margin: 12px 0 6px; }
.pay-amount b { font-size: 34px; }
.pay-desc, .pay-countdown { color: #999; font-size: 12px; margin-top: 6px; }
.pay-channels { background: #fff; border-radius: 12px; margin-top: 14px; padding: 6px 14px; text-align: left; }
.pay-channel { display: flex; align-items: center; padding: 14px 0; font-size: 14px; }
.pay-channel + .pay-channel { border-top: 1px solid #f5f5f5; }
.pay-btn { width: 100%; height: 46px; border-radius: 23px; font-size: 16px; margin-top: 18px; }
.pay-back { display: block; color: #999; font-size: 13px; margin-top: 16px; }

/* ===== 订单 ===== */
.order-tabs { position: sticky; top: 48px; z-index: 40; background: #fff; display: flex; padding: 0 6px; border-bottom: 1px solid #f2f2f2; }
.ot-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: #666; border-bottom: 2px solid transparent; }
.ot-tab.on { color: #fd4d4d; border-bottom-color: #fd4d4d; font-weight: 600; }
.order-card { background: #fff; border-radius: 10px; margin: 10px 12px; padding: 12px; }
.order-hd { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 10px; }
.badge { padding: 1px 8px; border-radius: 4px; font-size: 11px; color: #fff; }
.badge.orange { background: #fd9644; }
.badge.blue { background: #4a6cf7; }
.badge.purple { background: #a55eea; }
.badge.cyan { background: #2bcbba; }
.badge.gray { background: #a5b1c2; }
.order-goods { display: flex; align-items: center; }
.order-goods img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.ogi-info { flex: 1; padding-left: 10px; min-width: 0; }
.ogi-name { font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogi-amount { font-size: 12px; color: #666; margin-top: 6px; }
.order-ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.mini-btn { border: 1px solid #ddd; background: #fff; color: #555; padding: 6px 14px; border-radius: 15px; font-size: 12px; }
.mini-btn.red { border-color: #fd4d4d; color: #fd4d4d; }
.mini-btn.outline { border-color: #ccc; color: #666; }

/* ===== 订单详情 ===== */
.od-status { padding: 22px 16px; color: #fff; }
.od-status.red { background: linear-gradient(135deg, #fd9644, #ff6b6b); }
.od-status.orange { background: linear-gradient(135deg, #fd9644, #f7b731); }
.od-status.blue { background: linear-gradient(135deg, #4a6cf7, #7f9cff); }
.od-status.purple { background: linear-gradient(135deg, #a55eea, #d0a5ff); }
.od-status.cyan { background: linear-gradient(135deg, #2bcbba, #7ce5d6); }
.od-status.gray { background: linear-gradient(135deg, #8d99a6, #b8c2cc); }
.ods-main { font-size: 20px; font-weight: 600; }
.ods-sub { font-size: 12px; margin-top: 6px; opacity: .9; }
.od-address { background: #fff; padding: 14px; }
.oda-user { font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.oda-user span { color: #999; font-weight: normal; margin-left: 8px; }
.oda-street { font-size: 13px; color: #666; margin-top: 4px; line-height: 1.6; }
.od-block { background: #fff; margin-top: 8px; padding: 14px; }
.od-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.od-goods { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f7f7f7; }
.od-goods:last-child { border-bottom: none; }
.od-goods img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.odg-info { flex: 1; min-width: 0; }
.odg-name { font-size: 13px; line-height: 1.4; }
.odg-spec { font-size: 11px; color: #999; margin: 3px 0; }
.odg-price { font-size: 12px; }
.od-express { display: block; background: #f7f9ff; color: #4a6cf7; font-size: 13px; padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.od-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: #555; }
.od-row.red b { color: #fd4d4d; }
.od-row.gray { color: #bbb; font-size: 12px; }
.od-textarea { width: 100%; border: 1px solid #eee; border-radius: 8px; padding: 10px; resize: none; margin-bottom: 10px; }
.c-score { margin: 8px 0 10px; }
.c-score label { cursor: pointer; font-size: 22px; color: #f7b731; margin-right: 8px; }
.c-score input { display: none; }
.c-score label input:not(:checked) ~ span { color: #e0e0e0; }
.od-foot { display: flex; justify-content: flex-end; gap: 10px; background: #fff; margin-top: 8px; padding: 12px 14px; }
.od-log { font-size: 12px; color: #888; padding: 5px 0; border-left: 2px solid #eee; padding-left: 10px; margin-left: 4px; }
.od-log span { color: #bbb; margin-right: 8px; }

/* ===== 我的 ===== */
.u-head { background: linear-gradient(135deg, #ff6b6b, #fd8b5f); padding: 22px 16px 30px; display: flex; align-items: center; color: #fff; }
.u-avatar { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; }
.u-info { flex: 1; padding-left: 12px; }
.u-name { font-size: 18px; font-weight: 600; }
.u-mobile { font-size: 12px; opacity: .9; margin-top: 4px; }
.u-edit { font-size: 13px; opacity: .9; }
.u-order { background: #fff; margin: -16px 12px 0; border-radius: 10px; padding: 12px; }
.u-order-title { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; color: #333; }
.u-order-title span { font-size: 12px; color: #999; font-weight: normal; }
.u-order-grid { display: flex; padding-top: 12px; }
.u-order-grid a { flex: 1; text-align: center; color: #666; font-size: 12px; }
.u-order-grid b { display: block; font-size: 18px; color: #333; margin-bottom: 4px; }
.u-order-grid b.red { color: #fd4d4d; }
.u-menu { background: #fff; margin: 12px; border-radius: 10px; padding: 14px 6px; display: grid; grid-template-columns: repeat(4, 1fr); }
.u-menu a { display: flex; flex-direction: column; align-items: center; padding: 10px 0; font-size: 12px; color: #666; position: relative; }
.u-menu-ico { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.u-menu-txt { color: #666; }
.u-menu-badge { position: absolute; top: 4px; right: 10px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: #fd4d4d; color: #fff; font-style: normal; font-size: 11px; text-align: center; }
.u-invite { background: linear-gradient(135deg, #fff6f0, #fff); margin: 12px; border-radius: 10px; padding: 14px; border: 1px solid #ffe4d6; }
.u-invite-hd { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #333; }
.u-invite-hd small { font-weight: normal; color: #fd4d4d; font-size: 12px; }
.u-invite-code { font-size: 24px; font-weight: 700; letter-spacing: 3px; color: #fd4d4d; text-align: center; margin: 12px 0; padding: 10px; background: #fff; border-radius: 8px; border: 1px dashed #fd4d4d; }
.u-invite-btn { width: 100%; height: 38px; border-radius: 19px; background: #fd4d4d; color: #fff; font-size: 14px; }
.u-invite-qr { text-align: center; margin: 10px 0; }
.u-invite-qr img { display: block; width: 180px; height: 180px; margin: 0 auto; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid #ffe4d6; }
.u-invite-tip { text-align: center; font-size: 12px; color: #999; margin-top: 6px; }
.logout-btn { display: block; margin: 14px 12px; padding: 12px; text-align: center; background: #fff; color: #666; border-radius: 10px; font-size: 14px; }

/* ===== 个人资料 ===== */
.pf-card { background: #fff; margin: 12px; border-radius: 10px; }
.pf-row { display: flex; align-items: center; padding: 14px; border-bottom: 1px solid #f7f7f7; font-size: 14px; }
.pf-row > span { width: 70px; color: #555; }
.pf-row input, .pf-row select { flex: 1; border: none; }
.pf-avatar { position: relative; }
.pf-avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.pf-avatar input { position: absolute; inset: 0; opacity: 0; }

/* ===== 地址 ===== */
.addr-list { padding: 12px; }
.addr-item { background: #fff; border-radius: 10px; padding: 14px; display: flex; align-items: center; margin-bottom: 10px; }
.ai-main { flex: 1; }
.ai-user { font-size: 14px; font-weight: 600; }
.ai-user span { color: #999; font-weight: normal; margin-left: 6px; }
.ai-def { background: #fd4d4d; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 8px; font-weight: normal; }
.ai-street { font-size: 13px; color: #666; margin-top: 5px; }
.ai-del { background: none; color: #999; font-size: 13px; }
.addr-add { background: linear-gradient(135deg, #ff6b6b, #fd4d4d); }
.addr-form { background: #fff; margin: 12px; border-radius: 10px; }
.af-row { display: flex; align-items: center; padding: 14px; border-bottom: 1px solid #f7f7f7; }
.af-row span { width: 80px; color: #555; font-size: 14px; }
.af-row input { flex: 1; }
.af-default { display: block; padding: 14px; font-size: 13px; }
.af-default input { margin-right: 6px; }

/* ===== 收藏/足迹 ===== */
.foot-list { padding: 12px; }
.foot-item { background: #fff; border-radius: 10px; display: flex; padding: 10px; margin-bottom: 10px; align-items: center; }
.foot-item img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.fi-info { flex: 1; padding-left: 10px; min-width: 0; }
.fi-name { font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-time { font-size: 11px; color: #ccc; margin: 4px 0; }
.fi-price { color: #fd4d4d; font-size: 13px; }
.fi-price b { font-size: 16px; }

/* ===== 优惠券 ===== */
.cp-tabs { position: sticky; top: 48px; z-index: 40; background: #fff; display: flex; }
.cp-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: #666; border-bottom: 2px solid transparent; }
.cp-tab.on { color: #fd4d4d; font-weight: 600; border-bottom-color: #fd4d4d; }
.coupon-card { display: flex; background: #fff; margin: 10px 12px; border-radius: 10px; overflow: hidden; position: relative; }
.coupon-card.live { margin-bottom: 12px; }
.cc-left { width: 96px; background: linear-gradient(160deg, #ff6b6b, #ff9a8b); color: #fff; text-align: center; padding: 16px 0; flex: none; }
.cc-left::after { content: ''; position: absolute; left: 96px; top: 0; bottom: 0; border-left: 2px dashed rgba(255,255,255,.8); }
.cc-live .cc-left { background: linear-gradient(160deg, #ffb347, #ff8c42); }
.cc-amount { font-size: 13px; }
.cc-amount b { font-size: 26px; }
.cc-threshold { font-size: 11px; margin-top: 4px; opacity: .9; }
.cc-right { flex: 1; padding: 12px 12px 12px 16px; min-width: 0; }
.cc-name { font-size: 14px; font-weight: 600; }
.cc-time, .cc-num { font-size: 11px; color: #999; margin-top: 4px; }
.cc-state { font-size: 12px; color: #999; margin-top: 4px; }
.coupon-card.live .cc-state { display: none; }
.cc-receive { align-self: center; margin-right: 12px; background: #fd4d4d; color: #fff; padding: 8px 14px; border-radius: 16px; font-size: 12px; flex: none; }
.cc-receive.disabled { background: #ccc; }

/* ===== 售后 ===== */
.rf-card { background: #fff; margin: 10px 12px; border-radius: 10px; padding: 12px; display: block; }
.rf-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.rf-goods { display: flex; align-items: center; }
.rf-goods img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.rfg-info { flex: 1; font-size: 13px; line-height: 1.6; }
.rf-no { font-size: 11px; color: #999; margin-top: 10px; }
.rf-goods-info { background: #fff; margin: 10px 12px; border-radius: 10px; padding: 12px; display: flex; align-items: center; }
.rf-goods-info img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.rfgi-info { flex: 1; font-size: 13px; line-height: 1.7; }
.rf-form { background: #fff; margin: 10px 12px; border-radius: 10px; padding: 14px; }
.rf-row { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f7f7f7; }
.rf-row > span { width: 90px; color: #555; font-size: 14px; flex: none; padding-top: 6px; }
.rf-row select, .rf-row textarea, .rf-row input { flex: 1; border: none; background: #f7f8fa; border-radius: 6px; padding: 8px 10px; }
.rf-row textarea { resize: none; }
.rf-upload { flex: 1; display: flex; gap: 10px; }
.up-box { width: 70px; height: 70px; border: 1px dashed #ccc; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.up-box input { position: absolute; opacity: 0; inset: 0; }
.up-plus { font-size: 24px; color: #bbb; }
.up-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.rf-imgs { display: flex; gap: 8px; margin-top: 8px; }
.rf-imgs img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.rf-tip { background: #fff7e6; color: #b77412; font-size: 13px; margin: 12px; padding: 12px; border-radius: 8px; }

/* ===== 登录 ===== */
.login-page { padding: 40px 26px; }
.login-logo { text-align: center; font-size: 40px; margin-bottom: 6px; }
.login-logo span { display: block; font-size: 16px; color: #666; margin-top: 4px; }
.login-tabs { display: flex; justify-content: center; margin: 26px 0 20px; border-bottom: 1px solid #eee; }
.lt-tab { width: 120px; text-align: center; padding: 10px 0; font-size: 15px; color: #888; border-bottom: 2px solid transparent; }
.lt-tab.on { color: #fd4d4d; border-bottom-color: #fd4d4d; font-weight: 600; }
.login-error { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.lf-item { display: flex; align-items: center; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.lf-pre { color: #666; font-size: 14px; margin-right: 10px; }
.lf-item input { flex: 1; height: 46px; font-size: 15px; background: none; }
.lf-send { color: #fd4d4d; font-size: 13px; background: none; white-space: nowrap; }
.login-btn { width: 100%; height: 46px; border-radius: 23px; font-size: 16px; margin-top: 10px; }
.login-tip { text-align: center; color: #999; font-size: 12px; margin-top: 16px; }

/* ===== 物流 ===== */
.ex-block { background: #fff; margin: 12px; border-radius: 10px; padding: 14px; }
.ex-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.ex-timeline { padding-left: 6px; }
.ex-node { position: relative; padding: 0 0 22px 22px; }
.ex-node::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: #eee; }
.ex-node:last-child::before { display: none; }
.ex-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ddd; border: 2px solid #fff; box-shadow: 0 0 0 2px #ddd; }
.ex-node.now .ex-dot { background: #fd4d4d; box-shadow: 0 0 0 2px #fd4d4d; }
.ex-text { font-size: 13px; color: #999; }
.ex-node.now .ex-text { color: #333; font-weight: 600; }
.ex-time { font-size: 11px; color: #ccc; margin-top: 4px; }

/* ===== 留言/客服 ===== */
.msg-page { padding: 12px; }
.msg-form-card, .msg-list-card { background: #fff; border-radius: 12px; padding: 14px; }
.msg-list-card { margin-top: 12px; }
.msg-form-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.msg-row { display: flex; align-items: flex-start; margin-bottom: 12px; }
.msg-row > label { width: 56px; color: #555; font-size: 14px; flex: none; padding-top: 8px; }
.msg-row select, .msg-row input, .msg-row textarea { flex: 1; border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #f7f8fa; }
.msg-row textarea { resize: none; }
.msg-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.msg-item:last-child { border-bottom: none; }
.msg-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-type { background: #f2f3f5; color: #555; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.msg-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; }
.msg-status.s0 { background: #fd9644; }
.msg-status.s1 { background: #31b057; }
.msg-status.s2 { background: #a5b1c2; }
.msg-time { margin-left: auto; font-size: 11px; color: #ccc; }
.msg-content { font-size: 14px; color: #333; line-height: 1.6; }
.msg-reply { background: #f7f9ff; border-radius: 8px; padding: 10px; margin-top: 8px; position: relative; }
.msg-reply-tag { display: inline-block; font-size: 11px; color: #4a6cf7; font-weight: 600; margin-bottom: 4px; }
.msg-reply p { font-size: 13px; color: #555; line-height: 1.6; }
.msg-reply-time { display: block; font-size: 11px; color: #bbb; margin-top: 4px; }

/* ===== 地址三级联动 / 运费说明 ===== */
.af-region { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.af-region select { width: 100%; height: 38px; background: #f7f8fa; border: 1px solid #eee; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #333; }
.af-region select:invalid { color: #999; }
.ck-express { color: #888; font-weight: normal; margin-left: 4px; }
.ck-note { display: block; font-size: 11px; color: #fd9644; margin-top: 2px; }
.mini-in { width: 80px; }
/* ===== 消息中心 ===== */
.notif-tabs { display: flex; background: #fff; padding: 0 4px; overflow-x: auto; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.nt-tab { flex: 1; text-align: center; padding: 12px 6px; font-size: 13px; color: #666; white-space: nowrap; border-bottom: 2px solid transparent; }
.nt-tab.on { color: #fd4d4d; border-bottom-color: #fd4d4d; font-weight: 600; }
.notif-readall-bar { display: flex; align-items: center; justify-content: space-between; background: #fff7e6; margin: 10px 12px; padding: 8px 14px; border-radius: 8px; font-size: 13px; color: #d48806; }
.notif-item { background: #fff; margin: 8px 12px; border-radius: 10px; padding: 14px; cursor: pointer; transition: background .15s; }
.notif-item.unread { border-left: 3px solid #fd4d4d; }
.notif-item.unread .notif-title { font-weight: 600; }
.notif-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.notif-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; }
.notif-type.t1 { background: #4a6cf7; }
.notif-type.t2 { background: #fd9644; }
.notif-type.t3 { background: #e84393; }
.notif-type.t4 { background: #a5b1c2; }
.notif-dot { color: #fd4d4d; font-size: 10px; }
.notif-time { margin-left: auto; font-size: 11px; color: #ccc; }
.notif-title { font-size: 14px; color: #333; margin-bottom: 4px; }
.notif-content { font-size: 13px; color: #777; line-height: 1.5; }
.notif-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #4a6cf7; }

/* ===== 首页公告栏 ===== */
.home-notice { display: flex; align-items: center; background: #fff; margin: 8px 12px; border-radius: 10px; padding: 8px 12px; gap: 8px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.hn-icon { font-size: 16px; flex: none; }
.hn-scroll { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 20px; }
.hn-item { display: inline-block; font-size: 13px; color: #555; padding-right: 30px; animation: hnScroll 18s linear infinite; }
.hn-scroll:hover .hn-item { animation-play-state: paused; }
@keyframes hnScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hn-more { color: #ccc; flex: none; }

/* ===== 新闻资讯 ===== */
.news-cats { display: flex; background: #fff; padding: 0 4px; overflow-x: auto; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.nc-tab { flex: none; padding: 12px 16px; font-size: 13px; color: #666; white-space: nowrap; border-bottom: 2px solid transparent; }
.nc-tab.on { color: #4a6cf7; border-bottom-color: #4a6cf7; font-weight: 600; }
.news-card { display: flex; background: #fff; margin: 8px 12px; border-radius: 10px; overflow: hidden; gap: 12px; padding: 12px; }
.news-cover { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.news-info { flex: 1; min-width: 0; }
.news-cat-tag { display: inline-block; font-size: 10px; color: #4a6cf7; background: #eef2ff; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; }
.news-title { font-size: 15px; font-weight: 600; color: #222; line-height: 1.4; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-summary { font-size: 12px; color: #888; line-height: 1.4; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-meta { display: flex; gap: 12px; font-size: 11px; color: #bbb; }
.news-detail { padding: 16px; }
.nd-title { font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 10px; }
.nd-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #999; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.nd-cover { width: 100%; border-radius: 10px; margin-bottom: 16px; }
.nd-summary { font-size: 14px; color: #666; line-height: 1.7; background: #f7f8fa; border-radius: 8px; padding: 12px; margin-bottom: 16px; border-left: 3px solid #4a6cf7; }
.nd-content { font-size: 15px; color: #333; line-height: 1.8; }
.nd-content p { margin-bottom: 12px; }
.nd-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.nd-nav { display: flex; gap: 10px; padding: 0 16px 20px; }
.nd-nav-item { flex: 1; background: #fff; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #777; }
.nd-nav-item b { display: block; font-size: 13px; color: #333; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-nav-item.right { text-align: right; }
.nd-nav-item.empty { text-align: center; color: #ccc; align-self: center; }
