/* ==================== 微购相册 全局 ==================== */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:root{
  --primary:#07c160; --primary-dark:#06ad56; --primary-light:#e8f8ee;
  --orange:#ff7a00; --red:#fa5151; --blue:#1989fa; --purple:#8b5cf6;
  --pink:#ff5c8a; --teal:#14b8a6;
  --text:#1a1a1a; --text2:#666; --text3:#999; --line:#eee; --bg:#f4f5f7;
  --radius:12px;
}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;background:#e9ebee;color:var(--text);font-size:14px;overflow:hidden}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit}
input,textarea{font-family:inherit;outline:none;border:none}

/* 手机外壳（桌面端） */
.app{position:relative;width:100%;max-width:480px;height:100vh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 40px rgba(0,0,0,.08)}
@media(min-width:768px){
  body{padding:16px 0;display:flex;align-items:center;justify-content:center}
  .app{height:calc(100vh - 32px);max-height:900px;border-radius:28px;overflow:hidden}
}

/* ==================== HEADER ==================== */
.app-header{height:48px;flex-shrink:0;background:linear-gradient(135deg,var(--primary),#0bbf7a);color:#fff;display:flex;align-items:center;padding:0 12px;position:relative;z-index:5}
.header-title{position:absolute;left:50%;transform:translateX(-50%);font-size:17px;font-weight:600;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-left,.header-right{display:flex;align-items:center;gap:4px;min-width:48px}
.header-right{margin-left:auto;justify-content:flex-end}
.icon-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.icon-btn svg{width:22px;height:22px;fill:#fff}
.icon-btn:active{background:rgba(255,255,255,.18)}
.header-back{font-size:26px;line-height:1;color:#fff;width:36px;text-align:center}

/* ==================== MAIN ==================== */
.app-main{flex:1;overflow:hidden;position:relative}
.view{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:none;background:var(--bg)}
.view.active{display:block}
.view.overlay{z-index:20;background:#fff}
.view.sheet{z-index:40;background:transparent}
.overlay-scroll{height:100%;overflow-y:auto;padding-bottom:24px}

/* ==================== TAB BAR ==================== */
.tab-bar{height:56px;flex-shrink:0;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom);position:relative;z-index:10}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text3);font-size:10px}
.tab svg{width:23px;height:23px;fill:currentColor}
.tab.active{color:var(--primary)}
.tab-publish{position:relative}
.pub-plus{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--primary),#0bbf7a);display:flex;align-items:center;justify-content:center;margin-top:-22px;box-shadow:0 4px 14px rgba(7,193,96,.45)}
.pub-plus svg{width:26px;height:26px;fill:none;color:#fff}
.tab-publish span{margin-top:2px}

/* ==================== 首页 Feed ==================== */
.feed-search-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--primary)}
.search-input{flex:1;height:34px;background:rgba(255,255,255,.95);border-radius:17px;display:flex;align-items:center;padding:0 12px;gap:6px;color:var(--text3);font-size:13px}
.search-input svg.i{width:16px;height:16px;fill:var(--text3);flex-shrink:0}
.search-input input{flex:1;font-size:13px;background:transparent}
.search-input.grow{background:#f0f0f0;color:var(--text)}
.search-input.grow svg.i{fill:var(--text3)}
.clear-x{font-size:20px;color:var(--text3);padding:0 4px}
#scanBtn svg{width:22px;height:22px}

.category-scroll{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;background:#fff;scrollbar-width:none;border-bottom:1px solid var(--line)}
.category-scroll::-webkit-scrollbar{display:none}
.cat-pill{flex-shrink:0;padding:6px 14px;border-radius:16px;background:#f2f3f5;font-size:12px;color:var(--text2);white-space:nowrap}
.cat-pill.active{background:var(--primary-light);color:var(--primary);font-weight:600}

.feed-list{padding:8px}
.post-card{background:#fff;border-radius:var(--radius);margin-bottom:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.post-head{display:flex;align-items:center;padding:10px 12px;gap:8px}
.post-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--primary),#0bbf7a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}
.post-meta{flex:1;min-width:0}
.post-shop{font-size:13px;font-weight:600;color:var(--text)}
.post-time{font-size:11px;color:var(--text3)}
.post-more{color:var(--text3);font-size:20px;line-height:1;padding:0 4px}
.post-body{padding:0 12px 10px}
.post-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:4px;line-height:1.4}
.post-desc{font-size:13px;color:var(--text2);line-height:1.5;white-space:pre-wrap;word-break:break-word}
.post-tags{margin-top:6px}
.post-tag{display:inline-block;font-size:10px;padding:1px 6px;border-radius:3px;background:var(--primary-light);color:var(--primary);margin-right:4px;margin-top:3px}
.post-cat{display:inline-block;font-size:10px;padding:1px 6px;border-radius:3px;background:#fff3e0;color:var(--orange);margin-right:4px}
.post-images{display:grid;gap:2px;margin:8px 0}
.post-images.grid-1{grid-template-columns:1fr}
.post-images.grid-2,.post-images.grid-4{grid-template-columns:1fr 1fr}
.post-images.grid-3,.post-images.grid-5,.post-images.grid-6,.post-images.grid-7,.post-images.grid-8,.post-images.grid-9{grid-template-columns:1fr 1fr 1fr}
.post-img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#f0f0f0;display:block}
.post-video{position:relative}
.post-video::after{content:"▶";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}
.post-price-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:8px}
.price-now{color:var(--red);font-size:19px;font-weight:700}
.price-now small{font-size:13px}
.price-agent{font-size:11px;color:var(--primary);background:var(--primary-light);padding:2px 6px;border-radius:4px}
.stock-tag{font-size:11px;color:var(--text3)}
.post-actions{display:flex;gap:18px;padding:8px 12px;border-top:1px solid #f7f7f7;color:var(--text3);font-size:12px}
.post-act{display:flex;align-items:center;gap:4px}
.post-act svg{width:16px;height:16px;fill:currentColor}
.post-act.liked{color:var(--red)}
.post-act.liked svg{fill:var(--red)}

.empty{padding:80px 30px;text-align:center;color:var(--text3)}
.empty-illu{font-size:56px;margin-bottom:12px}
.feed-end{text-align:center;color:var(--text3);font-size:12px;padding:14px}

/* ==================== 分类 ==================== */
.cat-hero{background:linear-gradient(135deg,var(--primary),#0bbf7a);color:#fff;padding:22px 18px 28px}
.cat-hero-title{font-size:22px;font-weight:700}
.cat-hero-sub{font-size:13px;opacity:.9;margin-top:4px}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px 0;background:#fff;padding:14px 6px;margin:-16px 10px 0;border-radius:var(--radius);position:relative;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.cat-cell{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 2px;font-size:11px;color:var(--text2)}
.cat-cell-ico{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;font-weight:700}
.section-title{padding:14px 14px 6px;font-size:13px;color:var(--text2);font-weight:600}

/* ==================== 发布页 ==================== */
.view-publish .overlay-scroll{background:var(--bg)}
.publish-section{background:#fff;padding:14px;margin-bottom:8px}
.publish-label{font-size:13px;color:var(--text2);margin-bottom:8px;display:flex;align-items:center}
.publish-label .req{color:var(--red);margin-left:2px}
.upload-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.upload-add{aspect-ratio:1/1;border:1.5px dashed #ccc;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text3);font-size:11px;position:relative}
.upload-add svg{width:26px;height:26px;color:var(--text3)}
.upload-add input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-item{aspect-ratio:1/1;border-radius:8px;overflow:hidden;position:relative}
.upload-item img{width:100%;height:100%;object-fit:cover}
.upload-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
.upload-tip{font-size:11px;color:var(--text3);margin-top:6px}
.publish-input{width:100%;height:40px;border:1px solid #eee;border-radius:8px;padding:0 10px;font-size:14px;background:#fafafa}
.publish-textarea{width:100%;min-height:90px;border:1px solid #eee;border-radius:8px;padding:10px;font-size:14px;background:#fafafa;resize:vertical;line-height:1.5}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tier-list{display:flex;flex-direction:column;gap:6px}
.tier-row{display:grid;grid-template-columns:1fr 70px 28px;gap:6px;align-items:center}
.tier-row input{height:32px;border:1px solid #eee;border-radius:6px;padding:0 8px;font-size:12px;background:#fafafa}
.tier-del{color:var(--text3);font-size:18px}
.tier-add{margin-top:8px;font-size:12px;color:var(--primary);border:1px dashed var(--primary);border-radius:6px;padding:6px;width:100%}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:5px 12px;border-radius:14px;background:#f0f0f0;font-size:12px;color:var(--text2)}
.chip.active{background:var(--primary);color:#fff}
.tags-editor{display:flex;flex-wrap:wrap;gap:5px;align-items:center;border:1px solid #eee;border-radius:8px;padding:6px 8px;background:#fafafa;min-height:38px}
.tags-list{display:flex;flex-wrap:wrap;gap:5px}
.tag-chip{background:var(--primary-light);color:var(--primary);font-size:11px;padding:2px 8px;border-radius:4px;display:flex;align-items:center;gap:4px}
.tag-chip .x{cursor:pointer;font-size:13px}
.tag-input{flex:1;min-width:70px;font-size:12px;background:transparent}
.switch-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--text2)}
.switch{position:relative;width:42px;height:24px;background:#ddd;border-radius:12px;transition:.2s}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch-row input{display:none}
.switch-row input:checked + .switch{background:var(--primary)}
.switch-row input:checked + .switch::after{left:20px}
.publish-actions{display:flex;gap:10px;padding:10px 14px 20px}
.publish-actions .btn{flex:1}
.btn{height:42px;border-radius:8px;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center}
.btn.primary{background:var(--primary);color:#fff}
.btn.primary:active{background:var(--primary-dark)}
.btn.ghost{background:#f0f0f0;color:var(--text2)}
.btn.full{width:100%;margin-top:14px}

/* ==================== 搜索 ==================== */
.search-top{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--line)}
.search-cancel{color:var(--primary);font-size:14px;flex-shrink:0}
.search-hot{padding:0 14px}
#hotChips{padding:6px 0 14px}
.search-results{padding:8px}
.search-result-item{display:flex;gap:10px;padding:10px;background:#fff;border-radius:var(--radius);margin-bottom:6px;align-items:center}
.search-result-item img{width:62px;height:62px;border-radius:8px;object-fit:cover;flex-shrink:0}
.search-result-info{flex:1;min-width:0}
.sr-title{font-size:14px;font-weight:600}
.sr-price{color:var(--red);font-weight:700;margin-top:4px}

/* ==================== 详情 ==================== */
.view-detail{background:#fff}
.detail-close{position:absolute;top:12px;left:12px;z-index:3;width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;display:flex;align-items:center;justify-content:center}
.detail-close svg{width:18px;height:18px;fill:none;color:#fff}
#detailScroll{padding-bottom:70px}
.detail-swiper{position:relative;background:#000}
.detail-swiper img{width:100%;display:block;max-height:520px;object-fit:contain;background:#000}
.swiper-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px}
.swiper-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5)}
.swiper-dot.active{background:#fff;width:16px;border-radius:3px}
.detail-info{padding:14px}
.detail-price-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.detail-price{color:var(--red);font-size:26px;font-weight:700}
.detail-price small{font-size:15px}
.detail-stock{font-size:12px;color:var(--text3)}
.detail-title{font-size:17px;font-weight:700;margin:8px 0 6px;line-height:1.4}
.detail-meta{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.detail-shop-row{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fafafa;margin:10px 0;border-radius:var(--radius)}
.detail-desc{padding:12px 14px;font-size:14px;line-height:1.7;color:#333;white-space:pre-wrap;word-break:break-word}
.detail-section-title{padding:12px 14px 6px;font-size:14px;font-weight:600;border-top:6px solid var(--bg)}
.detail-comments{padding:0 14px}
.comment-item{padding:10px 0;border-bottom:1px solid #f5f5f5}
.comment-head{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.comment-avatar{width:22px;height:22px;border-radius:50%;background:#ddd;display:flex;align-items:center;justify-content:center;font-size:10px;color:#fff}
.comment-name{font-size:12px;color:var(--text2);font-weight:600}
.comment-time{font-size:10px;color:var(--text3);margin-left:auto}
.comment-text{font-size:13px;color:var(--text);padding-left:28px}
.comment-input-bar{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}
.comment-input-bar input{flex:1;height:36px;background:#f0f0f0;border-radius:18px;padding:0 14px;font-size:13px}
.comment-input-bar button{background:var(--primary);color:#fff;border-radius:18px;padding:0 16px;font-size:13px}
.detail-bar{position:absolute;bottom:0;left:0;right:0;height:56px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 10px;gap:4px;z-index:3}
.detail-icon{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;color:var(--text3);font-size:10px}
.detail-icon svg{width:22px;height:22px;fill:currentColor}
.detail-cart{flex:1.4;height:40px;border-radius:20px;background:linear-gradient(135deg,var(--orange),#ff9a3c);color:#fff;font-weight:600;font-size:14px}

/* ==================== 分享 Sheet ==================== */
.sheet-mask{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.sheet-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:16px 16px 0 0;padding:10px 14px calc(20px + env(safe-area-inset-bottom));animation:slideUp .25s ease}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sheet-handle{width:36px;height:4px;border-radius:2px;background:#ddd;margin:4px auto 10px}
.sheet-title{text-align:center;font-size:15px;font-weight:600;margin-bottom:14px}
.share-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.share-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 2px;font-size:11px;color:var(--text2)}
.si-ico{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;font-weight:700}
.si-ico.green{background:#07c160}.si-ico.blue{background:#1989fa}.si-ico.orange{background:#ff7a00}.si-ico.teal{background:#14b8a6}.si-ico.pink{background:#ff5c8a}
.sheet-cancel{width:100%;height:46px;border-top:1px solid #f0f0f0;margin-top:10px;font-size:15px;color:var(--text2)}

/* ==================== 消息 ==================== */
.msg-tabs{display:flex;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.msg-tabs::-webkit-scrollbar{display:none}
.msg-tab{flex-shrink:0;padding:12px 16px;font-size:13px;color:var(--text2);position:relative}
.msg-tab.active{color:var(--primary);font-weight:600}
.msg-tab.active::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:20px;height:3px;border-radius:2px;background:var(--primary)}
.msg-list{padding:8px}
.msg-item{display:flex;gap:10px;padding:12px;background:#fff;border-radius:var(--radius);margin-bottom:6px;align-items:center}
.msg-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;flex-shrink:0}
.msg-body{flex:1;min-width:0}
.msg-name{font-size:14px;font-weight:600;display:flex;justify-content:space-between}
.msg-time{font-size:11px;color:var(--text3);font-weight:400}
.msg-content{font-size:12px;color:var(--text2);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{display:inline-block;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:10px;line-height:18px;text-align:center;margin-left:4px}

/* ==================== 我的 ==================== */
.profile-card{background:linear-gradient(135deg,var(--primary),#0bbf7a);color:#fff;padding:22px 16px 30px;display:flex;align-items:center;gap:12px}
.profile-avatar{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;border:2px solid rgba(255,255,255,.5)}
.profile-info{flex:1;min-width:0}
.profile-name{font-size:18px;font-weight:700}
.profile-id{font-size:11px;opacity:.85;margin-top:2px}
.profile-bio{font-size:12px;opacity:.9;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-edit{background:rgba(255,255,255,.2);color:#fff;font-size:12px;padding:6px 12px;border-radius:14px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;margin:-18px 10px 8px;border-radius:var(--radius);padding:14px 4px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.stat{text-align:center}
.stat-num{font-size:18px;font-weight:700;color:var(--text)}
.stat-label{font-size:11px;color:var(--text3);margin-top:2px}
.menu-group{background:#fff;margin:8px 10px;border-radius:var(--radius);overflow:hidden}
.menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #f7f7f7;font-size:14px;color:var(--text);text-align:left}
.menu-item:last-child{border-bottom:none}
.mi-ico{width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;flex-shrink:0}
.mi-ico.blue{background:#1989fa}.mi-ico.orange{background:#ff7a00}.mi-ico.green{background:#07c160}.mi-ico.purple{background:#8b5cf6}.mi-ico.teal{background:#14b8a6}.mi-ico.pink{background:#ff5c8a}.mi-ico.red{background:#fa5151}.mi-ico.gray{background:#999}
.mi-arrow{margin-left:auto;color:var(--text3);font-size:18px}
.footer-space{height:24px}

/* ==================== 二级页 ==================== */
.view-sub{background:var(--bg)}
.sub-header{height:48px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 12px;flex-shrink:0}
.sub-back{font-size:28px;line-height:1;color:var(--text);width:32px;text-align:center}
.sub-title{flex:1;text-align:center;font-size:16px;font-weight:600}
.sub-right{min-width:40px;text-align:right;color:var(--primary);font-size:13px}
.sub-scroll{background:var(--bg);padding:8px}
.album-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.album-card{background:#fff;border-radius:10px;overflow:hidden}
.album-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.album-info{padding:8px}
.album-title{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.album-price{color:var(--red);font-weight:700;font-size:14px;margin-top:4px}
.album-actions{display:flex;gap:6px;margin-top:6px}
.album-actions button{flex:1;font-size:11px;padding:4px 0;border-radius:4px;background:#f0f0f0;color:var(--text2)}
.order-card,.agent-card,.customer-card{background:#fff;border-radius:var(--radius);padding:12px;margin-bottom:8px}
.order-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}
.order-status{font-weight:600}
.order-status.pending{color:var(--orange)}.order-status.done{color:var(--primary)}.order-status.cancel{color:var(--text3)}
.order-row{display:flex;gap:10px;align-items:center}
.order-row img{width:50px;height:50px;border-radius:6px;object-fit:cover}
.order-info{flex:1;min-width:0;font-size:12px;color:var(--text2)}
.order-total{text-align:right;font-size:13px;color:var(--red);font-weight:700}
.add-bar{padding:12px;display:flex;gap:8px}
.add-bar input{flex:1;height:40px;border:1px solid #eee;border-radius:8px;padding:0 12px;font-size:13px;background:#fff}
.add-bar .btn.primary{flex-shrink:0;padding:0 18px}
.agent-head,.customer-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.agent-name{font-size:14px;font-weight:600;flex:1}
.agent-level{font-size:10px;padding:2px 6px;border-radius:4px;background:var(--primary-light);color:var(--primary)}
.agent-meta{font-size:12px;color:var(--text3)}
.agent-actions{display:flex;gap:8px;margin-top:8px}
.agent-actions button{flex:1;font-size:12px;padding:6px;border-radius:6px;background:#f0f0f0;color:var(--text2)}

/* ==================== 表单 / 二维码 / 海报 ==================== */
.form-row{display:flex;align-items:center;padding:10px 0;border-bottom:1px solid #f5f5f5}
.form-row label{width:80px;font-size:13px;color:var(--text2)}
.form-row input{flex:1;font-size:14px;background:transparent}
.qr-wrap{padding:10px 0;text-align:center}
.qr-box{width:200px;height:200px;margin:0 auto;background:#fff;border:1px solid #eee;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.qr-shop{font-size:16px;font-weight:700;margin-top:12px}
.qr-tip{font-size:11px;color:var(--text3);margin-top:4px}
.poster-canvas{width:100%;aspect-ratio:3/4;background:linear-gradient(160deg,#fff8e1,#ffe8e8);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;text-align:center}
.poster-canvas .pc-img{width:140px;height:140px;border-radius:10px;object-fit:cover;margin-bottom:12px;background:#eee}
.poster-canvas .pc-title{font-size:16px;font-weight:700;margin-bottom:6px}
.poster-canvas .pc-price{color:var(--red);font-size:20px;font-weight:700;margin-bottom:8px}
.poster-canvas .pc-qr{width:70px;height:70px;background:#fff;border:1px solid #ccc;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:9px;color:#666;margin-top:6px}
.poster-actions{display:flex;gap:10px;margin-top:12px}
.poster-actions .btn{flex:1}

/* ==================== Toast ==================== */
.toast{position:fixed;top:40%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.78);color:#fff;padding:10px 18px;border-radius:8px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s;max-width:80%;text-align:center}
.toast.show{opacity:1}

/* ==================== 二维码 ==================== */
.qr-svg{width:100%;height:100%;display:block}

/* ==================== 分销 & 管理增强 ==================== */
.mini-btn{background:var(--primary);color:#fff;font-size:12px;height:30px;padding:0 12px;border-radius:15px}
.mini-del{font-size:11px;color:var(--red);background:#ffecec;padding:5px 10px;border-radius:6px;flex-shrink:0}
.mini-ok{font-size:11px;color:#fff;background:var(--primary);padding:4px 9px;border-radius:6px}
.mini-no{font-size:11px;color:var(--text2);background:#eee;padding:4px 9px;border-radius:6px}

.dist-banner{display:flex;align-items:center;background:linear-gradient(135deg,#fff4e5,#ffe9d6);margin:8px 10px;padding:12px 14px;border-radius:var(--radius);border:1px solid #ffd9b8}
.db-left{flex:1;min-width:0}
.db-title{font-size:14px;font-weight:700;color:#b45b00}
.db-sub{font-size:11px;color:#c47a2c;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-right{font-size:12px;color:#d17b1f;font-weight:600;flex-shrink:0}

.dist-hero{background:linear-gradient(135deg,#ff9a3c,#ff7a00);color:#fff;border-radius:var(--radius);padding:16px;margin-bottom:8px}
.dh-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dh-label{font-size:11px;opacity:.9}
.dh-code{font-size:22px;font-weight:800;letter-spacing:2px;margin-top:2px}
.dh-qr{width:76px;height:76px;background:#fff;border-radius:8px;padding:4px;flex-shrink:0}
.dh-tip{font-size:11px;opacity:.9;margin-top:10px}

.dist-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-radius:var(--radius);padding:14px 4px;margin-bottom:8px;text-align:center}
.ds-num{font-size:16px;font-weight:700;color:var(--text)}
.ds-label{font-size:11px;color:var(--text3);margin-top:3px}

.panel{background:#fff;border-radius:var(--radius);padding:14px;margin-bottom:8px}
.panel-head{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600;margin-bottom:10px}
.panel-tip{font-size:11px;color:var(--text3);line-height:1.6;margin-bottom:10px}
.price-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.price-row input{flex:1;height:36px;border:1px solid #eee;border-radius:8px;padding:0 10px;font-size:13px;background:#fafafa;min-width:0}
.price-row-label{font-size:11px;color:var(--text3);flex-shrink:0}

.sec-title{padding:12px 4px 8px;font-size:13px;font-weight:600;color:var(--text2)}
.team-item{display:flex;align-items:center;gap:10px;background:#fff;border-radius:10px;padding:12px;margin-bottom:6px}
.team-avatar{width:36px;height:36px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}
.team-info{flex:1;min-width:0}
.team-name{font-size:14px;font-weight:600;display:flex;align-items:center;gap:6px}
.team-sub{font-size:11px;color:var(--text3);margin-top:3px}
.lv-badge{font-size:10px;font-weight:600;padding:1px 6px;border-radius:4px;background:var(--primary-light);color:var(--primary)}

.comm-row{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;padding:12px;margin-bottom:6px;gap:8px}
.comm-name{font-size:13px;font-weight:600}
.comm-sub{font-size:11px;color:var(--text3);margin-top:3px}
.comm-right{text-align:right;flex-shrink:0}
.comm-amt{font-size:14px;font-weight:700;color:var(--red)}
.comm-status{font-size:10px;margin-top:3px}
.comm-status.pending{color:var(--orange)}
.comm-status.settled{color:var(--primary)}
.comm-status.done{color:var(--primary)}
.comm-status.rejected{color:var(--text3)}

.cat-manage-item{display:flex;align-items:center;gap:10px;background:#fff;border-radius:10px;padding:12px;margin-bottom:6px}
.cat-manage-ico{width:32px;height:32px;border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cat-manage-name{flex:1;font-size:14px}
.cat-manage-count{font-size:11px;color:var(--text3)}

.post-comm{font-size:11px;color:var(--orange);background:#fff3e0;padding:2px 6px;border-radius:4px}

.invite-badge{text-align:center;font-size:11px;color:var(--orange);background:#fff3e0;display:inline-block;padding:3px 12px;border-radius:10px;margin:0 auto 12px;display:block;width:fit-content}
.invite-text{text-align:center;font-size:15px;line-height:1.6;margin-bottom:16px;padding:0 10px}
.invite-text b{color:var(--primary)}

/* 规格 / 尺码 与进货价 */
.spec-row{display:flex;gap:6px;align-items:center;margin-bottom:8px}
.spec-row input{flex:1;min-width:0;height:36px;border-radius:8px;border:1px solid #e5e7eb;padding:0 8px;font-size:13px;background:#fff;color:#111}
.spec-block{margin:10px 0 4px}
.spec-label{font-size:12px;color:#888;margin-bottom:6px}
.spec-chips{display:flex;flex-wrap:wrap;gap:8px}
.spec-chip{padding:6px 12px;border-radius:16px;border:1px solid #e5e7eb;font-size:13px;display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.spec-chip.active{border-color:#07c160;color:#07c160;background:rgba(7,193,96,.08)}
.spec-chip em{font-style:normal;font-size:11px;color:#fa5151;background:rgba(250,81,81,.12);padding:1px 4px;border-radius:4px}
.cost-tag{font-size:11px;color:#fa5151;background:rgba(250,81,81,.12);padding:2px 6px;border-radius:6px}
