* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #1c2430;
  background: #e8eef6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.phone {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f7fb;
  position: relative;
}
body.skin-dark { background: #0c0d10; color: #f3f4f6; }
body.skin-dark .phone { background: #101114; }
body.skin-cyan { background: #c9f1f8; }
body.skin-cyan .phone { background: linear-gradient(#d8f6ff, #eefbff 28%, #f7fdff); }
@media (min-width: 520px) {
  .phone { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 18px 48px rgba(28, 55, 110, .14); }
}

.nav {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, .92);
  backdrop-filter: blur(10px);
}
.nav h1 { margin: 0; font-size: 17px; font-weight: 800; }
.nav-dark, body.skin-dark .nav { background: #161616; color: #fff; }
.back {
  position: absolute;
  left: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: inherit;
}
main.has-tab { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
main.messages { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  display: flex;
  border-top: 1px solid #eef1f6;
  z-index: 30;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9aa3b2;
  font-size: 11px;
  position: relative;
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: #3b82f6; }
.dot-num {
  position: absolute;
  top: 4px;
  margin-left: 18px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  padding: 0 4px;
  font-style: normal;
}

.toast {
  position: fixed;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(360px, 86vw);
  background: rgba(20, 20, 20, .92);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}
.toast.err { background: #e11d48; }

.search-row { display: flex; gap: 8px; align-items: center; padding: 0 12px 10px; }
.avatar, .pav {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #e8eef8;
}
.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  box-shadow: 0 6px 16px rgba(40, 70, 120, .05);
}
.search-form input { flex: 1; width: 0; border: 0; outline: 0; background: transparent; color: #222; }
.search-form button {
  border: 0; background: #1c1c1e; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 12px;
  border-radius: 18px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.banner {
  min-width: 100%;
  scroll-snap-align: start;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 12px 28px;
  background:
    radial-gradient(circle at 16% 30%, rgba(255,255,255,.75), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(186,230,160,.95), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(140,210,150,.9), transparent 38%),
    linear-gradient(160deg, #f4ffe9, #b7e7a4 62%, #def6cd);
}
.banner h2, .banner p {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.35;
  color: #f7fcff;
  -webkit-text-stroke: 3px #8ec0f2;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #6aa6e4;
}
.dots { display: flex; gap: 5px; justify-content: center; margin: -14px 0 8px; position: relative; z-index: 2; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(0,0,0,.18); display: block; }
.dots i.on { width: 14px; background: #7d8794; }

.kook {
  margin: 4px 12px 12px;
  width: calc(100% - 24px);
  border: 0;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  box-shadow: 0 6px 16px rgba(40, 70, 120, .05);
  color: #333;
  text-align: left;
}
.quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2px 8px 8px; text-align: center; }
.quick a { font-size: 11px; font-weight: 700; color: #333; white-space: nowrap; }
.qi {
  width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 6px;
  display: grid; place-items: center;
}
.qi svg { width: 28px; height: 28px; }
.qi1 { background: linear-gradient(#ffd5e2, #ff8fb6); }
.qi2 { background: linear-gradient(#ffe3ad, #ffb03a); }
.qi3 { background: linear-gradient(#dce6ff, #8eb0ff); }
.qi4 { background: linear-gradient(#fff4c9, #ffd56a); }

.zones { display: flex; gap: 10px; padding: 4px 14px 8px; }
.zone {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.72); font-weight: 800; white-space: nowrap;
}
.zone.on { background: #1c1c1e; color: #fff; }
.zone svg { width: 16px; height: 16px; }
.sec-title {
  margin: 14px 14px 10px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: #3b82f6;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 16px; }
.pcard {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 18px rgba(40, 70, 120, .06); color: inherit;
}
.pcard-cover { height: 148px; position: relative; background-size: cover; background-position: center; }
.pcard.poster .pcard-cover { height: 168px; }
.badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.72); color: #fff; border-radius: 8px;
  font-size: 12px; padding: 3px 6px;
}
.ov { position: absolute; left: 10px; bottom: 10px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ov b { display: block; font-size: 22px; font-style: italic; letter-spacing: 1px; }
.ov small { letter-spacing: 1px; opacity: .9; }
.ribbon {
  position: absolute; left: 8px; right: 8px; bottom: 10px;
  background: linear-gradient(#3e7c49, #24532e); color: #e9ffe8; text-align: center;
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  padding: 6px 16px 7px; line-height: 1.25;
}
.ribbon b, .ribbon span { display: block; font-size: 12px; }
.pcard-cap { padding: 8px 6px 10px; text-align: center; font-size: 13px; font-weight: 800; }
.pcard-body { padding: 8px 10px 12px; }
.pt { font-weight: 800; font-size: 14px; }
.ps, .sold, .muted { color: #8b93a3; font-size: 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { color: #ff3b30; font-weight: 800; font-size: 14px; letter-spacing: -0.3px; }
.cartbtn {
  width: 28px; height: 28px; border-radius: 50%; background: #1c1c1e;
  display: grid; place-items: center;
}
.bg-dark {
  background:
    radial-gradient(circle at 72% 36%, rgba(255,214,120,.55), transparent 26%),
    linear-gradient(160deg, #31456f, #141b30 70%);
}
.bg-navy {
  background:
    radial-gradient(circle at 30% 30%, rgba(130,180,255,.4), transparent 28%),
    linear-gradient(165deg, #24365c, #10182c);
}
.bg-green {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.45), transparent 22%),
    radial-gradient(circle at 70% 40%, rgba(190,255,140,.55), transparent 26%),
    linear-gradient(#c8f5cf, #3d8f58);
}
.bg-green2 {
  background:
    radial-gradient(circle at 40% 24%, rgba(255,255,255,.4), transparent 20%),
    linear-gradient(#dff8cf, #2f7d58 72%, #1c4e38);
}
.bg-gold { background: linear-gradient(160deg, #ffe29a, #f0a23a); }
.bg-blue { background: linear-gradient(160deg, #d7ecff, #6eb6ff); }
.bg-dark::after, .bg-navy::after, .bg-gold::after, .bg-blue::after {
  content: "";
  position: absolute; right: 16px; top: 22px;
  width: 54px; height: 54px; border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), transparent 28%),
    linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transform: rotate(8deg);
}

.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 12px 8px; }
.club-card {
  min-height: 86px; border-radius: 16px; padding: 12px; color: #fff; position: relative; overflow: hidden;
  background-image: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 16px rgba(40, 60, 120, .12);
}
.club-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 72%);
}
.club-card::after {
  content: ""; position: absolute; right: -8px; bottom: -20px;
  width: 72px; height: 84px; border-radius: 40px; background: rgba(255,255,255,.2);
}
.club-card .txt { position: relative; z-index: 1; }
.club-card .cn { font-size: 16px; font-weight: 900; white-space: nowrap; }
.club-card .cs { font-size: 12px; opacity: .92; margin-top: 4px; white-space: nowrap; }
.club-card.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c2430; }

.player {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px auto; gap: 8px; align-items: center;
  background: #fff; margin: 10px 12px; padding: 12px 14px; border-radius: 18px;
  position: relative; min-height: 72px; overflow: hidden;
  box-shadow: 0 8px 18px rgba(40, 70, 120, .05);
}
.player .pad { position: static; width: 56px; height: 40px; object-fit: contain; pointer-events: none; }
.pinfo { min-width: 0; position: relative; z-index: 1; }
.pname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.male { color: #3b82f6; margin-left: 4px; }
.female { color: #ff5fa2; margin-left: 4px; }
.obtn {
  position: relative; z-index: 1; background: #e7f1ff; color: #3b82f6;
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px;
}
.empty { text-align: center; color: #9aa3b2; padding: 48px 16px; }
.empty img { width: 180px; margin: 0 auto 8px; }

.hero-cover { height: 220px; background-size: cover; background-position: center; position: relative; }
.sheet { background: #fff; margin-top: -16px; border-radius: 18px 18px 0 0; padding: 16px 16px 100px; position: relative; }
.buybar, .bottom-fixed {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(430px, 100%);
  bottom: 0;
  background: #fff;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.05);
  z-index: 25;
}
.bottom-fixed { background: transparent; box-shadow: none; display: block; width: min(398px, calc(100% - 32px)); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 0; }
.btn-dark, .btn-purple, .btn-line, .btn-ghost {
  border: 0; border-radius: 999px; padding: 12px 16px; font-weight: 800; text-align: center;
}
.btn-dark { background: #1c1c1e; color: #fff; }
.btn-purple { background: linear-gradient(90deg, #7c4dff, #b388ff); color: #fff; width: 100%; }
.btn-line { background: #e8f1ff; color: #3b82f6; }
.btn-ghost { background: transparent; color: #8b93a3; width: 100%; }
.grow { flex: 1; }

.wrap { padding: 12px 14px 28px; }
.field, .wcard, .card {
  background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px;
}
body.skin-dark .field { background: #242428; }
body.skin-dark .field input, body.skin-dark .field textarea, body.skin-dark .field select { color: #fff; }
.field label, .lbl { display: block; color: #8b93a3; font-size: 13px; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 0; outline: 0; background: transparent; color: #222; }
.field textarea { min-height: 80px; resize: vertical; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 10px; border: 0; background: #eef2f8; font-size: 18px;
}
.stepper input { width: 64px; text-align: center; border: 0; background: transparent; }
.payline { display: flex; justify-content: space-between; margin: 6px 0; }
.payline b { color: #ff3b30; }
.hint { color: #e11d48; font-size: 13px; }

.wcard { background: #d7f6ff; }
.money-input { font-size: 28px; font-weight: 900; color: #222; }
.money-input::placeholder { color: #b0b6c2; font-weight: 800; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips button { border: 0; background: #f3fcff; border-radius: 10px; padding: 10px 0; color: #667; }
.chips button.on { outline: 2px solid #7c4dff; color: #5b3df5; background: #fff; }
.pay-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.check { margin-left: auto; color: #7c4dff; font-size: 18px; }
.pad-bottom { padding-bottom: 96px; }

.me-top { display: flex; align-items: center; gap: 10px; padding: 8px 108px 12px 16px; position: relative; }
.me-top .who { font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idline { color: #8b93a3; font-size: 12px; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.copy { border: 0; background: transparent; color: #8b93a3; padding: 0; flex: none; }
.me-pad { position: absolute; right: 6px; top: 6px; width: 92px; pointer-events: none; }
.balance-card, .block {
  margin: 8px 12px; background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: 0 8px 18px rgba(40, 70, 120, .04);
}
.balance-card { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #eef6ff, #f7fbff); }
.yen {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #e5f0ff; color: #3b82f6; font-weight: 900;
}
.balance-card .go { margin-left: auto; color: #c5cad3; }
.shortcuts, .funcs { display: grid; text-align: center; gap: 12px 6px; margin-top: 14px; }
.shortcuts { grid-template-columns: repeat(5, 1fr); }
.funcs { grid-template-columns: repeat(4, 1fr); }
.shortcuts a, .funcs a { font-size: 12px; color: #3c4656; font-weight: 650; line-height: 1.3; }
.mini {
  width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.m1 { background: linear-gradient(180deg, #d9e6ff, #7eafff); }
.m2 { background: linear-gradient(180deg, #ffe3b8, #ffb03a); }
.m3 { background: linear-gradient(180deg, #d7e4ff, #7aa2ff); }
.m4 { background: linear-gradient(180deg, #d9f8e4, #49c27a); }
.m5 { background: linear-gradient(180deg, #ffd5d5, #ff7b7b); }
.m6 { background: linear-gradient(180deg, #ffd5e4, #ff8fb6); }
.m7 { background: linear-gradient(180deg, #e6dcff, #a78bfa); }
.notice-bar {
  margin: 8px 12px; background: #e7f3ff; color: #3a78c2; border-radius: 12px; padding: 10px 12px; font-size: 13px;
}
.otabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; }
.otabs a { flex: none; color: #889; padding: 6px 8px; }
.otabs a.on { color: #111; font-weight: 900; border-bottom: 2px solid #111; }
.order {
  display: block; background: #fff; margin: 10px 12px; border-radius: 16px; padding: 14px;
  box-shadow: 0 8px 18px rgba(40, 70, 120, .05);
}
.order .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.st-pending { color: #d97706; }
.st-serving { color: #2563eb; }
.st-done { color: #059669; }
.st-aftersale { color: #e11d48; }
.st-cancelled { color: #6b7280; }

.prose { padding: 4px 16px 40px; line-height: 1.75; font-size: 15px; }
.prose h2 { font-size: 22px; margin: 8px 0 12px; }
.prose h2.hl { display: inline-block; background: #fff35c; font-size: 20px; padding: 2px 6px; }
.prose h3 { font-size: 16px; margin: 16px 0 6px; }
.prose p { margin: 0 0 10px; }

.seg { display: flex; gap: 8px; padding: 10px 12px; align-items: center; }
.seg a { color: #bbb; padding: 6px 10px; }
.seg a.on { background: #a78bfa; color: #fff; border-radius: 999px; font-weight: 800; }
.coupon {
  margin: 10px 12px; border-radius: 14px; background: #242428; display: flex; gap: 10px; padding: 12px; align-items: center;
}
.coupon b { color: #ffd36a; font-size: 22px; }
.uploader {
  border: 1px dashed #555; border-radius: 12px; min-height: 150px; display: grid; place-items: center;
  color: #aaa; position: relative; text-align: center; overflow: hidden;
}
.uploader input { position: absolute; inset: 0; opacity: 0; }
.uploader img { max-height: 180px; margin: 8px auto; }
.composer {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(430px, 100%);
  bottom: calc(56px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px 10px; background: #1a1b1f; z-index: 25;
}
.composer input { flex: 1; border: 0; border-radius: 999px; padding: 10px 12px; background: #2a2b31; color: #fff; outline: 0; }
.composer button { border: 0; border-radius: 999px; background: #3b82f6; color: #fff; padding: 0 14px; font-weight: 800; }
.bubble { max-width: 78%; margin: 8px 12px; padding: 10px 12px; border-radius: 14px; background: #2a2b31; white-space: pre-wrap; }
.bubble.me { margin-left: auto; background: #3b82f6; }
.bubble time { display: block; color: rgba(255,255,255,.65); font-size: 11px; margin-top: 4px; }
.login { padding: 28px 18px 40px; }
.login h2 { margin: 18px 0 8px; }
.demo {
  width: 100%; border: 0; background: #1c1c1e; color: #fff; border-radius: 999px; padding: 12px; font-weight: 800; margin: 8px 0;
}
.sub { color: #8b93a3; font-size: 13px; line-height: 1.6; }
.switch-line { text-align: center; color: #667085; font-size: 14px; }
.switch-line a { color: #6d4aff; font-weight: 800; }
.hero-title { font-size: 28px; margin: 12px 0 0; }
.log-item { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.plus { color: #059669; font-weight: 800; }
.minus { color: #e11d48; font-weight: 800; }
.profile-ava { display: flex; align-items: center; gap: 10px; }
.profile-ava img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.linkish { color: #8b5cf6; }
.redeem summary {
  list-style: none; text-align: center; color: #fff;
  background: linear-gradient(90deg, #7c4dff, #b388ff);
  border-radius: 999px; padding: 14px; font-weight: 800;
}
.redeem summary::-webkit-details-marker { display: none; }
.redeem form { margin-top: 10px; }
.redeem input { width: 100%; border: 0; border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.auth-card { background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.auth-card input { width: 100%; border: 0; border-bottom: 1px solid #eef1f6; padding: 10px 0; outline: 0; background: transparent; }
.full { width: 100%; }
