:root {
  --mint: #b8ffcf;
  --green: #69ef8a;
  --teal: #4fd7c8;
  --cream: #fffced;
  --yellow: #fff05a;
  --purple: #8f6bff;
  --pink: #ff6fa3;
  --ink: #101318;
  --muted: #6b7280;
  --line: rgba(16, 19, 24, 0.08);
  --shadow: 0 18px 45px rgba(30, 80, 70, 0.16);
  --phone-width: min(390px, calc((100vh - 56px) * 0.4803));
  --phone-height: min(812px, calc(100vh - 56px));
  --tabbar-space: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(105, 239, 138, 0.4), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(143, 107, 255, 0.25), transparent 26%),
    #202124;
  overflow: hidden;
}

button {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 12px;
}

.phone {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 16% 10%, rgba(122, 255, 164, 0.45), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(172, 150, 255, 0.28), transparent 28%),
    linear-gradient(112deg, #cfffdb 0%, #e8fff2 34%, #f7f6ff 78%, #ffffff 100%),
    #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.phone:has(.goods-screen.is-active) {
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 255, 166, 0.58), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(168, 151, 255, 0.28), transparent 30%),
    linear-gradient(118deg, #b9ffd0 0%, #d9fff0 38%, #f2f1ff 76%, #ffffff 100%),
    #f4fff7;
}

.phone:has(.goods-screen.is-active)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 290px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 255, 166, 0.62), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(168, 151, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(185, 255, 208, 0.92) 0%, rgba(217, 255, 240, 0.72) 48%, rgba(242, 241, 255, 0.34) 78%, rgba(255, 255, 255, 0) 100%);
}

.phone:has(.goods-screen.is-active) .status-bar,
.phone:has(.goods-screen.is-active) .screen {
  position: relative;
  z-index: 1;
}

.status-bar {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-weight: 800;
  font-size: 14px;
}

.screen {
  display: none;
  height: calc(100% - 44px - var(--tabbar-space));
  overflow-y: auto;
  padding: 8px 22px 26px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  display: block;
}

.home-hero,
.page-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.tools-header {
  position: relative;
  padding: 0 0 2px;
  margin-top: -4px;
}

.tools-header::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 5px;
  width: 74px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 240, 90, 0.95) 0 8px, transparent 9px),
    radial-gradient(circle at 67% 60%, rgba(143, 107, 255, 0.6) 0 10px, transparent 11px),
    linear-gradient(135deg, rgba(184, 255, 207, 0.72), rgba(182, 255, 241, 0.38));
  filter: blur(0.2px);
  opacity: 0.9;
  pointer-events: none;
}

.tools-header h1 {
  margin-top: 0;
  font-size: 34px;
}

.tools-header p:last-child {
  max-width: none;
  margin-top: 5px;
  color: #4d6359;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(255, 111, 163, 0.14);
}

.brand-lockup {
  min-width: 168px;
}

.home-hero h1 {
  margin-top: 0;
  color: #08251b;
  font-family: "PingFang SC", "Arial Rounded MT Bold", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.5px;
  transform: skew(-4deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: transparent;
}

.home-icon-button img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(30, 80, 70, 0.1);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.detail-screen .page-header h1 {
  max-width: 250px;
  font-size: 28px;
  line-height: 1.08;
}

.eyebrow {
  margin-top: 8px;
  color: #109765;
  font-weight: 800;
  font-size: 13px;
}

.share-pill,
.bubble,
.mini-button {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #24312c;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.home-banner-carousel {
  position: relative;
  margin-top: 20px;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 26px;
}

.home-banner-track {
  position: relative;
  width: 100%;
  height: 150px;
}

.main-banner {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  text-align: left;
  color: #0b392f;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 240, 90, 0.9), transparent 18%),
    linear-gradient(135deg, #82f6a2, #c8fff5 58%, #fff7bf);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
  pointer-events: none;
}

.main-banner.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.main-banner img,
.deal-card img,
.service-logo img,
.sku-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-slide img {
  object-fit: fill;
  transform: scale(1.025);
  transform-origin: center;
}

.home-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.home-banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 4px rgba(16, 19, 24, 0.16);
}

.home-banner-dots .is-current {
  width: 18px;
  background: #fff05a;
}

.banner-label,
.soft-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0a6b48;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  font-size: 12px;
}

