:root {
  --bg: #f5f5f8;
  --ink: #24222b;
  --muted: #8c8995;
  --brand: #7258dc;
  --brand2: #9a6cf2;
  --card: #fff;
  --line: #eceaf0;
  --safe: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #e9e8ee;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.phone-app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: auto;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(74px + var(--safe));
  box-shadow: 0 0 50px #bbb;
}
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: 17px;
  margin: 0;
}
.head-btn {
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--brand);
  padding: 7px;
}
.page-view {
  min-height: calc(100vh - 126px);
}
.pad {
  padding: 14px;
}
.hero {
  padding: 24px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, #d18bff55, transparent 35%),
    linear-gradient(135deg, #15132e, #33255d 55%, #6b3b86);
  border-radius: 0 0 25px 25px;
}
.hero h2 {
  font-size: 28px;
  margin: 8px 0;
}
.hero p {
  color: #d2cce6;
  font-size: 13px;
}
.store {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store b {
  font-size: 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  background: #ffffff1a;
  font-size: 11px;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.hero-actions button,
.primary {
  border: 0;
  border-radius: 13px;
  padding: 13px 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 20px #5740b733;
}
.hero-actions .ghost {
  background: #ffffff17;
  border: 1px solid #ffffff35;
}
.notice {
  margin: 12px 14px 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: #fff;
  color: #6f6878;
  font-size: 12px;
  box-shadow: 0 3px 16px #251d4420;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 7px;
  padding: 18px 13px;
}
.grid button {
  border: 0;
  background: none;
  color: #39343f;
  font-size: 11px;
}
.grid i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 7px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f0eaff, #fff);
  font-style: normal;
  font-size: 22px;
  box-shadow: 0 6px 15px #6d55ae1c;
}
.section {
  padding: 0 14px 16px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 11px;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
}
.section-title button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 11px;
  box-shadow: 0 5px 18px #2c21400b;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.price {
  color: #eb5b70;
  font-weight: 800;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f0ebff;
  color: var(--brand);
  font-size: 10px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child {
  border-bottom: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e5d6ff, #a983e7);
  font-size: 22px;
}
.grow {
  flex: 1;
}
.list-item h3,
.card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.right {
  color: #aaa;
  font-size: 16px;
}
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: calc(64px + var(--safe));
  padding: 5px 8px var(--safe);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar button {
  border: 0;
  background: none;
  color: #9a96a1;
  font-size: 10px;
}
.tabbar i {
  display: block;
  font-style: normal;
  font-size: 20px;
  margin-bottom: 3px;
}
.tabbar .active {
  color: var(--brand);
}
.banner {
  height: 135px;
  padding: 21px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, #20203e, #7d52bc);
  overflow: hidden;
}
.banner h2 {
  margin: 8px 0;
  font-size: 22px;
}
.toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow: auto;
}
.toolbar button,
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 12px;
  background: #fff;
  font-size: 12px;
}
.toolbar .active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.product {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 11px;
  align-items: center;
}
.thumb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 70px;
  border-radius: 13px;
  background: linear-gradient(145deg, #eee7ff, #c6b3ef);
  font-size: 29px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.quantity-control > button:not(.add) {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 19px;
}
.quantity-control .add:disabled {
  background: #c9c6cf;
  cursor: not-allowed;
}
.stock {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.order-context {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff8e8;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.5;
}
.order-context.ok {
  background: #edf9f3;
  color: #087a4f;
}
.order-context.warning {
  background: #fff0f0;
  color: #a52b2b;
}
.order-card small {
  color: var(--muted);
}
.add {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
}
.cartbar {
  position: sticky;
  bottom: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 14px;
  padding: 10px 12px;
  border-radius: 15px;
  background: #24222b;
  color: #fff;
}
.cartbar button {
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--brand);
  color: #fff;
}
.form-row {
  margin-bottom: 15px;
}
.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.option-grid button {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 4px;
  background: #fff;
}
.option-grid .selected {
  border-color: var(--brand);
  color: var(--brand);
  background: #f3efff;
}
.asset-card {
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #211936, #7755c8);
  border-radius: 20px;
}
.asset-card strong {
  font-size: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: 18px;
}
.rank {
  display: grid;
  grid-template-columns: 34px 42px 1fr auto;
  align-items: center;
  gap: 8px;
}
.rank-num {
  font-size: 18px;
  font-weight: 900;
  color: #9b93a2;
}
.rank:nth-child(2) .rank-num {
  color: #e0aa33;
}
.menu-card .list-item {
  cursor: pointer;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty i {
  display: block;
  font-size: 55px;
  font-style: normal;
  opacity: 0.7;
}
.lottery {
  padding: 24px 14px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #40206a, #181429);
  min-height: calc(100vh - 116px);
}
.wheel {
  width: 260px;
  height: 260px;
  margin: 20px auto;
  border: 10px solid #f3cc67;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    #f7e2a7 0 45deg,
    #bd75e7 45deg 90deg,
    #f7e2a7 90deg 135deg,
    #bd75e7 135deg 180deg,
    #f7e2a7 180deg 225deg,
    #bd75e7 225deg 270deg,
    #f7e2a7 270deg 315deg,
    #bd75e7 315deg
  );
  box-shadow: 0 0 30px #dc83ff55;
}
.wheel button {
  width: 74px;
  height: 74px;
  border: 6px solid #fff2b0;
  border-radius: 50%;
  background: #e95371;
  color: #fff;
  font-weight: 800;
}
.friend {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}
.friend .avatar {
  height: 64px;
}
.switch {
  width: 43px;
  height: 24px;
  border: 0;
  border-radius: 20px;
  background: #d6d3dd;
  padding: 3px;
}
.switch:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.switch.on {
  background: var(--brand);
}
.switch.on:after {
  margin-left: 19px;
}
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.game-card {
  min-height: 130px;
  border: 0;
  border-radius: 17px;
  padding: 16px;
  text-align: left;
  color: #fff;
  background: linear-gradient(145deg, #292044, #7252b3);
}
.game-card i {
  display: block;
  font-style: normal;
  font-size: 30px;
}
.accordion h3 {
  cursor: pointer;
}
.accordion p {
  display: none;
}
.accordion.open p {
  display: block;
}
.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: end center;
  background: #0008;
}
.modal[hidden] {
  display: none;
}
.sheet {
  width: min(100%, 480px);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  border-radius: 22px 22px 0 0;
  background: #fff;
}
.sheet h2 {
  margin-top: 0;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 15px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #211d2ded;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.progress {
  height: 8px;
  border-radius: 9px;
  background: #eee;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--brand), #d876e9);
}
@media (min-width: 700px) {
  body {
    padding: 20px;
  }
  .phone-app {
    min-height: calc(100vh - 40px);
    border-radius: 28px;
    overflow: hidden;
  }
  .tabbar {
    bottom: 20px;
    border-radius: 0 0 28px 28px;
  }
}
.member-login-hero{padding:34px 24px;border-radius:22px;text-align:center;color:#fff;background:radial-gradient(circle at top,#6d4052,#231827 70%);box-shadow:0 18px 40px #2a172835}.member-login-hero.compact{border-radius:18px 18px 8px 8px;padding:26px 20px}.member-login-hero>i{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border:1px solid #e6b78888;border-radius:18px;color:#f3c995;background:#ffffff0d;font:700 30px Georgia,serif;font-style:normal}.member-login-hero h2{margin:0 0 8px}.member-login-hero p{margin:0 0 20px;color:#d8cbd2;font-size:13px;line-height:1.7}.member-login-hero button{width:100%;margin-top:8px}.wechat-login{height:44px;border:1px solid #76c88a55;border-radius:11px;background:#157e42;color:#fff;font-weight:700}.login-form{margin-top:12px}.login-form label{display:block;margin-bottom:16px;color:#6e6671;font-size:12px;font-weight:700}.login-form .input{margin-top:8px}.code-line{display:grid;grid-template-columns:1fr 105px;gap:8px}.code-line button{margin-top:8px;border:0;border-radius:10px;background:#eee9ff;color:#6245c2;font-size:12px;font-weight:700}.code-line button:disabled{opacity:.55}.agreement{text-align:center;margin:14px 0 0}
.price-start {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}
.quantity-control > .choose-spec {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 66px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}
.choose-spec:disabled {
  background: #c9c6cf;
}
.choose-spec i {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #eb5b70;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
  text-align: center;
}
.sku-list {
  display: grid;
  gap: 10px;
}
.sku-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafafa;
}
.sku-option > div:first-child {
  min-width: 0;
}
.sku-option b,
.sku-option small,
.sku-option .price {
  display: block;
}
.sku-option small {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.sku-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.sku-quantity > button:not(.add) {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 19px;
}
.sku-quantity .add:disabled {
  background: #c9c6cf;
}
.checkout-lines {
  margin: 14px 0;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #56515d;
  font-size: 13px;
}
.checkout-line b {
  flex: 0 0 auto;
  color: var(--ink);
}
.checkout-total {
  text-align: right;
}
