:root {
  --p: #7B61FF;
  --p-d: #6A4DE8;
  --wash: #F3EDFF;
  --bg: #F6F5F8;
  --card: #ffffff;
  --text: #1C1C1E;
  --soft: #3A3A3C;
  --muted: #8E8E93;
  --muted2: #AEAEB2;
  --line: #F0EEF3;
  --ok: #22C55E;
  --down: #FF4D4F;
  --dot: #FF3B30;
  --radius: 12px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --tab-h: 56px;
  --glow-y: rgba(245, 186, 64, .28);
  --glow-o: rgba(240, 122, 64, .28);
  --glow-g: rgba(52, 196, 122, .26);
  --glow-b: rgba(80, 130, 235, .26);
  --glow-r: rgba(240, 90, 70, .26);
  --glow-t: rgba(40, 180, 168, .26);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

.app {
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}
.sub .app { padding-bottom: env(safe-area-inset-bottom, 12px); }

.wash {
  background: linear-gradient(180deg, #F3EDFF 0%, #F3EDFF 62%, var(--bg) 100%);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 6px;
}
.hd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.hd-row h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 1;
}
.hd-more {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: #3A3A3C;
}
.hd-more svg { width: 22px; height: 22px; }

.logo {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--p);
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(123, 97, 255, .28);
}
.shop-title {
  font-size: 16px; font-weight: 700; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 12px 10px;
  padding: 14px 14px 12px;
}
.card.tight { padding: 12px 14px; }
.sec-h {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.sec-h h3 { font-size: 16px; font-weight: 700; flex: 1; }
.sec-h .more {
  font-size: 12px; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 2px;
}
.sec-h .eye {
  width: 22px; height: 22px; color: var(--muted);
  display: grid; place-items: center;
}

.nums-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.nums-3 > * { text-align: center; padding: 6px 0 4px; color: inherit; display: block; }
.nums-3 b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.nums-3 span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.nums-3.kpi b { font-size: 17px; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: .5px solid #EBEBED;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: #8E8E93;
  font-weight: 500;
}
.tabbar a .ti {
  width: 28px; height: 26px;
  display: grid; place-items: center;
}
.tabbar a .ti svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tabbar a.on { color: var(--p); font-weight: 600; }
.tabbar a.on .ti {
  width: 34px; height: 26px;
  background: var(--p);
  border-radius: 9px;
}
.tabbar a.on .ti svg { stroke: #fff; fill: #fff; }

.mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px 14px;
  row-gap: 14px;
}
.mini a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #3A3A3C;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}
.ic {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: #F4F3F7;
  display: grid; place-items: center;
  color: #5A5A62;
  flex-shrink: 0;
}
.ic svg { width: 24px; height: 24px; }

.gico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  isolation: isolate;
}
.gico svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.gico.sm { width: 36px; height: 36px; border-radius: 10px; }
.gico.sm svg { width: 20px; height: 20px; }
.gico::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,.92) 0%, var(--tint) 42%, var(--tint2) 100%);
  box-shadow:
    inset 0 1.2px 0 rgba(255,255,255,.95),
    inset 0 -1px 1px rgba(255,255,255,.18),
    0 6px 12px var(--glow);
  border: .5px solid rgba(255,255,255,.7);
}
.gico.y { --tint: #FFE9A8; --tint2: #F5C542; --glow: var(--glow-y); }
.gico.o { --tint: #FFD4B8; --tint2: #F08A4A; --glow: var(--glow-o); }
.gico.g { --tint: #C8F5D8; --tint2: #3DCF7A; --glow: var(--glow-g); }
.gico.b { --tint: #D4E4FF; --tint2: #5B8DEF; --glow: var(--glow-b); }
.gico.r { --tint: #FFD2C8; --tint2: #F06B4A; --glow: var(--glow-r); }
.gico.t { --tint: #C8F3EE; --tint2: #2BB3A8; --glow: var(--glow-t); }
.gico.p { --tint: #E4DBFF; --tint2: #7B61FF; --glow: rgba(123,97,255,.28); }
.gico .ch {
  position: relative; z-index: 1;
  color: #fff; font-size: 18px; font-weight: 750;
  text-shadow: 0 1px 2px rgba(80,40,0,.25);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 0 16px;
}
.grid-4 a, .grid-4 .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #5C5C62;
  font-weight: 500;
}

.nav {
  height: calc(44px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  background: var(--wash);
  flex-shrink: 0;
}
.nav .back {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 300;
}
.nav h1 {
  text-align: center;
  font-size: 17px; font-weight: 650;
  margin: 0;
}
.nav .act {
  font-size: 14px; color: var(--p); font-weight: 600;
  padding: 6px 4px; text-align: right; white-space: nowrap;
}

.btn {
  height: 44px; border-radius: 10px;
  background: var(--p); color: #fff;
  font-size: 15px; font-weight: 650;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn.block { width: 100%; }
.btn.line {
  height: 30px; padding: 0 12px;
  background: #fff; color: var(--p);
  border: 1px solid #DDD7F5;
  font-size: 13px; border-radius: 8px;
}
.btn.ghost {
  height: 44px; border-radius: 10px;
  background: #fff; color: var(--text);
  border: 1px solid #DDD7F5; font-size: 15px; font-weight: 650;
}
.btn.warn { background: #FF8A4A; }
.st {
  display: inline-block;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  font-weight: 500; flex-shrink: 0;
}
.st.wait { color: #D48B1A; background: #FFF6E5; }
.st.ok { color: #16A34A; background: #E8F9EE; }
.st.bad { color: #E5484D; background: #FFEEF0; }
.st.ing { color: var(--p); background: var(--wash); }

.toast {
  position: fixed; left: 50%; top: 46%;
  transform: translate(-50%, -50%) scale(.96);
  background: rgba(28,28,30,.86);
  color: #fff; font-size: 13px;
  padding: 10px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  z-index: 80; transition: .18s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.hide { display: none !important; }
.blurred { filter: blur(7px); user-select: none; }

.muted { color: var(--muted); }
.mt { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }

.sheet {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20,16,32,.4);
  display: none; align-items: flex-end;
}
.sheet.on { display: flex; }
.sheet .box {
  width: 100%; background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 78vh; overflow: auto;
}
.sheet .handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: #E4E4E8; margin: 6px auto 12px;
}
.sheet h3 { font-size: 16px; margin-bottom: 10px; }
.sheet .opt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px; border-top: .5px solid var(--line);
  font-size: 15px;
}
.sheet .opt.on { color: var(--p); font-weight: 650; }
.footbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: .5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.footbar .btn {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
.sub.with-foot .app { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.pills {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px 6px;
  -webkit-overflow-scrolling: touch;
}
.pills::-webkit-scrollbar { display: none; }
.pills button {
  flex-shrink: 0; height: 28px; padding: 0 12px;
  border-radius: 14px; font-size: 12px;
  background: #fff; color: #6E6E73; font-weight: 500;
}
.pills button.on { background: var(--p); color: #fff; }

/* 公众号 H5：不展示域名条、价格校验 */
.wx-domain,
.price-check { display: none !important; }
