/* =====================================================================
   云卡发卡 · H5 网页版样式
   移动优先；桌面浏览器自动居中成手机视图，方便预览与测试
   ===================================================================== */
:root{
  --primary:#2f6bff; --primary-dark:#1d4fd8; --primary-soft:#eef3ff;
  --text:#1a2233; --sub:#6b7688; --muted:#9aa4b5; --line:#eef1f7;
  --bg:#f4f6fb; --card:#ffffff; --ok:#12b76a; --warn:#f79009; --danger:#f04438;
  --price:#ff4d4f; --radius:14px;
  --tabbar-h:56px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:#e9edf5;color:var(--text);-webkit-font-smoothing:antialiased;font-size:14px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit}

/* ---------- 手机外框（桌面居中） ---------- */
#app{
  max-width:var(--app-max,480px);margin:0 auto;background:var(--bg);min-height:100vh;
  position:relative;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  box-shadow:0 0 40px rgba(20,35,80,.10);overflow-x:hidden;
}
@media (min-width:560px){
  body{padding:0}
  #app{min-height:100vh}
}
#app.no-tab{padding-bottom:0}

/* ---------- 顶栏 ---------- */
.nav{
  position:sticky;top:0;z-index:30;height:48px;display:flex;align-items:center;justify-content:center;
  background:#fff;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;
}
.nav .back{position:absolute;left:6px;top:0;height:48px;display:flex;align-items:center;padding:0 12px;
  font-size:17px;font-weight:400;cursor:pointer}
.nav .act{position:absolute;right:10px;top:0;height:48px;display:flex;align-items:center;font-size:13px;
  color:var(--primary);font-weight:500;cursor:pointer;padding:0 6px}

/* ---------- 底部 Tab ---------- */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;max-width:var(--app-max,480px);margin:0 auto;
  height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
  background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--line);
  display:flex;box-shadow:0 -4px 18px rgba(23,43,99,.06);
}
.tabbar .tb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:10.5px;color:var(--muted);cursor:pointer;transition:.15s}
.tabbar .tb .ic{font-size:19px;line-height:1;filter:grayscale(1);opacity:.5;transition:.15s}
.tabbar .tb.on{color:var(--primary);font-weight:600}
.tabbar .tb.on .ic{filter:none;opacity:1;transform:translateY(-1px)}

/* ---------- 通用 ---------- */
.wrap{padding:12px}
.card{background:var(--card);border-radius:var(--radius);padding:14px;margin-bottom:12px;
  box-shadow:0 4px 15px rgba(23,43,99,.06)}
.t-title{font-size:17px;font-weight:700}
.t-lg{font-size:16px;font-weight:600}
.t-md{font-size:14px}.t-sm{font-size:13px}.t-xs{font-size:11.5px}
.c-sub{color:var(--sub)}.c-muted{color:var(--muted)}.c-primary{color:var(--primary)}
.c-danger{color:var(--danger)}.c-ok{color:var(--ok)}
.bold{font-weight:600}
.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ellipsis2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mono{font-family:Menlo,Consolas,monospace}
.row-between{display:flex;align-items:center;justify-content:space-between}
.flex1{flex:1;min-width:0}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.divider{height:1px;background:var(--line);margin:10px 0}
.hidden{display:none!important}

.price{color:var(--price);font-weight:700}
.price .sym{font-size:12px;margin-right:1px}
.price .int{font-size:18px}
.price-origin{color:var(--muted);text-decoration:line-through;font-size:12px;margin-left:5px}
.tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;font-size:10.5px;
  font-weight:600;background:var(--primary-soft);color:var(--primary)}
