:root {
  --bg: #F7F7F8;
  --bg-soft: #F7F7F8;
  --card: #ffffff;
  --card2: #f7f8fc;
  --line: #eceef2;
  --text: #1a1d26;
  --muted: #8a93a8;
  --accent: #ff2d6a;
  --accent-soft: #DB4977;
  --accent2: #4c6ef5;
  --accent3: #f06595;
  --warn: #f59f00;
  --danger: #fa5252;
  --glow: rgba(255, 45, 106, 0.14);
  --radius: 14px;
  --shadow: 0 4px 16px rgba(26, 29, 38, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 29, 38, 0.08);
  --tabbar-h: 58px;
  font-family: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.top-nav {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px 8px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6;
}
.top-nav h1 { margin: 0; font-size: 17px; font-weight: 700; }
.badge-demo {
  position: absolute; right: 12px; top: 12px;
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: #fff0f6; color: var(--accent); border: 1px solid #fcc2d7;
}
.logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #ff2d6a, #ff6b9d);
  display: grid; place-items: center; font-weight: 800; color: #fff;
}
.shell-main { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom, 0px)); }
.panel { display: none; padding: 12px 14px 88px; }
.panel.active { display: block; animation: panelIn .25s ease both; }
.sub-panel { padding-top: 4px; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* search */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid #ffb3c9; border-radius: 999px;
  padding: 11px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(255,45,106,.08);
}
.search-ico { color: var(--accent); font-size: 15px; }
.search-bar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--text); font-family: inherit;
}
.search-bar input::placeholder { color: #a8b0c0; }

/* home hero */
.hero-banner {
  border-radius: 18px; padding: 26px 20px 22px;
  background: linear-gradient(125deg, #5c7cfa 0%, #ff6b9d 52%, #ff2d6a 100%);
  color: #fff; margin-bottom: 14px; box-shadow: 0 10px 28px rgba(255,45,106,.22);
  position: relative; overflow: hidden;
}
.hero-banner::after {
  content: ""; position: absolute; right: -20px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.hero-title { font-size: 21px; font-weight: 800; letter-spacing: .4px; position: relative; }
.hero-sub { margin-top: 8px; font-size: 13px; opacity: .95; position: relative; }
.hero-cta {
  margin-top: 14px; display: inline-flex; align-items: center;
  background: #fff; color: var(--accent); border: 0; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.quad-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 16px; background: #fff; border-radius: 14px;
  padding: 14px 6px 12px; border: 1px solid var(--line);
}
.quad {
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text); padding: 4px 0; font-weight: 550;
}
.qi {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; font-size: 22px;
}
.q-red { background: #fff0f0; }
.q-gold { background: #fff9db; }
.q-blue { background: #e7f5ff; }
.q-orange { background: #fff4e6; }

.content-pills, .seg-row, .plat-pills {
  display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.cpill, .seg, .ppill {
  border: 1px solid var(--line); background: #fff; color: #5c6578;
  border-radius: 12px; padding: 11px 12px; font-size: 13px; cursor: pointer;
  flex: 1; text-align: center; min-width: 72px; font-weight: 550;
}
.cpill.active, .seg.active, .ppill.active {
  border-color: var(--accent); color: var(--accent);
  background: #fff5f8; box-shadow: 0 0 0 2px var(--glow); font-weight: 700;
}
.plat-pills .ppill { flex: 0 1 auto; min-width: 64px; padding: 8px 14px; font-size: 12px; }
.seg-row.pill-toggle {
  justify-content: center; background: #fff; border-radius: 999px;
  padding: 4px; border: 1px solid var(--line);
}
.seg-row.pill-toggle .seg {
  border: 0; background: transparent; border-radius: 999px; flex: 0 1 auto;
  padding: 8px 20px; font-weight: 600;
}
.seg-row.pill-toggle .seg.active {
  background: transparent; color: var(--text); box-shadow: none;
  border-bottom: 2px solid var(--accent); border-radius: 0;
}

.sec-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 2px 8px;
}
.sec-title-inline { margin: 0; font-size: 15px; font-weight: 700; }
.link-more {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; cursor: pointer;
}
.link-more.pink { color: var(--accent); font-weight: 600; }

.hot-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.hot-card {
  flex: 0 0 128px; background: #fff; border-radius: 14px;
  border: 1px solid var(--line); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
}
.hot-cover {
  height: 168px; display: grid; place-items: center;
  font-size: 42px; position: relative; color: #fff; font-weight: 700;
}
.hot-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%);
}
.hot-cover .emoji { font-size: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); position: relative; z-index: 1; }
.hot-cover .ctitle {
  position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 1;
  font-size: 12px; line-height: 1.35; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}
.hot-meta { padding: 10px 10px 12px; }
.hot-meta .t { font-size: 13px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; color: var(--text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hist-earn {
  font-size: 12px; color: var(--accent); background: #fff0f6;
  display: inline-block; padding: 3px 8px; border-radius: 8px; font-weight: 700;
  border: 1px solid #ffd0e0;
}

.follow-oa {
  display: flex; align-items: center; gap: 10px;
  background: rgba(32,32,36,.92); color: #fff;
  border-radius: 14px; padding: 12px 14px; margin: 16px 0 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.oa-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#5c7cfa,#ff2d6a);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.oa-txt { flex: 1; font-size: 12px; line-height: 1.35; }

/* monetize layout */
.mon-layout { display: flex; gap: 0; min-height: 480px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cat-side {
  width: 86px; flex-shrink: 0; background: #f3f4f6;
  display: flex; flex-direction: column;
}
.cat {
  border: 0; background: transparent; padding: 15px 6px;
  font-size: 12px; color: var(--muted); cursor: pointer; text-align: center;
  position: relative; line-height: 1.35;
}
.cat.active { background: #fff; color: var(--accent); font-weight: 700; }
.cat.active::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 0 2px 2px 0; background: var(--accent);
}
.mon-list { flex: 1; padding: 6px 8px 80px; overflow: auto; max-height: none; }
.mon-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 8px; border-radius: 10px; cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}
.mon-item:last-child { border-bottom: 0; }
.mon-item:active { background: #fafafa; }
.mon-cover {
  width: 68px; height: 92px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 28px; color: #fff;
  position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mon-body { flex: 1; min-width: 0; padding-top: 2px; }
.mon-body h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.mon-body .hist { margin: 0 0 6px; }
.mon-body .mon-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mon-body .btn-promo-sm {
  border: 0; background: var(--accent); color: #fff;
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  flex-shrink: 0;
}

/* promo plan */
.promo-plan-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.promo-row {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow);
}
.promo-row .meta { flex: 1; min-width: 0; }
.promo-row h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.promo-row .tag-pink {
  display: inline-block; font-size: 11px; color: var(--accent);
  background: #fff0f6; padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
  border: 1px solid #ffd0e0; font-weight: 600;
}
.promo-row .promo-n { font-size: 12px; color: var(--muted); }
.btn-promo {
  border: 0; background: var(--accent); color: #fff;
  border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,45,106,.28);
}

/* earn */
.sub-tabs {
  display: flex; gap: 16px; margin-bottom: 12px; padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.stab {
  border: 0; background: transparent; padding: 8px 2px 10px;
  font-size: 13px; color: var(--muted); cursor: pointer; position: relative;
}
.stab.active { color: var(--text); font-weight: 700; }
.stab.active::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--accent);
}
.earn-pink-card {
  background: linear-gradient(135deg, #ff2d6a, #ff6b9d);
  border-radius: 18px; padding: 18px 10px 16px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  box-shadow: 0 10px 28px rgba(255,45,106,.3);
}
.earn-col { padding: 0 12px; }
.earn-col + .earn-col { border-left: 1px solid rgba(255,255,255,.32); }
.earn-col .eh { font-size: 14px; font-weight: 800; margin-bottom: 12px; letter-spacing: .3px; }
.earn-col .er { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin: 9px 0; opacity: .96; }
.earn-col .er span { opacity: .9; }
.earn-col .er strong { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.filters.secondary { margin-top: 14px; }
.filters.secondary .chip { font-size: 11px; padding: 5px 10px; opacity: .9; }
.ledger { padding-bottom: 8px; }
.ledger-item { padding: 14px; gap: 6px; }

/* mine */
.mine-head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 4px 14px;
  background: linear-gradient(180deg, #ffe3ec 0%, transparent 100%);
  margin: -10px -12px 10px; padding: 16px 16px 18px;
}
.mine-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 2px solid #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 24px;
}
.mine-meta { flex: 1; min-width: 0; }
.mine-nick { font-size: 16px; font-weight: 700; }
.mine-earn-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.mine-earn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;
}
.mine-earn-grid .big .n { font-size: 22px; font-weight: 800; color: var(--accent); }
.mine-earn-grid .big .l, .mine-earn-grid .sm .l { font-size: 11px; color: var(--muted); }
.mine-earn-grid .sm .n { font-size: 16px; font-weight: 700; }
.mine-earn-grid .row3 {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.mine-record-row {
  width: 100%; border: 0; background: var(--card2); border-radius: 10px;
  padding: 12px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; margin-top: 8px; font-size: 13px;
}
.mine-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 10px;
}
.mg {
  border: 0; background: transparent; padding: 12px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text); cursor: pointer;
}
.mgi {
  width: 40px; height: 40px; border-radius: 12px; background: #fff0f6;
  display: grid; place-items: center; font-size: 18px;
}
.pink-text { color: var(--accent); font-size: 20px; letter-spacing: 1px; }
.back-link {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; padding: 4px 0 10px; cursor: pointer;
}
.field-lab { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* tabbar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex; background: #fff; border-top: 1px solid var(--line);
  z-index: 10;
}
.tb {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; cursor: pointer; padding: 6px 0;
}
.tb .tbi { font-size: 18px; line-height: 1; }
.tb.active { color: var(--accent); font-weight: 700; }

/* shared cards / chips / buttons */
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.chip.active {
  border-color: var(--accent); color: var(--accent);
  background: #fff5f8; box-shadow: 0 0 0 3px var(--glow);
}
.cards { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.cover {
  width: 60px; height: 80px; border-radius: 12px;
  display: grid; place-items: center; font-size: 28px; flex-shrink: 0;
  position: relative; overflow: hidden; color: #fff;
}
.cover.c-d01, .hot-cover.c-d01, .mon-cover.c-d01 { background: linear-gradient(160deg,#ff922b,#c92a2a); }
.cover.c-d02, .hot-cover.c-d02, .mon-cover.c-d02 { background: linear-gradient(160deg,#9775fa,#5f3dc4); }
.cover.c-d03, .hot-cover.c-d03, .mon-cover.c-d03 { background: linear-gradient(160deg,#ff6b6b,#c92a2a); }
.cover.c-d04, .hot-cover.c-d04, .mon-cover.c-d04 { background: linear-gradient(160deg,#f783ac,#e64980); }
.cover.c-d05, .hot-cover.c-d05, .mon-cover.c-d05 { background: linear-gradient(160deg,#868e96,#343a40); }
.cover.c-d06, .hot-cover.c-d06, .mon-cover.c-d06 { background: linear-gradient(160deg,#fcc419,#f08c00); }
.cover.c-d07, .hot-cover.c-d07, .mon-cover.c-d07 { background: linear-gradient(160deg,#faa2c1,#d6336c); }
.cover.c-d08, .hot-cover.c-d08, .mon-cover.c-d08 { background: linear-gradient(160deg,#adb5bd,#212529); }
.cover.generic, .hot-cover.generic, .mon-cover.generic { background: linear-gradient(160deg,#ff8787,#ff2d6a); }
.meta h3 { margin: 0 0 4px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag {
  font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.tag.cps { color: var(--accent); border-color: rgba(255,45,106,.35); background: #fff0f6; }
.tag.ok { color: #0ca678; background: #e6fcf5; }
.tag.plat { color: var(--accent2); background: #edf2ff; border-color: #dbe4ff; }
.hintline { font-size: 12px; color: var(--muted); margin: 0; }
.label { font-size: 12px; color: var(--muted); }
.sec-title { font-size: 14px; color: var(--muted); margin: 16px 4px 8px; font-weight: 600; }
.summary { cursor: default; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--card2); border-radius: 10px; padding: 10px; border: 1px solid var(--line); }
.stat .n { font-size: 18px; font-weight: 700; }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ledger { display: flex; flex-direction: column; gap: 8px; }
.ledger-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px;
  box-shadow: var(--shadow);
}
.ledger-item .t { font-size: 13px; }
.ledger-item .s { font-size: 11px; color: var(--muted); }
.ledger-item .m { font-size: 16px; font-weight: 700; color: var(--accent); text-align: right; }
.ledger-item .st { font-size: 11px; text-align: right; color: var(--warn); }
.ledger-item .st.done { color: var(--muted); }
.prose h2 { font-size: 15px; margin: 14px 0 8px; }
.prose p, .prose li { font-size: 13px; color: #4a5160; line-height: 1.6; }
.prose ul, .prose ol { padding-left: 18px; }
.prose code {
  background: var(--bg-soft); padding: 1px 5px; border-radius: 4px;
  font-size: 12px; color: var(--accent2); border: 1px solid var(--line);
}
.drawer.hidden { display: none; }
.drawer { position: fixed; inset: 0; z-index: 20; }
.drawer-mask { position: absolute; inset: 0; background: rgba(26,29,38,.35); }
.drawer-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh;
  background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px 28px;
  overflow: auto; border-top: 1px solid var(--line); max-width: 480px; margin: 0 auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,.08); animation: sheetUp .28s ease both;
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.close {
  position: absolute; right: 12px; top: 10px; border: 0; background: transparent;
  color: var(--muted); font-size: 24px; cursor: pointer;
}
.detail-cover {
  width: 96px; height: 128px; margin: 8px auto 12px;
  border-radius: 16px; display: grid; place-items: center; font-size: 48px;
  box-shadow: var(--shadow-lg); color: #fff;
}
.detail h2 { margin: 0 0 6px; font-size: 18px; text-align: center; }
.detail .row-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.block {
  background: var(--card2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.block .bl, .bl { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.block .bv { font-size: 13px; word-break: break-all; line-height: 1.45; white-space: pre-wrap; }
.btn-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 10px; padding: 10px 14px; font-size: 13px; cursor: pointer;
  background: linear-gradient(135deg, #ff2d6a, #ff6b9d);
  color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(255,45,106,.28);
}
.btn.pink { background: var(--accent); box-shadow: 0 6px 16px rgba(255,45,106,.3); }
.btn.sm { padding: 8px 12px; font-size: 12px; border-radius: 999px; white-space: nowrap; }
.btn.ghost {
  background: #fff; color: var(--text); border: 1px solid var(--line);
  font-weight: 500; box-shadow: none;
}
.btn.watch {
  width: 100%; padding: 14px; font-size: 15px;
  background: linear-gradient(135deg, #ff922b, #ff2d6a);
}
.toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%);
  background: #fff0f6; color: #a61e4d; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; z-index: 40; box-shadow: var(--shadow-lg);
  border: 1px solid #fcc2d7;
}
.toast.hidden { display: none; }
.earn-preview {
  background: linear-gradient(160deg, #fff0f6, #edf2ff);
  border: 1px solid rgba(255,45,106,.3);
  border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.ep-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ep-cell {
  background: #fff; border-radius: 10px; padding: 10px;
  border: 1px solid var(--line);
}
.ep-cell.you { border-color: rgba(255,45,106,.45); }
.ep-cell.owner { border-color: rgba(76,110,245,.45); }
.ep-l { font-size: 11px; color: var(--muted); }
.ep-n { font-size: 20px; font-weight: 800; margin: 4px 0; }
.ep-cell.you .ep-n { color: var(--accent); }
.ep-cell.owner .ep-n { color: var(--accent2); }
.ep-s { font-size: 11px; color: var(--muted); }
.ep-mini {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.ep-mini span:first-child { color: var(--accent); }
.type-pill {
  display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px;
  margin-right: 4px; border: 1px solid var(--line);
}
.type-pill.type-promo { color: var(--accent); border-color: rgba(255,45,106,.4); background: #fff0f6; }
.type-pill.type-owner { color: var(--accent2); border-color: rgba(76,110,245,.4); background: #edf2ff; }
.view-switch .label { font-size: 12px; color: var(--muted); }
.rule-banner {
  border-color: rgba(250,82,82,.35);
  background: linear-gradient(160deg, #fff5f5, #fff);
}
.rule-banner strong { color: var(--danger); font-size: 14px; }
.member-row { display: flex; align-items: center; gap: 12px; }
.member-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-soft); display: grid; place-items: center; font-size: 20px;
  border: 1px solid var(--line); flex-shrink: 0;
}
.member-meta { flex: 1; min-width: 0; }
.member-meta .name { font-size: 14px; font-weight: 650; }
.wx-profile {
  display: flex; align-items: center; gap: 10px; margin: 8px 0;
  padding: 10px; background: var(--card2); border-radius: 10px; border: 1px solid var(--line);
}
.announce-item .at { font-size: 14px; font-weight: 650; margin: 0 0 4px; }
.announce-item .ab { font-size: 13px; color: #4a5160; line-height: 1.5; margin: 0; }
.announce-item .as { font-size: 11px; color: var(--muted); margin-top: 8px; }
.family-input {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 13px;
  margin-top: 6px; font-family: inherit;
}
.family-input:focus { outline: 1px solid var(--accent); }
.gate-landing { padding: 48px 16px 80px; display: flex; justify-content: center; background: #fff; min-height: 100vh; }
.gate-landing.hidden { display: none; }
.gate-card {
  max-width: 360px; width: 100%; text-align: center; padding: 36px 22px;
  box-shadow: var(--shadow-lg);
}
.gate-card .logo.big {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff2d6a, #ff6b9d);
}
.gate-card h2 { margin: 0 0 10px; font-size: 22px; }
.gate-card .hintline.muted { opacity: 0.75; }
.app-shell.hidden { display: none; }
.empty-state {
  text-align: center; padding: 36px 16px; color: var(--muted); font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* promo result sheet (clean first screen) */
.promo-sheet .ps-cover {
  width: 88px; height: 118px; margin: 4px auto 12px; border-radius: 14px;
  display: grid; place-items: center; font-size: 40px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.promo-sheet h2 { text-align: center; margin: 0 0 4px; font-size: 18px; }
.promo-sheet .ps-hist { text-align: center; margin-bottom: 14px; }
.promo-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px;
}
.promo-act {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 16px 10px; text-align: center; cursor: pointer;
}
.promo-act .ico { font-size: 22px; margin-bottom: 6px; }
.promo-act .lab { font-size: 13px; font-weight: 700; color: var(--text); }
.promo-act .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.promo-act.primary {
  grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px rgba(255,45,106,.3);
}
.promo-act.primary .lab, .promo-act.primary .sub { color: #fff; }
.promo-act.primary .sub { opacity: .85; }
.tech-fold { margin-top: 8px; }
.tech-fold summary {
  font-size: 12px; color: var(--muted); cursor: pointer; padding: 8px 0;
}
.chip.soft { background: #fafafa; }

/* gate / wechat pay-auth / home reg banner */
.gate-actions { margin-top: 18px; }
.btn.wechat-pay-auth {
  background: #07c160; color: #fff; border: none; border-radius: 12px;
  font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(7,193,96,.28);
}
.btn.wechat-pay-auth:active { transform: scale(.98); }
.btn.wechat-pay-auth .wx-ico {
  display:inline-block; background:rgba(255,255,255,.22); padding:2px 7px; border-radius:5px; font-size:11px; letter-spacing:.02em;
}
.btn.wechat-pay-auth.lg { padding: 14px 16px; font-size: 16px; }
.btn.wechat-pay-auth.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.alipay-auth {
  background: #1677ff; color: #fff; border: none; border-radius: 12px;
  font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(22,119,255,.28);
}
.btn.alipay-auth:active { transform: scale(.98); }
.btn.alipay-auth .ali-ico {
  display:inline-block; background:rgba(255,255,255,.22); padding:2px 7px; border-radius:5px; font-size:11px; letter-spacing:.02em;
}
.btn.alipay-auth.lg { padding: 14px 16px; font-size: 16px; }
.btn.alipay-auth.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.demo-tag { margin: 8px 0 0; font-size: 11px; color: #8b93a7; text-align: center; line-height: 1.4; }
.demo-tag.hidden { display: none; }
.btn.oauth-hidden { display: none !important; }
.home-reg-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(90deg, #fff5f8, #f0fff6); border: 1px solid #ffe0ea;
}
.home-reg-banner.hidden { display: none; }
.home-reg-banner .hrb-txt { font-size: 13px; color: #4a5160; font-weight: 550; }
.home-reg-banner .hrb-acts { display: flex; gap: 8px; flex-shrink: 0; }


/* —— 联系客服弹窗 —— */
.cs-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.cs-modal.hidden { display: none; }
.cs-mask { position: absolute; inset: 0; background: rgba(15,18,28,.45); }
.cs-sheet {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 18px 18px 28px; box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
.cs-x {
  position: absolute; right: 12px; top: 10px; border: 0; background: transparent;
  font-size: 22px; color: #99a; cursor: pointer; line-height: 1;
}
.cs-title { font-size: 17px; font-weight: 700; color: #1a1d26; margin-bottom: 6px; }
.cs-text { color: #6b7280; font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.cs-qr-wrap { text-align: center; margin: 8px 0 14px; }
.cs-qr-wrap img {
  width: 168px; height: 168px; object-fit: contain;
  border-radius: 12px; border: 1px solid #f0d0dc; background: #fff;
}
.cs-rows { display: flex; flex-direction: column; gap: 10px; }
.cs-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff5f8; border: 1px solid #ffe0ea; border-radius: 12px;
  padding: 10px 12px;
}
.cs-lab { color: #9aa; font-size: 12px; min-width: 44px; }
.cs-row strong { flex: 1; font-size: 14px; color: #1a1d26; word-break: break-all; }

.tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  border: 1px solid #ffe0ea; background: #fff7fa; border-radius: 14px;
  padding: 12px; cursor: pointer; color: inherit;
}
.tool-card .mgi { font-size: 22px; }
.tool-card strong { font-size: 13px; display: block; }
.vip-list { margin: 10px 0 0; padding-left: 18px; color: #4b5563; font-size: 13px; line-height: 1.7; }
.home-search { margin: 0 0 12px; }


/* real cover images */
.hot-cover[style*="background-image"],
.mon-cover[style*="background-image"],
.detail-cover[style*="background-image"],
.ps-cover[style*="background-image"] {
  background-color: #1a1a22;
}
.hot-cover[style*="background-image"] .emoji { display: none; }
.btn.watch {
  background: linear-gradient(135deg, #ff6b9d, #ff2d6a);
  color: #fff;
  border: none;
  font-weight: 700;
}

.demo-tag,.badge-demo{display:none!important;}