.section {
  margin-top: 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 20px;
}

.section-title span,
.section-more {
  color: var(--muted);
  font-size: 13px;
}

.section-more {
  padding: 4px 0;
  background: transparent;
  font-weight: 800;
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.deal-card {
  aspect-ratio: 1391 / 1131;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow);
}

.deal-card img {
  object-fit: fill;
  transform: scale(1.035);
  transform-origin: center;
}

.meituan {
  background:
    linear-gradient(145deg, #fff372, #b8ff5c);
}

.taobao {
  background:
    linear-gradient(145deg, #9b7cff, #f3eaff);
  color: #fff;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 88px;
  padding: 11px 4px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  color: #2e3b36;
  box-shadow: 0 10px 20px rgba(30, 80, 70, 0.08);
}

.service-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  overflow: hidden;
  color: #163429;
  font-size: 19px;
  font-weight: 900;
  background: linear-gradient(145deg, #fff, #b8ffcf);
}

.service-logo.movie {
  background: linear-gradient(145deg, #fff, #dcefff);
}

.service-logo.travel {
  background: linear-gradient(145deg, #fff, #fff279);
}

.service-logo.member {
  background: linear-gradient(145deg, #fff, #efe8ff);
}

.service-item strong {
  max-width: 100%;
  overflow: hidden;
  color: #2e3b36;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.wool-card h2 {
  margin-top: 8px;
  font-size: 20px;
}

.wool-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sku-section {
  padding-bottom: 4px;
}

.sku-row {
  margin: 0 -22px;
  overflow: hidden;
  padding: 0 0 8px;
}

.sku-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 22px;
  animation: sku-marquee 18s linear infinite;
}

.sku-row:hover .sku-track {
  animation-play-state: paused;
}

.sku-card {
  flex: 0 0 124px;
  padding: 11px;
  border-radius: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 24px rgba(30, 80, 70, 0.1);
}

.sku-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  color: #173027;
  background: linear-gradient(145deg, #fff279, #b8ff5c);
  font-weight: 900;
  font-size: 18px;
}

.sku-cover.blue {
  background: linear-gradient(145deg, #b6fff1, #dcefff);
}

.sku-cover.pink {
  background: linear-gradient(145deg, #ffd9e8, #ff8ab8);
}

.sku-cover.purple {
  background: linear-gradient(145deg, #efe8ff, #a58bff);
}

.sku-card strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.25;
}

.sku-card em {
  display: block;
  margin-top: 8px;
  color: #101318;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

@keyframes sku-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% + 22px));
  }
}

.ghost-button,
.primary-button {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-carousel {
  margin-top: 14px;
  position: relative;
  width: 100%;
  height: 156px;
  overflow: hidden;
  border-radius: 20px;
}

.tool-carousel-track {
  position: relative;
  width: 100%;
  height: 156px;
}

.asset-module {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 156px;
  background: transparent;
  text-align: left;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
  pointer-events: none;
}

.asset-module.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.asset-module img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.tool-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.tool-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.2);
}

.tool-carousel-dots .is-current {
  width: 16px;
  background: rgba(17, 19, 24, 0.7);
}

.tool-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tool-card {
  width: 167px;
  height: 164px;
  min-height: 164px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  box-shadow: none;
  overflow: hidden;
}

.tool-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.calorie {
  background: transparent;
}

.food {
  background: transparent;
}

.bomb {
  background: transparent;
}

.dice {
  background: transparent;
}

.wool-card {
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.wool-card > img {
  display: block;
  width: 100%;
  height: auto;
}

.coupons-screen {
  overflow-x: hidden;
  padding: 0 0 96px;
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 255, 166, 0.48), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(168, 151, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #eafff2 0%, #f3fff5 38%, #fffdf4 100%);
}

.coupon-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px 6px;
  background: transparent;
  backdrop-filter: blur(14px);
}

.coupon-topbar h1 {
  display: none;
  margin: 0;
  text-align: center;
  color: #101318;
  font-size: 22px;
  line-height: 1;
}

.coupon-back,
.coupon-more {
  min-width: 0;
  justify-self: start;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(16, 19, 24, 0.76);
  font-size: 28px;
  font-weight: 900;
}

.coupon-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  line-height: 1;
}

.coupon-more {
  display: none;
  justify-self: end;
  width: 48px;
  color: #101318;
  letter-spacing: 2px;
}

.coupon-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: -1px 0 0;
  align-items: start;
}

