*{box-sizing:border-box;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;}

html,body{min-height:100%;}

/* ========== 浅蓝渐变背景 ========== */
body{
  color:#1f2937;
  background:linear-gradient(135deg,#f0f7ff 0%,#e0ecff 50%,#d9e8ff 100%);
  background-attachment:fixed;
  min-height:100vh;
  padding-bottom:100px;
  position:relative;
  overflow-x:hidden;
}
body::before{
  content:'';
  position:fixed;inset:-50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(47,124,255,0.12), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(120,180,255,0.15), transparent 42%);
  animation:floatBlob 22s ease-in-out infinite;
  pointer-events:none;
  z-index:0;
}
@keyframes floatBlob{
  0%,100%{transform:translate(0,0) rotate(0deg);}
  50%{transform:translate(4%,-3%) rotate(6deg);}
}

/* ========== 容器 ========== */
.page{max-width:520px;margin:0 auto;position:relative;z-index:1;}

/* ========== 顶部栏玻璃 ========== */
.header{
  padding:16px 14px;text-align:center;font-weight:600;font-size:15px;
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(22px) saturate(180%);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  border-bottom:1px solid rgba(255,255,255,0.9);
  box-shadow:0 4px 20px rgba(47,124,255,0.06);
}
.header .back{
  position:absolute;left:14px;top:12px;color:#2f7cff;
  text-decoration:none;font-size:20px;font-weight:400;
}

.list{padding:12px;}

/* ========== 玻璃卡片 ========== */
.cat-item,.goods-item,.order-item,.card{
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(22px) saturate(180%);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:0 6px 24px rgba(47,124,255,0.08),
             inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius:16px;
  transition:transform .2s,box-shadow .2s;
}
.cat-item:hover,.goods-item:hover,.order-item:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 32px rgba(47,124,255,0.15),
             inset 0 1px 0 rgba(255,255,255,0.9);
}

.cat-item{
  display:flex;align-items:center;gap:12px;
  padding:16px;margin-bottom:10px;
  text-decoration:none;color:#1f2937;
}
.cat-item .ico{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,rgba(47,124,255,0.12),rgba(120,180,255,0.18));
  display:flex;align-items:center;justify-content:center;
  font-size:22px;overflow:hidden;flex-shrink:0;
  border:1px solid rgba(255,255,255,0.6);
}
.cat-item .ico img{width:100%;height:100%;object-fit:cover;}

