/* ===== 优享佳 v3 视觉系统（对齐参考图） ===== */
:root{
  --blue-1:#3f7dff; --blue-2:#1f66f5; --blue-3:#0f57e6;
  --page:#eef6ff; --text:#111a2e; --sub:#8b96ab; --line:#edf1f8;
}
*{ -webkit-tap-highlight-color: transparent; }
body{ margin:0; background:
  radial-gradient(120% 40% at 0% 0%, #e8f6ff 0%, rgba(232,246,255,0) 60%),
  radial-gradient(120% 40% at 100% 10%, #f3ecff 0%, rgba(243,236,255,0) 60%),
  var(--page);
  color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;
  padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
a{ text-decoration:none; color:inherit; }
img{ display:block; }

/* ---------- 顶部 banner ---------- */
.hero{ position:relative; height:172px; margin:0 0 -30px; overflow:visible; }
.hero-bg{ position:absolute; inset:0; border-radius:0 0 26px 26px; overflow:hidden;
  background:linear-gradient(100deg,#dff0ff 0%,#c9e2ff 26%,#3d84ff 62%,#1a5ef0 100%); }
.hero-bg::after{ content:''; position:absolute; inset:0;
  background:radial-gradient(60% 90% at 78% 0%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 70%); }
.logo{ position:absolute; left:14px; top:12px; z-index:3; display:flex; align-items:center; gap:5px;
  height:24px; padding:0 9px 0 4px; border-radius:12px; background:rgba(0,0,0,.16); color:#fff; font-size:11px; }
.logo i{ display:inline-flex; width:16px; height:16px; border-radius:8px; background:#fff; color:#1a5ef0;
  font-style:normal; font-size:11px; font-weight:800; align-items:center; justify-content:center; }
.mascot{ position:absolute; left:-6px; top:-6px; width:150px; height:auto; z-index:2;
  filter:drop-shadow(0 8px 14px rgba(16,58,140,.18)); }
.h-txt{ position:absolute; right:20px; top:34px; z-index:3; text-align:right; color:#fff; }
.h-txt .t1{ font-size:30px; font-weight:800; letter-spacing:1px; line-height:1.1;
  text-shadow:0 3px 10px rgba(9,44,120,.25); }
.h-txt .t2{ margin-top:8px; font-size:12px; opacity:.95; letter-spacing:2px;
  display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.h-txt .t2 em{ width:22px; height:1px; background:rgba(255,255,255,.7); }
.h-tip{ position:absolute; right:20px; top:104px; z-index:3; max-width:230px;
  padding:5px 12px; border-radius:20px; background:rgba(11,32,90,.45); color:#ffe27a; font-size:12px; }
.dots{ position:absolute; right:20px; bottom:16px; z-index:3; display:flex; gap:5px; }
.dots i{ width:5px; height:5px; border-radius:3px; background:rgba(255,255,255,.55); }
.dots i.on{ width:12px; background:#fff; }

/* ---------- 常用服务 / 休闲娱乐 斜角 Tab ---------- */
.tabbox{ position:relative; margin:0 12px; background:#fff; border-radius:18px;
  box-shadow:0 8px 24px rgba(29,88,190,.10); padding:0 0 14px; z-index:4; }
.tabhead{ position:relative; height:56px; display:flex; align-items:stretch; overflow:hidden; border-radius:18px 18px 0 0; }
.tabhead .bg2{ position:absolute; right:0; top:0; bottom:0; left:38%;
  background:linear-gradient(100deg,#5a92ff,#2f6df5 55%,#1a5ce8);
  clip-path:polygon(9% 0,100% 0,100% 100%,0 100%); }
.tabhead .it{ position:relative; z-index:2; flex:1; display:flex; align-items:center; justify-content:center;
  font-size:19px; font-weight:700; color:#111a2e; }
.tabhead .it.r{ color:#fff; font-weight:600; }
.tabhead .it.bg-w{ background:#fff; clip-path:polygon(0 0,100% 0,91% 100%,0 100%); }

/* ---------- 服务四宫格 ---------- */
.svc{ display:grid; grid-template-columns:1fr 1fr; gap:6px 0; padding:14px 8px 4px; }
.svc a{ display:flex; align-items:center; gap:12px; padding:8px 6px; }
.svc .icon{ position:relative; width:52px; height:52px; border-radius:50%; flex:0 0 52px;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px rgba(29,88,190,.16); }
.svc .icon svg{ width:30px; height:30px; }
.svc .icon>img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.svc .icon .bd{ position:absolute; right:-3px; bottom:-3px; width:20px; height:20px; border-radius:50%;
  background:#fff; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700;
  box-shadow:0 2px 6px rgba(0,0,0,.12); }
.svc .tx .n{ font-size:16px; font-weight:700; }
.svc .tx .s{ margin-top:3px; font-size:11.5px; color:var(--sub); }
.i-sell{ background:linear-gradient(135deg,#3fd6a8,#12b886); }
.i-buy{ background:linear-gradient(135deg,#59a5ff,#1f6ce8); }
.i-ag{ background:linear-gradient(135deg,#ffa768,#ff7a45); }
.i-q{ background:linear-gradient(135deg,#7bd44f,#33b322); }
.bd.sell{ color:#12b886 } .bd.buy{ color:#1f6ce8 }
.bd.ag{ color:#ff7a45 } .bd.q{ color:#33b322 }

/* ---------- 产品分类 Tab ---------- */
.ptabs{ margin:14px 12px 0; background:#fff; border-radius:16px;
  box-shadow:0 6px 18px rgba(29,88,190,.08); height:52px; display:flex; align-items:center; }
.ptabs .it{ position:relative; flex:1; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:600; color:var(--text); }
.ptabs .it::after{ content:''; position:absolute; bottom:11px; width:0; height:3px; border-radius:2px;
  background:linear-gradient(90deg,#4f8dff,#1f66f5); transition:width .2s; }
.ptabs .it.on::after{ width:42px; }
.divider{ position:absolute; top:16px; bottom:16px; width:1px; background:var(--line); }

/* ---------- 三列商品 ---------- */
.grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 10px; }
.pcard{ background:#fff; border-radius:12px; padding:10px 6px 8px;
  box-shadow:0 6px 16px rgba(29,88,190,.07); display:block; }
.pcard .ph{ height:42px; display:flex; align-items:center; justify-content:center; }
.pcard .ph img{ max-width:42px; max-height:42px; border-radius:7px; object-fit:contain; }
.pcard .pn{ margin-top:6px; font-size:11.5px; font-weight:600; line-height:1.3; min-height:30px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pcard .pd{ margin-top:6px; background:#eef4ff; border-radius:7px; padding:5px 5px;
  font-size:10px; color:#2c62e0; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:26px; }
.empty{ grid-column:1/-1; text-align:center; color:var(--sub); font-size:13px; padding:34px 0; }

/* ---------- 客服球 ---------- */
.kf{ position:fixed; right:14px; bottom:calc(84px + env(safe-area-inset-bottom)); z-index:120;
  width:56px; text-align:center; touch-action:none; -webkit-user-select:none; user-select:none;
  cursor:grab; transition:left .18s ease, top .18s ease; }
.kf.drag{ transition:none; cursor:grabbing; opacity:.82; }
.kf.drag img{ animation:none; }
.kf img{ width:56px; height:auto; margin:0 auto; animation:float 3s ease-in-out infinite; }
.kf .lb{ margin-top:-4px; display:inline-block; padding:1px 6px; border-radius:9px;
  background:linear-gradient(135deg,#3f7dff,#1f66f5); color:#fff; font-size:10px; }
@keyframes float{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ---------- 底栏 4 项 ---------- */
/* ---------- 底栏（新版） ---------- */
.fbar{ position:fixed; left:10px; right:10px; bottom:calc(8px + env(safe-area-inset-bottom)); z-index:80;
  background:rgba(255,255,255,.96); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  display:flex; align-items:center; justify-content:space-around;
  padding:8px 6px; border-radius:20px;
  box-shadow:0 10px 28px rgba(23,60,140,.14), 0 2px 6px rgba(23,60,140,.06);
  border:1px solid rgba(226,235,250,.9); }
.fbar a{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  text-decoration:none; -webkit-tap-highlight-color:transparent; }
.fbar a .ic{ width:34px; height:26px; display:flex; align-items:center; justify-content:center;
  border-radius:9px; transition:background .2s ease, transform .2s ease; }
.fbar a .ic svg{ width:21px; height:21px; stroke:#9aa7bd; fill:none; transition:stroke .2s ease; }
.fbar a .lb{ font-size:11px; color:#8a92a4; line-height:1.2; transition:color .2s ease; }
.fbar a.on .ic{ background:linear-gradient(135deg,#e8f0ff,#dbe8ff); }
.fbar a.on .ic svg{ stroke:#2f6df5; }
.fbar a.on .lb{ color:#2f6df5; font-weight:700; }
.fbar a:active .ic{ transform:scale(.94); }
.fbar img{ width:23px; height:23px; object-fit:contain; }

/* ---------- 遮罩 / 弹窗 ---------- */
.mask{ position:fixed; inset:0; background:rgba(14,26,48,.45); z-index:200; display:none;
  align-items:center; justify-content:center; padding:0 34px; }
.mask.show{ display:flex; }
.sheet{ width:100%; background:#fff; border-radius:18px; padding:18px; text-align:center; }
.sheet .st{ font-size:16px; font-weight:700; }
.sheet .ss{ margin-top:8px; font-size:13px; color:var(--sub); line-height:1.6; }
.sheet .sb{ margin-top:16px; height:44px; border-radius:22px; border:0; width:100%;
  background:linear-gradient(135deg,#3f7dff,#1f66f5); color:#fff; font-size:15px; font-weight:600; }


/* ===== 全局放长：间距 / 字号 / 行高加大，解决页面太挤太小 ===== */
body{
	font-size:15px;
	line-height:1.7;
	padding-bottom:calc(92px + env(safe-area-inset-bottom));
	-webkit-font-smoothing:antialiased;
}
.tabbox{ margin:0 14px; border-radius:20px; padding-bottom:20px; }
.tabhead{ height:62px; }
.tabhead .it{ font-size:20px; }
.svc{ gap:10px 0; padding:18px 10px 6px; }
.svc a{ padding:12px 8px; gap:14px; }
.svc .icon{ width:56px; height:56px; flex:0 0 56px; }
.svc .icon svg{ width:32px; height:32px; }
.svc .tx .n{ font-size:16.5px; }
.svc .tx .s{ margin-top:5px; font-size:12px; }
.ptabs{ margin:18px 14px 0; height:58px; border-radius:18px; }
.ptabs .it{ font-size:16.5px; }
.ptabs .it::after{ bottom:13px; }
.grid{ grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 10px; }
.pcard{ border-radius:12px; padding:10px 6px 8px; }
.pcard .ph{ height:42px; }
.pcard .ph img{ max-width:42px; max-height:42px; }
.pcard .pn{ margin-top:6px; font-size:11.5px; line-height:1.3; min-height:30px; }
.pcard .pd{ margin-top:6px; padding:5px 5px; font-size:10px; line-height:1.35; min-height:26px; border-radius:7px; }
.empty{ font-size:14px; padding:46px 0; }
.fbar{ padding:10px 8px; border-radius:22px; }
.fbar a .ic{ width:38px; height:30px; }
.fbar a .ic svg{ width:23px; height:23px; }
.fbar a .lb{ font-size:11.5px; }
.kf{ bottom:calc(96px + env(safe-area-inset-bottom)); }