.coupon-side-nav {
  position: sticky;
  top: 54px;
  display: grid;
  gap: 0;
  max-height: calc(812px - 154px);
  overflow-y: auto;
  padding: 11px 0 18px;
  background:
    linear-gradient(180deg, rgba(205, 255, 219, 0.68), rgba(232, 255, 240, 0.72) 46%, rgba(255, 252, 236, 0.72));
  scrollbar-width: none;
}

.coupon-side-nav::-webkit-scrollbar {
  display: none;
}

.coupon-side-nav button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 78px;
  padding: 8px 5px;
  border-radius: 0;
  background: transparent;
  color: #9a9f9d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.coupon-side-nav span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: #7b8b84;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(16, 19, 24, 0.04);
}

.coupon-side-nav .is-current {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0));
  color: #10251c;
  box-shadow: none;
}

.coupon-side-nav .is-current span {
  background: linear-gradient(145deg, var(--yellow), #b8ffcf);
  color: #10251c;
  box-shadow: 0 10px 20px rgba(80, 210, 110, 0.2);
}

.coupon-content {
  min-width: 0;
  display: grid;
  gap: 28px;
  padding: 12px 12px 24px 0;
  background: transparent;
}

.coupon-section {
  min-width: 0;
  width: 100%;
  scroll-margin-top: 74px;
}

.coupon-section h2 {
  margin: 0 0 14px;
  text-align: center;
  color: #363938;
  font-size: 24px;
  font-weight: 800;
}

.coupon-section h2::before,
.coupon-section h2::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 9px 7px;
  background: rgba(16, 19, 24, 0.28);
}

.coupon-feature-grid,
.coupon-hanger-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coupon-hanger-grid {
  padding-top: 8px;
}

.coupon-takeout-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.coupon-takeout-stack .coupon-art-card {
  min-height: 88px;
}

.coupon-feature,
.coupon-wide,
.coupon-art-card,
.coupon-mini,
.movie-ticket {
  min-width: 0;
  text-align: left;
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.08);
}

.coupon-feature {
  position: relative;
  height: 174px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.coupon-feature::before {
  content: none;
  position: absolute;
  top: -13px;
  right: 18px;
  left: 18px;
  height: 24px;
  border: 2px solid #101318;
  border-radius: 999px;
  background: #ffe865;
  box-shadow: 0 4px 0 rgba(16, 19, 24, 0.12);
  pointer-events: none;
}

.coupon-feature img,
.coupon-wide img,
.coupon-art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.coupon-feature img {
  object-fit: cover;
}

.coupon-mini-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.coupon-mini {
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 240, 90, 0.45), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 255, 241, 0.86));
}

