/* 千里香商城 — storefront styles */
:root {
  --red: #ed1b2e;
  --red-2: #ff4a45;
  --red-deep: #a90c1f;
  --red-soft: #fff0f0;
  --orange: #ff5b22;
  --gold: #d9a548;
  --gold-soft: #fff6e4;
  --ink: #231b19;
  --ink-2: #514743;
  --muted: #8e8580;
  --muted-2: #b4aba5;
  --line: #eee8e2;
  --paper: #ffffff;
  --cream: #f7f4ef;
  --cream-2: #f1ece5;
  --green: #149764;
  --blue: #3478f6;
  --shadow: 0 10px 34px rgba(69, 42, 25, .07);
  --shadow-lg: 0 24px 70px rgba(69, 42, 25, .14);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 68px;
  --bottom-h: 66px;
  --ease: cubic-bezier(.22, .8, .25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(237, 27, 46, .055), transparent 60%),
    radial-gradient(900px 500px at 0% 28%, rgba(217, 165, 72, .07), transparent 55%),
    var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #ffd9dd; color: var(--red-deep); }

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.xs { width: 15px; height: 15px; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 30px; height: 30px; }
.icon.fill { fill: currentColor; stroke: none; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main#app { flex: 1; padding: 22px 0 70px; }
.mobile-only { display: none !important; }
.desktop-only { display: initial; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- top header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 250, .9);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(238, 232, 226, .85);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 7px 22px rgba(99, 68, 210, .16); overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-name { display: block; font-size: 21px; font-weight: 900; letter-spacing: -.6px; line-height: 1.05; }
.brand-name em { color: var(--red); font-style: normal; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.main-nav a {
  position: relative; padding: 0 14px; height: 100%; display: flex; align-items: center;
  color: var(--ink-2); font-weight: 600; font-size: 14px; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 12px; width: 0; height: 3px;
  background: var(--red); border-radius: 3px; transform: translateX(-50%); transition: width .25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a.active::after { width: 18px; }
.header-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: #f3efe9; border: 1px solid transparent; border-radius: 999px; padding: 8px 8px 8px 16px;
  width: 270px; transition: .2s;
}
.header-search:focus-within { background: #fff; border-color: #ffd3d7; box-shadow: 0 0 0 4px rgba(237,27,46,.06); }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 13px; }
.header-search button {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; flex: none;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.points-pill {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--gold-soft); color: #93651f; font-size: 12px; font-weight: 700; border: 1px solid #f3e3bf;
}
.points-pill b { font-size: 14px; color: #7a4f0b; }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7b6b, var(--red)); color: white; font-weight: 800;
  border: 2px solid #fff; box-shadow: 0 4px 14px rgba(237,27,46,.25); overflow: hidden;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.header-cart { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.header-cart:hover { background: var(--red-soft); color: var(--red); }
.cart-dot {
  position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.login-link { color: var(--ink); font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.login-link:hover { border-color: var(--red); color: var(--red); }
.mobile-head-actions { margin-left: auto; display: none; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid transparent; transition: .2s;
}
.icon-btn:hover { background: #f4efe9; color: var(--ink); }
.mobile-search {
  display: none; padding: 0 0 12px;
}
.mobile-search.open { display: block; }
.mobile-search .searchbox { margin: 0; }

/* ---------- search bar component ---------- */
.searchbox {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 24px rgba(55,38,25,.05);
}
.searchbox .icon { color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.searchbox .btn { flex: none; }

/* ---------- buttons, forms, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 700;
  background: #f3eee8; color: var(--ink); transition: transform .18s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, #ff4338, var(--red) 55%, #d40d24); color: #fff; box-shadow: 0 10px 24px rgba(237,27,46,.26); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(237,27,46,.32); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(35,27,25,.2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-soft { background: var(--red-soft); color: var(--red); }
.btn-gold { background: linear-gradient(135deg, #f5c768, #dfa53e); color: #5e3b06; box-shadow: 0 10px 24px rgba(217,165,72,.26); }
.btn-green { background: #e5f7ef; color: var(--green); }
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.xs { padding: 6px 11px; font-size: 11px; }
.btn.lg { padding: 14px 28px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.link-btn { color: var(--red); font-weight: 700; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fbf9f6; border-radius: 13px;
  padding: 12px 14px; outline: none; transition: .2s; color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: #ffafb7; box-shadow: 0 0 0 4px rgba(237,27,46,.06); }
.textarea { min-height: 110px; resize: vertical; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }
.checkbox { accent-color: var(--red); width: 17px; height: 17px; }
.radio-card {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 14px;
  border-radius: 14px; cursor: pointer; background: #fff; transition: .2s;
}
.radio-card:has(input:checked) { border-color: var(--red); background: #fff8f8; box-shadow: 0 0 0 3px rgba(237,27,46,.05); }
.radio-card input { accent-color: var(--red); }
.radio-card b { display: block; font-size: 13px; }
.radio-card span { font-size: 11px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 7px; padding: 3px 7px; font-size: 10px; font-weight: 800; line-height: 1.1; }
.badge-red { background: var(--red); color: #fff; }
.badge-soft { background: var(--red-soft); color: var(--red); }
.badge-gold { background: #fff2d3; color: #9c6b16; }
.badge-green { background: #e9f8f1; color: #158157; }
.badge-dark { background: #2d2320; color: #fff; }
.badge-line { border: 1px solid var(--line); color: var(--muted); background: #fff; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #ff4b43; box-shadow: 0 0 0 4px rgba(255,75,67,.16); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,75,67,.04); } }

/* ---------- cards & sections ---------- */
.card { background: var(--paper); border: 1px solid rgba(238,232,226,.92); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--paper); border: 1px solid rgba(238,232,226,.92); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section { margin-top: 34px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 23px; font-weight: 900; letter-spacing: -.6px; display: flex; align-items: center; gap: 9px; }
.section-head h2 .spark { color: var(--red); }
.section-head .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.section-head .more:hover { color: var(--red); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 28px; font-weight: 900; letter-spacing: -.8px; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .icon { width: 12px; height: 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- home hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr); gap: 16px; }
.hero-grid.no-cloud { grid-template-columns: minmax(0, 1fr); }
.hero-carousel { position: relative; border-radius: 24px; overflow: hidden; min-height: 368px; box-shadow: var(--shadow-lg); }
.hero-slide { position: absolute; inset: 0; padding: 36px 38px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; opacity: 0; transform: scale(1.015); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.8) 1px, transparent 0);
  background-size: 22px 22px; mask-image: linear-gradient(120deg, #000, transparent 68%);
}
.hero-slide.red { background: radial-gradient(800px 420px at 85% 12%, #ff6657 0, transparent 60%), linear-gradient(130deg, #e31a2e 0%, #c40e22 45%, #8d0717 100%); color: #fff; }
.hero-slide.gold { background: radial-gradient(700px 420px at 88% 10%, #ffdf8f 0, transparent 62%), linear-gradient(130deg, #bd842b 0%, #946119 48%, #4b3211 100%); color: #fff9e8; }
.hero-slide.teal { background: radial-gradient(700px 420px at 88% 8%, #85e3cb 0, transparent 58%), linear-gradient(130deg, #167f70 0%, #0d5b52 52%, #073c3a 100%); color: #f1fffb; }
.hero-copy { position: relative; z-index: 2; max-width: 430px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; font-weight: 800; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.hero-title { margin: 18px 0 10px; font-size: clamp(36px, 4vw, 52px); font-weight: 950; line-height: 1.08; letter-spacing: -2px; white-space: pre-line; text-shadow: 0 10px 30px rgba(0,0,0,.14); }
.hero-sub { color: rgba(255,255,255,.76); font-size: 13px; max-width: 320px; }
.hero-cta { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.hero-cta .btn { background: #fff; color: var(--red-deep); box-shadow: 0 12px 28px rgba(40,0,0,.18); }
.hero-slide.gold .hero-cta .btn { color: #6d470e; }
.hero-slide.teal .hero-cta .btn { color: #07544c; }
.hero-cta .ghost-link { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.hero-cta .ghost-link:hover { color: #fff; }
.hero-art { position: relative; height: 280px; z-index: 1; }
.hero-dots { position: absolute; left: 38px; bottom: 24px; display: flex; gap: 7px; z-index: 5; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border-radius: 99px; background: rgba(255,255,255,.35); transition: .35s var(--ease); }
.hero-dots button.active { width: 24px; background: #fff; }
.hero-arrow { position: absolute; top: 50%; z-index: 4; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); opacity: 0; transition: .2s; transform: translateY(-50%); }
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* CSS gift art */
.art-stage { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(2px); }
.halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 65%); filter: blur(2px); }
.gift-box { position: relative; width: 128px; height: 116px; border-radius: 10px 10px 14px 14px; background: linear-gradient(135deg, #ffe4a8, #f2b44f 55%, #cf8625); box-shadow: 0 28px 45px rgba(44,5,4,.3), inset 0 2px 1px rgba(255,255,255,.6); transform: rotate(-7deg); }
.gift-box::before { content: ""; position: absolute; left: -12px; top: -22px; width: 152px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #ffd987, #e0a540); box-shadow: inset 0 2px 1px rgba(255,255,255,.5); }
.gift-box::after { content: ""; position: absolute; top: -22px; bottom: 0; left: 51%; width: 25px; background: linear-gradient(90deg, #e12232, #ff6b66, #b80d20); border-radius: 3px; }
.gift-bow { position: absolute; left: 50%; top: -55px; width: 70px; height: 40px; transform: translateX(-50%); z-index: 2; }
.gift-bow::before, .gift-bow::after { content: ""; position: absolute; top: 2px; width: 37px; height: 31px; border: 9px solid #ffd77e; border-radius: 50% 50% 44% 44%; }
.gift-bow::before { left: -4px; transform: rotate(-22deg); }
.gift-bow::after { right: -4px; transform: rotate(22deg); }
.gift-shine { position: absolute; left: 16px; top: 34px; width: 46px; height: 8px; background: rgba(255,255,255,.48); border-radius: 8px; transform: rotate(-12deg); }
.coin { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 25%, #fff5c9, #ffd36d 38%, #d79925 78%); border: 3px solid #f6cf72; color: #8f5910; font-size: 17px; font-weight: 900; box-shadow: 0 12px 20px rgba(67,33,0,.25); }
.coin::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(160,98,13,.35); border-radius: 50%; }
.coin.c1 { left: 4%; top: 12%; transform: rotate(-16deg); animation: float 4.6s ease-in-out infinite; }
.coin.c2 { right: 0; top: 30%; transform: rotate(12deg); animation: float 5.4s ease-in-out infinite .3s; }
.coin.c3 { right: 14%; bottom: 4%; transform: rotate(-5deg); animation: float 4.2s ease-in-out infinite .7s; }
.spark { position: absolute; width: 8px; height: 8px; background: #fff0b8; transform: rotate(45deg); border-radius: 2px; opacity: .7; }
.spark.s1 { left: 5%; bottom: 25%; } .spark.s2 { right: 3%; top: 7%; width: 5px; height: 5px; }
@keyframes float { 50% { translate: 0 -12px; } }

.stack-coins { position: relative; width: 210px; height: 190px; }
.stack { position: absolute; bottom: 0; width: 98px; }
.stack span { display: block; height: 25px; margin-top: -2px; border-radius: 50%; background: linear-gradient(180deg, #ffe6a4, #daa436); border: 2px solid #f6cc65; box-shadow: 0 4px 0 #b67c1e; }
.stack.a { left: 0; } .stack.b { left: 61px; bottom: 28px; } .stack.c { left: 119px; bottom: 2px; }
.coin-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 66px; font-weight: 950; color: rgba(255,255,255,.92); text-shadow: 0 14px 30px rgba(88,46,0,.22); }
.bag-art { position: relative; width: 150px; height: 174px; background: linear-gradient(145deg, #fffdf6, #f3e8d0); border-radius: 8px 8px 20px 20px; box-shadow: 0 30px 50px rgba(0,38,31,.28); transform: rotate(5deg); }
.bag-art::before { content: ""; position: absolute; top: -39px; left: 32px; width: 86px; height: 63px; border: 9px solid #efe2c9; border-bottom: 0; border-radius: 48px 48px 0 0; }
.bag-art::after { content: "千里香"; position: absolute; inset: 48px 18px auto; padding: 9px 0; text-align: center; background: #0d5b52; color: #fff5da; border-radius: 6px; font-weight: 800; font-size: 15px; letter-spacing: 2px; }
.bag-leaf { position: absolute; width: 70px; height: 32px; border-radius: 100% 0 100% 0; background: #93cf9b; right: 3px; top: -14px; transform: rotate(-25deg); }

/* hero side */
.hero-side { border-radius: 24px; padding: 22px; background: linear-gradient(155deg, #2d211f 0%, #1b1514 62%, #120e0d 100%); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 368px; }
.hero-side::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; top: -100px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.018); }
.hero-side-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.hero-side-head .label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.hero-side-head .label .icon { color: #f4c45c; }
.hero-side-head a { font-size: 11px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 3px; }
.hero-side-head a:hover { color: #fff; }
.mini-cloud { position: relative; z-index: 2; margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.mini-cloud-img { width: 100px; height: 100px; border-radius: 18px; background: #f6f3ed; overflow: hidden; flex: none; }
.mini-cloud-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cloud-info { min-width: 0; }
.mini-cloud-info h3 { font-size: 15px; line-height: 1.35; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-cloud-info .price-line { color: #ffd27c; font-size: 12px; margin-top: 7px; }
.mini-cloud-info .price-line b { font-size: 22px; letter-spacing: -.5px; }
.mini-cloud-info .remain { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 2px; }
.mini-progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; margin-top: 14px; position: relative; z-index: 2; }
.mini-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb548, #ff5d38); box-shadow: 0 0 14px rgba(255,181,72,.45); }
.mini-meta { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.45); margin-top: 6px; position: relative; z-index: 2; }
.hero-side .btn { margin-top: auto; position: relative; z-index: 2; background: linear-gradient(135deg, #ffe2a2, #f0b64d); color: #523107; box-shadow: 0 10px 24px rgba(217,165,72,.2); }
.winner-ticker { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); font-size: 10px; color: rgba(255,255,255,.45); display: flex; gap: 8px; align-items: center; position: relative; z-index: 2; }
.winner-ticker .roll { overflow: hidden; height: 17px; flex: 1; }
.winner-ticker .roll-inner { animation: ticker 9s infinite; }
.winner-ticker .roll p { height: 17px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes ticker { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-17px); } 66%, 94% { transform: translateY(-34px); } 100% { transform: translateY(-51px); } }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat-band.three { grid-template-columns: repeat(3, 1fr); }
.stat-band div { background: rgba(255,255,255,.7); padding: 13px 18px; display: flex; align-items: baseline; gap: 8px; }
.stat-band b { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.stat-band span { font-size: 11px; color: var(--muted); }
.cloud-off [data-cloud-entry] { display: none !important; }

/* ---------- category quick grid ---------- */
.quick-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 22px; }
.quick-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; border-radius: 16px; transition: .22s var(--ease); border: 1px solid transparent; }
.quick-cat:hover { background: #fff; border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-emoji { width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; border-radius: 15px; background: var(--cat-bg, #f6eee3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.quick-cat b { font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ---------- product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  position: relative; background: #fff; border: 1px solid rgba(238,232,226,.85); border-radius: 18px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(65,38,20,.12); border-color: #f2ddd7; }
.p-media { position: relative; aspect-ratio: 1 / 1; background: #f6f1ea; overflow: hidden; margin: 8px 8px 0; border-radius: 13px; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product-card:hover .p-media img { transform: scale(1.045); }
.p-badge { position: absolute; left: 9px; top: 9px; z-index: 2; }
.p-fav { position: absolute; right: 8px; top: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); color: #6f625c; box-shadow: 0 4px 10px rgba(50,30,20,.08); transition: .2s; }
.p-fav:hover { color: var(--red); transform: scale(1.06); }
.p-fav.active { color: var(--red); background: #fff0f1; }
.p-body { padding: 10px 12px 13px; display: flex; flex-direction: column; flex: 1; }
.p-title { font-size: 13.5px; font-weight: 700; line-height: 1.42; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 38px; }
.p-sub { font-size: 10.5px; color: var(--muted); margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.p-meta .rating { color: #cf9130; display: flex; align-items: center; gap: 2px; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.price { color: var(--red); font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: -.7px; }
.price .cur { font-size: 12px; font-weight: 800; margin-right: 1px; }
.price .num { font-size: 21px; }
.price .unit { font-size: 10px; font-weight: 600; color: var(--red); margin-left: 2px; }
.price.points { color: var(--orange); }
.price.points .num { font-size: 19px; }
.cart-add { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(237,27,46,.26); flex: none; transition: .18s; }
.cart-add:hover { background: #cf0c22; transform: rotate(-6deg) scale(1.04); }
.cart-add .icon { width: 16px; height: 16px; }
.p-sold { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }

/* home exchange strip */
.exchange-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.exchange-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; gap: 11px; align-items: center; transition: .22s; }
.exchange-tile:hover { border-color: #f0c9b3; box-shadow: var(--shadow); transform: translateY(-2px); }
.exchange-tile img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; flex: none; }
.exchange-tile h4 { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exchange-tile .price { margin-top: 7px; }
.exchange-tile .price .num { font-size: 16px; }

/* home cloud feature */
.cloud-feature { background: radial-gradient(900px 400px at 12% 0%, #48201d 0, transparent 55%), linear-gradient(150deg, #221816, #130f0e); border-radius: 26px; padding: 28px; color: #fff; overflow: hidden; position: relative; }
.cloud-feature::after { content: "积分福利"; position: absolute; right: -10px; bottom: -40px; font-size: 130px; font-weight: 950; color: rgba(255,255,255,.025); letter-spacing: -8px; pointer-events: none; }
.cloud-feature-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; position: relative; z-index: 2; }
.cloud-feature-head .kicker { font-size: 10px; letter-spacing: 3px; color: #f0c060; font-weight: 800; }
.cloud-feature-head h2 { font-size: 26px; letter-spacing: -.7px; margin-top: 5px; }
.cloud-feature-head p { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 4px; }
.cloud-feature-head a { color: #f0c060; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.cloud-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 2; }
.cloud-mini-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 17px; padding: 11px; display: flex; gap: 12px; transition: .22s; }
.cloud-mini-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.cloud-mini-card img { width: 82px; height: 82px; border-radius: 12px; object-fit: cover; flex: none; }
.cloud-mini-card .info { min-width: 0; display: flex; flex-direction: column; }
.cloud-mini-card h4 { font-size: 12px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cloud-mini-card .unit { color: #f1c66f; font-size: 11px; margin-top: 5px; }
.cloud-mini-card .unit b { font-size: 17px; }
.cloud-mini-card .bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: auto; overflow: hidden; }
.cloud-mini-card .bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffca67, #ff5d38); border-radius: 99px; }
.cloud-mini-card .left { font-size: 9px; color: rgba(255,255,255,.38); margin-top: 4px; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 6px 22px rgba(60,35,20,.04); }
.post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ffd3bd, #f49a7f); display: grid; place-items: center; font-weight: 800; color: #7b3324; flex: none; overflow: hidden; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-head b { font-size: 12px; display: block; line-height: 1.3; }
.post-head span { font-size: 10px; color: var(--muted); }
.post-text { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.post-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; border-top: 1px solid #f5f0eb; padding-top: 10px; }
.post-like { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.post-like.liked { color: var(--red); }
.post-like:hover { color: var(--red); }

/* ---------- cloud listing ---------- */
.cloud-page-hero { position: relative; overflow: hidden; border-radius: 26px; background: radial-gradient(760px 380px at 82% 10%, #7c2b22, transparent 60%), linear-gradient(130deg, #1c1412, #321a16 55%, #4b1e1a); color: #fff; padding: 34px 38px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; box-shadow: var(--shadow-lg); }
.cloud-page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1px, transparent 0); background-size: 24px 24px; opacity: .09; }
.cloud-page-hero .copy { position: relative; z-index: 2; }
.cloud-page-hero .kicker { color: #f1c669; letter-spacing: 4px; font-size: 10px; font-weight: 800; }
.cloud-page-hero h1 { font-size: 40px; letter-spacing: -1.5px; line-height: 1.15; margin-top: 11px; }
.cloud-page-hero h1 em { color: #ffd47d; font-style: normal; }
.cloud-page-hero p { color: rgba(255,255,255,.53); font-size: 12.5px; max-width: 430px; margin-top: 12px; }
.cloud-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cloud-hero-tags span { font-size: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); padding: 6px 10px; border-radius: 999px; color: rgba(255,255,255,.72); }
.cloud-hero-stats { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hero-stat-row { display: flex; gap: 12px; }
.hero-stat { flex: 1; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 16px; text-align: center; backdrop-filter: blur(8px); }
.hero-stat b { font-size: 25px; letter-spacing: -.5px; color: #f6d383; display: block; }
.hero-stat span { font-size: 10px; color: rgba(255,255,255,.45); }
.cloud-hero-trophy { background: linear-gradient(135deg, rgba(244,197,102,.18), rgba(255,255,255,.04)); border: 1px solid rgba(244,197,102,.25); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; }
.cloud-hero-trophy .trophy-icon { width: 44px; height: 44px; border-radius: 50%; background: #f5ca72; color: #6d440b; display: grid; place-items: center; flex: none; }
.cloud-hero-trophy b { display: block; font-size: 12px; }
.cloud-hero-trophy span { font-size: 10px; color: rgba(255,255,255,.48); }

.cloud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cloud-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s var(--ease); cursor: pointer; position: relative; }
.cloud-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cloud-media { position: relative; aspect-ratio: 1.42; overflow: hidden; background: #f3eee7; }
.cloud-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cloud-card:hover .cloud-media img { transform: scale(1.04); }
.cloud-media .status { position: absolute; left: 11px; top: 11px; display: flex; align-items: center; gap: 5px; background: rgba(25,16,14,.82); color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 9px; font-weight: 700; backdrop-filter: blur(6px); }
.cloud-media .round { position: absolute; right: 11px; top: 11px; background: rgba(255,255,255,.88); color: #53453f; border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 700; }
.cloud-body { padding: 13px 14px 15px; }
.cloud-body h3 { font-size: 14.5px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cloud-body .sub { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud-progress { height: 7px; border-radius: 99px; background: #f1ebe4; overflow: hidden; margin-top: 12px; position: relative; }
.cloud-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc35a, #ff5734 65%, #ec1b2e); position: relative; }
.cloud-progress span::after { content: ""; position: absolute; right: 0; top: 0; width: 20px; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); animation: shimmer 2.2s infinite; }
@keyframes shimmer { 50% { opacity: .35; } }
.cloud-numbers { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 6px; }
.cloud-numbers b { color: var(--ink-2); }
.cloud-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f5f0eb; }
.cloud-foot .unit { color: var(--red); font-size: 10px; }
.cloud-foot .unit b { font-size: 22px; font-weight: 900; letter-spacing: -.7px; }
.cloud-foot .unit span { margin-left: 2px; }
.cloud-foot .btn { padding: 8px 15px; font-size: 11px; }
.cloud-card.drawn .cloud-media::after { content: ""; position: absolute; inset: 0; background: rgba(30,22,19,.24); }
.cloud-card.drawn .cloud-media .status { background: rgba(217,165,72,.94); color: #3a2508; }
.winner-strip { margin-top: 14px; background: #fff8e9; border: 1px solid #f3e2bc; border-radius: 14px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #8a631f; }
.winner-strip .icon { color: #c8932e; }
.winner-strip b { color: #6c4b13; }
.winner-scroll { display: flex; gap: 14px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.winner-scroll::-webkit-scrollbar { display: none; }
.winner-chip { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; font-size: 10px; color: var(--muted); display: flex; gap: 9px; align-items: center; }
.winner-chip b { display: block; font-size: 11px; color: var(--ink-2); }
.winner-chip img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }

/* cloud detail */
.cloud-detail { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; align-items: start; }
.cloud-detail-media { position: sticky; top: calc(var(--header-h) + 20px); border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cloud-detail-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cloud-detail-media .media-foot { padding: 16px 18px; }
.cloud-detail-media .media-foot .row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin-top: 7px; }
.cloud-detail-main { display: flex; flex-direction: column; gap: 16px; }
.cloud-detail-head { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cloud-detail-head .live-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.cloud-detail-head h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.7px; }
.cloud-detail-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.cloud-detail-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; color: var(--red); }
.cloud-detail-price .cur { font-size: 14px; font-weight: 800; }
.cloud-detail-price b { font-size: 42px; letter-spacing: -1.5px; line-height: 1; }
.cloud-detail-price span { font-size: 11px; color: var(--muted); margin-left: 6px; }
.buy-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.buy-panel h3 { font-size: 15px; font-weight: 800; }
.share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 14px 0; }
.share-opt { border: 1px solid var(--line); background: #fbf8f4; border-radius: 12px; padding: 12px 6px; text-align: center; transition: .18s; }
.share-opt b { display: block; font-size: 16px; }
.share-opt span { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.share-opt.active { border-color: var(--red); background: var(--red-soft); color: var(--red); box-shadow: 0 0 0 3px rgba(237,27,46,.05); }
.share-summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fbf7f2; border-radius: 12px; font-size: 12px; margin-bottom: 14px; }
.share-summary b { color: var(--red); font-size: 18px; }
.balance-line { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 10px; }
.balance-line a { color: var(--red); font-weight: 700; }
.number-wall { display: flex; flex-wrap: wrap; gap: 6px; }
.num-chip { font-size: 9px; padding: 5px 8px; border-radius: 7px; background: #f6f1ea; color: var(--muted); font-variant-numeric: tabular-nums; }
.num-chip.mine { background: var(--red); color: #fff; }
.rule-card { background: #fffaf0; border: 1px solid #f3e4c6; border-radius: 16px; padding: 16px; font-size: 11px; color: #826633; line-height: 1.7; }
.rule-card b { color: #5d4417; display: block; margin-bottom: 4px; }
.participant-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.participant { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.participant .avatar { width: 30px; height: 30px; }
.participant .who { flex: 1; min-width: 0; }
.participant .who b { font-size: 11px; display: block; }
.participant .who span { font-size: 9px; color: var(--muted); }
.participant .share { color: var(--red); font-weight: 700; font-size: 10px; }
.winner-banner { background: linear-gradient(135deg, #fff6df, #ffedc5); border: 1px solid #f0d89f; border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.winner-banner .trophy { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #f7cf77, #d7a038); color: #6f470b; flex: none; }
.winner-banner h4 { font-size: 14px; }
.winner-banner p { font-size: 11px; color: #8d6b2c; margin-top: 3px; }
.hash-box { font-family: Consolas, monospace; word-break: break-all; background: #f8f4ed; border-radius: 10px; padding: 9px 11px; font-size: 9px; color: #8b7c6f; line-height: 1.6; margin-top: 8px; }

/* ---------- category page ---------- */
.category-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 18px; align-items: start; }
.category-rail { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow); }
.rail-title { font-size: 10px; letter-spacing: 2px; color: var(--muted-2); font-weight: 800; padding: 8px 10px 9px; }
.cat-tab { display: flex; align-items: center; gap: 9px; padding: 11px 10px; border-radius: 11px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: .18s; position: relative; width: 100%; text-align: left; }
.cat-tab .emoji { font-size: 16px; width: 24px; text-align: center; }
.cat-tab:hover { background: #faf6f1; }
.cat-tab.active { background: var(--red-soft); color: var(--red); font-weight: 800; }
.cat-tab.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--red); }
.cat-tab small { margin-left: auto; font-size: 9px; color: var(--muted-2); font-weight: 500; }
.catalog { min-width: 0; }
.catalog-head { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.catalog-head h2 { font-size: 18px; font-weight: 900; }
.catalog-head p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.sort-tabs { display: flex; gap: 3px; background: #f6f1ea; border-radius: 10px; padding: 3px; }
.sort-tabs button { font-size: 10.5px; color: var(--muted); padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.sort-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(60,35,20,.08); font-weight: 700; }
.catalog-search { margin-bottom: 14px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 25px; }
.pagination button { min-width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.pagination button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .35; }

/* ---------- product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1.06fr .94fr; gap: 26px; align-items: start; }
.product-gallery { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.product-gallery .main-image { aspect-ratio: 1; background: #f5f0ea; overflow: hidden; }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; }
.gallery-thumbs .thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery-thumbs .thumb.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.product-info .badge-row { display: flex; gap: 6px; margin-bottom: 12px; }
.product-info h1 { font-size: 27px; line-height: 1.32; letter-spacing: -.7px; font-weight: 900; }
.product-info .sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.price-box { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #fff7f3, #fff1f1); border: 1px solid #ffe0db; }
.price-box .price .cur { font-size: 15px; }
.price-box .price .num { font-size: 38px; letter-spacing: -1.5px; }
.price-box .meta { display: flex; gap: 18px; color: var(--muted); font-size: 10.5px; margin-top: 7px; }
.price-box .points-earn { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 10px; color: #9b6d22; background: #fff3d6; padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.product-attrs { margin-top: 18px; }
.attr-row { display: flex; gap: 18px; font-size: 12px; padding: 10px 0; border-bottom: 1px dashed #f0e9e2; }
.attr-row .k { width: 62px; color: var(--muted); flex: none; }
.attr-row .v { color: var(--ink-2); }
.attr-row .v b { color: var(--green); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-control button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-2); }
.qty-control button:hover { background: #f7f2ec; }
.qty-control span { width: 38px; text-align: center; font-weight: 700; font-size: 13px; }
.product-actions { display: flex; gap: 10px; margin-top: 22px; }
.product-actions .btn { flex: 1; padding: 14px 12px; }
.product-services { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.product-services span { display: flex; align-items: center; gap: 4px; }
.detail-sections { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.detail-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.detail-card .description { font-size: 13px; line-height: 1.9; color: var(--ink-2); white-space: pre-line; }
.review-empty { text-align: center; padding: 30px 10px; color: var(--muted); font-size: 12px; }
.review-empty .icon { width: 38px; height: 38px; color: #d8cec6; margin-bottom: 8px; }
.review-item { padding: 14px 0; border-top: 1px solid var(--line); }
.review-item:first-of-type { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.review-stars { color: #e3a637; letter-spacing: 1px; font-size: 10px; }
.review-text { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.review-imgs { display: flex; gap: 6px; margin-top: 8px; }
.review-imgs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.action-bar { display: none; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cart-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cart-panel-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-panel-head h2 { font-size: 16px; font-weight: 800; }
.cart-panel-head span { font-size: 11px; color: var(--muted); }
.cart-items { padding: 4px 20px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f4eee8; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex: none; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item h4 { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .attr { font-size: 10px; color: var(--muted); margin-top: 4px; }
.cart-item .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item .price .num { font-size: 16px; }
.cart-item .remove { color: var(--muted-2); padding: 4px; }
.cart-item .remove:hover { color: var(--red); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow); }
.cart-summary h3 { font-size: 15px; font-weight: 800; }
.summary-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.summary-line.total { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; align-items: baseline; }
.summary-line.total b { color: var(--red); font-size: 27px; letter-spacing: -1px; }
.cart-note { display: flex; gap: 7px; font-size: 10px; color: var(--muted); background: #faf7f2; border-radius: 10px; padding: 10px; margin-top: 13px; line-height: 1.6; }
.cart-summary .btn { margin-top: 16px; }

.empty-state { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px 20px 42px; text-align: center; box-shadow: var(--shadow); }
.empty-state img { width: 260px; max-width: 72%; margin: 0 auto 4px; opacity: .95; }
.empty-state h3 { font-size: 16px; font-weight: 800; color: var(--ink-2); }
.empty-state p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.empty-state .btn { margin-top: 20px; min-width: 148px; }
.empty-state.small { padding: 30px 16px; }
.empty-state.small img { width: 160px; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 18px; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.checkout-block h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.checkout-address { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; cursor: pointer; transition: .18s; position: relative; }
.checkout-address.active { border-color: var(--red); background: #fff9f9; box-shadow: 0 0 0 3px rgba(237,27,46,.04); }
.checkout-address .who { font-size: 13px; font-weight: 700; }
.checkout-address .who span { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.checkout-address p { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.checkout-address .default { font-size: 9px; color: var(--red); border: 1px solid #ffc9ce; background: #fff2f2; border-radius: 4px; padding: 1px 5px; margin-left: 5px; }
.checkout-address input { margin-top: 3px; accent-color: var(--red); }
.address-empty { border: 1px dashed #e4d9ce; border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }
.order-mini-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5efe9; }
.order-mini-item:last-child { border-bottom: 0; }
.order-mini-item img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }
.order-mini-item .info { flex: 1; min-width: 0; }
.order-mini-item h4 { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.order-mini-item p { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.order-mini-item .price { font-size: 11px; }
.pay-options { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.summary-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow); }
.summary-panel h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.checkout-summary-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 7px 0; }
.checkout-summary-line.total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 14px; color: var(--ink); align-items: baseline; }
.checkout-summary-line.total b { color: var(--red); font-size: 28px; letter-spacing: -1px; }
.checkout-summary-line .red { color: var(--red); font-weight: 700; }
.checkout-rules { font-size: 9.5px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.paybox { margin-top: 15px; }
.paybox .field:last-child { margin-bottom: 0; }
.checkout-success { text-align: center; padding: 36px 16px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: #e8f8f0; color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.checkout-success h2 { font-size: 22px; font-weight: 900; }
.checkout-success p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.checkout-success .actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- me ---------- */
.me-hero { border-radius: 26px; background: radial-gradient(700px 300px at 84% 0, #ffe1b7, transparent 60%), linear-gradient(135deg, #f6e4ca, #efcdb0 55%, #e9bfa3); padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.me-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); right: -60px; top: -160px; box-shadow: 0 0 0 40px rgba(255,255,255,.12), 0 0 0 80px rgba(255,255,255,.07); }
.me-profile { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.me-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #33221f, #6d4034); color: #ffe4b0; display: grid; place-items: center; font-size: 26px; font-weight: 900; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 10px 25px rgba(90,52,28,.2); overflow: hidden; flex: none; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-name-row { display: flex; align-items: center; gap: 8px; }
.me-name { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.me-badge { font-size: 9px; background: rgba(66,42,22,.82); color: #ffd98f; padding: 3px 8px; border-radius: 99px; font-weight: 700; }
.me-phone { font-size: 11px; color: #7b5b45; margin-top: 3px; }
.me-login-copy { color: #6c4b37; font-size: 12px; margin-top: 6px; }
.me-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; position: relative; z-index: 2; }
.me-asset { background: rgba(255,255,255,.58); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.62); border-radius: 15px; padding: 13px 15px; }
.me-asset span { font-size: 10px; color: #81604a; display: flex; align-items: center; gap: 4px; }
.me-asset b { display: block; font-size: 20px; font-weight: 900; margin-top: 2px; letter-spacing: -.5px; color: #3f2a1d; }
.me-asset b small { font-size: 10px; font-weight: 600; margin-left: 2px; color: #8b6750; }
.me-assets .btn-recharge { display: flex; align-items: center; justify-content: center; border-radius: 15px; background: rgba(53,32,20,.9); color: #ffe6b9; font-size: 11px; font-weight: 700; }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 18px; align-items: start; }
.me-main { display: flex; flex-direction: column; gap: 14px; }
.me-side { display: flex; flex-direction: column; gap: 14px; }
.me-order-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.me-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.me-order-head h3 { font-size: 16px; font-weight: 800; }
.me-order-head a { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.order-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.order-status-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 13px; transition: .2s; position: relative; }
.order-status-item:hover { background: #fbf7f2; }
.order-status-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #fff3ed; color: #e36a3b; }
.order-status-item:nth-child(2) .order-status-icon { background: #edf5ff; color: #437fdc; }
.order-status-item:nth-child(3) .order-status-icon { background: #eef9f2; color: #32a46b; }
.order-status-item:nth-child(4) .order-status-icon { background: #f5efff; color: #8660cf; }
.order-status-item span { font-size: 11px; color: var(--ink-2); }
.order-status-count { position: absolute; top: 3px; right: 16%; min-width: 15px; height: 15px; background: var(--red); color: #fff; border-radius: 99px; font-size: 8px; display: grid; place-items: center; padding: 0 3px; border: 1.5px solid #fff; }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.service-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 11px 2px; border-radius: 12px; font-size: 10.5px; color: var(--ink-2); text-align: center; transition: .18s; }
.service-item:hover { background: #fbf7f2; color: var(--red); }
.service-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff3f1; display: grid; place-items: center; color: #e25b5b; }
.service-icon.blue { background: #edf4ff; color: #4a7ed8; }
.service-icon.gold { background: #fff6e4; color: #c18b26; }
.service-icon.green { background: #eaf8f1; color: #2c9b68; }
.service-icon.purple { background: #f4efff; color: #8862c6; }
.service-icon.gray { background: #f5f2ee; color: #81746b; }
.me-side .invite-card { border-radius: 20px; padding: 20px; background: linear-gradient(150deg, #32221f, #1d1412); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.invite-card::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); right: -70px; top: -80px; box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.invite-card .kicker { color: #e9bb65; font-size: 9px; letter-spacing: 2px; font-weight: 800; }
.invite-card h3 { font-size: 19px; margin-top: 7px; line-height: 1.35; font-weight: 900; }
.invite-card p { font-size: 10px; color: rgba(255,255,255,.42); margin-top: 6px; }
.invite-code-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.24); border-radius: 10px; padding: 9px 12px; position: relative; z-index: 2; }
.invite-code-row b { letter-spacing: 2px; color: #ffdda0; font-size: 15px; flex: 1; }
.invite-code-row button { font-size: 10px; color: rgba(255,255,255,.7); }
.me-side .btn { margin-top: 12px; position: relative; z-index: 2; }
.quick-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 7px 18px; box-shadow: var(--shadow); }
.list-cell { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f5f0ea; font-size: 12px; }
.list-cell:last-child { border-bottom: 0; }
.list-cell .icon { color: var(--muted); }
.list-cell .label { flex: 1; }
.list-cell .value { color: var(--muted); font-size: 10px; }
.list-cell .icon.chev { color: #d6ccc4; width: 15px; height: 15px; }
.list-cell:hover .label { color: var(--red); }

/* ---------- generic inner pages ---------- */
.subpage-layout { max-width: 960px; margin: 0 auto; }
.subpage-layout.wide { max-width: 1120px; }
.subpage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.subpage-head h1 { font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.subpage-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { padding: 8px 14px; border-radius: 9px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tabs button.active, .tabs a.active { background: var(--ink); color: #fff; font-weight: 700; }
.order-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(60,35,20,.04); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #f5f0ea; background: #fdfbf8; gap: 10px; }
.order-card-head .no { font-size: 10px; color: var(--muted); }
.order-card-head .status { font-size: 12px; font-weight: 800; color: var(--red); }
.order-card-head .status.completed { color: var(--green); }
.order-card-head .status.cancelled { color: var(--muted); }
.order-line { display: flex; gap: 12px; padding: 14px 18px; }
.order-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.order-line .info { flex: 1; min-width: 0; }
.order-line h4 { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.order-line p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.order-line .line-total { text-align: right; font-size: 11px; color: var(--muted); }
.order-line .line-total b { display: block; color: var(--ink); font-size: 14px; }
.order-card-foot { padding: 12px 18px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px dashed #f1eae3; }
.order-card-foot .total { margin-right: auto; font-size: 10.5px; color: var(--muted); }
.order-card-foot .total b { color: var(--red); font-size: 17px; margin-left: 2px; }
.order-card-foot .btn { padding: 7px 13px; font-size: 10.5px; }
.order-status-hero { background: linear-gradient(135deg, #2b201d, #1b1312); color: #fff; border-radius: 22px; padding: 28px; margin-bottom: 16px; position: relative; overflow: hidden; }
.order-status-hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); right: -50px; top: -90px; box-shadow: 0 0 0 30px rgba(255,255,255,.025); }
.order-status-hero h1 { font-size: 26px; font-weight: 900; }
.order-status-hero p { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 5px; }
.order-status-hero .express { margin-top: 14px; font-size: 11px; color: #f1c66f; display: flex; align-items: center; gap: 6px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; }
.info-list { font-size: 12px; line-height: 2; color: var(--ink-2); }
.info-list .row { display: flex; gap: 12px; border-bottom: 1px dashed #f2ece6; padding: 6px 0; }
.info-list .row:last-child { border: 0; }
.info-list .k { width: 74px; color: var(--muted); flex: none; }

/* address */
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 15px; }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 18px; box-shadow: var(--shadow); position: relative; transition: .18s; }
.address-card:hover { border-color: #f1cfc5; }
.address-card .top { display: flex; align-items: center; gap: 7px; }
.address-card .top b { font-size: 14px; }
.address-card .top span { font-size: 11px; color: var(--muted); }
.address-card p { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.address-card .actions { display: flex; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f4eee8; }
.address-card .actions button { font-size: 10px; color: var(--muted); }
.address-card .actions button:hover { color: var(--red); }

/* recharge */
.recharge-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.recharge-wallet { background: linear-gradient(135deg, #2d201d, #17100f); color: #fff; border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.recharge-wallet::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -70px; top: -100px; box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.recharge-wallet .label { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 2px; }
.recharge-wallet .balance { font-size: 38px; font-weight: 900; margin-top: 5px; letter-spacing: -1px; }
.recharge-wallet .balance small { font-size: 14px; color: rgba(255,255,255,.5); }
.recharge-wallet .wallet-row { display: flex; gap: 24px; margin-top: 20px; font-size: 11px; color: rgba(255,255,255,.55); }
.recharge-wallet .wallet-row b { color: #f3ca7c; font-size: 15px; margin-left: 4px; }
.recharge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 15px; }
.recharge-pkg { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px; text-align: left; position: relative; transition: .18s; }
.recharge-pkg:hover { border-color: #ffc3c9; box-shadow: 0 10px 26px rgba(80,30,30,.07); transform: translateY(-2px); }
.recharge-pkg .tag { position: absolute; right: 10px; top: 10px; font-size: 8px; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 99px; }
.recharge-pkg .amount { font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.recharge-pkg .amount small { font-size: 12px; }
.recharge-pkg .bonus { font-size: 10px; color: var(--orange); margin-top: 5px; }
.recharge-pkg .pkg-note { font-size: 9px; color: var(--muted); margin-top: 2px; }
.recharge-pkg.selected { border-color: var(--red); background: #fff8f8; box-shadow: 0 0 0 3px rgba(237,27,46,.05); }
.recharge-notice { background: #fffaf0; border: 1px solid #f4e6c9; border-radius: 14px; padding: 14px 16px; font-size: 10.5px; color: #8a6c35; line-height: 1.8; margin-top: 14px; }
.recharge-aside { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.recharge-aside h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

/* commission/team */
.commission-hero { background: radial-gradient(600px 280px at 80% 0, #61401f, transparent 65%), linear-gradient(135deg, #2c201c, #17100f); color: #fff; border-radius: 24px; padding: 28px; position: relative; overflow: hidden; }
.commission-hero::after { content: "¥"; position: absolute; right: 25px; bottom: -55px; font-size: 210px; font-weight: 900; color: rgba(255,255,255,.03); }
.commission-hero .label { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,.42); }
.commission-hero .amount { font-size: 44px; font-weight: 900; margin-top: 4px; color: #ffda91; letter-spacing: -1.5px; }
.commission-hero .amount small { font-size: 16px; }
.commission-hero .meta { display: flex; gap: 28px; margin-top: 16px; font-size: 10px; color: rgba(255,255,255,.45); }
.commission-hero .meta b { display: block; color: #fff; font-size: 17px; margin-top: 2px; }
.commission-hero .actions { display: flex; gap: 9px; margin-top: 22px; position: relative; z-index: 2; }
.rate-band { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rate-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 15px; display: flex; align-items: center; gap: 10px; }
.rate-card .pct { font-size: 25px; font-weight: 900; color: var(--red); letter-spacing: -1px; }
.rate-card b { font-size: 11px; display: block; }
.rate-card span { font-size: 9px; color: var(--muted); }
.team-list { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f5efe9; }
.team-row:last-child { border: 0; }
.team-row .avatar { width: 32px; height: 32px; }
.team-row .info { flex: 1; }
.team-row .info b { font-size: 11.5px; display: block; }
.team-row .info span { font-size: 9px; color: var(--muted); }
.team-row .level { font-size: 9px; color: var(--red); background: var(--red-soft); border-radius: 99px; padding: 3px 8px; }

/* posts / community */
.community-hero { background: linear-gradient(135deg, #f6e8d7, #ead1b5); border-radius: 24px; padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; overflow: hidden; }
.community-hero h1 { font-size: 28px; font-weight: 900; letter-spacing: -.8px; }
.community-hero p { font-size: 11px; color: #87664e; margin-top: 5px; }
.community-hero .actions { display: flex; gap: 8px; }
.post-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.post-feed .post-card { padding: 20px; }
.post-feed .post-text { -webkit-line-clamp: 4; }
.post-compose { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.upload-box { aspect-ratio: 1; border-radius: 12px; border: 1px dashed #dcd2c9; display: grid; place-items: center; color: var(--muted); background: #fbf8f4; cursor: pointer; text-align: center; font-size: 10px; position: relative; overflow: hidden; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .remove-img { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.order-select { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.order-select button { flex: none; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 10px; max-width: 170px; }
.order-select button.active { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.order-select img { width: 32px; height: 32px; border-radius: 6px; float: left; margin-right: 6px; object-fit: cover; }

/* auth */
.auth-page { min-height: calc(100vh - var(--header-h) - 140px); display: grid; place-items: center; }
.auth-shell { width: min(960px, 100%); display: grid; grid-template-columns: .95fr 1.05fr; background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-art { background: radial-gradient(500px 400px at 20% 10%, #ff6b5e, transparent 60%), linear-gradient(150deg, #cc1126, #8d0717); color: #fff; padding: 44px; position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) 1px, transparent 0); background-size: 24px 24px; opacity: .12; }
.auth-art .brandline { display: flex; align-items: center; gap: 9px; position: relative; z-index: 2; }
.auth-art .brandline img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 18px rgba(43,10,80,.18); }
.auth-art .brandline b { font-size: 20px; letter-spacing: -.5px; }
.auth-art h2 { font-size: 38px; line-height: 1.17; letter-spacing: -1.5px; margin-top: 68px; position: relative; z-index: 2; white-space: pre-line; }
.auth-art p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 14px; max-width: 280px; position: relative; z-index: 2; }
.auth-art .art-coin { margin-top: auto; align-self: flex-end; font-size: 120px; line-height: 1; opacity: .22; font-weight: 900; }
.auth-form { padding: 46px 50px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 27px; font-weight: 900; letter-spacing: -.7px; }
.auth-form .lead { font-size: 12px; color: var(--muted); margin: 6px 0 27px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn-primary { margin-top: 6px; padding: 13px; }
.auth-switch { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }
.auth-switch a { color: var(--red); font-weight: 700; }
.demo-login { margin-top: 24px; padding-top: 19px; border-top: 1px dashed var(--line); }
.demo-login p { font-size: 9.5px; color: var(--muted-2); margin-bottom: 8px; letter-spacing: 1px; }
.demo-btns { display: flex; gap: 8px; }
.demo-btns button { flex: 1; border: 1px solid var(--line); background: #faf7f3; border-radius: 10px; padding: 9px; font-size: 10px; color: var(--ink-2); }
.demo-btns button:hover { border-color: #f2c1b3; color: var(--red); }
.auth-back { font-size: 11px; color: var(--muted); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 4px; }
.auth-back:hover { color: var(--red); }
.password-field { position: relative; }
.password-field .input { padding-right: 42px; }
.password-field .toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }

/* full-screen phone login */
body.auth-mode {
  background: #fff;
  padding-bottom: 0 !important;
}
body.auth-mode .site-header,
body.auth-mode .bottom-nav,
body.auth-mode .site-footer {
  display: none !important;
}
body.auth-mode main#app { padding: 0; }
.auth-screen {
  width: min(500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 28px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.auth-back-arrow {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c1918;
  border-radius: 50%;
  flex: none;
}
.auth-back-arrow .icon { width: 30px; height: 30px; stroke-width: 2; }
.auth-back-arrow:active { background: #f6f1ec; }
.auth-title {
  margin: 54px 0 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.7px;
  color: #171414;
}
.auth-subtitle {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.phone-form { margin-top: 44px; display: flex; flex-direction: column; }
.auth-line-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 57px;
  padding: 4px 0 5px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ece7e2;
  transition: border-color .2s;
}
.auth-line-field:focus-within { border-bottom-color: #d9c9be; }
.auth-line-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 38px 8px 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
}
.auth-line-field input::placeholder { color: #c8c1bc; font-size: 15px; font-weight: 400; }
.auth-line-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-out;
}
.auth-line-field .auth-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--red);
  border-radius: 50%;
}
.auth-eye .icon { width: 21px; height: 21px; stroke-width: 1.9; }
.auth-eye:active { background: var(--red-soft); }
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 1px 0;
  font-size: 13px;
}
.auth-links button { padding: 5px 0; font-size: 13px; }
.auth-links button:first-child { color: var(--red); font-weight: 600; }
.auth-links button:last-child { color: #948b85; }
.auth-btn {
  width: 100%;
  height: 61px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
  flex: none;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.auth-btn:active { transform: scale(.985); }
.auth-btn-login {
  margin-top: 48px;
  background: #ff9a9c;
  box-shadow: none;
  color: #fff;
}
.auth-btn-login:not([disabled]) {
  background: linear-gradient(135deg, #ff4538, var(--red) 62%, #d90c23);
  box-shadow: 0 13px 28px rgba(237,27,46,.24);
}
.auth-btn-login[disabled] { opacity: 1; cursor: default; }
.auth-btn-register {
  margin-top: 15px;
  background: linear-gradient(135deg, #ff2f20, #f0000c);
  box-shadow: 0 12px 26px rgba(240,0,12,.18);
}
.auth-btn-onetap {
  margin-top: 17px;
  background: #00c853;
  box-shadow: 0 12px 26px rgba(0,200,83,.18);
}
.auth-btn:disabled { opacity: .68; }
.auth-bottom-link {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-bottom-link a { color: var(--red); font-weight: 600; }
.auth-terms {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: #b4aaa3;
}
.auth-terms a { color: #8a7d74; }
.auth-terms a:hover { color: var(--red); }

/* recharge records, wins */
.recharge-record { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f5efe9; }
.recharge-record:last-child { border: 0; }
.recharge-record b { font-size: 15px; }
.recharge-record p { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.win-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.win-card { background: #fff; border: 1px solid #f0dfba; border-radius: 18px; padding: 14px; display: flex; gap: 13px; box-shadow: 0 8px 26px rgba(120,85,20,.07); position: relative; overflow: hidden; }
.win-card::after { content: "WIN"; position: absolute; right: -10px; bottom: -18px; font-size: 70px; font-weight: 900; color: rgba(217,165,72,.08); letter-spacing: -4px; }
.win-card img { width: 94px; height: 94px; border-radius: 12px; object-fit: cover; flex: none; }
.win-card h4 { font-size: 12px; line-height: 1.45; }
.win-card .tag { font-size: 9px; color: #976b1e; background: #fff3d4; display: inline-block; padding: 2px 6px; border-radius: 4px; margin-bottom: 5px; }
.win-card p { font-size: 9.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; position: relative; z-index: 2; }

/* settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-avatar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.settings-avatar .me-avatar { width: 64px; height: 64px; }
.settings-actions { display: flex; gap: 9px; margin-top: 20px; }
.danger-link { color: var(--red); font-size: 11px; }
.privacy-content h2 { font-size: 17px; margin: 22px 0 8px; }
.privacy-content p, .privacy-content li { font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.privacy-content ul { padding-left: 18px; list-style: disc; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,253,250,.7); padding: 34px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.8; max-width: 260px; }
.footer-col h4 { font-size: 11px; font-weight: 800; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 10.5px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 15px; display: flex; justify-content: space-between; gap: 12px; font-size: 9.5px; color: var(--muted-2); }

/* bottom nav mobile */
.bottom-nav {
  position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 100%; display: none; justify-content: space-around; align-items: flex-end;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom);
  background: rgba(255,253,250,.95); backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid rgba(235,226,217,.9);
}
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #978b83; font-size: 9.5px; padding: 3px 0; position: relative; }
.bn-item .icon { width: 23px; height: 23px; }
.bn-item.active { color: var(--red); font-weight: 700; }
.bn-item.cloud-tab { margin-top: -23px; }
.bn-cloud {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff5b44, var(--red) 60%, #c20c21); color: #fff;
  box-shadow: 0 9px 22px rgba(237,27,46,.32), 0 0 0 5px rgba(255,253,250,.95);
}
.bn-cloud .icon { width: 23px; height: 23px; }
.bn-item.cloud-tab.active .bn-cloud { transform: translateY(-1px); }
.bn-badge { position: absolute; top: -3px; right: 20%; background: var(--red); color: #fff; border-radius: 99px; min-width: 14px; height: 14px; font-size: 8px; display: grid; place-items: center; padding: 0 3px; }

/* modal, toast, misc */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(26,17,14,.52); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-panel { width: min(470px, 100%); max-height: min(86vh, 760px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 40px 100px rgba(30,15,10,.28); animation: rise .3s var(--ease); }
.modal-panel.wide { width: min(720px, 100%); }
@keyframes rise { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 22px 14px; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-size: 17px; font-weight: 900; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: #f7f2ec; }
.modal-body { padding: 0 22px 22px; }
.modal-actions { display: flex; gap: 9px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.toast-root { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 30px); }
.toast { background: rgba(32,23,20,.92); color: #fff; font-size: 12px; border-radius: 999px; padding: 10px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: toastIn .28s var(--ease); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 7px; }
.toast.success { background: rgba(15,112,72,.94); }
.toast.error { background: rgba(170,22,38,.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.page-loading { display: grid; place-items: center; min-height: 45vh; color: var(--muted); font-size: 12px; gap: 12px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #eadfd5; border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(100deg, #f1ebe5 20%, #faf6f1 40%, #f1ebe5 60%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: 10px; }
@keyframes skel { to { background-position: -200% 0; } }
.load-more { text-align: center; margin-top: 22px; }

/* tooltip / code */
.code { font-family: Consolas, monospace; background: #f6f1ea; border: 1px dashed #e5d8ca; border-radius: 6px; padding: 2px 6px; font-size: 11px; }
.inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-bar { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #94703c; background: #fff8e9; border: 1px solid #f4e4c8; border-radius: 10px; padding: 9px 12px; margin-top: 13px; }
.notice-bar .icon { color: #c69a4c; width: 14px; height: 14px; }

/* responsive */
@media (max-width: 1100px) {
  .header-search { display: none !important; }
  .header-actions .points-pill { display: none !important; }
}
@media (max-width: 1024px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 0 9px; font-size: 13px; }
  .header-search { width: 210px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cloud-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: none; }
}
@media (max-width: 880px) {
  :root { --header-h: 60px; }
  body { font-size: 13px; padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 24px); }
  main#app { padding: 14px 0 24px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .site-header { background: rgba(255,253,250,.96); }
  .header-inner { height: var(--header-h); gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-mark img { width: 100%; height: 100%; }
  .brand-name { font-size: 16px; letter-spacing: -.8px; }
  .brand-sub { font-size: 7px; letter-spacing: 1.3px; }
  .main-nav, .header-search, .header-actions { display: none !important; }
  .header-actions { margin-left: auto; gap: 4px; }
  .mobile-head-actions { display: flex; }
  .bottom-nav { display: flex; }
  .site-footer { display: none; }
  .hero-grid { display: block; }
  .hero-carousel { min-height: 272px; border-radius: 20px; }
  .hero-slide { padding: 24px 24px 30px; grid-template-columns: 1fr .62fr; }
  .hero-title { font-size: 34px; letter-spacing: -1.4px; margin-top: 14px; }
  .hero-kicker { font-size: 9px; padding: 6px 10px; }
  .hero-sub { font-size: 10.5px; line-height: 1.6; max-width: 220px; }
  .hero-cta { margin-top: 18px; }
  .hero-cta .btn { padding: 9px 16px; font-size: 12px; }
  .hero-art { height: 210px; transform: scale(.78); transform-origin: right center; margin-right: -20px; }
  .hero-dots { left: 24px; bottom: 16px; }
  .hero-side { margin-top: 12px; min-height: 0; padding: 18px; border-radius: 20px; }
  .mini-cloud { margin-top: 14px; }
  .mini-cloud-img { width: 80px; height: 80px; border-radius: 15px; }
  .mini-cloud-info h3 { font-size: 13px; }
  .mini-cloud-info .price-line b { font-size: 20px; }
  .hero-side .btn { margin-top: 15px; padding: 10px; font-size: 12px; }
  .winner-ticker { margin-top: 14px; padding-top: 11px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
  .stat-band.three { grid-template-columns: repeat(3, 1fr); }
  .stat-band div { padding: 10px 13px; }
  .stat-band.three div { padding: 10px 9px; gap: 5px; }
  .stat-band.three b { font-size: 16px; }
  .stat-band.three span { font-size: 9.5px; white-space: nowrap; }
  .stat-band b { font-size: 17px; }
  .quick-cats { grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 14px; }
  .quick-cat { padding: 9px 2px 7px; gap: 6px; border-radius: 12px; }
  .cat-emoji { width: 42px; height: 42px; border-radius: 13px; font-size: 22px; }
  .quick-cat b { font-size: 10.5px; }
  .section { margin-top: 24px; }
  .section-head { margin-bottom: 12px; align-items: center; }
  .section-head h2 { font-size: 18px; }
  .section-head .sub { display: none; }
  .section-head .more { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-grid.two { grid-template-columns: repeat(2, 1fr); }
  .product-card { border-radius: 14px; }
  .p-media { margin: 6px 6px 0; border-radius: 10px; }
  .p-body { padding: 8px 9px 10px; }
  .p-title { font-size: 12px; min-height: 34px; line-height: 1.4; }
  .p-sub { font-size: 9px; margin-top: 3px; }
  .p-meta { display: none; }
  .p-foot { padding-top: 7px; }
  .price .num { font-size: 18px; }
  .price .cur { font-size: 10px; }
  .cart-add { width: 28px; height: 28px; }
  .cart-add .icon { width: 14px; height: 14px; }
  .p-badge .badge { font-size: 8px; padding: 3px 5px; }
  .p-fav { width: 27px; height: 27px; }
  .p-fav .icon { width: 14px; height: 14px; }
  .exchange-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .exchange-tile { padding: 8px; gap: 8px; border-radius: 13px; }
  .exchange-tile img { width: 54px; height: 54px; border-radius: 9px; }
  .exchange-tile h4 { font-size: 10.5px; }
  .exchange-tile .price .num { font-size: 14px; }
  .cloud-feature { padding: 20px 18px; border-radius: 20px; }
  .cloud-feature-head h2 { font-size: 21px; }
  .cloud-feature-head p { display: none; }
  .cloud-mini-grid { display: flex; flex-direction: column; gap: 8px; }
  .cloud-mini-card { padding: 9px; }
  .cloud-mini-card img { width: 64px; height: 64px; border-radius: 10px; }
  .cloud-mini-card .bar { margin-top: 6px; }
  .cloud-mini-card .left { display: none; }
  .post-grid { grid-template-columns: 1fr; gap: 10px; }
  .post-card { border-radius: 15px; padding: 14px; }
  .cloud-page-hero { display: block; padding: 24px 20px; border-radius: 20px; }
  .cloud-page-hero h1 { font-size: 29px; }
  .cloud-hero-stats { margin-top: 20px; }
  .hero-stat { padding: 11px; }
  .hero-stat b { font-size: 20px; }
  .cloud-hero-trophy { padding: 10px 12px; }
  .cloud-grid { grid-template-columns: 1fr; gap: 12px; }
  .cloud-media { aspect-ratio: 1.8; }
  .cloud-body { padding: 11px 13px 13px; }
  .cloud-body h3 { font-size: 13px; }
  .cloud-foot .unit b { font-size: 20px; }
  .cloud-detail { display: block; }
  .cloud-detail-media { position: relative; top: auto; border-radius: 18px; }
  .cloud-detail-media img { aspect-ratio: 1.28; }
  .cloud-detail-main { margin-top: 12px; gap: 12px; }
  .cloud-detail-head { padding: 18px; border-radius: 18px; }
  .cloud-detail-head h1 { font-size: 21px; }
  .cloud-detail-price b { font-size: 35px; }
  .buy-panel { padding: 17px; border-radius: 18px; }
  .share-options { gap: 6px; }
  .share-opt { padding: 9px 4px; border-radius: 10px; }
  .share-opt b { font-size: 14px; }
  .winner-scroll { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .category-layout { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 9px; }
  .category-rail { position: sticky; top: calc(var(--header-h) + 8px); padding: 6px; border-radius: 14px; }
  .rail-title { font-size: 8px; padding: 5px 6px; letter-spacing: 1px; }
  .cat-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 3px; font-size: 10px; border-radius: 9px; text-align: center; line-height: 1.25; }
  .cat-tab .emoji { font-size: 17px; width: auto; }
  .cat-tab small { display: none; }
  .cat-tab.active::before { display: none; }
  .catalog-head { display: block; padding: 12px 13px; border-radius: 13px; margin-bottom: 9px; }
  .catalog-head h2 { font-size: 15px; }
  .catalog-head .sort-tabs { margin-top: 9px; overflow-x: auto; }
  .catalog-head .sort-tabs button { flex: 1; }
  .catalog-search { margin-bottom: 9px; }
  .product-layout { display: block; }
  .product-gallery { border-radius: 18px; }
  .product-info { margin-top: 10px; padding: 18px; border-radius: 18px; }
  .product-info h1 { font-size: 20px; }
  .product-info .sub { font-size: 11px; }
  .price-box { margin-top: 14px; padding: 13px 15px; }
  .price-box .price .num { font-size: 31px; }
  .product-actions { display: none; }
  .detail-sections { display: block; margin-top: 12px; }
  .detail-card { padding: 18px; border-radius: 17px; margin-bottom: 12px; }
  .action-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,253,250,.97); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); align-items: center; gap: 8px; }
  .action-bar .icon-action { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 8px; color: var(--muted); width: 40px; flex: none; }
  .action-bar .icon-action .icon { width: 20px; height: 20px; }
  .action-bar .btn { flex: 1; padding: 11px 8px; font-size: 12px; }
  .action-bar .btn-dark { flex: .9; }
  body.detail-mode { padding-bottom: 0; }
  body.detail-mode .bottom-nav { display: none; }
  body.detail-mode main#app { padding-bottom: 82px; }
  .cart-layout { display: block; }
  .cart-panel { border-radius: 16px; }
  .cart-panel-head { padding: 13px 14px; }
  .cart-items { padding: 2px 14px; }
  .cart-item { padding: 13px 0; }
  .cart-item img { width: 70px; height: 70px; border-radius: 10px; }
  .cart-item h4 { font-size: 11.5px; }
  .cart-summary { position: fixed; top: auto; left: 0; right: 0; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); z-index: 45; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 13px 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 30px rgba(60,30,15,.08); }
  .cart-summary h3, .cart-summary .summary-line:not(.total), .cart-summary .cart-note { display: none; }
  .cart-summary .summary-line.total { border: 0; padding: 0; margin: 0; display: block; flex: 1; font-size: 10px; white-space: nowrap; }
  .cart-summary .summary-line.total small { display: none; }
  .cart-summary .summary-line.total b { font-size: 22px; display: block; margin-top: 1px; }
  .cart-summary .btn { margin: 0; padding: 11px 24px; font-size: 12px; width: auto !important; flex: none; }
  body.cart-mode { padding-bottom: calc(var(--bottom-h) + 78px); }
  .empty-state { padding: 30px 16px 34px; border-radius: 18px; }
  .empty-state img { width: 210px; }
  .checkout-grid { display: block; }
  .checkout-block { padding: 16px; border-radius: 17px; margin-bottom: 10px; }
  .summary-panel { position: fixed; top: auto; left: 0; right: 0; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); z-index: 45; border-radius: 16px 16px 0 0; padding: 12px 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 30px rgba(60,30,15,.08); }
  .summary-panel h3, .summary-panel .checkout-summary-line:not(.total), .summary-panel .checkout-rules, .summary-panel .balance-tip { display: none; }
  .summary-panel .checkout-summary-line.total { border: 0; margin: 0; padding: 0; display: block; flex: 1; font-size: 10px; }
  .summary-panel .checkout-summary-line.total b { font-size: 22px; display: block; }
  .summary-panel .btn { margin: 0 !important; width: auto; flex: none; padding: 11px 22px; font-size: 12px; }
  body.checkout-mode { padding-bottom: calc(var(--bottom-h) + 80px); }
  .me-hero { border-radius: 20px; padding: 20px; }
  .me-avatar { width: 60px; height: 60px; font-size: 22px; }
  .me-name { font-size: 18px; }
  .me-phone { font-size: 10px; }
  .me-login-copy { font-size: 10.5px; }
  .me-assets { grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 19px; }
  .me-asset { padding: 9px 8px; border-radius: 12px; }
  .me-asset span { font-size: 8.5px; white-space: nowrap; }
  .me-asset b { font-size: 15px; }
  .me-assets .btn-recharge { padding: 9px 4px; font-size: 9px; }
  .me-grid { display: block; margin-top: 12px; }
  .me-side { margin-top: 12px; }
  .me-order-card { padding: 15px; border-radius: 17px; }
  .me-order-head { margin-bottom: 14px; }
  .order-status-grid { gap: 2px; }
  .order-status-icon { width: 42px; height: 42px; border-radius: 13px; }
  .order-status-item span { font-size: 10px; }
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .service-icon { width: 38px; height: 38px; }
  .service-item { font-size: 9.5px; padding: 9px 1px; gap: 6px; }
  .quick-list { border-radius: 17px; padding: 4px 15px; }
  .subpage-head { margin-bottom: 13px; }
  .subpage-head h1 { font-size: 21px; }
  .subpage-head p { font-size: 10px; }
  .tabs button, .tabs a { padding: 8px 10px; font-size: 10px; }
  .order-card { border-radius: 15px; }
  .order-card-head { padding: 11px 13px; }
  .order-line { padding: 12px 13px; }
  .order-line img { width: 64px; height: 64px; }
  .order-card-foot { padding: 10px 13px 12px; }
  .order-card-foot .btn { padding: 6px 11px; font-size: 10px; }
  .order-detail-grid { display: block; }
  .order-status-hero { padding: 21px; border-radius: 18px; }
  .order-status-hero h1 { font-size: 21px; }
  .address-grid { grid-template-columns: 1fr; gap: 9px; }
  .address-card { border-radius: 14px; padding: 15px; }
  .recharge-layout { display: block; }
  .recharge-wallet { border-radius: 19px; padding: 20px; }
  .recharge-wallet .balance { font-size: 32px; }
  .recharge-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .recharge-pkg { padding: 13px; border-radius: 14px; }
  .recharge-pkg .amount { font-size: 21px; }
  .recharge-aside { margin-top: 12px; border-radius: 17px; }
  .commission-hero { border-radius: 19px; padding: 21px; }
  .commission-hero .amount { font-size: 36px; }
  .rate-band { gap: 8px; }
  .rate-card { padding: 12px; border-radius: 12px; }
  .rate-card .pct { font-size: 21px; }
  .community-hero { display: block; padding: 21px; border-radius: 19px; }
  .community-hero h1 { font-size: 23px; }
  .community-hero .actions { margin-top: 15px; }
  .post-feed { grid-template-columns: 1fr; gap: 10px; }
  .post-compose { display: block; }
  .auth-page { min-height: auto; }
  .auth-shell { display: block; border-radius: 20px; }
  .auth-art { display: none; }
  .auth-form { padding: 28px 22px; }
  .auth-form h1 { font-size: 23px; }
  .settings-grid { grid-template-columns: 1fr; }
  .win-grid { grid-template-columns: 1fr; gap: 10px; }
  .win-card img { width: 82px; height: 82px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-panel { width: 100%; border-radius: 22px 22px 0 0; max-height: 88vh; animation: sheetUp .28s var(--ease); }
  .modal-panel.wide { width: 100%; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .modal-head { padding: 17px 18px 12px; }
  .modal-body { padding: 0 18px calc(20px + env(safe-area-inset-bottom)); }
  .toast-root { bottom: calc(var(--bottom-h) + 24px); }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 11px; }
  .panel { padding: 17px; border-radius: 17px; }
  .footer-grid { display: none; }
}
@media (max-width: 380px) {
  .hero-slide { grid-template-columns: 1fr .45fr; padding: 20px 18px 26px; }
  .hero-title { font-size: 30px; }
  .hero-art { transform: scale(.62); margin-right: -30px; }
  .brand-name { font-size: 16px; }
  .product-grid { gap: 7px; }
  .me-assets { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .section-head h2 { font-size: 17px; }
}
@media (min-width: 881px) {
  .mobile-search { display: none !important; }
  .site-header .mobile-head-actions { display: none !important; }
}

/* print only invoice-ish details */
@media print { .site-header, .bottom-nav, .site-footer, .action-bar { display: none !important; } }