.goods-item{
  display:flex;gap:12px;padding:14px;margin-bottom:10px;align-items:center;
}
.goods-item .thumb{
  width:60px;height:60px;border-radius:14px;
  background:linear-gradient(135deg,rgba(47,124,255,0.12),rgba(120,180,255,0.18));
  display:flex;align-items:center;justify-content:center;
  font-size:26px;overflow:hidden;flex-shrink:0;
  border:1px solid rgba(255,255,255,0.6);
}
.goods-item .thumb img{width:100%;height:100%;object-fit:cover;}
.goods-item .info{flex:1;min-width:0;}
.goods-item .name{font-weight:600;font-size:14.5px;margin-bottom:3px;}
.goods-item .desc{font-size:12px;color:#7b8794;margin-bottom:6px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.price{color:#ff5b3d;font-weight:800;font-size:15px;}

/* ========== 按钮 ========== */
.btn{
  display:inline-block;padding:7px 16px;
  background:linear-gradient(135deg,#2f7cff,#5a9bff);
  color:#fff;border-radius:999px;text-decoration:none;
  font-size:12.5px;border:none;cursor:pointer;text-align:center;
  box-shadow:0 4px 14px rgba(47,124,255,0.35);
  transition:all .25s ease;font-weight:500;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(47,124,255,0.5);
}
.btn:active{transform:translateY(0);}
.btn.full{display:block;width:100%;padding:12px;font-size:14.5px;margin-top:12px;}
.btn.sm{padding:5px 12px;font-size:11.5px;}
.btn.ghost{
  background:rgba(255,255,255,0.7);color:#2f7cff;
  border:1px solid rgba(47,124,255,0.25);
  box-shadow:0 2px 8px rgba(47,124,255,0.08);
}
.btn.ghost:hover{background:#fff;}
.btn.gray{
  background:rgba(255,255,255,0.6);color:#5b6577;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
}
.btn.danger{background:linear-gradient(135deg,#ef4444,#f87171);}

/* ========== 徽章 ========== */
.badge{
  display:inline-block;font-size:11px;padding:3px 10px;
  border-radius:999px;font-weight:600;
  background:rgba(47,124,255,0.12);color:#2f7cff;
  backdrop-filter:blur(8px);
}
.badge.wait{background:rgba(245,158,11,0.15);color:#d97706;}
.badge.ok{background:rgba(34,197,94,0.15);color:#16a34a;}
.badge.danger{background:rgba(239,68,68,0.15);color:#dc2626;}
.badge.gray{background:rgba(107,114,128,0.12);color:#6b7280;}

/* ========== 卡片行 ========== */
.card{padding:16px;margin:12px;font-size:13.5px;}
.row{
  display:flex;justify-content:space-between;
  padding:9px 0;border-bottom:1px solid rgba(200,215,240,0.3);
}
.row:last-child{border-bottom:none;}
.row .k{color:#8a94a6;}

/* ========== 钱包卡 ========== */
.wallet{
  margin:12px;border-radius:20px;padding:22px;color:#fff;
  background:linear-gradient(135deg,rgba(47,124,255,0.95),rgba(90,155,255,0.9));
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 12px 32px rgba(47,124,255,0.35),
             inset 0 1px 0 rgba(255,255,255,0.3);
  position:relative;overflow:hidden;
}
.wallet::before{
  content:'';position:absolute;top:-50%;right:-20%;
  width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,0.35),transparent 70%);
  pointer-events:none;
}
.wallet .amt{font-size:30px;font-weight:800;margin:8px 0;letter-spacing:0.5px;}
.wallet .btns{display:flex;gap:10px;margin-top:14px;position:relative;}
.btn.white{
  background:rgba(255,255,255,0.28);
  color:#fff;border:1px solid rgba(255,255,255,0.4);
  backdrop-filter:blur(10px);
  box-shadow:none;
}
.btn.white:hover{background:rgba(255,255,255,0.42);}

/* ========== 订单卡片 ========== */
.order-item{padding:14px;margin-bottom:10px;}
.order-item .line1{
  display:flex;justify-content:space-between;
  margin-bottom:8px;align-items:center;
}
.order-item .line2{
  display:flex;justify-content:space-between;
  align-items:center;margin-top:10px;
}
.muted{color:#8a94a6;font-size:12px;}

/* ========== 悬浮胶囊底栏 · 液态玻璃 ========== */
.tabbar{
  position:fixed;
  bottom:calc(12px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width:480px;
  height:64px;
  z-index:999;
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(28px) saturate(200%);
  -webkit-backdrop-filter:blur(28px) saturate(200%);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:32px;
  box-shadow:0 12px 32px rgba(47,124,255,0.15),
             inset 0 1px 0 rgba(255,255,255,0.9);
  display:flex;
  align-items:center;
  justify-content:space-around;
  padding:0 8px;
}
.tabbar a{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#9aa5b5;
  font-size:11px;
  height:100%;
  position:relative;
  transition:all .25s ease;
}
.tabbar a .icon{
  font-size:20px;
  line-height:1;
  margin-bottom:2px;
  transition:transform .25s ease;
}
.tabbar a.on{color:#2f7cff;}
.tabbar a.on::before{
  content:'';
  position:absolute;
  top:5px;bottom:5px;
  left:8%;right:8%;
  border-radius:999px;
  background:rgba(47,124,255,0.1);
  z-index:-1;
  animation:pillFadeIn .3s ease;
}
@keyframes pillFadeIn{
  from{opacity:0;transform:scale(0.85);}
  to{opacity:1;transform:scale(1);}
}
.tabbar a.on .icon{transform:translateY(-1px);}
.tabbar a.on .text{font-weight:600;}

/* ========== 登录页 ========== */
.login-bg{
  display:flex;align-items:center;justify-content:center;
  min-height:100vh;padding:20px;
}
.login-box{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(28px) saturate(180%);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  border:1px solid rgba(255,255,255,0.9);
  padding:32px 26px;border-radius:24px;
  width:100%;max-width:360px;
  box-shadow:0 20px 60px rgba(47,124,255,0.15),
             inset 0 1px 0 rgba(255,255,255,0.9);
}
.login-box h1{
  font-size:20px;text-align:center;margin-bottom:20px;
  background:linear-gradient(135deg,#2f7cff,#5a9bff);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:800;letter-spacing:0.5px;
}
.login-box input{
  width:100%;padding:13px 14px;margin-bottom:12px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:12px;outline:none;font-size:14px;
  transition:all .2s;
  box-shadow:inset 0 2px 6px rgba(47,124,255,0.04);
}
.login-box input:focus{
  background:#fff;
  border-color:rgba(47,124,255,0.5);
  box-shadow:0 0 0 4px rgba(47,124,255,0.1);
}
.err{color:#ef4444;font-size:13px;margin-bottom:10px;text-align:center;}
.tip{font-size:12.5px;text-align:center;margin-top:14px;color:#8a94a6;}
.tip a{color:#2f7cff;text-decoration:none;font-weight:600;}

/* ========== 头像 ========== */
.avatar{
  width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,rgba(47,124,255,0.15),rgba(120,180,255,0.25));
  display:flex;align-items:center;justify-content:center;
  font-size:26px;overflow:hidden;flex-shrink:0;
  border:2px solid rgba(255,255,255,0.9);
  box-shadow:0 4px 12px rgba(47,124,255,0.15);
}
.avatar img{width:100%;height:100%;object-fit:cover;}
.user-card{display:flex;gap:14px;align-items:center;}
.nick{font-weight:700;font-size:15.5px;}

/* ========== 菜单 ========== */
.menu{padding:6px 16px;}
.menu a{
  display:flex;justify-content:space-between;
  padding:14px 0;color:#1f2937;text-decoration:none;
  border-bottom:1px solid rgba(200,215,240,0.3);
  font-size:14px;transition:color .2s;
}
.menu a:hover{color:#2f7cff;}
.menu a:last-child{border-bottom:none;}

/* ========== 搜索 ========== */
.search{display:flex;gap:8px;padding:12px;}
.search input{
  flex:1;padding:11px 14px;
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:12px;outline:none;font-size:13.5px;
  box-shadow:inset 0 2px 6px rgba(47,124,255,0.04);
}
.search input:focus{
  background:#fff;border-color:rgba(47,124,255,0.5);
  box-shadow:0 0 0 4px rgba(47,124,255,0.1);
}

/* ========== 表单 ========== */
.form-card input,.form-card select,.form-card textarea{
  width:100%;padding:12px 14px;margin-bottom:12px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:12px;font-size:13.5px;outline:none;
  font-family:inherit;transition:all .2s;
  box-shadow:inset 0 2px 6px rgba(47,124,255,0.04);
}
.form-card input:focus,.form-card select:focus,.form-card textarea:focus{
  background:#fff;border-color:rgba(47,124,255,0.5);
  box-shadow:0 0 0 4px rgba(47,124,255,0.1);
}
.form-card textarea{min-height:90px;resize:vertical;}

/* ========== 聊天 ========== */
.chat-page{
  display:flex;flex-direction:column;
  height:calc(100vh - 60px);max-width:520px;margin:0 auto;
  position:relative;z-index:1;
}
.chat-body{
  flex:1;overflow-y:auto;padding:16px;
  background:transparent;
}
.bubble{display:flex;gap:10px;margin-bottom:14px;animation:bubbleIn .25s ease;}
@keyframes bubbleIn{
  from{opacity:0;transform:translateY(6px);}
  to{opacity:1;transform:none;}
}
.bubble.right{flex-direction:row-reverse;}
.bubble .b-av{
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.9);
  flex-shrink:0;display:flex;align-items:center;justify-content:center;
  font-size:14px;
  box-shadow:0 4px 12px rgba(47,124,255,0.1);
}
.bubble .b-msg{
  max-width:72%;padding:10px 14px;border-radius:16px;
  line-height:1.6;word-break:break-all;
  background:rgba(255,255,255,0.8);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.9);
  box-shadow:0 4px 14px rgba(47,124,255,0.06);
}
.bubble.right .b-msg{
  background:linear-gradient(135deg,#2f7cff,#5a9bff);
  color:#fff;border:none;
  box-shadow:0 6px 20px rgba(47,124,255,0.35);
}
.bubble .b-msg img{max-width:100%;border-radius:10px;margin-top:4px;}
.bubble .b-msg .b-time{font-size:10.5px;color:#9aa5b5;margin-top:5px;}
.bubble.right .b-msg .b-time{color:rgba(255,255,255,0.75);text-align:right;}

.chat-form{
  padding:10px 12px;
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(24px) saturate(180%);
  border-top:1px solid rgba(255,255,255,0.9);
  display:flex;gap:8px;align-items:center;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
.chat-form input[type=text]{
  flex:1;padding:11px 16px;
  background:rgba(255,255,255,0.8);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:22px;outline:none;font-size:14px;
}
.chat-form input[type=text]:focus{
  background:#fff;border-color:rgba(47,124,255,0.5);
}
.chat-form label{
  cursor:pointer;font-size:22px;color:#2f7cff;
  padding:0 4px;transition:transform .15s;
}
.chat-form label:hover{transform:scale(1.1);}
.chat-form button{
  padding:10px 20px;border-radius:22px;border:none;
  background:linear-gradient(135deg,#2f7cff,#5a9bff);
  color:#fff;cursor:pointer;font-size:13.5px;font-weight:600;
  box-shadow:0 4px 14px rgba(47,124,255,0.4);
  transition:all .2s;
}
.chat-form button:hover{transform:translateY(-1px);}

/* ========== 公告弹窗 ========== */
.notice-pop{
  position:fixed;inset:0;z-index:999;
  background:rgba(30,60,120,0.35);
  backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  animation:popIn .3s ease;
}
@keyframes popIn{from{opacity:0;}to{opacity:1;}}
.notice-pop .box{
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(28px) saturate(180%);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:20px;max-width:340px;width:88%;padding:24px;
  text-align:center;
  box-shadow:0 24px 60px rgba(47,124,255,0.3);
  animation:popBox .3s ease;
}
@keyframes popBox{
  from{transform:scale(.92);opacity:0;}
  to{transform:scale(1);opacity:1;}
}
.notice-pop .box img{max-width:100%;border-radius:12px;margin-bottom:12px;}
.notice-pop .box h3{color:#2f7cff;margin-bottom:10px;font-size:17px;}
.notice-pop .box p{font-size:13.5px;color:#5b6577;line-height:1.7;margin-bottom:16px;}

/* ========== 小控件 ========== */
.inline{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
.inline select,.inline input{
  padding:7px 10px;border-radius:8px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(255,255,255,0.9);
  font-size:12.5px;
}