.coupon-art-card {
  min-height: 104px;
  padding: 0;
  border: 1.5px solid #101318;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.coupon-mini em {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.08);
  color: rgba(16, 19, 24, 0.64);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.coupon-mini strong {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.2;
}

.coupon-mini span {
  display: block;
  margin-top: 8px;
  color: rgba(16, 19, 24, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.coupon-mini.grocery {
  background: linear-gradient(145deg, #fff9d9, #eaffb8);
}

.coupon-mini.express {
  background: linear-gradient(145deg, #fff0f6, #eaf7ff);
}

.coupon-wide {
  width: 100%;
  height: 132px;
  padding: 0;
  border: 1.5px solid #101318;
  border-radius: 16px;
  overflow: hidden;
}

.movie-promo {
  margin-bottom: 10px;
}

.movie-ticket {
  flex: 0 0 104px;
  min-height: 132px;
  padding: 0;
  border: 1.5px solid #101318;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.movie-ticket img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.category-strip {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-strip button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #3a4742;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30, 80, 70, 0.07);
}

.category-strip img {
  width: 24px;
  height: 24px;
}

.category-strip .is-current {
  background: var(--green);
}

.coupon-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.coupon-card {
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.coupon-card.hot {
  background: linear-gradient(135deg, #fffde5, #eaffb8);
}

.platform {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfff1;
  color: #0a8f5d;
  font-size: 12px;
  font-weight: 900;
}

.coupon-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.22;
}

.coupon-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coupon-card em {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.goods-screen {
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0 198px, rgba(255, 255, 255, 0.18) 285px, rgba(255, 255, 255, 0) 430px);
}

.goods-header {
  margin: -8px -22px 0;
  padding: 16px 22px 2px;
  background: transparent;
}

.goods-header h1 {
  font-size: 34px;
}

.goods-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(30, 80, 70, 0.06);
}

.goods-search span {
  color: #a8b1ad;
  font-size: 22px;
  line-height: 1;
}

.goods-search strong {
  color: #a8b1ad;
  font-size: 15px;
  font-weight: 800;
}

.goods-search em {
  color: #c75c72;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.goods-catalog {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
  align-items: start;
}

.goods-side-nav {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.goods-side-nav button {
  position: relative;
  min-height: 26px;
  text-align: left;
  background: transparent;
  color: #7a827f;
  font-size: 14px;
  font-weight: 800;
}

.goods-side-nav .is-current {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.goods-side-nav .is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  z-index: -1;
  width: 32px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 240, 90, 0.78);
  filter: blur(2px);
}

.goods-sku-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goods-sku-card {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 9px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.06);
  overflow: hidden;
}

.goods-sku-card span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff279, #b8ff5c);
  overflow: hidden;
}

.goods-sku-card span.blue {
  background: linear-gradient(145deg, #b6fff1, #dcefff);
}

.goods-sku-card span.pink {
  background: linear-gradient(145deg, #ffd9e8, #ff8ab8);
}

.goods-sku-card span.purple {
  background: linear-gradient(145deg, #efe8ff, #a58bff);
}

.goods-sku-card span.mint {
  background: linear-gradient(145deg, #e7fff1, #8ff3bd);
}

.goods-sku-card span.orange {
  background: linear-gradient(145deg, #ffe7c7, #ffb36b);
}

.goods-sku-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-sku-card strong {
  min-height: 32px;
  font-size: 14px;
  line-height: 1.18;
}

.goods-sku-card em {
  color: #0b392f;
  font-style: normal;
  font-size: 19px;
  font-weight: 950;
}

.mine-page-header {
  padding: 8px 2px 14px;
  text-align: center;
}

.mine-page-header h1 {
  font-size: 24px;
}

.mine-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(30, 80, 70, 0.08);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 80, 160, 0.12);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.mine-user {
  min-width: 0;
}

.mine-profile h1 {
  font-size: 24px;
}

.mine-profile p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.profile-arrow {
  margin-left: auto;
  color: #a8b1ad;
  font-size: 30px;
  line-height: 1;
}

.detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mine-service-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(30, 80, 70, 0.07);
}

.mine-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mine-section-title h2 {
  font-size: 17px;
}

.mine-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mine-service-grid button {
  min-width: 0;
  padding: 6px 4px 4px;
  border-radius: 16px;
  text-align: center;
  background: transparent;
}

.mine-service-grid i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 9px;
  border-radius: 14px;
  background: transparent;
  font-style: normal;
  overflow: hidden;
}

.mine-service-grid img,
.settings-list img {
  display: block;
  width: 100%;
  height: 100%;
}

.mine-service-grid span {
  display: block;
  color: #35413d;
  font-size: 12px;
  font-weight: 850;
}

.settings-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  padding: 4px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(30, 80, 70, 0.07);
  overflow: hidden;
}

.settings-list button {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 0;
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.settings-list button + button {
  border-top: 1px solid rgba(16, 19, 24, 0.06);
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.08);
}

.settings-list i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: transparent;
  font-style: normal;
  overflow: hidden;
}

.settings-list span {
  font-weight: 900;
}

.settings-list em {
  justify-self: end;
  max-width: 20px;
  text-align: right;
  color: #a8b1ad;
  font-style: normal;
  font-size: 22px;
  line-height: 1.25;
}

.meal-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.meal-switch button {
  padding: 11px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.meal-switch .is-current {
  background: var(--green);
}

.result-card,
.upload-card,
.dice-stage,
.wool-hero {
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #b8ffcf, #fffbd3);
  box-shadow: var(--shadow);
}

.detail-hero-img {
  display: block;
  width: 100%;
  max-height: 146px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 22px;
}

.wide-detail-img {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.result-card span,
.wool-hero span {
  color: #0a6b48;
  font-weight: 900;
}

.result-card h2,
.upload-card h2,
.dice-stage h2,
.wool-hero h2 {
  margin-top: 10px;
  font-size: 28px;
}

.result-card p,
.upload-card p,
.dice-stage p,
.wool-hero p,
.detail-note {
  margin-top: 8px;
  color: #365146;
  font-size: 14px;
  line-height: 1.45;
}

.result-card .primary-button,
.dice-stage .primary-button,
.upload-card .primary-button {
  margin-top: 18px;
}

.upload-card .action-row .primary-button,
.upload-card .action-row .ghost-button {
  margin-top: 18px;
}

.food-quick-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.food-quick-list button {
  min-width: 0;
  padding: 13px 10px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.08);
}

.food-quick-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.food-quick-list strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.2;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.nutrition-grid div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.08);
}

.nutrition-grid strong {
  display: block;
  font-size: 25px;
}

.nutrition-grid span {
  color: var(--muted);
  font-size: 13px;
}

.nutrition-grid.is-muted div {
  opacity: 0.45;
}

.bomb-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.bomb-board button {
  aspect-ratio: 1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  font-size: 26px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.bomb-board button:active {
  transform: scale(0.94);
}

.bomb-board .is-open {
  background: linear-gradient(145deg, #b8ffcf, #fff);
  color: #0a6b48;
}

.bomb-board .is-bomb {
  background: linear-gradient(145deg, #8d70ff, #efe8ff);
  color: #fff;
  transform: rotate(-4deg) scale(1.03);
}

.player-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 2px;
}

.player-strip span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #365146;
  font-size: 12px;
  font-weight: 900;
}

.dice-stage {
  text-align: center;
}

.dice-stage .detail-hero-img {
  max-height: 118px;
}

.wool-hero .detail-hero-img {
  max-height: 128px;
}

.dice-face {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto;
  border-radius: 30px;
  background: #fff;
  box-shadow: inset 0 -8px 0 rgba(16, 19, 24, 0.08);
  color: var(--purple);
  font-size: 58px;
  font-weight: 900;
  transition:
    transform 0.24s ease,
    color 0.24s ease;
}

.dice-face.is-rolling {
  transform: rotate(18deg) scale(1.08);
  color: var(--pink);
}

.dice-history {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(30, 80, 70, 0.08);
}

.dice-history span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dice-history div {
  display: flex;
  gap: 8px;
}

.dice-history em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--green);
  color: #0c2218;
  font-style: normal;
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-list strong {
  max-width: 190px;
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
}

.primary-button.full {
  width: 100%;
  margin-top: 16px;
}

.placeholder {
  display: none;
  place-content: center;
  text-align: center;
}

.placeholder.is-active {
  display: grid;
}

.placeholder p {
  margin-top: 10px;
  color: var(--muted);
}

.tabbar {
  position: absolute;
  left: 22px;
  right: 22px;
  width: auto;
  bottom: 18px;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(31, 65, 54, 0.16);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.tab {
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: #4b5752;
  font-size: 12px;
  font-weight: 900;
}

.tab.is-active {
  background: linear-gradient(145deg, #72f08f, #53df78);
  color: #0c2218;
  box-shadow: 0 8px 18px rgba(40, 190, 92, 0.22);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(16px);
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.88);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(8, 18, 14, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sheet-backdrop.is-show {
  opacity: 1;
  pointer-events: auto;
}

.quick-sheet {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 19;
  max-height: 72%;
  padding: 18px;
  border-radius: 28px 28px 24px 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 240, 90, 0.55), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 255, 250, 0.96));
  box-shadow: 0 -18px 44px rgba(31, 65, 54, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.76);
  transform: translateY(calc(100% + 26px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.24s ease,
    opacity 0.2s ease;
}

.quick-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.quick-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.quick-sheet-header span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(105, 239, 138, 0.22);
  color: #227a42;
  font-size: 11px;
  font-weight: 900;
}

.quick-sheet-header h2 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.1;
}

.sheet-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 19, 24, 0.08);
  color: #26342f;
  font-size: 22px;
  line-height: 30px;
}

