/* ============================================================
   CKIIU 买手店 H5 — 设计系统（墨黑 × 杂志红）
   ============================================================ */
:root {
  --bg: #0f0f10;
  --bg-2: #151516;
  --card: #1a1a1c;
  --card-2: #212124;
  --line: #2b2b2e;
  --line-2: #38383c;
  --text: #f5f5f4;
  --text-2: #a2a2a7;
  --text-3: #6d6d72;
  --red: #e8392e;
  --red-2: #ff5a4d;
  --red-deep: #b81f16;
  --gold: #d8b26a;
  --blue: #3d63ff;
  --green: #2fbf71;
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #070708;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; color: var(--text); }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { display: none; }

.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  background: var(--bg); position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}
.page { padding-bottom: calc(var(--tabbar-h) + 24px + var(--safe-b)); min-height: 100dvh; }
.page.no-tab { padding-bottom: 24px; }
/* 购物车：底部结算栏 + Tab 栏双层占位 */
.page.cart-page { padding-bottom: calc(var(--tabbar-h) + 78px + var(--safe-b)); }

/* ---------- 通用 ---------- */
.latin { font-family: "Helvetica Neue", Arial, sans-serif; }
.micro {
  display: inline-block; font-size: 9px; letter-spacing: .22em;
  color: var(--text-3); font-weight: 600; text-transform: uppercase;
}
.price { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.price .yen { font-size: .68em; font-weight: 700; margin-right: 1px; }
.muted { color: var(--text-2); }
.tiny { font-size: 11px; color: var(--text-3); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: linear-gradient(135deg, var(--red-2), var(--red-deep)); color: #fff; box-shadow: 0 4px 14px rgba(232,57,46,.28); }
.btn-dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 1;
}
.pill-red { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; }
.pill-outline { border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; }
.pill-dark { background: rgba(0,0,0,.55); color: #fff; }

.svc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); }
.svc svg { color: var(--red); }

.section { padding: 18px 14px 0; }
.sec-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.sec-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin-bottom: 6px; }
.sec-more { font-size: 11px; color: var(--text-3); margin-bottom: 3px; white-space: nowrap; }

.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty-mark { font-size: 26px; font-weight: 800; letter-spacing: .3em; color: var(--line-2); margin-bottom: 10px; }
.empty p { font-size: 13px; margin-bottom: 16px; }

/* ---------- 顶栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(15,15,16,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43,43,46,.6);
}
.navbar .nav-title { font-size: 16px; font-weight: 700; flex: 1; text-align: center; }
.nav-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); flex: none;
}
.nav-back { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }

/* 首页头部 */
.home-head { padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px; background: var(--bg); }
.home-head-row { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff; font-style: italic;
  box-shadow: 0 3px 10px rgba(232,57,46,.35);
}
.logo-name { font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.search-entry {
  flex: 1; height: 34px; border-radius: 17px; background: var(--card);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 7px;
  padding: 0 14px; color: var(--text-3); font-size: 12.5px; min-width: 0;
}
.search-entry svg { color: var(--text-3); flex: none; }
.notice-bar {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2);
  background: linear-gradient(90deg, rgba(232,57,46,.12), transparent);
  border: 1px solid rgba(232,57,46,.18); border-radius: 8px; padding: 6px 10px;
}
.notice-bar .nb-tag { color: var(--red); font-weight: 700; flex: none; }
.notice-bar .nb-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 轮播 ---------- */
.banner { position: relative; margin: 4px 14px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--card); }
.banner-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22,.8,.3,1); }
.banner-slide { position: relative; min-width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 5px; }
.banner-dot { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); transition: all .3s; }
.banner-dot.on { width: 14px; background: #fff; }

/* ---------- 分类圆形入口 ---------- */
.cat-circles { display: flex; justify-content: space-between; padding: 18px 20px 4px; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 56px; }
.cat-circle .cc-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--card-2), var(--card));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--red);
}
.cat-circle:active .cc-icon { border-color: var(--red); }
.cat-circle span { font-size: 11.5px; color: var(--text-2); }

