:root {
  --red: #e52b20;
  --orange: #ff8a16;
  --green: #19a34a;
  --ink: #222;
  --muted: #999;
  --line: #eee;
  --bg: #f3f3f3;
  --safe: env(safe-area-inset-bottom);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #e8e8e8;
  color: var(--ink);
  font:
    14px/1.4 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  padding-bottom: calc(66px + var(--safe));
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
}
.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: auto;
  background: var(--bg);
  box-shadow: 0 0 30px #0001;
  overflow: hidden;
}
.hidden {
  display: none !important;
}
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 1px 5px #00000010;
}
.brandrow {
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}
.logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #ff766d;
  border-radius: 11px;
  background:
    radial-gradient(
      circle at 28% 20%,
      rgba(255, 255, 255, 0.3),
      transparent 26%
    ),
    linear-gradient(145deg, #ff584c, #ed2b22 60%, #c81e18);
  display: grid;
  place-items: center;
  box-shadow:
    0 4px 10px #e52b2040,
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.logo svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}
.brand-globe,
.brand-grid {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-globe {
  stroke-width: 2.4;
}
.brand-grid {
  opacity: 0.9;
  stroke-width: 1.5;
}
.brand-route {
  fill: none;
  stroke: #ffd54a;
  stroke-width: 3;
  stroke-linecap: round;
}
.brand-arrow,
.brand-star {
  fill: #ffd54a;
}
.lang-select {
  margin-left: auto;
  height: 29px;
  max-width: 82px;
  border: 1px solid #ddd;
  border-radius: 15px;
  background: #fff;
  padding: 0 6px;
  font-size: 11px;
  outline: 0;
}
.auth-mini {
  margin-left: 5px;
  display: flex;
  gap: 5px;
}
.auth-mini button {
  border: 0;
  border-radius: 14px;
  padding: 5px 9px;
  background: #fff0ef;
  color: var(--red);
  font-size: 11px;
}
.auth-mini .primary {
  background: var(--red);
  color: #fff;
}
.user-mini {
  margin-left: 5px;
  border: 0;
  background: #fff;
  color: #555;
  font-size: 11px;
}
.searchbox {
  padding: 5px 12px 9px;
  display: flex;
  gap: 8px;
}
.search {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  padding: 0 13px;
}
.glass {
  width: 16px;
  height: 16px;
  border: 2px solid #aaa;
  border-radius: 50%;
  position: relative;
  margin-right: 9px;
}
.glass:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: #aaa;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}
.searchbox > button {
  border: 0;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
}
.tabs {
  height: 43px;
  display: flex;
  overflow: auto;
  scrollbar-width: none;
  border-top: 1px solid #f6f6f6;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  height: 100%;
  flex: none;
  padding: 0 17px;
  border: 0;
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.tabs button.active {
  color: var(--red);
}
.tabs button.active:after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}
.tabs .fast {
  color: #13a33e;
}
.tabs .sale {
  color: #e3271e;
}
.lottery-banner {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 88% 10%, #fff176 0 5%, transparent 6%),
    radial-gradient(circle at 94% 70%, #ffbf38 0 9%, transparent 10%),
    linear-gradient(110deg, #f12620, #ff5c1c 56%, #ff921c);
  color: #fff;
  cursor: pointer;
}
.lottery-banner::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border: 14px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.lottery-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 2px solid #fff1a8;
  border-radius: 19px;
  background:
    radial-gradient(
      circle at 35% 24%,
      rgba(255, 255, 255, 0.3),
      transparent 28%
    ),
    linear-gradient(145deg, #ffce35, #ff651d 62%, #e9271d);
  box-shadow: 0 7px 16px rgba(125, 19, 0, 0.24);
}
.lottery-icon svg {
  width: 54px;
  height: 54px;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(119, 31, 0, 0.24));
}
.lottery-pointer {
  fill: #c51f18;
  stroke: #fff6be;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.lottery-ring {
  fill: #fff8d2;
  stroke: #fff;
  stroke-width: 4;
}
.lottery-segment {
  stroke: #fff9d7;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.lottery-segment.s1 {
  fill: #ff3b2f;
}
.lottery-segment.s2 {
  fill: #ffb72d;
}
.lottery-segment.s3 {
  fill: #f44e8b;
}
.lottery-segment.s4 {
  fill: #ff7a25;
}
.lottery-hub {
  fill: #fff;
  stroke: #e52b20;
  stroke-width: 3;
}
.lottery-spark {
  fill: #fff7a6;
}
.lottery-icon:hover .lottery-segment,
.lottery-banner:focus-visible .lottery-segment {
  filter: brightness(1.08);
}
.lottery-text {
  min-width: 0;
}
.lottery-text span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 20px;
  background: #fff3a8;
  color: #c92218;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.lottery-text b,
.lottery-text small {
  display: block;
}
.lottery-text b {
  font-size: 17px;
  line-height: 1.2;
}
.lottery-text small {
  margin-top: 5px;
  color: #fff6d9;
  font-size: 11px;
}
.lottery-banner > button {
  position: relative;
  z-index: 1;
  min-width: 72px;
  height: 38px;
  border: 2px solid #fff6c3;
  border-radius: 20px;
  background: #fff;
  color: #e52b20;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 15px rgba(128, 25, 0, 0.2);
}
.quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #f7f7f7;
  padding: 12px 3px;
}
.quick button {
  border: 0;
  background: #fff;
  padding: 0;
  color: #555;
  font-size: 11px;
}
.quick i {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  margin: 0 auto 5px;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-style: normal;
  background: #fff1ef;
}
.quick button:nth-child(2) i {
  background: #eaf4ff;
}
.quick button:nth-child(3) i {
  background: #e8faff;
}
.quick button:nth-child(4) i {
  background: #ecfae8;
}
.quick button:nth-child(5) i {
  background: #fff5dc;
}
.budget-deals {
  margin-top: 8px;
  padding: 10px 8px 9px;
  background: linear-gradient(180deg, #fffaf0, #fff);
  border-top: 1px solid #ffe8bd;
  border-bottom: 1px solid #f3eee7;
}
.budget-deals > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 9px;
}
.budget-deals > header div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.budget-deals > header b {
  color: #dd261e;
  font-size: 17px;
}
.budget-deals > header span {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ef3025;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.budget-deals > header small {
  color: #9b765c;
  font-size: 10px;
  white-space: nowrap;
}
.budget-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.budget-item {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 7px;
  border: 1px solid #f3e4d6;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 9px rgba(133, 67, 20, 0.06);
}
.budget-item img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  background: #f4f4f4;
}
.budget-item span,
.budget-item b {
  display: block;
  overflow: hidden;
  padding: 0 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.budget-item span {
  margin-top: 5px;
  color: #444;
  font-size: 10px;
}
.budget-item b {
  margin-top: 3px;
  color: #ed281e;
  font-size: 14px;
}
.subsidy {
  margin-top: 8px;
  background: #fff;
  padding: 9px 8px 7px;
  display: grid;
  grid-template-columns: 83px repeat(4, 1fr);
  gap: 4px;
  align-items: end;
}
.sub-brand {
  border: 0;
  background: #fff;
  text-align: left;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-left: 5px;
  color: #ed1651;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 900;
  font-style: italic;
}
.sub-brand small {
  font-size: 10px;
  color: #e62b23;
  margin-top: 9px;
}
.sub-item {
  border: 0;
  background: #fff;
  padding: 0;
  text-align: center;
  min-width: 0;
}
.sub-item img {
  height: 58px;
  object-fit: cover;
  background: #eee;
}
.sub-item b {
  display: block;
  color: #e83229;
  font-size: 13px;
  margin-top: 3px;
}
.feed-head {
  height: 45px;
  background: #fff;
  margin-top: 8px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-head b {
  font-size: 17px;
}
.feed-head span {
  font-size: 11px;
  color: #aaa;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  color: #999;
  background: #fff;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 0 5px 5px;
}
.load-more {
  padding: 14px 10px 88px;
  text-align: center;
  color: #999;
  font-size: 12px;
}
.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff2e6, #fff8f3);
  border: 1px solid #ffd9bf;
}
.benefit-card > strong {
  color: var(--red);
  font-size: 28px;
}
.benefit-card p {
  margin: 4px 0 0;
  color: #888;
  font-size: 12px;
}
.benefit-card button {
  border: 0;
  border-radius: 18px;
  padding: 9px 13px;
  background: var(--red);
  color: #fff;
}
.benefit-card button:disabled {
  background: #bbb;
}
.mini-products button {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 10px 0;
  text-align: left;
}
.mini-products img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.mini-products b,
.mini-products em {
  display: block;
}
.mini-products em {
  margin-top: 8px;
  color: var(--red);
  font-style: normal;
}
.card {
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.pic {
  aspect-ratio: 1/1.03;
  position: relative;
  background: #eee;
  overflow: hidden;
}
.pic img {
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  left: 7px;
  top: 7px;
  background: #e52b20e8;
  color: #fff;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 10px;
}
.heart {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: #ffffffdf;
  color: #999;
  font-size: 17px;
}
.heart.on {
  color: var(--red);
}
.info {
  padding: 8px;
}
.name {
  height: 39px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promos {
  display: flex;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 10px;
}
.promo {
  color: var(--red);
}
.guard {
  color: var(--green);
}
.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.price {
  color: var(--red);
}
.price small {
  font-size: 10px;
}
.price strong {
  font-size: 20px;
}
.sold {
  font-size: 10px;
  color: #aaa;
}
.add {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff0ef;
  color: var(--red);
  font-size: 20px;
  line-height: 24px;
}
.bottom {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(64px + var(--safe));
  padding-bottom: var(--safe);
  background: #fff;
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom button {
  border: 0;
  background: #fff;
  color: #666;
  font-size: 10px;
  position: relative;
}
.bottom span {
  display: block;
  height: 27px;
  font-size: 22px;
  line-height: 25px;
}
.bottom .active {
  color: var(--red);
}
.nav-dot {
  display: none;
  position: absolute;
  top: 3px;
  left: 56%;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
  font-size: 9px;
  line-height: 13px;
  padding: 0 3px;
}
.overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: #0007;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open {
  display: flex;
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: auto;
  padding-bottom: calc(16px + var(--safe));
  animation: up 0.2s ease;
}
.sheet-head {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.sheet-head b {
  font-size: 18px;
}
.close {
  margin-left: auto;
  border: 0;
  background: #f3f3f3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 19px;
}
.sheet-body {
  padding: 16px;
}
.auth-tabs {
  display: flex;
  margin-bottom: 17px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: #fff;
  padding: 10px;
  border-bottom: 2px solid #eee;
}
.auth-tabs button.active {
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  color: #777;
  margin: 0 0 5px;
}
.field input,
.field select,
.country-select {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: #fff;
}
.field input:focus,
.field select:focus,
.country-select:focus {
  border-color: var(--red);
}
.phone-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 7px;
}
.country-select {
  padding: 0 7px;
  font-size: 12px;
}
.submit {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.hint {
  font-size: 11px;
  color: #999;
  margin-top: 10px;
}
.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}
.cart-line img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
}
.cart-line b {
  font-size: 13px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.qty button {
  width: 25px;
  height: 25px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
}
.remove {
  border: 0;
  background: #fff;
  color: #999;
  font-size: 12px;
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.cart-total strong {
  font-size: 21px;
  color: var(--red);
}
.checkout {
  border: 0;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  padding: 11px 24px;
  font-weight: 700;
}
.detail-img {
  height: 300px;
  object-fit: cover;
}
.detail-info {
  padding: 16px;
}
.detail-info h2 {
  font-size: 19px;
  margin: 8px 0;
}
.detail-points {
  margin: 14px 0;
  padding: 12px 12px 12px 30px;
  border-radius: 10px;
  background: #f8f8f8;
  color: #666;
}
.detail-points li + li {
  margin-top: 6px;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 9px;
  margin-top: 17px;
}
.detail-actions button {
  height: 44px;
  border-radius: 22px;
}
.detail-actions .fav {
  border: 1px solid #ddd;
  background: #fff;
}
.detail-actions .buy {
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.profile-card {
  background: linear-gradient(135deg, #ef3b30, #d9231a);
  color: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}
.profile-card h3 {
  margin: 0 0 5px;
}
.menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.menu button {
  border: 0;
  background: #f7f7f7;
  border-radius: 9px;
  padding: 12px 4px;
}
.menu i {
  display: block;
  font-style: normal;
  font-size: 23px;
}
.logout {
  margin-top: 18px;
  width: 100%;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #777;
}
.message {
  padding: 13px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
}
.message i {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #fff0ef;
  display: grid;
  place-items: center;
  font-style: normal;
}
.message b {
  display: block;
}
.message small {
  color: #999;
}
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 82px;
  transform: translate(-50%, 15px);
  background: #222e;
  color: #fff;
  padding: 9px 17px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.account-page {
  position: fixed;
  z-index: 75;
  inset: 0;
  left: 50%;
  width: 100%;
  max-width: 520px;
  transform: translateX(-50%);
  overflow-y: auto;
  background: var(--bg);
  padding-bottom: calc(24px + var(--safe));
}
.account-head {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 54px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.account-head button {
  border: 0;
  background: transparent;
  font-size: 25px;
}
.account-head b {
  font-size: 17px;
}
.account-body {
  padding: 14px;
}
.account-page .profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.account-page .profile-card strong {
  font-size: 24px;
}
.account-section {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
}
.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.account-section-title button,
.address-card button {
  border: 0;
  background: transparent;
  color: var(--red);
}
.account-orders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.account-orders button,
.service-list button {
  border: 0;
  border-radius: 10px;
  background: #f7f7f7;
  padding: 13px 4px;
}
.account-orders i,
.service-list i {
  display: block;
  margin-bottom: 6px;
  font-size: 23px;
  font-style: normal;
}
.address-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: start;
}
.address-card > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ef;
  font-style: normal;
}
.address-card p {
  margin: 5px 0 0;
  color: #777;
  line-height: 1.45;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.address-form {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px #00000008;
}
.address-form .field {
  margin: 0;
}
.address-form .field label {
  margin-bottom: 7px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}
.address-form .field input,
.address-form .field select {
  height: 48px;
  border-color: #d9d9d9;
  border-radius: 10px;
  font-size: 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.address-form .field input:focus,
.address-form .field select:focus,
.address-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #ef30251a;
  outline: 0;
}
.address-form .phone-row {
  grid-template-columns: 96px 1fr;
  gap: 9px;
}
.address-form #addressDial {
  background: #f6f6f6;
  color: #555;
  text-align: center;
  font-weight: 700;
}
.address-form textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.address-form > .submit {
  position: sticky;
  bottom: 12px;
  z-index: 1;
  height: 50px;
  margin-top: 3px;
  border-radius: 25px;
  box-shadow: 0 7px 18px #ef302540;
  font-size: 15px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkout-address {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
}
.checkout-items {
  display: grid;
  gap: 10px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
}
.checkout-item img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}
.checkout-item small {
  color: #999;
}
.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.checkout-summary strong {
  color: var(--red);
  font-size: 22px;
}
.place-order {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 23px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.order-tabs {
  position: sticky;
  z-index: 1;
  top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -14px -14px 13px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.order-tabs button {
  position: relative;
  border: 0;
  background: #fff;
  padding: 14px 2px 12px;
  color: #666;
  white-space: nowrap;
}
.order-tabs button.active {
  color: var(--red);
  font-weight: 700;
}
.order-tabs button.active:after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.order-tabs small {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  place-items: center;
  border-radius: 9px;
  background: #f2f2f2;
  font-size: 10px;
}
.order-card {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px #00000008;
}
.order-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f4f4f4;
}
.order-card header b,
.order-card header small {
  display: block;
}
.order-card header small {
  margin-top: 4px;
  color: #aaa;
}
.order-card header > span {
  color: var(--red);
  font-weight: 700;
}
.order-card header > span.status-completed {
  color: #1b9b4b;
}
.order-card header > span.status-canceled {
  color: #999;
}
.order-products {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
}
.order-product {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}
.order-product img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}
.order-product b,
.order-product small {
  display: block;
}
.order-product b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.order-product small {
  margin-top: 6px;
  color: #888;
}
.order-address {
  margin: 0 14px;
  padding: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-card footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
  color: #777;
}
.order-card footer strong {
  color: #222;
  font-size: 17px;
}
.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px 14px;
}
.order-actions button,
.confirm-order button {
  min-width: 82px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  color: #555;
}
.order-actions button.primary,
.confirm-order button.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.order-actions button.danger {
  border-color: #f2b7b3;
  color: var(--red);
}
.order-detail-status {
  display: grid;
  gap: 7px;
  padding: 22px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef3025, #ff6c45);
  color: #fff;
}
.order-detail-status span {
  font-size: 21px;
  font-weight: 800;
}
.order-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
}
.confirm-order {
  text-align: center;
}
.confirm-order p {
  margin: 5px 0 20px;
  font-size: 16px;
}
.confirm-order > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tracking-line {
  padding-left: 35px;
}
.tracking-line > div {
  position: relative;
  min-height: 62px;
  padding-left: 20px;
  border-left: 2px solid #ddd;
}
.tracking-line > div:last-child {
  border-left-color: transparent;
}
.tracking-line i {
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
}
.tracking-line .done i {
  background: var(--red);
}
.tracking-line b,
.tracking-line small {
  display: block;
}
.tracking-line small {
  margin-top: 5px;
  color: #999;
}
.message-center {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.message-center button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 17px 14px;
  text-align: left;
}
.message-center button:last-child {
  border-bottom: 0;
}
.message-center button > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0ef;
  font-size: 21px;
  font-style: normal;
}
.message-center button:nth-child(2) > i {
  background: #fff6df;
}
.message-center button:nth-child(3) > i {
  background: #eef5ff;
}
.message-center b,
.message-center small {
  display: block;
}
.message-center b {
  margin-bottom: 5px;
  font-size: 15px;
}
.message-center small {
  color: #999;
  line-height: 1.4;
}
.message-center em {
  color: #bbb;
  font-size: 24px;
  font-style: normal;
}
.notice-hero {
  padding: 25px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef3025, #ff6c45);
  color: #fff;
  text-align: center;
}
.notice-hero > i {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  font-style: normal;
}
.notice-hero b {
  font-size: 19px;
}
.notice-hero p {
  margin: 8px 0 0;
  opacity: 0.9;
}
.notice-list {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.notice-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
}
.notice-list article:last-child {
  border-bottom: 0;
}
.notice-list article > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ef;
  color: var(--red);
  font-style: normal;
}
.notice-list p {
  margin: 5px 0 0;
  color: #777;
  line-height: 1.5;
}
@keyframes up {
  from {
    transform: translateY(35px);
    opacity: 0.7;
  }
}
.promo-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(20, 13, 11, 0.68);
  backdrop-filter: blur(3px);
}
.promo-overlay.open {
  display: flex;
}
.promo-dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - 20px);
  overflow: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% -20%, #fff3a8 0 21%, transparent 48%),
    linear-gradient(180deg, #fff8ee, #fff 48%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  animation: promo-in 0.28s ease-out;
}
.promo-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #555;
  font-size: 24px;
}
.promo-wrap {
  padding: 18px 16px 16px;
  text-align: center;
}
.promo-wrap h2 {
  margin: 6px 34px 2px;
  color: #c6281e;
  font-size: 22px;
}
.promo-round {
  display: inline-flex;
  margin: 2px auto 4px;
  padding: 4px 10px;
  border-radius: 14px;
  background: #fff1d0;
  color: #a75b18;
  font-size: 11px;
  font-weight: 800;
}
.promo-lead {
  margin: 3px 0 7px;
  color: #94613d;
  font-size: 11px;
}
.promo-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 6px 0 7px;
}
.promo-showcase article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffd491;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(186, 73, 16, 0.1);
}
.promo-showcase img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  background: #f5f5f5;
}
.promo-showcase b {
  display: -webkit-box;
  min-height: 31px;
  overflow: hidden;
  padding: 4px;
  color: #9e2d20;
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.prize-wheel-shell {
  position: relative;
  --wheel-size: min(250px, calc(100vw - 70px));
  width: var(--wheel-size);
  height: var(--wheel-size);
  flex: 0 0 var(--wheel-size);
  --wheel-radius: min(76px, 20vw);
  margin: 6px auto 10px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffcf43, #ff7a19);
  box-shadow:
    0 10px 30px rgba(237, 57, 44, 0.24),
    inset 0 0 0 5px #fff4b9;
  contain: layout paint;
}
.prize-wheel-shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -3px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 28px solid #e62b20;
  filter: drop-shadow(0 2px 1px #fff);
}
.prize-wheel {
  position: absolute;
  inset: 10px;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: conic-gradient(
    #fff0c7 0 45deg,
    #ffe076 45deg 90deg,
    #fff0c7 90deg 135deg,
    #ffe076 135deg 180deg,
    #fff0c7 180deg 225deg,
    #ffe076 225deg 270deg,
    #fff0c7 270deg 315deg,
    #ffe076 315deg 360deg
  );
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.12, 0.72, 0.08, 1);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}
.wheel-prize {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  transform: translate(-50%, -50%) rotate(var(--a))
    translateY(calc(var(--wheel-radius) * -1)) rotate(calc(var(--a) * -1))
    rotate(var(--counter-rotation, 0deg));
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.12, 0.72, 0.08, 1);
}
.wheel-prize img {
  width: 53px;
  height: 53px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(84, 38, 8, 0.18);
}
.wheel-prize-special {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 3px solid #fff;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff4c9, #ffc74e);
  box-shadow: 0 3px 8px rgba(84, 38, 8, 0.18);
  font-size: 27px;
}
.wheel-prize b {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #7d341d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wheel-prize.selected img,
.wheel-prize.selected .wheel-prize-special {
  border-color: #ff2f22;
  box-shadow:
    0 0 0 4px #fff6a9,
    0 0 18px rgba(239, 48, 37, 0.75);
  transform: scale(1.08);
}
.wheel-prize.selected b {
  color: #d51e17;
  font-weight: 900;
}
.wheel-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 5px solid #fff6c7;
  border-radius: 50%;
  background: linear-gradient(#ff543e, #e72419);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  pointer-events: none;
}
.promo-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}
.promo-progress span {
  width: 30px;
  height: 6px;
  border-radius: 9px;
  background: #eadfdc;
}
.promo-progress span.done,
.promo-progress span.current {
  background: #ef3025;
}
.promo-action {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(90deg, #ef3025, #ff6b24);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(239, 48, 37, 0.25);
}
.promo-action:disabled {
  opacity: 0.65;
}
.promo-result-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 9px;
}
.promo-result-actions > button:first-child {
  height: 48px;
  border: 2px solid #ef3025;
  border-radius: 24px;
  background: #fff;
  color: #ef3025;
  font-size: 14px;
  font-weight: 800;
}
.promo-result-card {
  margin: 15px 0;
  padding: 18px;
  border: 1px solid #ffe0a3;
  border-radius: 18px;
  background: #fffaf0;
}
.promo-result-card img {
  width: min(220px, 78%);
  height: 150px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(134, 54, 19, 0.16);
}
.promo-result-card strong {
  display: block;
  margin-top: 8px;
  color: #e62b20;
  font-size: 20px;
}
.promo-result-card > span {
  display: block;
  margin-top: 5px;
  color: #75584a;
  font-size: 13px;
  line-height: 1.45;
}
.promo-small-result {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fff5bd, #fffaf0 62%);
}
.promo-result-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff4d7, #ffd476);
  box-shadow: 0 9px 22px rgba(180, 87, 14, 0.16);
  font-size: 50px;
}
.promo-final-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.promo-final-products article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffe0a3;
  border-radius: 13px;
  background: #fffaf0;
}
.promo-final-products article:only-child {
  width: min(230px, 100%);
  grid-column: 1 / -1;
  justify-self: center;
}
.promo-final-products img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}
.promo-final-products b {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  padding: 6px;
  color: #b52a20;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.referral-card {
  padding: 22px 16px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.referral-gift {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 22px;
  background: #fff1e4;
  font-size: 36px;
}
.referral-card h2 {
  margin: 8px 0;
  font-size: 21px;
}
.referral-card > p {
  margin: 0 auto 18px;
  color: #777;
  line-height: 1.55;
}
.claim-prizes {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff8ec;
  text-align: left;
}
.claim-prizes > b {
  display: block;
  margin-bottom: 9px;
  color: #c92b20;
  font-size: 13px;
}
.claim-prizes > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.claim-prizes article {
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}
.claim-prizes img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.claim-prizes span {
  display: block;
  overflow: hidden;
  padding: 6px;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.referral-progress > span {
  display: block;
  margin-bottom: 8px;
  color: #777;
}
.referral-visits {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #f4f6f8;
  color: #666;
  font-size: 12px;
}
.referral-progress > span b {
  color: var(--red);
  font-size: 28px;
}
.referral-progress > div {
  height: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #f0eceb;
}
.referral-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a22, #ef3025);
}
.invite-link {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f7f7;
}
.share-copy-preview {
  margin: 16px 0 8px;
  padding: 12px;
  border: 1px solid #ffd9bf;
  border-radius: 12px;
  background: #fff9f3;
  color: #6b5144;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.invite-link span {
  overflow: hidden;
  color: #777;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-link > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.invite-link button,
.referral-actions button {
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
}
.invite-link button.share {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.referral-status {
  margin: 14px 0 !important;
  padding: 10px;
  border-radius: 10px;
  background: #fff7e8;
  color: #a76700 !important;
  font-size: 13px;
}
.referral-status.ready {
  background: #ebfaef;
  color: #16823b !important;
}
.referral-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.referral-actions button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.referral-actions button:disabled {
  opacity: 0.45;
}
@keyframes promo-in {
  from {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
  }
}
@media (max-width: 360px) {
  .lottery-banner {
    grid-template-columns: 52px 1fr auto;
    gap: 9px;
    padding: 12px 10px;
  }
  .lottery-icon {
    width: 52px;
    height: 52px;
    font-size: 29px;
  }
  .lottery-text b {
    font-size: 15px;
  }
  .lottery-banner > button {
    min-width: 62px;
    padding: 0 8px;
    font-size: 11px;
  }
  .phone-row {
    grid-template-columns: 125px 1fr;
  }
  .address-form .phone-row {
    grid-template-columns: 86px 1fr;
  }
  .address-form {
    padding: 13px;
  }
  .prize-wheel-shell {
    --wheel-size: min(242px, calc(100vw - 58px));
  }
  .wheel-prize {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-74px)
      rotate(calc(var(--a) * -1));
  }
}
@media (min-width: 521px) {
  body {
    padding-top: 15px;
  }
  .app {
    border-radius: 18px 18px 0 0;
  }
  .header {
    border-radius: 18px 18px 0 0;
  }
}