.reminder-focus {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff05a, #b8ffcf);
  box-shadow: 0 12px 26px rgba(87, 163, 90, 0.18);
}

.reminder-focus span,
.reminder-focus p {
  font-size: 12px;
}

.reminder-focus span {
  display: inline-flex;
  margin-bottom: 7px;
  font-weight: 900;
  color: #8a4b00;
}

.reminder-focus strong {
  display: block;
  font-size: 18px;
}

.reminder-focus p {
  margin-top: 5px;
  color: #3f4d24;
  line-height: 1.45;
}

.sheet-list,
.message-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sheet-list-item,
.message-item {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 19, 24, 0.06);
  text-align: left;
}

.sheet-list-item span,
.message-item strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.sheet-list-item strong,
.message-item em {
  display: block;
  margin-top: 4px;
  color: #6b756f;
  font-size: 12px;
  font-style: normal;
}

.sheet-list-item em {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.08);
  color: #65706b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.sheet-list-item.is-on em {
  background: #69ef8a;
  color: #0c3520;
}

.message-item {
  justify-content: flex-start;
}

.message-item i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff05a;
  color: #223128;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.message-item span {
  min-width: 0;
}

.message-item.is-unread {
  background: rgba(184, 255, 207, 0.42);
}

.message-item.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  vertical-align: 2px;
  background: #ff6fa3;
}

@media (max-width: 430px) {
  :root {
    --phone-width: 100vw;
    --phone-height: 100svh;
    --tabbar-space: calc(76px + env(safe-area-inset-bottom));
  }

  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(122, 255, 164, 0.5), transparent 40%),
      linear-gradient(112deg, #cfffdb 0%, #e8fff2 42%, #f7f6ff 100%);
  }

  .stage {
    padding: 0;
  }

  .phone {
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    height: calc(44px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 24px 0;
  }

  .screen {
    height: calc(100% - 44px - env(safe-area-inset-top) - var(--tabbar-space));
    padding: 8px 18px 26px;
  }

  .tabbar {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .quick-sheet {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: calc(100svh - 76px - env(safe-area-inset-top));
    overflow-y: auto;
  }
}

@media (min-width: 431px) and (max-height: 760px) {
  .phone {
    border-radius: 30px;
  }

  .status-bar {
    height: 38px;
    padding: 0 24px;
    font-size: 13px;
  }

  .screen {
    height: calc(100% - 38px - var(--tabbar-space));
    padding: 6px 18px 22px;
  }

  .tabbar {
    bottom: 14px;
    height: 54px;
  }
}
