* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --red: #ea6254; --bg: #f5f5f5; --card: #fff; --text: #333; --gray: #999; --bd: #eee; }
body { font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
input, button { font-family: inherit; font-size: inherit; outline: none; }
a { color: inherit; text-decoration: none; }

/* ===== 登录 ===== */
.login-page { min-height: 100vh; background: #fff; padding-top: 80px; }
.login-box { width: 88%; max-width: 380px; margin: 0 auto; padding: 0 16px; }
.login-box .login-logo { display: none; }
.login-title { text-align: left; font-size: 28px; font-weight: 800; color: #000; margin-bottom: 6px; }
.login-sub { text-align: left; color: #999; font-size: 14px; margin-bottom: 36px; }
.login-field { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #ddd; }
.register-box { width: 90%; max-width: 420px; margin: 0 auto; padding: 0 0 40px; }
.register-title { font-size: 22px; font-weight: 700; color: #000; margin-bottom: 24px; }
.login-field label { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: #000; margin-bottom: 8px; }
.login-field label > span:first-child { display: flex; align-items: center; }
.login-field label > img { margin-right: 6px; }
.login-field .forgot { color: var(--red); font-weight: 500; font-size: 13px; cursor: pointer; }
.form-input { width: 100%; padding: 14px 16px; border: none; border-radius: 8px; font-size: 14px; background: #f5f5f5; }
.addr-input { width: 100%; padding: 12px 14px; border: none; border-radius: 8px; font-size: 14px; background: #f5f5f5; outline: none; }
.addr-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-input:focus { background: #f5f5f5; }
.btn-login { width: 100%; padding: 14px; border: none; border-radius: 8px; background: var(--red); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.btn-login:active { opacity: .8; }
.login-reg-link { text-align: center; margin-top: 16px; font-size: 14px; color: var(--red); cursor: pointer; }

/* ===== 通用 ===== */
.page { min-height: 100vh; padding-bottom: 52px; }
.sub-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--red); color: #fff; font-size: 16px; font-weight: 600; position: sticky; top: 0; z-index: 10; }
.sub-header-light { background: #fff !important; color: #000 !important; }
.sub-header .back { font-size: 22px; cursor: pointer; }
.sub-header .balance { font-size: 13px; font-weight: 400; }
.list { padding: 12px 16px; }
.empty-state { padding: 40px 0; text-align: center; color: var(--gray); }
.empty-icon { font-size: 48px; margin-bottom: 8px; }
.card { background: var(--card); border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.card-title { font-size: 15px; font-weight: 600; }
.card-price { font-size: 18px; font-weight: 700; color: var(--red); margin: 4px 0; }
.card-meta { font-size: 12px; color: var(--gray); }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.tag.paid, .tag.completed { background: #e8f5e9; color: #27ae60; }
.tag.reselling, .tag.listed { background: #fff3e0; color: #e65100; }
.tag.sold { background: #e3f2fd; color: #1565c0; }
.green { color: #27ae60; }
.red { color: var(--red); }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }

/* ===== 首页 ===== */
.home-page-title { text-align: center; padding: 12px 16px; font-size: 17px; font-weight: 700; color: #000; background: #fff; }
.home-header { background: var(--red); padding: 12px 16px; display: flex; align-items: center; min-height: 48px; }
.search-bar { display: flex; align-items: center; justify-content: flex-start; background: #fff; border-radius: 20px; padding: 12px 16px; cursor: pointer; min-height: 20px; width: 100%; }
.search-icon { font-size: 16px; margin-right: 8px; color: #bbb; line-height: 1; }
.search-text { color: #999; font-size: 14px; line-height: 1; }
/* 轮播 */
.swiper-wrap { position: relative; overflow: hidden; height: 180px; margin: 12px 12px 8px; border-radius: 10px; }
.swiper-track { display: flex; transition: transform .5s; height: 100%; }
.swiper-slide { min-width: 100%; height: 100%; position: relative; cursor: pointer; }
.swiper-img { width: 100%; height: 100%; object-fit: cover; }
.swiper-title { position: absolute; bottom: 32px; left: 16px; color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.swiper-sub { position: absolute; bottom: 12px; left: 16px; color: rgba(255,255,255,.9); font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.swiper-dots { position: absolute; bottom: 10px; right: 16px; display: flex; gap: 5px; }
.swiper-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.swiper-dots span.on { background: #fff; width: 16px; border-radius: 3px; }
/* 首页标签 */
.home-tags { display: flex; justify-content: space-around; align-items: center; padding: 10px 16px; background: #fff; font-size: 12px; color: #ff9900; }
.home-tag { display: flex; align-items: center; gap: 4px; }
.home-tag span { color: #ff9900; font-weight: 700; }
/* 新品上市 */
.section-title { padding: 14px 16px 8px; text-align: center; font-size: 16px; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 6px; }
/* 首页商品 */
.home-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 16px; }
.home-item { width: calc(50% - 5px); background: var(--card); border-radius: 8px; padding: 8px; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.home-item-img { width: 100%; height: 160px; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 8px; }
.home-item-name { font-size: 13px; margin-bottom: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-item-row { display: flex; justify-content: space-between; align-items: center; }
.home-item-price { font-size: 16px; font-weight: 700; color: var(--red); }
.home-item-sold { font-size: 11px; color: #999; }
.home-footer { text-align: center; padding: 20px; font-size: 11px; color: var(--gray); }

/* ===== 采购页 ===== */
.vip-bar { background: linear-gradient(135deg, #f6d365, #fda085); color: #fff; padding: 8px 16px; font-size: 13px; text-align: center; font-weight: 600; }
.product-list { padding: 12px 16px; }
.product-row { display: flex; background: var(--card); border-radius: 8px; padding: 12px; margin-bottom: 10px; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.product-row-img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f9f9f9; }
.product-row-body { flex: 1; }
.product-row-name { font-size: 15px; font-weight: 600; }
.product-row-price { font-size: 18px; font-weight: 700; color: var(--red); margin: 4px 0; }
.product-row-stock { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.product-row-ctl { display: flex; align-items: center; gap: 4px; }
.product-row-ctl button { width: 28px; height: 28px; border: 1px solid #ddd; background: #f9f9f9; border-radius: 4px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.product-row-ctl input { width: 40px; height: 28px; border: 1px solid #ddd; border-radius: 4px; text-align: center; font-size: 14px; }
.btn-buy-now { padding: 6px 14px; border: none; border-radius: 4px; background: var(--red); color: #fff; font-size: 13px; cursor: pointer; margin-left: auto; height: 28px; display: flex; align-items: center; }

/* ===== 个人中心 ===== */
.profile-red-bg { background: linear-gradient(135deg, var(--red), #f0937a); padding-bottom: 8px; }
.profile-header-title { text-align: center; padding: 12px 16px; font-size: 17px; font-weight: 700; color: #000; background: #fff; }
.profile-head { background: transparent; color: #fff; padding: 10px 20px 24px; display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; background: rgba(255,255,255,.15); border-radius: 8px; }
.profile-info { flex: 1; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-invite { font-size: 13px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.profile-invite .copy-btn { cursor: pointer; opacity: .7; font-size: 14px; }
.copy-icon-img { width: 16px; height: 16px; vertical-align: middle; cursor: pointer; margin-left: 4px; }
input[type="checkbox"] { accent-color: #ea6254; }
.login-icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.form-card { background: #fff; border-radius: 8px; overflow: hidden; }
.form-row { display: flex; align-items: center; padding: 16px 14px; border-bottom: 1px solid #f0f0f0; }
.form-row:last-child { border-bottom: none; }
.form-row label { font-size: 14px; color: #333; width: 70px; flex-shrink: 0; }
.form-row .form-input { flex: 1; background: transparent; padding: 4px 0 4px 8px; font-size: 15px; border: none; outline: none; }

/* 商品详情页 */
.pd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 99; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: transparent; }
.pd-header .back { font-size: 26px; color: #333; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.8); border-radius: 50%; }
.pd-wrap { padding-bottom: 70px; }
.pd-swiper { position: relative; }
.pd-main-img { width: 100%; display: block; }
.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pd-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pd-dots .dot.active { width: 18px; border-radius: 3px; background: #fff; }
.pd-section { padding: 16px; background: #fff; }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; }
.pd-price-cur { font-size: 28px; font-weight: 700; color: var(--red,#ea6254); }
.pd-price-old { font-size: 14px; color: #999; text-decoration: line-through; }
.pd-name-tag { display: flex; gap: 6px; margin-top: 10px; }
.tag-self { background: #ff4444; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.tag-free { background: #ff9800; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.pd-title { font-size: 16px; font-weight: 600; color: #000; margin-top: 10px; line-height: 1.4; }
.pd-meta { display: flex; gap: 20px; font-size: 13px; color: #666; margin-top: 10px; }
.pd-tabs { display: flex; border-bottom: 1px solid #f0f0f0; background: #fff; margin-top: 10px; }
.pd-tab { flex: 1; text-align: center; padding: 14px 0; font-size: 14px; color: #666; cursor: pointer; position: relative; }
.pd-tab.active { color: var(--red,#ea6254); font-weight: 600; }
.pd-tab.active::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 2px; background: var(--red,#ea6254); }
.pd-content { padding: 16px; background: #fff; min-height: 200px; }
.pd-warn { background: #fff3e0; color: #e65100; padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.pd-desc { font-size: 13px; color: #333; line-height: 1.8; }
.pd-notice-item { font-size: 13px; color: #666; padding: 6px 0; }
.pd-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: #f5f5f5; display: flex; justify-content: center; }
.pd-btn-consult { padding: 8px 36px; background: #f4a8a0; color: #fff; border: none; border-radius: 30px; font-size: 13px; font-weight: 500; cursor: pointer; }

/* 买方/卖方区域 */
.role-section { background: #fff; margin: 10px 16px; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.role-section:first-of-type { margin-top: 0; background: transparent; color: #fff; box-shadow: none; border: none; }
.role-section:first-of-type .role-section-title { color: #fff; }
.role-section:first-of-type .role-label { color: #fff; }
.role-section:first-of-type .role-icon { background: rgba(255,255,255,.25); }

.role-section-title { font-size: 15px; font-weight: 600; color: #000; margin-bottom: 12px; }
.role-grid { display: flex; justify-content: space-around; }
.role-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 4px 12px; }
.role-icon { width: 72px; height: 72px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.role-img-icon { width: 52px; height: 52px; object-fit: contain; }
.role-icon.buyer-warehouse, .role-icon.buyer-trading, .role-icon.seller-warehouse, .role-icon.seller-trading { background: #fff3e0; }
.role-icon.buyer-done, .role-icon.seller-done { background: #fff3e0; }
.role-label { font-size: 13px; color: var(--text); }

/* 余额/收益 */
.profile-summary { margin: 10px 16px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; display: flex; flex-wrap: wrap; }
.profile-summary-item { display: flex; align-items: center; padding: 14px 16px; width: 50%; border-bottom: 1px solid #f5f5f5; border-right: 1px solid #f5f5f5; cursor: pointer; font-size: 14px; box-sizing: border-box; }
.profile-summary-item:nth-child(2n) { border-right: none; }
.profile-summary-item:nth-child(n+3) { border-bottom: none; }
.profile-summary-label { color: #666; }
.profile-summary-val { flex: 1; text-align: right; font-weight: 600; margin-right: 4px; color: var(--text); }
.profile-summary-item .arrow { color: #ccc; font-size: 14px; }

.menu-list { margin: 10px 16px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; font-size: 14px; }
.menu-item:last-child { border-bottom: none; }
.menu-item .menu-icon { width: 24px; font-size: 18px; margin-right: 10px; text-align: center; }
.menu-item .menu-icon.orange { color: #ff9900; }
.menu-img-icon { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.menu-item span:nth-child(2) { flex: 1; }
.menu-item .arrow { color: #ccc; font-size: 16px; }
.menu-item.menu-logout { justify-content: center; color: var(--red); font-size: 14px; }



.menu-list { margin: 10px 16px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--bd); cursor: pointer; font-size: 14px; }
.menu-item:last-child { border: none; }
.menu-icon { font-size: 18px; margin-right: 10px; width: 22px; text-align: center; }
.menu-item span:nth-child(2) { flex: 1; }
.menu-logout { justify-content: center; color: var(--red); font-weight: 600; }
.arrow { color: var(--gray); font-size: 16px; }

/* ===== 仓库 ===== */
.wh-tabs { display: flex; padding: 0 16px; gap: 20px; border-bottom: 1px solid var(--bd); background: #fff; }
.wh-tabs span { padding: 10px 0; font-size: 14px; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; }
.wh-tabs span.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* 仓库-角色切换 */
.wh-role-tabs { display: flex; background: #fff; padding: 14px 16px 0; gap: 32px; border-bottom: 1px solid #f0f0f0; }
.wh-role-tab { font-size: 17px; color: #999; padding: 0 0 10px; cursor: pointer; position: relative; }
.wh-role-tab-on { color: #000; font-weight: 700; font-size: 19px; }
.wh-role-tab-on::after { content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 24px; height: 3px; background: var(--red, #ea6254); border-radius: 2px; }

/* 仓库-子Tab */
.wh-sub-tabs { display: flex; background: #fff; padding: 0 16px; border-bottom: 1px solid #f0f0f0; }
.wh-sub-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #666; cursor: pointer; position: relative; }
.wh-sub-tab-on { color: var(--red, #ea6254); font-weight: 600; }
.wh-sub-tab-on::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 2px; background: var(--red, #ea6254); border-radius: 2px; }

/* 仓库-列表 */
.wh-list { padding: 10px 12px; background: #f5f5f5; min-height: calc(100vh - 200px); }
.wh-card { background: #fff; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.wh-card-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.wh-card-no { font-size: 12px; color: #666; }
.wh-card-status { font-size: 12px; color: var(--red, #ea6254); font-weight: 600; }
.wh-card-body { display: flex; padding: 12px; gap: 12px; }
.wh-card-img { width: 80px; height: 80px; flex-shrink: 0; background: #fafafa; border-radius: 4px; overflow: hidden; }
.wh-card-info { flex: 1; min-width: 0; }
.wh-card-name { font-size: 14px; color: #333; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-card-line { font-size: 12px; color: #333; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.wh-card-phone { font-size: 12px; color: #666; margin-top: 2px; }
.wh-card-phone-clickable { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.wh-card-phone-clickable:hover { color: #ea6254; }
.copy-icon { font-size: 11px; opacity: 0.6; }
.wh-card-price { font-size: 13px; color: #333; margin-top: 6px; }
.wh-price { color: var(--red, #ea6254); font-weight: 700; font-size: 16px; }
.wh-card-foot { padding: 8px 12px; border-top: 1px dashed #eee; font-size: 12px; color: #999; line-height: 1.8; }
.wh-card-action { padding: 10px 12px; border-top: 1px solid #f5f5f5; text-align: right; }
.wh-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; color: #fff; }
.wh-tag-seller { background: #ff9800; }
.wh-tag-buyer { background: #ff9800; }
.wh-action-btn { padding: 6px 16px; background: var(--red, #ea6254); color: #fff; border: none; border-radius: 16px; font-size: 13px; cursor: pointer; }
.wh-action-btn-outline { background: #fff; color: #333; border: 1px solid #999; }

.order-card { padding: 14px 16px; border-bottom: 1px solid var(--bd); position: relative; background: #fff; }
.order-num { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.order-tag { position: absolute; right: 16px; top: 14px; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.order-tag.paid, .order-tag.sold, .order-tag.completed { background: #e8f5e9; color: #27ae60; }
.order-tag.reselling { background: #fff3e0; color: #e65100; }
.order-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.order-user { font-size: 12px; color: var(--gray); margin-bottom: 2px; }
.order-user .phone { color: var(--red); }
.order-price { font-size: 16px; font-weight: 700; color: var(--red); margin: 4px 0; }
.order-time { font-size: 11px; color: var(--gray); margin-bottom: 2px; }
.order-detail { text-align: right; font-size: 12px; color: var(--red); margin-top: 4px; }
.order-action { text-align: right; margin-top: 6px; }
.btn-resale { padding: 6px 16px; border: 1px solid var(--red); border-radius: 4px; background: #fff; color: var(--red); font-size: 13px; cursor: pointer; }

/* ===== 设置页 ===== */
.settings-list { background: #fff; margin: 10px 16px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.settings-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--bd); cursor: pointer; }
.settings-item:last-child { border: none; }
.settings-label { font-size: 14px; color: var(--text); }
.settings-right { display: flex; align-items: center; gap: 8px; }
.settings-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.settings-val { font-size: 14px; color: var(--gray); }
.settings-logout { margin: 30px 16px; }
.btn-logout { width: 100%; padding: 12px; border: none; border-radius: 6px; background: #ff8c42; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-logout:active { opacity: .85; }

/* ===== 邀请好友 ===== */
.invite-card { background: #fff; margin: 10px 16px; border-radius: 8px; padding: 24px 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.invite-code-title { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.invite-code { font-size: 32px; font-weight: 700; color: var(--red); letter-spacing: 6px; margin-bottom: 16px; }
.invite-page { background: #fff; }
.invite-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; color: #000; border-bottom: 1px solid #f0f0f0; }
.invite-header .back { font-size: 24px; cursor: pointer; width: 32px; }
.invite-header-title { font-size: 16px; font-weight: 600; }
.invite-content { text-align: center; padding: 194px 16px 20px; }
.invite-title-large { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: 8px; margin: 20px 0 30px; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.invite-qr-box { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.invite-qr-img { width: 150px; height: 150px; background: #f5f5f5; background-size: cover; background-position: center; border-radius: 4px; }
.invite-code-label { color: #000; font-size: 16px; margin-top: 16px; font-weight: 500; }
.invite-tip { color: #fff; font-size: 14px; margin-top: 8px; opacity: 0.95; }
.invite-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.invite-btn { flex: 1; max-width: 160px; padding: 10px 0; border: 1px solid var(--red); border-radius: 20px; background: #fff; color: var(--red); font-size: 14px; cursor: pointer; }
.invite-btn-link { background: var(--red); color: #fff; }
.invite-share-row { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.invite-share-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.invite-share-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.invite-share-label { font-size: 12px; color: var(--gray); }
.invite-qr { width: 100px; height: 100px; margin: 0 auto 16px; border: 1px dashed #ddd; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: #fafafa; }
.invite-qr-placeholder { font-size: 32px; }
.invite-qr-text { font-size: 11px; color: var(--gray); margin-top: 4px; }
.invite-rules { text-align: left; background: #fafafa; border-radius: 6px; padding: 14px; }
.invite-rule-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.invite-rule-item { font-size: 13px; color: #666; margin-bottom: 8px; line-height: 1.5; }
.invite-rule-item:last-child { margin-bottom: 0; }
.invite-fans-title { font-size: 15px; font-weight: 600; padding: 12px 16px 4px; }

/* ===== 收款方式 ===== */
.pm-tip { padding: 12px 16px; font-size: 13px; color: var(--gray); }
.pm-list { background: #fff; margin: 0 16px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.pm-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bd); }
.pm-item:last-child { border: none; }
.pm-left { display: flex; align-items: center; gap: 10px; }
.pm-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.pm-name { font-size: 14px; font-weight: 600; }
.pm-desc { font-size: 12px; color: var(--gray); margin-top: 2px; }
.pm-right { font-size: 13px; color: var(--red); cursor: pointer; }

/* ===== 收款码卡片 ===== */
.pay-card { position: relative; border-radius: 12px; padding: 16px 16px 50px; margin-bottom: 14px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; min-height: 150px; }
.pay-card-bank { background: linear-gradient(135deg, #9a8ce8 0%, #7c6dd1 100%); }
.pay-card-alipay { background: linear-gradient(135deg, #b3a8ee 0%, #8a7dd8 100%); }
.pay-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pay-card-title { font-size: 14px; opacity: 0.95; }
.pay-card-logo { width: 48px; height: 32px; display: flex; align-items: center; justify-content: flex-end; }
.pay-card-account { font-size: 22px; font-weight: 700; margin-top: 10px; letter-spacing: 1px; }
.pay-card-name { font-size: 13px; margin-top: 6px; opacity: 0.9; }
.pay-card-btn { position: absolute; right: 16px; bottom: 14px; padding: 5px 18px; background: transparent; border: 1.5px solid #fff; color: #fff; border-radius: 20px; font-size: 13px; cursor: pointer; }
.pay-card-btn:active { background: rgba(255,255,255,.15); }

/* ===== 我的合同 ===== */
.contract-card { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.04); }

/* ===== 余额详情 ===== */
.bd-tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; }
.bd-tab { flex: 1; text-align: center; padding: 14px 0; font-size: 14px; color: #666; cursor: pointer; position: relative; }
.bd-tab-on { color: #000; font-weight: 600; }
.bd-tab-on::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 2px; background: var(--red, #ea6254); border-radius: 2px; }
.bd-list { background: #f5f5f5; min-height: calc(100vh - 250px); }
.bd-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border-bottom: 1px solid #f5f5f5; }
.bd-item-left { flex: 1; }
.bd-item-title { font-size: 14px; color: #333; }
.bd-item-sub { font-size: 12px; color: #999; margin-top: 4px; }
.bd-item-amt { font-size: 16px; font-weight: 600; }
.bd-item-amt.plus { color: #ea6254; }
.bd-item-amt.minus { color: #333; }
.contract-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.contract-no { font-size: 12px; color: var(--gray); }
.contract-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #e8f5e9; color: #27ae60; }
.contract-body { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.contract-product { font-size: 14px; font-weight: 600; }
.contract-amount { font-size: 16px; font-weight: 700; color: var(--red); }
.contract-footer { font-size: 11px; color: var(--gray); }
.contract-detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.contract-detail-row:last-child { border: none; }
.contract-detail-row span:last-child { color: var(--gray); }

/* ===== 交易记录 ===== */
.tx-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; margin-bottom: 1px; }
.tx-type { font-size: 13px; font-weight: 600; min-width: 56px; }
.tx-amt { font-size: 16px; font-weight: 700; min-width: 70px; text-align: right; }
.tx-rmk { font-size: 12px; color: var(--gray); flex: 1; }
.tx-rmk small { color: #ccc; }

/* ===== 粉丝 ===== */
.fan-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; margin-bottom: 1px; }
.fan-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.fan-info small { color: var(--gray); }

/* ===== 管理后台 ===== */
.admin-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--bd); overflow-x: auto; }
.admin-tabs span { padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--gray); white-space: nowrap; font-weight: 600; }
.admin-tabs span.on { color: var(--red); border-bottom: 2px solid var(--red); }
.stats-row { display: flex; gap: 10px; margin-bottom: 12px; }
.stat { flex: 1; background: var(--card); border-radius: 8px; padding: 14px; text-align: center; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.stat small { color: var(--gray); font-size: 11px; }
.search-input { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; margin-bottom: 12px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border-radius: 8px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.user-info { flex: 1; }
.user-info small { display: block; font-size: 11px; color: var(--gray); margin-top: 1px; }
.btn-sm { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn-sm.danger { color: var(--red); border-color: var(--red); }
.form-group { margin-bottom: 10px; }
.preview { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; margin-bottom: 8px; border: 1px solid #eee; }
.product-row-admin { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.product-row-admin .thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.product-row-admin small { color: var(--gray); font-size: 11px; }
.order-mini { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.order-mini small { color: var(--gray); font-size: 11px; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { background: #fff; width: 80%; max-width: 320px; padding: 24px; border-radius: 12px; text-align: center; }
.modal-box h3 { margin-bottom: 16px; font-size: 17px; }
.modal-box .form-input { margin-bottom: 12px; }
.btn-cancel { width: 100%; padding: 12px; border: none; border-radius: 6px; background: #f5f5f5; font-size: 15px; cursor: pointer; margin-top: 8px; }

/* iOS 风格确认弹窗 */
.ios-confirm-box { background: #fff; width: 80%; max-width: 300px; border-radius: 12px; text-align: center; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.ios-confirm-title { padding: 18px 16px 4px; font-size: 17px; font-weight: 600; color: #333; }
.ios-confirm-content { padding: 6px 16px 20px; font-size: 14px; color: #888; line-height: 1.5; }
.ios-confirm-actions { display: flex; border-top: 1px solid #d9d9d9; }
.ios-confirm-btn { flex: 1; padding: 14px; font-size: 16px; background: #fff; border: none; cursor: pointer; color: #333; }
.ios-confirm-btn:active { background: #f5f5f5; }
.ios-resale-info { padding: 16px 24px 24px; }
.ios-resale-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; color: #555; }
.ios-resale-amt { color: #000; font-size: 16px; font-weight: 600; }
.ios-confirm-btn + .ios-confirm-btn { border-left: 1px solid #d9d9d9; }
.ios-confirm-btn-primary { color: #007aff; font-weight: 500; }

/* ===== Tabbar ===== */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; border-top: 1px solid var(--bd); z-index: 50; padding-bottom: env(safe-area-inset-bottom,0); }
.tabbar > div { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; cursor: pointer; color: var(--gray); font-size: 11px; }
.tabbar > div.on { color: #ff3b30; }
.tab-icon { font-size: 20px; margin-bottom: 2px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tab-icon svg { width: 24px; height: 24px; }
.tab-img { width: 24px; height: 24px; display: block; }

/* ===== 商品详情页 ===== */
.product-detail { background: #fff; }
.pd-banner { width: 100%; height: 220px; object-fit: cover; }
.pd-info { padding: 16px; }
.pd-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pd-price { font-size: 24px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.pd-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.pd-stock { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.pd-ctl { padding: 0 0 20px; }

/* ===== 采购页（场次列表） ===== */
.session-list { padding: 12px 16px; }
.session-card { display: flex; background: var(--card); border-radius: 8px; padding: 14px 14px 14px 12px; margin-bottom: 10px; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); align-items: center; border-left: 3px solid var(--red); }
.session-body { flex: 1; }
.session-title-row { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.session-title-row .title-bar { width: 3px; height: 14px; background: var(--red); border-radius: 2px; }
.session-time { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.session-status-row { display: inline-flex; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; align-items: stretch; }
.session-status-tag { display: inline-flex; align-items: center; font-size: 12px; padding: 6px 14px; background: #999; color: #fff; font-weight: 500; }
.session-status-tag.active { background: #ff9800; }
.session-status-tag.soon { background: #ff9800; }
.session-status-tag.done { background: #999; }
.session-countdown-small { display: inline-flex; align-items: center; font-size: 13px; padding: 6px 14px; background: #ff6b35; color: #fff; font-weight: 500; }
.session-countdown-small.muted { background: #bbb; }
.session-img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f9f9f9; }

/* 采购页广告 Banner */
.buy-banner { display: block; margin: 12px 16px; border-radius: 10px; overflow: hidden; position: relative; }
.buy-banner-text { flex: 1; position: relative; z-index: 1; color: #fff; }
.buy-banner-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.buy-banner-sub { font-size: 12px; opacity: .95; margin-bottom: 10px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.buy-banner-btn { display: inline-block; background: #fff; color: #ff6b35; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 12px; }
.buy-banner-img { font-size: 56px; position: relative; z-index: 1; }

/* 通知消息栏 */
.notice-bar { display: flex; align-items: center; padding: 16px; background: #fff; margin: 0 16px 10px; border-radius: 8px; font-size: 13px; gap: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.notice-label-img { height: 20px; flex-shrink: 0; }
.notice-label { font-size: 16px; font-weight: 800; white-space: nowrap; }
.notice-label .notice-black { color: #000; }
.notice-label .notice-red { color: var(--red); }
.notice-text { color: #ff9900; flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.notice-text span { display: inline-block; padding-left: 100%; animation: notice-scroll 8s linear infinite; }
@keyframes notice-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== 采购详情页 ===== */
.session-hint { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--bd); }
.session-status-tag-detail { font-size: 13px; color: var(--red); font-weight: 600; }
.session-countdown { font-size: 13px; color: #ff6b35; font-weight: 600; }
.pagination { display: flex; gap: 6px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--bd); overflow-x: auto; }
.pagination span { padding: 4px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; background: #f5f5f5; color: #666; white-space: nowrap; }
.pagination span.on { background: var(--red); color: #fff; }
.session-product-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.sp-card { width: calc(50% - 5px); background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.sp-card-name { display: flex; align-items: center; background: #fff; padding: 8px 10px; }
.sp-card-name-text { color: #8b4513; font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.sp-order-tag { background: #e53935; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; margin-left: 6px; flex-shrink: 0; }
.sp-img-wrap { position: relative; flex: 1; }
.sp-img { width: 100%; height: 160px; object-fit: contain; background: #fff; display: block; }
.sp-img-tag { position: absolute; bottom: 6px; right: 6px; padding: 3px 10px; border-radius: 4px; background: #e53935; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp-name { font-size: 13px; font-weight: 600; padding: 8px 8px 2px; }
.sp-box { font-size: 12px; color: var(--gray); padding: 0 8px 4px; }
.sp-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; }
.sp-price { font-size: 15px; font-weight: 700; color: var(--red); }
.sp-btn { padding: 4px 10px; border: none; border-radius: 4px; background: #ff9800; color: #fff; font-size: 12px; cursor: pointer; }
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 200; animation: fadeIn .2s; }
[v-cloak] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Loading overlay */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 300; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 12px; color: #fff; font-size: 14px; }