.tag.ok{background:#e9f9f0;color:var(--ok)}
.tag.gray{background:#f2f4f8;color:var(--sub)}
.tag.danger{background:#fef1f0;color:var(--danger)}
.tag.warn{background:#fff5e6;color:var(--warn)}

.btn{display:flex;align-items:center;justify-content:center;height:46px;border-radius:23px;font-size:15px;
  font-weight:600;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border:0;
  box-shadow:0 6px 14px rgba(47,107,255,.28);cursor:pointer;width:100%;transition:.15s}
.btn:active{transform:translateY(1px);opacity:.92}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:none}
.btn.soft{background:var(--primary-soft);color:var(--primary);box-shadow:none}
.btn.sm{height:34px;border-radius:17px;font-size:13px;padding:0 16px;width:auto;box-shadow:none}
.btn.danger{background:linear-gradient(135deg,#f97066,#e5484d);box-shadow:0 6px 14px rgba(229,72,77,.28)}

.field{padding:11px 0;border-bottom:1px solid var(--line)}
.field:last-child{border-bottom:none}
.field-label{font-size:13px;color:var(--sub);margin-bottom:6px}
.field-label .req{color:var(--danger);margin-left:2px}
.input{width:100%;height:44px;padding:0 12px;background:#f8fafd;border:1px solid transparent;border-radius:9px;
  font-size:14px;color:var(--text);outline:none;transition:.15s}
.input:focus{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(47,107,255,.1)}
textarea.input{height:auto;min-height:76px;padding:11px 12px;line-height:1.6;resize:vertical}

.bottom-bar{position:sticky;bottom:0;background:#fff;padding:10px 14px calc(14px + env(safe-area-inset-bottom));
  box-shadow:0 -3px 14px rgba(23,43,99,.07);display:flex;align-items:center;gap:10px;z-index:20}
.notice-bar{display:flex;align-items:flex-start;gap:6px;background:#fff8e8;color:#a86a00;padding:9px 12px;
  border-radius:9px;font-size:12px;margin-bottom:10px;line-height:1.65}
.notice-bar .ico{font-size:14px;flex:0 0 auto}
.rich{font-size:14px;line-height:1.85;color:#374151;word-break:break-word}
.rich p{margin:6px 0}
.rich b,.rich strong{font-weight:700;color:#111827}
.rich img{border-radius:8px;margin:8px 0}
.rich ul,.rich ol{padding-left:22px;margin:8px 0}
.rich blockquote{margin:8px 0;padding:6px 12px;border-left:3px solid var(--line);color:var(--sub)}
.rich h1,.rich h2,.rich h3{font-size:15.5px;margin:12px 0 6px}

/* ---------- 首页 ---------- */
/* 装饰圆用 radial-gradient 绘制在背景层：不能用 overflow:hidden 裁剪，
   否则绝对定位在 hero 下边缘的搜索框会被切掉下半截 */
.hero{position:relative;padding:16px 14px 46px;
  background:
    radial-gradient(circle 240px at calc(100% + 80px) -120px, rgba(255,255,255,.12) 0 99%, transparent 100%),
    radial-gradient(circle 140px at -60px calc(100% + 80px), rgba(255,255,255,.08) 0 99%, transparent 100%),
    linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius:0 0 22px 22px}
.hero-inner{position:relative;display:flex;align-items:center;gap:11px}
.hero-logo{width:46px;height:46px;border-radius:14px;flex:0 0 46px;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:21px;font-weight:700;overflow:hidden}
.hero-logo img{width:100%;height:100%;object-fit:cover}
.hero-name{color:#fff;font-size:18px;font-weight:700;letter-spacing:.5px}
.hero-slogan{color:rgba(255,255,255,.82);font-size:12px;margin-top:3px}
.hero-badge{background:rgba(255,255,255,.22);color:#fff;font-size:10.5px;padding:4px 9px;border-radius:11px;
  font-weight:600;white-space:nowrap}
.search{position:absolute;left:14px;right:14px;bottom:-22px;height:46px;background:#fff;border-radius:23px;
  display:flex;align-items:center;padding:0 6px 0 14px;box-shadow:0 8px 20px rgba(23,43,99,.16)}
.search-ico{font-size:14px;opacity:.45;margin-right:7px}
.search-input{flex:1;border:0;outline:none;font-size:13.5px;background:transparent}
.search-btn{height:34px;padding:0 16px;border-radius:17px;border:0;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.cats{display:flex;gap:8px;overflow-x:auto;margin:38px 0 10px;padding-bottom:2px;scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cat{display:inline-flex;align-items:center;gap:4px;padding:8px 15px;border-radius:17px;white-space:nowrap;
  background:#fff;color:var(--sub);font-size:13px;box-shadow:0 2px 8px rgba(23,43,99,.05);cursor:pointer;
  border:0;transition:.15s;flex:0 0 auto}
.cat .ico{font-size:15px;line-height:1}
.cat img{width:16px;height:16px;border-radius:4px;object-fit:cover}
.cat.on{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-weight:600;
  box-shadow:0 4px 12px rgba(47,107,255,.32)}
.sorts{display:flex;align-items:center;gap:7px;margin-bottom:11px}
.sort{padding:6px 12px;border-radius:15px;font-size:12.5px;color:var(--sub);background:#fff;cursor:pointer;
  border:0;transition:.15s}
.sort.on{background:var(--primary-soft);color:var(--primary);font-weight:600}

.ad-banner{border-radius:var(--radius);overflow:hidden;margin-bottom:12px;position:relative;
  background:linear-gradient(135deg,#eef3ff,#dfe9ff);padding:13px;cursor:pointer}
.ad-banner img{width:100%;border-radius:9px;margin-bottom:9px}
.ad-banner .ad-title{font-size:14px;font-weight:700;color:var(--primary-dark)}
.ad-banner .ad-desc{font-size:12px;color:var(--sub);margin-top:3px}

/* 商品卡 */
.gc{display:flex;gap:11px;background:#fff;border-radius:var(--radius);padding:11px;margin-bottom:11px;
  box-shadow:0 4px 15px rgba(23,43,99,.06);cursor:pointer;transition:.15s}
.gc:active{transform:scale(.995);background:#fcfdff}
.gc-img{width:96px;height:96px;border-radius:10px;flex:0 0 96px;overflow:hidden;
  background:linear-gradient(135deg,#e8efff,#dbe7ff);display:flex;align-items:center;justify-content:center;
  font-size:30px;font-weight:700;color:#7ba2ff}
.gc-img img{width:100%;height:100%;object-fit:cover}
.gc-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between}
.gc-name{font-size:14.5px;font-weight:600;line-height:1.45}
.gc-sub{font-size:11.5px;color:var(--muted);margin-top:4px}
.gc-tags{display:flex;gap:5px;margin:7px 0;flex-wrap:wrap}
.gc-foot{display:flex;align-items:flex-end;justify-content:space-between}
.gc-buy{height:30px;padding:0 14px;border-radius:15px;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-size:12.5px;font-weight:600;
  box-shadow:0 4px 10px rgba(47,107,255,.28)}

.tips-card{background:#fff;border-radius:var(--radius);padding:14px;margin-top:4px;
  box-shadow:0 4px 15px rgba(23,43,99,.06)}
.tips-title{font-size:14px;font-weight:700;margin-bottom:11px}
.tips-grid{display:flex;flex-wrap:wrap}
.tips-item{width:50%;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--sub);padding:7px 0}
.ti-ico{font-size:15px}

/* ---------- 商品详情 ---------- */
.gd-head{position:relative;padding:16px 14px 20px;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));border-radius:0 0 18px 18px;overflow:hidden}
.gd-cover{width:100%;height:170px;border-radius:12px;overflow:hidden;
  background:linear-gradient(135deg,#e8efff,#dbe7ff);display:flex;align-items:center;justify-content:center;
  font-size:48px;font-weight:700;color:#7ba2ff}
.gd-cover img{width:100%;height:100%;object-fit:cover}
.gd-price-row{display:flex;align-items:baseline;gap:8px;margin-top:14px}
.gd-price{color:#fff}
.gd-price .int{font-size:27px}
.gd-price .sym{color:#fff;font-size:14px}
.gd-origin{color:rgba(255,255,255,.65);text-decoration:line-through;font-size:12px}
.gd-name{color:#fff;font-size:17px;font-weight:700;margin-top:7px;line-height:1.4}
.gd-sub{color:rgba(255,255,255,.82);font-size:12px;margin-top:5px}
.gd-stats{display:flex;padding:13px 0}
.gd-stat{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
.gd-stat .k{font-size:11.5px;color:var(--muted)}
.gd-stat .v{font-size:14px;font-weight:600}
.ws-list{display:flex;flex-wrap:wrap;gap:8px}
.ws-item{flex:1 1 calc(50% - 4px);background:#f8fafd;border-radius:9px;padding:9px 11px;
  display:flex;flex-direction:column;gap:3px}
.ws-qty{font-size:11.5px;color:var(--sub)}
.ws-price{font-size:13.5px;font-weight:700;color:var(--price)}
.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.step{width:36px;height:34px;display:flex;align-items:center;justify-content:center;background:#f8fafd;
  font-size:17px;color:var(--text);cursor:pointer;border:0;user-select:none}
.step.off{color:#c6cede;cursor:not-allowed}
.step-input{width:50px;height:34px;text-align:center;font-size:14px;border:0;background:#fff;outline:none}

/* ---------- 下单 ---------- */
.oc-goods{display:flex;gap:11px;align-items:center}
.oc-cover{width:64px;height:64px;border-radius:9px;flex:0 0 64px;overflow:hidden;
  background:linear-gradient(135deg,#e8efff,#dbe7ff);display:flex;align-items:center;justify-content:center;
  font-size:25px;font-weight:700;color:#7ba2ff}
.oc-cover img{width:100%;height:100%;object-fit:cover}
.oc-name{font-size:14px;font-weight:600;line-height:1.45}
.oc-meta{display:flex;align-items:baseline;gap:7px;margin-top:5px}
.pay-ch{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1.5px solid var(--line);
  border-radius:11px;margin-bottom:9px;cursor:pointer;transition:.15s}
.pay-ch.on{border-color:var(--primary);background:var(--primary-soft)}
.pay-ch-radio{color:#c6cede;font-size:15px;line-height:1.25}
.pay-ch.on .pay-ch-radio{color:var(--primary)}
.pay-types{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.pay-type{padding:5px 12px;border:1px solid var(--line);border-radius:14px;font-size:12px;background:#fff;
  color:var(--sub);cursor:pointer}
.pay-type.on{border-color:var(--primary);color:var(--primary);background:#fff;font-weight:600}
.oc-line{font-size:13px;padding:6px 0;display:flex;justify-content:space-between}
.oc-agree{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;color:var(--sub);line-height:1.7}
.oc-check{width:18px;height:18px;border:1.5px solid #c6cede;border-radius:6px;flex:0 0 18px;color:#fff;
  font-size:11px;display:flex;align-items:center;justify-content:center;margin-top:1px;cursor:pointer}
.oc-check.on{background:var(--primary);border-color:var(--primary)}

/* ---------- 支付 ---------- */
.pay-hero{text-align:center;padding:26px 16px 22px;background:#fff;border-bottom:1px solid var(--line)}
.pay-hero .amt{font-size:38px;font-weight:800;color:var(--primary);letter-spacing:-1px;line-height:1.1}
.pay-hero .amt small{font-size:17px;font-weight:600;margin-right:2px}
.pay-hero .ttl{font-size:14px;color:var(--sub);margin-top:10px}
.qrbox{text-align:center;padding:18px 0 4px}
.qrbox img{width:212px;height:212px;margin:0 auto;border-radius:10px;border:1px solid var(--line);
  padding:7px;background:#fff}
.qr-tip{font-size:12px;color:var(--sub);text-align:center;line-height:1.75;margin-top:10px}
/* 下单后直接进入支付：创建中的加载态 */
.pay-loading{display:flex;align-items:center;justify-content:center;gap:9px;
  padding:44px 0;color:var(--sub);font-size:13.5px}
.spin{width:17px;height:17px;border-radius:50%;display:inline-block;
  border:2px solid var(--primary-soft);border-top-color:var(--primary);animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- 订单详情 / 取卡 ---------- */
.od-hero{padding:24px 16px 20px;text-align:center;background:linear-gradient(135deg,#e9f9f0,#d9f5e6)}
.od-hero.s0{background:linear-gradient(135deg,#fff5e6,#ffedd2)}
.od-hero.s4{background:linear-gradient(135deg,#f2f4f8,#e9ecf3)}
.od-hero.s5{background:linear-gradient(135deg,#fef1f0,#fde3e3)}
.od-hero.s1{background:linear-gradient(135deg,#eef3ff,#dfe9ff)}
.od-hero-ico{font-size:36px;line-height:1}
.od-hero-title{font-size:17px;font-weight:700;margin-top:9px}
.od-hero-desc{font-size:12.5px;color:var(--sub);margin-top:6px}
.od-sec-title{font-size:14.5px;font-weight:700;margin:4px 2px 10px;display:flex;align-items:center;gap:6px}
.cv{background:#fff;border-radius:var(--radius);padding:13px;margin-bottom:12px;
  box-shadow:0 4px 15px rgba(23,43,99,.06)}
.cv-ad{border:1.5px solid #ffe0b2;background:linear-gradient(135deg,#fffaf0,#fff5e2);border-radius:11px;
  padding:12px;margin-bottom:12px}
.cv-ad img{width:100%;border-radius:8px;margin-bottom:9px}
.cv-ad-title{font-size:14px;font-weight:700;color:#b26a00}
.cv-ad-desc{font-size:12px;color:#8a6a2f;margin-top:5px;line-height:1.65}
.cv-ad-rich{font-size:12px;color:#8a6a2f;margin-top:7px;line-height:1.7}
.cv-ad-btn{margin-top:11px;height:36px;border-radius:18px;border:0;width:100%;cursor:pointer;
  background:linear-gradient(135deg,#ff9f43,#f79009);color:#fff;font-size:13px;font-weight:600;
  box-shadow:0 4px 12px rgba(247,144,9,.32)}
.cv-head{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.cv-idx{width:21px;height:21px;border-radius:7px;background:var(--primary-soft);color:var(--primary);
  font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 21px}
.cv-title{font-size:13.5px;font-weight:600}
.cv-box{background:#f7f9fd;border:1px dashed #cfdcf5;border-radius:10px;padding:12px}
.cv-content{font-size:13.5px;letter-spacing:.6px;word-break:break-all;color:#0f172a;line-height:1.7}
.cv-extra{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f7f9fd;
  border-radius:10px;padding:9px 12px;margin-top:8px;font-size:12px;color:var(--sub)}
.cv-extra-copy{color:var(--primary);font-weight:600;cursor:pointer;white-space:nowrap}
.cv-copy{margin-top:10px;height:40px;border:0;width:100%;border-radius:20px;cursor:pointer;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-size:13.5px;font-weight:600;
  box-shadow:0 5px 13px rgba(47,107,255,.26)}
.cv-qr{text-align:center;padding:6px 0}
.cv-qr img{width:160px;height:160px;margin:0 auto;border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff}
.cv-qr-tip{display:block;font-size:11.5px;color:var(--muted);margin-top:9px;text-align:center}
.od-warn{background:#fff8e8;color:#a86a00;font-size:11.5px;line-height:1.75;border-radius:9px;padding:11px 12px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px;border-bottom:1px dashed #f0f3f9}
.kv:last-child{border-bottom:none}
.kv .k{color:var(--sub);flex:0 0 auto}
.kv .v{text-align:right;word-break:break-all}
.price-text{color:var(--price);font-weight:700}

/* ---------- 订单列表 ---------- */
.ol-item{background:#fff;border-radius:var(--radius);padding:13px;margin-bottom:11px;
  box-shadow:0 4px 15px rgba(23,43,99,.06);cursor:pointer}
.ol-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.ol-no{font-size:11.5px;color:var(--muted);font-family:Menlo,Consolas,monospace}
.ol-goods{display:flex;gap:10px;align-items:center}
.ol-cover{width:48px;height:48px;border-radius:8px;flex:0 0 48px;overflow:hidden;
  background:linear-gradient(135deg,#e8efff,#dbe7ff);display:flex;align-items:center;justify-content:center;
  font-size:19px;font-weight:700;color:#7ba2ff}
.ol-cover img{width:100%;height:100%;object-fit:cover}
.ol-foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;
  padding-top:10px;border-top:1px dashed #f0f3f9}

/* ---------- 我的 ---------- */
.mine-head{padding:26px 16px 22px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius:0 0 20px 20px;color:#fff}
.mine-avatar{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;
  align-items:center;justify-content:center;font-size:26px}
.mine-name{font-size:17px;font-weight:700;margin-top:11px}
.mine-contact{font-size:12.5px;color:rgba(255,255,255,.82);margin-top:5px;word-break:break-all}
.mine-row{display:flex;align-items:center;gap:11px;padding:14px 4px;border-bottom:1px solid var(--line);
  font-size:14px;cursor:pointer}
.mine-row:last-child{border-bottom:none}
.mine-row .ic{font-size:17px;width:22px;text-align:center}
.mine-row .ar{margin-left:auto;color:var(--muted);font-size:15px}

/* ---------- 空态 / 加载 ---------- */
.empty{text-align:center;padding:56px 20px;color:var(--muted)}
.empty .i{font-size:44px;display:block;margin-bottom:12px;opacity:.85}
.empty .tt{font-size:14.5px;color:var(--sub);font-weight:600;margin-bottom:6px}
.empty .ds{font-size:12.5px;line-height:1.7}
.empty .btn{max-width:190px;margin:18px auto 0}
.skeleton{background:linear-gradient(90deg,#f1f4f9 25%,#e7ecf4 37%,#f1f4f9 63%);
  background-size:400% 100%;animation:sk 1.3s ease infinite;border-radius:8px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}
.sk-goods{display:flex;gap:11px;background:#fff;border-radius:var(--radius);padding:11px;margin-bottom:11px}
.sk-goods .a{width:96px;height:96px;flex:0 0 96px}
.sk-goods .b{flex:1;display:flex;flex-direction:column;gap:9px;padding-top:4px}
.sk-goods .b i{height:14px;display:block}

/* ---------- Toast ---------- */
#toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:200;pointer-events:none;
  display:flex;flex-direction:column;gap:8px;align-items:center;width:100%;max-width:420px}
#toast .t{background:rgba(24,32,48,.92);color:#fff;font-size:13.5px;padding:11px 18px;border-radius:12px;
  max-width:88vw;line-height:1.6;box-shadow:0 8px 24px rgba(0,0,0,.24);animation:tin .22s ease}
#toast .t.ok{background:rgba(7,150,90,.94)}
#toast .t.err{background:rgba(214,45,45,.94)}
@keyframes tin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- 弹层 ---------- */
.mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:150;display:flex;align-items:flex-end;
  justify-content:center;animation:tin .2s ease}
.mask.center{align-items:center;padding:20px}
.sheet{background:#fff;width:100%;max-width:480px;border-radius:18px 18px 0 0;padding:18px 18px 22px;
  max-height:82vh;overflow-y:auto;animation:sup .24s cubic-bezier(.2,.8,.3,1)}
@keyframes sup{from{transform:translateY(40px)}to{transform:none}}
.mask.center .sheet{border-radius:16px;max-height:80vh}
.sheet-title{font-size:16px;font-weight:700;margin-bottom:14px;text-align:center}

/* ---------- 页脚 ---------- */
.foot{text-align:center;font-size:11.5px;color:var(--muted);padding:22px 16px 8px;line-height:1.9}
.foot a{color:var(--sub)}

/* 桌面模式：左右分栏提示条 */
@media (min-width:900px){
  body{background:radial-gradient(1200px 700px at 15% -10%,#e8efff 0%,#e9edf5 45%,#e2e7f0 100%)}
}

/* =====================================================================
 * v1.1 UI 升级：专业度与信赖度增强
 * ===================================================================== */

/* ---------- 底部导航：线性 SVG 图标 ---------- */
.tabbar .tb .ic{display:flex;align-items:center;justify-content:center;width:24px;height:24px}
.tabbar .tb .ic svg{width:22px;height:22px;display:block;filter:none}
.tabbar .tb.on .ic svg{transform:translateY(-1px) scale(1.06)}
.tabbar .tb.on{position:relative}
.tabbar .tb.on::after{content:'';position:absolute;top:-1px;left:50%;transform:translateX(-50%);
  width:26px;height:2.5px;border-radius:2px;background:var(--primary)}

/* ---------- 首页 hero：渐变字标 logo + 信任背书条 ---------- */
.hero-logo{background:rgba(255,255,255,.24);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 4px 12px rgba(0,0,0,.14);
  backdrop-filter:blur(4px)}
.hero-logo span{background:linear-gradient(135deg,#fff,#dbe6ff);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;text-shadow:none;font-size:23px}
.hero-logo{border-radius:15px}
.trust-row{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:13px;padding:7px 12px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:18px;
  backdrop-filter:blur(4px)}
.tr-item{color:rgba(255,255,255,.94);font-size:11.5px;font-weight:600;display:inline-flex;align-items:center;gap:4px;
  white-space:nowrap;letter-spacing:.3px}
.tr-ic{font-size:12px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.12))}
.tr-dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.45);flex:0 0 3px}

/* ---------- 商品详情页：徽章行 / 立省标签 / 购买按钮 ---------- */
.gd-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.gd-badge{font-size:11px;color:var(--sub);background:#f3f6fb;border:1px solid var(--line);
  padding:4px 10px;border-radius:12px;font-weight:500;white-space:nowrap}
.gd-badge.b-hot{color:#d9480f;background:#fff3eb;border-color:#ffd9c2;font-weight:600}
.gd-badge.b-excl{color:#7048e8;background:#f4f0ff;border-color:#ded4ff;font-weight:600}
/* 隐藏商品（仅链接可见）详情页提示条 */
.gd-excl-tip{margin:10px 12px 0;padding:10px 12px;font-size:12.3px;line-height:1.5;color:#5f4bb6;
  background:linear-gradient(135deg,#f6f3ff,#f0f4ff);border:1px solid #e2dcff;border-radius:12px}
.gd-save{font-size:11px;color:#0a8f4c;background:#e8f8f0;border:1px solid #c8ecd9;padding:3px 8px;
  border-radius:11px;font-weight:600;white-space:nowrap}
.btn-buy{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 70%);
  box-shadow:0 8px 20px rgba(47,107,255,.34);letter-spacing:2px}
.bottom-bar{box-shadow:0 -6px 24px rgba(15,23,42,.06)}

/* ---------- 取卡页成功态：渐变 hero + 对勾动效 + 步骤条 ---------- */
.od-hero.ok-hero{background:linear-gradient(140deg,#2fbf71 0%,#22a35e 55%,#1d8f53 100%);
  color:#fff;padding:30px 16px 22px;position:relative;overflow:hidden}
.ok-hero::before{content:'';position:absolute;width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.09);top:-110px;right:-70px}
.ok-hero::after{content:'';position:absolute;width:130px;height:130px;border-radius:50%;
  background:rgba(255,255,255,.07);bottom:-60px;left:-40px}
.od-hero.ok-hero .od-hero-title{color:#fff;font-size:17.5px;margin-top:13px;position:relative}
.od-hero.ok-hero .od-hero-desc{color:rgba(255,255,255,.85);margin-top:7px;position:relative}
.ok-ring{width:56px;height:56px;margin:0 auto;position:relative}
.ok-ring::before{content:'';position:absolute;inset:-7px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);animation:okPulse 2s ease-out infinite}
.ok-ring svg{width:56px;height:56px;display:block;position:relative}
.ok-circle{stroke:rgba(255,255,255,.4);stroke-width:2.5;stroke-dasharray:145;stroke-dashoffset:145;
  animation:okDraw .6s ease forwards}
.ok-check{stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:36;stroke-dashoffset:36;animation:okDraw .35s ease .45s forwards}
@keyframes okDraw{to{stroke-dashoffset:0}}
@keyframes okPulse{0%{transform:scale(.82);opacity:1}100%{transform:scale(1.22);opacity:0}}
.od-steps{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:15px;position:relative}
.od-step{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:rgba(255,255,255,.92);font-weight:600}
.od-step i{font-style:normal;width:17px;height:17px;border-radius:50%;display:inline-flex;align-items:center;
  justify-content:center;font-size:10px;background:rgba(255,255,255,.25);color:#fff}
.od-step.done i{background:#fff;color:#22a35e;font-weight:700}
.od-step:not(.done) i{background:rgba(255,255,255,.18)}
.od-step-line{width:22px;height:1.5px;background:rgba(255,255,255,.4);border-radius:1px}

/* ---------- 交付卡密卡：顶部强调条 + 编号渐变 ---------- */
.cv{position:relative;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.cv::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--primary),#7aa5ff)}
.cv-head{padding-top:3px}
.cv-idx{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-weight:700}
.cv-content{font-size:14px;font-weight:600;letter-spacing:.8px}
.cv-extra-copy{color:var(--primary);cursor:pointer;font-weight:600}
.cv-ad-title{color:var(--primary);font-weight:700}