/* ---------- 商品卡 ---------- */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; position: relative; }
.pcard:active { border-color: var(--line-2); }
.pcard-img-wrap { position: relative; aspect-ratio: 1/1; background: var(--bg-2); }
.pcard-img { width: 100%; height: 100%; object-fit: cover; }
.pcard-tag {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep)); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px;
}
.pcard-body { padding: 9px 10px 11px; }
.pcard-name { font-size: 12.5px; font-weight: 600; line-height: 1.35; height: 34px; }
.pcard-meta { font-size: 10px; color: var(--text-3); margin-top: 3px; height: 14px; }
.pcard-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.pcard-price { color: var(--red); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.pcard-price .yen { font-size: 11px; }
.pcard-sales { font-size: 10px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 热销 TOP 卡 */
.hot-card { position: relative; }
.hot-top {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep)); color: #fff;
  font-size: 10px; font-weight: 800; font-style: italic;
  padding: 3px 9px 3px 7px; border-radius: 13px 0 12px 0; letter-spacing: .04em;
}

/* 横滑卡 */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.hscroll > * { flex: none; width: 148px; scroll-snap-align: start; }

/* ---------- 分类页 ---------- */
.cat-layout { display: flex; }
.cat-nav {
  width: 92px; flex: none; background: var(--bg-2);
  padding: 8px 0 20px;
  overflow-y: auto; position: sticky; top: 0; align-self: flex-start;
  height: calc(100dvh - var(--tabbar-h));
}
.cat-nav-item {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 13px 10px 13px 16px; font-size: 13px; color: var(--text-2);
  line-height: 1.3;
}
.cat-nav-item.on { color: var(--text); font-weight: 700; background: var(--bg); }
.cat-nav-item.on::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 2px; background: var(--red);
}
.cat-body { flex: 1; min-width: 0; padding: 12px 12px 20px; }
.cat-season {
  border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 12px;
  background: linear-gradient(120deg, #241a1a, #101014 60%);
  border: 1px solid var(--line); padding: 14px 16px;
}
.cat-season .cs-tag { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: .2em; }
.cat-season h3 { font-size: 16px; font-weight: 800; margin-top: 4px; }
.cat-season p { font-size: 10.5px; color: var(--text-3); margin-top: 3px; letter-spacing: .1em; }
.l2-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.l2-chip {
  height: 26px; padding: 0 12px; border-radius: 13px; font-size: 11.5px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
}
.l2-chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.load-more { text-align: center; padding: 16px 0 4px; font-size: 12px; color: var(--text-3); }

/* ---------- 商品详情 ---------- */
.gallery { position: relative; aspect-ratio: 1/1; background: #000; overflow: hidden; }
.gallery-track { display: flex; height: 100%; }
.gallery-slide { min-width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.gallery-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.gallery-dot.on { background: #fff; width: 14px; border-radius: 3px; }
.gallery-idx { position: absolute; right: 12px; bottom: 12px; font-size: 10px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 9px; }
.gallery-off { position: absolute; top: 12px; left: 12px; z-index: 3; }
.gallery-fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; }
.gallery-fav.on { color: var(--red); }

.detail-price { padding: 14px 14px 12px; background: linear-gradient(180deg, #1c1214, var(--bg) 90%); }
.dp-row { display: flex; align-items: flex-end; gap: 8px; }
.dp-now { color: var(--red); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-now .yen { font-size: 17px; }
.dp-origin { font-size: 13px; color: var(--text-3); text-decoration: line-through; margin-bottom: 2px; }
.dp-sales { margin-left: auto; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }

.detail-block { padding: 14px; border-top: 1px solid var(--line); background: var(--bg); }
.detail-name { font-size: 17px; font-weight: 800; line-height: 1.4; }
.detail-sub { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.spec-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.spec-row + .spec-row { border-top: 1px solid rgba(43,43,46,.5); }
.spec-label { flex: none; width: 44px; font-size: 12.5px; color: var(--text-3); padding-top: 7px; }
.spec-opts { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.spec-opt {
  min-width: 44px; height: 30px; padding: 0 11px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
}
.spec-opt.on { background: rgba(232,57,46,.14); border-color: var(--red); color: var(--red); font-weight: 700; }
.spec-opt[disabled] { opacity: .35; text-decoration: line-through; }
.stepper { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 32px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 16px; }
.stepper button[disabled] { opacity: .3; }
.stepper .st-val { min-width: 34px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.detail-imgs img { width: 100%; }
.review-summary { display: flex; align-items: center; gap: 14px; }
.rs-score { font-size: 26px; font-weight: 800; color: var(--text); }
.rs-stars { color: var(--red); font-size: 12px; letter-spacing: 2px; }
.rs-count { font-size: 11px; color: var(--text-3); }
.rv-item { padding: 12px 0; border-top: 1px solid rgba(43,43,46,.5); }
.rv-head { display: flex; align-items: center; gap: 8px; }
.rv-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.rv-nick { font-size: 12px; color: var(--text-2); }
.rv-spec { font-size: 10px; color: var(--text-3); margin-left: auto; }
.rv-content { font-size: 12.5px; color: var(--text); margin-top: 7px; line-height: 1.6; }

.action-bar {
  position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px calc(9px + var(--safe-b));
  background: rgba(20,20,22,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.action-bar .ab-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-2); width: 44px; flex: none; }
.action-bar .btn { flex: 1; height: 42px; border-radius: 21px; font-size: 14.5px; }

/* ---------- 购物车 ---------- */
.cart-store { display: flex; align-items: center; gap: 8px; padding: 13px 14px 10px; }
.cart-store .cs-name { font-size: 14px; font-weight: 700; flex: 1; }
.cart-item { display: flex; gap: 10px; padding: 13px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin: 0 14px 10px; position: relative; }
.ci-check { width: 22px; height: 22px; flex: none; align-self: center; color: var(--line-2); }
.ci-check.on { color: var(--red); }
.ci-img { width: 84px; height: 84px; border-radius: 9px; object-fit: cover; background: var(--bg-2); flex: none; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.ci-spec { font-size: 10.5px; color: var(--text-3); margin-top: 4px; background: var(--bg-2); align-self: flex-start; padding: 2px 8px; border-radius: 4px; }
.ci-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.ci-del { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cart-bar {
  position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(20,20,22,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.cart-bar .cb-all { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.cart-bar .cb-total { flex: 1; text-align: right; font-size: 12px; color: var(--text-3); }
.cart-bar .cb-total b { color: var(--text); font-size: 19px; font-weight: 800; margin-left: 2px; font-variant-numeric: tabular-nums; }
.cart-bar .btn { height: 40px; padding: 0 24px; border-radius: 20px; }

/* ---------- 下单确认 ---------- */
.oc-block { background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin: 12px 14px 0; padding: 14px; }
.oc-addr { display: flex; gap: 12px; align-items: center; }
.oc-addr .oa-icon { color: var(--red); flex: none; }
.oc-addr .oa-body { flex: 1; min-width: 0; }
.oc-addr .oa-name { font-size: 14px; font-weight: 700; }
.oc-addr .oa-name span { font-size: 12px; color: var(--text-2); font-weight: 500; margin-left: 8px; }
.oc-addr .oa-detail { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.oc-item { display: flex; gap: 10px; padding: 11px 0; }
.oc-item + .oc-item { border-top: 1px solid rgba(43,43,46,.5); }
.oc-item img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; }
.oc-item .oi-body { flex: 1; min-width: 0; }
.oc-item .oi-name { font-size: 12.5px; font-weight: 600; }
.oc-item .oi-spec { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.oc-item .oi-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; }
.oc-item .oi-price { color: var(--red); font-weight: 700; }
.price-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; }
.price-line .pl-v { color: var(--text); font-variant-numeric: tabular-nums; }
.price-line .pl-v.red { color: var(--red); font-weight: 700; }
.price-line .pl-v.free { color: var(--green); }
.oc-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.oc-input::placeholder { color: var(--text-3); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.switch { width: 42px; height: 24px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--red); }
.switch.on::after { transform: translateX(18px); }

/* ---------- 订单 ---------- */
.tabs { display: flex; background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.tab {
  flex: 1; text-align: center; padding: 12px 0 11px; font-size: 13px; color: var(--text-2);
  position: relative; white-space: nowrap;
}
.tab.on { color: var(--text); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 2.5px; border-radius: 2px; background: var(--red); }
.tab .tab-badge { position: absolute; top: 6px; margin-left: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin: 12px 14px 0; padding: 13px 14px; }
.oc-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.oc-head .oc-status { font-weight: 700; }
.oc-status.st-unpaid { color: var(--red); }
.oc-status.st-paid { color: var(--gold); }
.oc-status.st-shipped { color: var(--blue); }
.oc-status.st-received, .oc-status.st-canceled { color: var(--text-2); }
.oc-status.st-refunding, .oc-status.st-refunded { color: var(--gold); }
.oc-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.oc-actions .btn { height: 30px; padding: 0 14px; font-size: 12px; border-radius: 15px; }
.trace { padding: 4px 0; }
.trace-item { display: flex; gap: 12px; }
.trace-item .ti-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); margin-top: 5px; flex: none; position: relative; }
.trace-item:first-child .ti-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(232,57,46,.15); }
.trace-item .ti-line { position: absolute; top: 14px; bottom: -14px; left: 4px; width: 1px; background: var(--line); }
.trace-item .ti-body { padding-bottom: 16px; }
.trace-item .ti-desc { font-size: 12.5px; color: var(--text); }
.trace-item:first-child .ti-desc { font-weight: 600; }
.trace-item .ti-time { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- 我的 ---------- */
.me-head { padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 20px; background: linear-gradient(180deg, #1d1315, var(--bg) 88%); }
.me-user { display: flex; align-items: center; gap: 13px; }
.me-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--card-2); border: 2px solid rgba(232,57,46,.5); flex: none; }
.me-name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.me-level { font-size: 9.5px; font-weight: 700; color: #1a1a1a; background: linear-gradient(135deg, #f3d9a4, var(--gold)); padding: 2.5px 7px; border-radius: 4px; letter-spacing: .05em; }
.me-ids { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.me-ids b { color: var(--text-2); font-weight: 600; }
.me-stats { display: flex; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 0; }
.me-stat { flex: 1; text-align: center; }
.me-stat + .me-stat { border-left: 1px solid var(--line); }
.me-stat b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.me-stat span { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.me-panel { background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin: 12px 14px 0; padding: 4px 14px; }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 10px; }
.mp-head .mp-title { font-size: 14.5px; font-weight: 800; }
.mp-head .mp-more { font-size: 11px; color: var(--text-3); }
.order-mini { display: flex; padding: 6px 0 14px; }
.order-mini .om-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); position: relative; }
.om-item .om-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); }
.om-badge { position: absolute; top: -3px; right: calc(50% - 26px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 14px; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; font-size: 11.5px; color: var(--text-2); }
.tool-item .tg-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); }
.dist-banner {
  margin: 14px 14px 0; border-radius: 13px; padding: 16px;
  background: linear-gradient(120deg, #2a1414, #191921 65%);
  border: 1px solid rgba(232,57,46,.3);
  display: flex; align-items: center; gap: 12px;
}
.dist-banner .db-body { flex: 1; }
.dist-banner h3 { font-size: 15px; font-weight: 800; }
.dist-banner p { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.dist-banner .btn { height: 32px; padding: 0 15px; font-size: 12.5px; border-radius: 16px; flex: none; }
.me-login-tip { margin: 14px; padding: 26px 20px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.me-login-tip p { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }

/* ---------- 分销中心 ---------- */
.dist-hero { margin: 14px; border-radius: 15px; padding: 20px 18px; background: linear-gradient(135deg, #33161a, #141419 70%); border: 1px solid rgba(232,57,46,.28); text-align: center; }
.dist-hero .dh-label { font-size: 10px; letter-spacing: .3em; color: var(--red); font-weight: 700; }
.dist-hero .dh-code { font-size: 34px; font-weight: 800; letter-spacing: .28em; margin: 12px 0 4px; text-indent: .28em; }
.dist-hero .dh-tip { font-size: 11px; color: var(--text-3); }
.dist-hero .dh-actions { display: flex; gap: 10px; margin-top: 16px; }
.dist-hero .dh-actions .btn { flex: 1; height: 38px; border-radius: 19px; font-size: 13px; }
.dist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 14px; }
.dist-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 6px; text-align: center; }
.dist-stat b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dist-stat span { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.dist-stat b.red { color: var(--red); }
.team-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid rgba(43,43,46,.5); }
.team-item .ti-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); flex: none; }
.team-item .ti-body { flex: 1; min-width: 0; }
.team-item .ti-name { font-size: 13px; font-weight: 600; }
.team-item .ti-meta { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.team-item .ti-amount { font-size: 13px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- 表单 / 登录 ---------- */
.form-page { padding: 20px 22px 40px; }
.form-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.form-sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; height: 46px; background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 0 14px; font-size: 14.5px; transition: border-color .15s;
}
.field textarea { height: auto; padding: 11px 14px; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 22px; }
.seg button { flex: 1; height: 36px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.seg button.on { background: var(--red); color: #fff; }
.form-tip { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 18px; line-height: 1.7; }

/* 无 Tab 页：隐藏底部 Tab、操作栏贴底 */
body.no-tab .tabbar { display: none; }
body.no-tab .action-bar, body.no-tab .cart-bar { bottom: 0; }
body.no-tab .page { padding-bottom: calc(64px + var(--safe-b)); }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 200; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; z-index: 210;
  background: var(--bg-2); border-radius: 18px 18px 0 0;
  max-height: 82dvh; display: flex; flex-direction: column;
  animation: sheetUp .28s cubic-bezier(.22,.9,.3,1);
  border: 1px solid var(--line); border-bottom: none;
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 12px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head .sh-title { font-size: 15px; font-weight: 700; }
.sheet-head .sh-close { color: var(--text-3); font-size: 18px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.sheet-body { overflow-y: auto; padding: 16px; }
.pay-item { display: flex; align-items: center; gap: 12px; padding: 15px 4px; }
.pay-item + .pay-item { border-top: 1px solid rgba(43,43,46,.6); }
.pay-item .pi-radio { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; }
.pay-item.on .pi-radio { border-color: var(--red); }
.pay-item.on .pi-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.pay-item .pi-body { flex: 1; }
.pay-item .pi-name { font-size: 14px; font-weight: 600; }
.pay-item .pi-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pay-item.off { opacity: .45; }

/* ---------- Tab Bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 100;
  display: flex; background: rgba(18,18,20,.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--tabbar-h); font-size: 10px; color: var(--text-3); position: relative;
}
.tabbar-item.on { color: var(--red); }
.tabbar-item svg { transition: transform .15s; }
.tabbar-item.on svg { transform: translateY(-1px); }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 9px); min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #141416;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 18%; left: 50%; transform: translateX(-50%);
  background: rgba(20,20,22,.95); color: #fff; font-size: 13px;
  padding: 11px 20px; border-radius: 11px; z-index: 300;
  border: 1px solid var(--line-2); box-shadow: 0 8px 30px rgba(0,0,0,.5);
  max-width: 78%; text-align: center; line-height: 1.5;
  animation: toastIn .22s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
