/* 雨诺科技自助下单系统 - 前台样式（移动端优先） */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{font-size:16px}
body{
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  background:#f5f5f5;color:#222;
  min-height:100vh;padding-bottom:66px;
  background-size:cover;background-position:center;background-attachment:fixed;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}

/* 顶部 */
.header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(135deg,#4f7cff,#6c3dff);color:#fff;
  padding:14px 14px 10px;box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.header .site{font-size:18px;font-weight:700;letter-spacing:.5px}
.header .notice{
  margin-top:6px;font-size:12px;background:rgba(255,255,255,.15);
  padding:6px 10px;border-radius:8px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* 轮播图 */
.banner-wrap{padding:12px 12px 0}
.swiper{position:relative;overflow:hidden;border-radius:12px;background:#eee;aspect-ratio:2/1}
.slides{display:flex;transition:transform .45s ease}
.slide{flex:0 0 100%}
.slide img{width:100%;height:100%;object-fit:cover}
.dots{position:absolute;bottom:8px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.dots span{width:6px;height:6px;border-radius:99px;background:rgba(255,255,255,.5);transition:.3s}
.dots span.on{width:16px;background:#fff}

/* 区块标题 */
.section-tit{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px}
.section-tit h2{font-size:16px;font-weight:700}
.section-tit h2::before{content:"";display:inline-block;width:4px;height:14px;background:#4f7cff;border-radius:2px;margin-right:6px;vertical-align:-2px}
.section-tit .more{font-size:12px;color:#999}

/* 商品列表：一行两个 */
.goods-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 12px 12px}
.goods-card{
  background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .15s;
}
.goods-card:active{transform:scale(.98)}
.goods-card .pic{aspect-ratio:1/1;background:#f0f0f0;position:relative}
.goods-card .pic img{width:100%;height:100%;object-fit:cover}
.goods-card .pic .no-img{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:12px}
.goods-card .info{padding:10px 10px 12px}
.goods-card .title{font-size:14px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:20px}
.goods-card .meta{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.goods-card .price{color:#ff4d4f;font-size:17px;font-weight:700}
.goods-card .price i{font-style:normal;font-size:12px}
.goods-card .sales{font-size:11px;color:#999}
.stock-tag{position:absolute;top:6px;left:6px;background:rgba(0,0,0,.55);color:#fff;font-size:10px;padding:2px 6px;border-radius:4px}

/* 商品详情 */
.gd{padding:12px}
.gd .hero{background:#fff;border-radius:12px;overflow:hidden}
.gd .hero img{width:100%;aspect-ratio:1/1;object-fit:cover}
.gd .hero .no-img{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;color:#bbb;background:#f0f0f0}
.gd .body{background:#fff;border-radius:12px;margin-top:12px;padding:14px}
.gd .title{font-size:18px;font-weight:700;line-height:1.4}
.gd .row{display:flex;align-items:center;gap:10px;margin-top:10px}
.gd .price{color:#ff4d4f;font-size:24px;font-weight:800}
.gd .price i{font-style:normal;font-size:14px}
.gd .sales{font-size:13px;color:#ff8c00}
.gd .stock{font-size:13px;color:#666}
.gd .stock.out{color:#e14f4f}
.gd .detail{margin-top:12px;padding-top:12px;border-top:1px dashed #eee}
.gd .detail h3{font-size:14px;color:#999;margin-bottom:8px}
.gd .detail p{font-size:14px;line-height:1.8;color:#444;word-break:break-all}

/* 底部导航 */
.tabbar{
  position:fixed;bottom:0;left:0;right:0;z-index:60;height:60px;
  background:#fff;display:flex;border-top:1px solid #eee;
  padding-bottom:env(safe-area-inset-bottom);
}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:11px;gap:2px}
.tabbar a .ic{font-size:22px;line-height:1}
.tabbar a.on{color:#4f7cff}
.tabbar a.on .ic{transform:scale(1.06)}

/* 按钮 */
.btn{display:block;width:100%;height:46px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;text-align:center;line-height:46px}
.btn.primary{background:linear-gradient(135deg,#4f7cff,#6c3dff);color:#fff}
.btn.primary:disabled{opacity:.5}
.btn.big{height:52px;font-size:17px;border-radius:12px;line-height:52px}

/* 底部操作条（详情页） */
.bottom-bar{
  position:fixed;bottom:0;left:0;right:0;z-index:60;height:60px;background:#fff;
  border-top:1px solid #eee;display:flex;align-items:center;padding:0 12px;gap:10px;
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-bar .btn{flex:1;margin:0}

/* 卡片 / 列表 */
.card{background:#fff;border-radius:12px;margin:12px;box-shadow:0 2px 10px rgba(0,0,0,.05);overflow:hidden}
.list-item{display:flex;align-items:center;padding:14px;border-bottom:1px solid #f4f4f4}
.list-item:last-child{border-bottom:none}
.list-item .l{flex:1}
.list-item .l .t{font-size:15px;font-weight:600}
.list-item .l .s{font-size:12px;color:#999;margin-top:3px}
.list-item .r{font-size:13px;color:#999}

/* 表单 */
.form{padding:14px}
.form .field{margin-bottom:14px}
.form .field label{display:block;font-size:13px;color:#666;margin-bottom:6px}
.form .field input,.form .field textarea,.form .field select{
  width:100%;height:44px;border:1px solid #e2e2e2;border-radius:9px;padding:0 12px;font-size:15px;outline:none;background:#fff;
}
.form .field textarea{height:auto;min-height:80px;padding:10px 12px;resize:vertical;line-height:1.6}
.form .field input:focus,.form .field textarea:focus{border-color:#4f7cff}

/* 弹层 */
.mask{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:90;display:none}
.pop{position:fixed;left:12px;right:12px;top:50%;transform:translateY(-50%);background:#fff;border-radius:14px;z-index:95;padding:18px;display:none;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.pop .p-tit{font-size:16px;font-weight:700;text-align:center;margin-bottom:12px}
.pop .btn{margin-top:8px}

/* 状态 */
.status{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:4px}
.st-0{background:#fffbe6;color:#d4a500;border:1px solid #ffe58f} /* 待审核 黄 */
.st-1{background:#f6ffed;color:#389e0d;border:1px solid #b7eb8f} /* 通过 绿 */
.st-2{background:#fff1f0;color:#f5222d;border:1px solid #ffa39e} /* 失败 红 */
.corner{position:absolute;top:8px;right:8px}

/* 空态 */
.empty{padding:60px 20px;text-align:center;color:#bbb}
.empty .e-ic{font-size:46px;margin-bottom:10px}
.empty .e-t{font-size:14px}

/* 客服聊天 */
.chat-wrap{display:flex;flex-direction:column;height:calc(100vh - 130px);background:#f3f4f6}
.chat-head{position:sticky;top:0;background:#fff;border-bottom:1px solid #eee;padding:10px 14px;display:flex;align-items:center;gap:10px;z-index:10}
.chat-head .av{width:40px;height:40px;border-radius:50%;background:#4f7cff;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;overflow:hidden;font-size:18px}
.chat-head .av img{width:100%;height:100%;object-fit:cover}
.chat-head .nm{font-weight:600}
.chat-head .st{font-size:12px;color:#999}
.chat-body{flex:1;overflow-y:auto;padding:14px}
.msg{display:flex;margin-bottom:12px;gap:8px}
.msg .av{width:36px;height:36px;border-radius:50%;flex-shrink:0;overflow:hidden;background:#ddd;display:flex;align-items:center;justify-content:center;font-size:15px}
.msg .av img{width:100%;height:100%;object-fit:cover}
.msg .bubble{max-width:70%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.6;word-break:break-all}
.msg .time{font-size:10px;color:#bbb;margin-top:3px;padding:0 4px}
.msg.mine{flex-direction:row-reverse}
.msg.mine .bubble{background:#4f7cff;color:#fff;border-top-right-radius:2px}
.msg.other .bubble{background:#fff;border-top-left-radius:2px}
.chat-input{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #eee;align-items:center}
.chat-input input{flex:1;height:42px;border:1px solid #e2e2e2;border-radius:21px;padding:0 14px;font-size:14px;outline:none}
.chat-input .send{width:64px;height:42px;border:none;border-radius:21px;background:linear-gradient(135deg,#4f7cff,#6c3dff);color:#fff;font-size:14px}

/* 收款码页 */
.qr-page{text-align:center;padding:20px 24px 30px}
.qr-page .tip-big{font-size:15px;font-weight:600;color:#333;margin-bottom:4px}
.qr-page .tip-sub{font-size:12px;color:#ff8c00;margin-bottom:18px}
.qr-box{width:220px;height:220px;margin:0 auto;border:1px dashed #ddd;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.qr-box img{width:100%;height:100%;object-fit:contain}
.qr-box .no-qr{color:#bbb;font-size:13px}
