:root {
  --app-scale: 1;
  --app-height: 100dvh;
  --app-left: 0px;
  --red: #f01b3f;
  --red-deep: #a51f2f;
  --ink: #333333;
  --master: #666666;
  --secondary: #999999;
  --disabled: #bfbfbf;
  --line: #e8e5e2;
  --paper: #ffffff;
  --canvas: #f7f6f4;
  --gold: #a5762b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  background: #e9e7e4;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  display: grid;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #e9e7e4;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  place-items: center;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  opacity: 0.72;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: absolute;
  top: 0;
  left: var(--app-left);
  width: 360px;
  height: var(--app-height);
  overflow: hidden;
  background: var(--canvas);
  transform: scale(var(--app-scale));
  transform-origin: top left;
}

.app-page {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--canvas);
}

.app-page.is-active {
  display: flex;
  flex-direction: column;
}

.page-scroll,
.inner-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-scroll::-webkit-scrollbar,
.inner-scroll::-webkit-scrollbar {
  display: none;
}

.home-scroll {
  padding-bottom: 60px;
  background: #f8f7f5;
}

.home-topbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 74px;
  padding: 21px 7px 8px;
  background: #ffffff;
}

.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 0;
  color: #3c3835;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.category-button span {
  width: 20px;
  letter-spacing: 1px;
  text-indent: 0.5px;
  text-align: center;
}

.category-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.search-entry {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 32px;
  gap: calc(6px);
  padding: 0 10px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  text-align: left;
}

.search-entry svg {
  flex: 0 0 auto;
  width: calc(15px);
  height: calc(15px);
  stroke-width: 1.8;
}

.search-entry span {
  overflow: hidden;
  font-size: calc(10px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-button {
  display: grid;
  width: calc(34px);
  height: calc(34px);
  color: #4a4541;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 calc(2px) calc(8px) rgba(49, 39, 30, 0.08);
  place-items: center;
}

.scan-button svg {
  width: calc(16px);
  height: calc(16px);
}

.hero-carousel {
  position: relative;
  width: calc(100% - 14px);
  height: auto;
  aspect-ratio: 750 / 316;
  margin: 2px 7px 0;
  overflow: hidden;
  background: #f0ebe4;
  border-radius: 0;
  box-shadow: none;
  touch-action: pan-y;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.48s cubic-bezier(0.22, 0.72, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: 57% 43%;
  height: 100%;
  overflow: hidden;
  text-align: left;
}

.hero-slide.hero-slide-media-only {
  display: block;
}

.hero-slide-media-only > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hero-slide-media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  order: 2;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-slide-copy {
  display: flex;
  flex-direction: column;
  order: 1;
  justify-content: flex-start;
  min-width: 0;
  padding: 20px 8px 12px 18px;
}

.hero-slide-copy small {
  color: rgba(66, 48, 38, 0.58);
  font-size: 8px;
  letter-spacing: calc(0.8px);
}

.hero-slide-copy strong {
  margin-top: 4px;
  color: #3f322b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
}

.hero-slide-copy em {
  margin-top: 6px;
  color: #943638;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: normal;
}

.hero-slide-copy i {
  margin-top: 4px;
  color: rgba(73, 59, 50, 0.48);
  font-size: 7px;
  font-style: normal;
  line-height: 1.45;
}

.hero-slide-copy i b {
  display: block;
  margin-bottom: 2px;
  color: rgba(73, 59, 50, 0.58);
  font-size: 8px;
  font-weight: 600;
}

.hero-slide.tone-warm {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(135deg, #f4eee6, #eaded0);
}

.hero-slide.tone-sage {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.68), transparent 30%),
    linear-gradient(135deg, #eef2ea, #d8e4d6);
}

.hero-slide.tone-rose {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(135deg, #efdfd9, #d7b5aa);
}

.hero-progress {
  position: absolute;
  right: auto;
  bottom: calc(10px);
  left: 50%;
  width: 64px;
  height: 3px;
  overflow: hidden;
  background: rgba(191, 191, 191, 0.55);
  border-radius: 99px;
  transform: translateX(-50%);
}

.hero-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #ffffff;
  border-radius: inherit;
  transition: width 0.35s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  margin: 0 7px;
  padding: calc(8px) calc(3px) calc(10px);
  background: #f8f7f5;
}

.quick-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.quick-nav img {
  width: auto;
  height: 24px;
  object-fit: contain;
}

.quick-nav span {
  overflow: hidden;
  max-width: 100%;
  color: #4f4741;
  font-size: calc(9px);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(8px);
  margin: 0 7px;
}

.market-grid button {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #f2efeb;
  border-radius: 0;
}

.market-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-main {
  min-height: 170px;
}

.market-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: calc(8px);
}

.grass-section {
  padding: 20px 12px 0;
}

.grass-title {
  color: #2f2a27;
  font-size: 20px;
  font-weight: 500;
}

.grass-banner {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
}

.grass-banner img {
  width: 100%;
  aspect-ratio: 702 / 388;
  object-fit: contain;
}

.content-section {
  padding: calc(20px) calc(12px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: calc(11px);
}

.section-head > div {
  display: flex;
  flex-direction: column;
}

.section-head small {
  color: #a33135;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(7px);
  letter-spacing: calc(1.2px);
}

.section-head h2 {
  margin: calc(1px) 0 0;
  color: #2f2a27;
  font-size: calc(20px);
  font-weight: 500;
}

.section-head button {
  display: flex;
  align-items: center;
  gap: calc(1px);
  padding-bottom: calc(2px);
  color: #99918b;
  font-size: calc(8px);
}

.section-head button svg {
  width: calc(11px);
  height: calc(11px);
}

.horizontal-grid {
  display: flex;
  gap: calc(8px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-grid::-webkit-scrollbar {
  display: none;
}

.video-card,
.product-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid #eee9e3;
  border-radius: 4px;
  text-align: left;
}

.video-card {
  flex: 0 0 47%;
  scroll-snap-align: start;
}

.health-selection .video-card {
  flex: 0 0 30%;
}

.health-selection {
  padding-top: 2px;
}

.health-selection .horizontal-grid {
  justify-content: center;
  gap: 2px;
  padding: 10px 0 15px;
  border-radius: 0;
  background: #6c0c0c;
}

.product-poster-section {
  padding: 8px 12px 0;
  background: #f8f7f5;
}

.poster-product-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-poster {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.product-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 702 / 388;
  object-fit: contain;
}

.video-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee7df;
}

.video-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35, 25, 19, 0.18), transparent 46%);
  content: "";
}

.video-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-art i {
  position: absolute;
  z-index: 2;
  right: calc(8px);
  bottom: calc(8px);
  display: grid;
  width: calc(29px);
  height: calc(29px);
  color: #ffffff;
  background: rgba(30, 25, 21, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  place-items: center;
  backdrop-filter: blur(5px);
}

.video-art i svg {
  width: calc(12px);
  height: calc(12px);
  fill: currentColor;
  stroke-width: 0;
}

.video-card > strong {
  display: block;
  margin: 4px 7px 0;
  overflow: hidden;
  color: #3d3733;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card > .product-price {
  display: block;
  margin: 0 7px 5px;
  color: #f01b3f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.video-card > small {
  display: block;
  margin: calc(2px) calc(9px) calc(10px);
  overflow: hidden;
  color: #91877f;
  font-size: calc(8px);
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-grid {
  display: flex;
  gap: calc(8px);
  overflow-x: auto;
  padding-bottom: calc(3px);
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.swipe-row {
  cursor: grab;
}

.swipe-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 44%;
  scroll-snap-align: start;
}

.product-grid.two-up .product-card {
  flex-basis: 48%;
}

.auxiliary-section .product-card strong {
  color: #999999;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
}

.auxiliary-section .section-head h2 {
  color: #f01b3f;
  margin-top: 0;
  font-size: 14px;
  line-height: 18px;
}

.auxiliary-section {
  margin: 0;
  padding: 20px 12px 0;
  background: transparent;
  border: 0;
}

.auxiliary-section .section-head {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  min-height: 40px;
  margin-bottom: 11px;
  padding: 4px 12px 14px;
  background: #fdf3f4;
  border: 1px solid #e11f3c;
  border-radius: 6px;
}

.auxiliary-section .section-head::after {
  position: absolute;
  right: auto;
  bottom: -1px;
  left: 50%;
  width: 44.35%;
  height: 4px;
  background: #e11f3c;
  content: "";
  transform: translateX(-50%);
}

.auxiliary-section .product-card .product-price,
.beauty-selection .product-card > span {
  color: #f01b3f;
  font-size: 15px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  line-height: 1.35;
}

.beauty-selection .product-card > span {
  margin: 0 7px 5px;
}

.beauty-selection {
  padding-top: 0;
}

.beauty-selection .horizontal-grid {
  justify-content: center;
  gap: 4px;
  padding: 10px 0 15px;
  border-radius: 0;
  background: #cc9c64;
}

.beauty-selection .product-card {
  flex: 0 0 30%;
}

.beauty-selection .product-card strong {
  display: block;
  height: auto;
  margin: 4px 7px 0;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}

.beauty-selection .product-card img {
  aspect-ratio: 1;
  object-fit: contain;
}

.auxiliary-section .product-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
  background: #ffffff;
  border: 1px solid #e8e6e3;
  border-radius: 4px;
}

.auxiliary-section .product-card strong {
  height: auto;
  margin-top: 6px;
}

.auxiliary-section .product-card > .product-code {
  margin-top: 0;
  margin-bottom: 1px;
  font-size: 10px;
  line-height: 1.3;
}

.auxiliary-section .product-card > .aux-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin: 4px 9px 0;
}

.auxiliary-section .product-card .product-price {
  margin: 0;
  line-height: 26px;
}

.auxiliary-section .product-card .card-cart-icon {
  position: static;
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: transparent;
  background: transparent;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  margin: 0;
  place-items: center;
}

.card-cart-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.auxiliary-section .product-card img {
  aspect-ratio: 1;
}

.auxiliary-section .product-card .card-cart-icon > img {
  width: 26px;
  height: 26px;
  aspect-ratio: auto;
  object-fit: contain;
}

.product-card strong {
  display: -webkit-box;
  height: calc(35px);
  margin: calc(9px) calc(9px) 0;
  overflow: hidden;
  color: #3e3935;
  font-size: calc(9px);
  font-weight: 500;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card > span {
  display: block;
  margin: calc(4px) calc(9px) calc(10px);
  color: #a52c30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(14px);
}

.product-card > .product-code {
  display: block;
  margin: 2px 9px 0;
  color: #999999;
  font-size: 10px;
  line-height: 1.5;
}

.page-footer {
  padding: calc(32px) 0 calc(28px);
  color: #b3aaa2;
  font-family: "Songti SC", "STSong", serif;
  font-size: calc(8px);
  text-align: center;
}

.guest-home-content {
  display: none;
  padding-bottom: 60px;
  background: #f2f2f2;
}

.app-shell:not(.is-authenticated) .guest-home-content {
  display: block;
}

.app-shell:not(.is-authenticated) .home-page .quick-nav,
.app-shell:not(.is-authenticated) .home-page .market-grid,
.app-shell:not(.is-authenticated) .home-page .grass-section,
.app-shell:not(.is-authenticated) .home-page .health-selection,
.app-shell:not(.is-authenticated) .home-page .poster-product-group,
.app-shell:not(.is-authenticated) .home-page .auxiliary-section,
.app-shell:not(.is-authenticated) .home-page .page-footer {
  display: none;
}

.app-shell:not(.is-authenticated) .tabbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell:not(.is-authenticated) .tabbar [data-tab="performance"],
.app-shell:not(.is-authenticated) .tabbar [data-tab="message"] {
  display: none;
}

.app-shell:not(.is-authenticated) .home-page .guest-login-prompt {
  display: flex;
}

.guest-home-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 5px;
  padding: 8px 10px 9px;
  background: #ffffff;
}

.guest-home-channels button {
  display: block;
  min-width: 0;
  background: transparent;
  text-align: center;
}

.guest-home-channels img {
  width: 100%;
  aspect-ratio: 1000 / 1179;
  object-fit: cover;
}

.guest-home-campaign {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  overflow: hidden;
  background: #ffffff;
}

.guest-home-campaign img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.guest-home-grass {
  margin-top: 10px;
  padding: 13px 12px 12px;
  background: #ffffff;
}

.guest-home-grass header h2,
.guest-home-hot header h2 {
  margin: 0 0 10px;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
}

.guest-home-grass > button,
.guest-home-brand-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f2f2f2;
}

.guest-home-grass > button img,
.guest-home-brand-banner > img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.guest-home-brand {
  margin-top: 10px;
  padding-bottom: 7px;
  background: #ffffff;
}

.guest-home-brand-banner {
  position: relative;
}

.guest-home-brand-banner > span {
  display: none;
}

.guest-home-product-row {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 8px 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.guest-home-product-row::-webkit-scrollbar {
  display: none;
}

.guest-home-product {
  flex: 0 0 115px;
  width: 115px;
  min-width: 0;
  padding: 5px;
  background: #f8f8f8;
  text-align: left;
}

.guest-home-product > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ffffff;
}

.guest-home-product strong {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 6px;
  overflow: hidden;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guest-home-product > span {
  display: block;
  margin-top: 3px;
  color: #f01b3f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.guest-home-hot {
  margin-top: 10px;
  padding: 13px 6px 15px;
  background: #ffffff;
}

.guest-home-hot header {
  padding: 0 6px;
}

.guest-home-hot header small {
  margin-left: 7px;
  color: #666666;
  font-size: 14px;
  font-weight: 400;
}

.tabbar {
  z-index: 20;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(49px + env(safe-area-inset-bottom));
  padding: calc(4px) calc(5px) max(calc(3px), env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.985);
  border-top: 1px solid #e7e4e1;
  box-shadow: 0 calc(-5px) calc(18px) rgba(59, 43, 34, 0.035);
  backdrop-filter: blur(16px);
}

.tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: calc(1px);
  color: #7b736e;
  font-size: calc(11px);
}

.tabbar img {
  width: calc(25px);
  height: calc(25px);
  object-fit: contain;
}

.tabbar img.message-tab-icon {
  width: 34px;
  height: 24px;
  margin-top: -2px;
}

.tabbar img.inactive-icon {
  filter: grayscale(1) brightness(1.45) contrast(0.75);
  opacity: 0.77;
}

.tabbar .active {
  color: #3b3330;
  font-weight: 500;
}

.message-page {
  background: #f7f6f4;
}

.message-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 44px;
  align-items: end;
  height: 70px;
  padding: 0 15px 10px;
  background: #f7f6f4;
}

.message-header h1 {
  margin: 0;
  color: #222222;
  font-size: 24px;
  font-weight: 600;
}

.message-header button {
  display: grid;
  width: 38px;
  height: 38px;
  color: #4a4541;
  place-items: center;
}

.message-header svg {
  width: 24px;
  height: 24px;
}

.message-scroll {
  padding-bottom: 62px;
}

.message-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 10px 13px;
}

.message-categories button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.message-category {
  display: grid;
  width: 37px;
  height: 37px;
  color: #8b4f44;
  background: #fff0eb;
  border-radius: 10px;
  place-items: center;
}

.message-category.coupon {
  color: #a77726;
  background: #fff7e5;
}

.message-category.service {
  color: #8a5744;
  background: #f8ede7;
}

.message-category.wallet {
  color: #a56c2f;
  background: #fff5e6;
}

.message-category.after-sale {
  color: #656f88;
  background: #eef2fa;
}

.message-category.notice {
  color: #9b6664;
  background: #f8eeee;
}

.message-category svg {
  width: 21px;
  height: 21px;
}

.message-categories small {
  color: #44403d;
  font-size: 12px;
}

.message-list {
  background: #ffffff;
}

.message-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 9px 15px;
  border-bottom: 1px solid #f0eeeb;
  text-align: left;
}

.message-avatar {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: linear-gradient(145deg, #f0aa85, #c95e4f);
  border-radius: 13px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  place-items: center;
}

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

.message-avatar.ai-service {
  background: linear-gradient(145deg, #7fc7dd, #2c7ea8);
}

.message-avatar.ai-create {
  background: linear-gradient(145deg, #f6c777, #d58b2c);
}

.message-avatar.training {
  background: linear-gradient(145deg, #94bedf, #3f709c);
}

.message-avatar.life {
  background: linear-gradient(145deg, #efad91, #ba5c4f);
}

.message-avatar.ai-coach {
  background: linear-gradient(145deg, #9dd4cb, #4c9589);
}

.message-avatar.study {
  background: linear-gradient(145deg, #9dacd9, #536b9e);
}

.message-avatar strong {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: #f01b3f;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-family: sans-serif;
  font-size: 9px;
  font-weight: 500;
  place-items: center;
}

.message-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.message-content b {
  display: flex;
  align-items: center;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
}

.message-content em {
  margin-left: 4px;
  padding: 1px 4px;
  color: #a5762b;
  background: #fff1dc;
  border-radius: 3px;
  font-size: 9px;
  font-style: normal;
}

.message-content time {
  margin-left: auto;
  color: #a9a29c;
  font-size: 11px;
  font-weight: 400;
}

.message-content small {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #77716c;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Login page. Geometry is taken from the 2.0.7 login component. */
.login-page {
  background: #ffffff;
}

.simple-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: calc(44px) 1fr calc(58px);
  align-items: center;
  height: calc(44px);
  padding: 0 calc(8px);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
}

.simple-header > button:first-child {
  display: grid;
  width: calc(44px);
  height: calc(44px);
  color: rgba(0, 0, 0, 0.8);
  place-items: center;
}

.simple-header > button:first-child svg {
  width: calc(22px);
  height: calc(22px);
  stroke-width: 1.45;
}

.simple-header h1 {
  margin: 0;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.82);
  font-size: calc(18px);
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  justify-self: end;
  min-width: calc(44px);
  padding-right: calc(8px);
  color: #111111;
  font-size: calc(14px);
  white-space: nowrap;
}

.login-admin-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.login-header {
  height: 88px;
  padding-top: 44px;
  border-bottom: 0;
}

.login-header .text-button {
  font-weight: 500;
}

.login-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 0;
  scrollbar-width: none;
}

.login-body::-webkit-scrollbar {
  display: none;
}

.login-logo {
  width: calc(64px);
  height: calc(64px);
  margin: 0 auto;
  border-radius: calc(12px);
  object-fit: contain;
  image-rendering: auto;
}

.login-body h1 {
  margin: calc(16px) 0 0;
  color: #000000;
  font-size: calc(20px);
  font-weight: 500;
  line-height: calc(30px);
  text-align: center;
}

#login-form {
  padding: 0 calc(16px);
}

.field {
  position: relative;
  height: calc(48px);
  border-radius: calc(24px);
}

#login-form .field:first-of-type {
  margin-top: calc(37px);
}

#login-form .field + .field {
  margin-top: calc(7px);
}

.field input {
  width: 100%;
  height: 100%;
  padding: 0 calc(24px);
  color: #333333;
  background: #f5f5f5;
  border: 0;
  border-radius: calc(24px);
  outline: 0;
  font-size: calc(16px);
  font-weight: 400;
  letter-spacing: 0.01em;
  caret-color: var(--red);
}

.field input::placeholder {
  color: #bfbfbf;
  opacity: 1;
}

.field:focus-within input {
  box-shadow: 0 0 0 calc(1px) rgba(240, 27, 63, 0.24);
}

.field input[type="password"] {
  padding-right: calc(52px);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: calc(17px);
  display: grid;
  width: calc(30px);
  height: calc(30px);
  color: #8b8886;
  transform: translateY(-50%);
  place-items: center;
}

.password-toggle svg {
  width: calc(17px);
  height: calc(17px);
}

.agreement-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: calc(33px);
  margin-top: calc(31px);
  padding: 0 calc(4px);
}

.agreement-control {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: calc(13px);
  line-height: calc(21px);
}

.agreement-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  display: grid;
  flex: 0 0 auto;
  width: calc(17px);
  height: calc(17px);
  margin: calc(2px) calc(6px) 0 0;
  color: transparent;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
  place-items: center;
}

.custom-check svg {
  width: calc(11px);
  height: calc(11px);
  stroke-width: 2.5;
}

.agreement-control input:checked + .custom-check {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.agreement-row > button {
  flex: 0 0 auto;
  margin-top: calc(1px);
  margin-left: calc(8px);
  color: #333333;
  font-size: calc(12px);
  line-height: calc(20px);
}

.form-error {
  min-height: calc(16px);
  margin: calc(8px) 0 calc(14px);
  color: #d33345;
  font-size: calc(11px);
  line-height: calc(16px);
  text-align: center;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(48px);
  color: #ffffff;
  background: #dddddd;
  border-radius: calc(24px);
  font-size: calc(17px);
  font-weight: 500;
  transition: background 0.18s ease, transform 0.15s ease;
}

.primary-button.is-ready,
.primary-button:not(:disabled).ready {
  background: var(--red);
}

.primary-button:active {
  transform: scale(0.99);
}

.primary-button.compact {
  width: calc(174px);
  height: calc(42px);
  margin-top: calc(20px);
  font-size: calc(14px);
}

.login-account-help {
  margin: calc(20px) calc(18px) 0;
  color: #aaa19a;
  font-size: calc(11px);
  line-height: 1.7;
  text-align: center;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(30px);
  margin-top: calc(26px);
  color: #666666;
}

.login-options button {
  font-size: calc(13px);
}

.other-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(9px);
  margin-top: calc(58px);
  color: #999999;
}

.other-login span {
  width: calc(127px);
  height: 1px;
  background: #e5e5e5;
}

.other-login small {
  font-size: calc(12px);
  white-space: nowrap;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: calc(38px);
  margin-top: calc(18px);
  padding-bottom: calc(38px);
}

.social-login button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(5px);
}

.social-login button > span {
  display: grid;
  width: calc(40px);
  height: calc(40px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  place-items: center;
}

.social-login img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-login small {
  color: #666666;
  font-size: calc(12px);
}

/* Mine page. */
.mine-page {
  background: #fafafa;
}

.mine-scroll {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: #ffffff;
}

.mine-hero {
  order: 1;
  position: relative;
  padding: 0 15px 18px;
  background: linear-gradient(
    180deg,
    #ffffff 0,
    #ffffff 32px,
    #fafafa 100%
  );
}

.mine-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0;
}

.mine-toolbar h1 {
  margin: 0;
  position: absolute;
  top: 10px;
  left: calc(50% - 42px);
  display: none;
  color: #111111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  transform: translateX(-50%);
  visibility: visible;
}

.mine-toolbar > button {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #333333;
  font-size: 10px;
  line-height: 1.5;
}

.mine-toolbar > button svg {
  display: none;
}

.mine-toolbar > button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.guest-profile {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 92px;
  margin-top: 0;
  margin-bottom: -25px;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.guest-avatar {
  display: grid;
  width: 60px;
  height: 60px;
  overflow: hidden;
  color: #ffffff;
  background: #e5e5e5;
  border: 2px solid #ffffff;
  border-radius: 50%;
  place-items: center;
}

.guest-avatar svg {
  width: 100%;
  height: 100%;
  stroke: none;
}

.guest-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: #333333;
  text-align: left;
}

.guest-copy strong {
  font-size: 18px;
  font-weight: 600;
}

.guest-copy small {
  margin-top: 6px;
  color: #999999;
  font-size: 12px;
}

.guest-arrow {
  color: #333333;
}

.guest-arrow svg {
  width: 16px;
  height: 16px;
}

.mine-guest-recommend,
.guest-login-prompt {
  display: none;
}

.mine-page.is-guest {
  background: #f2f2f2;
}

.mine-page.is-guest .mine-scroll {
  background: #ffffff;
  padding-bottom: 112px;
}

.mine-page.is-guest .mine-hero {
  position: relative;
  flex: 0 0 144px;
  height: 144px;
  min-height: 144px;
  padding: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0,
    #ffffff 32px,
    #fafafa 100%
  );
}

.mine-page.is-guest .guest-profile {
  position: absolute;
  top: 70px;
  left: 20px;
  display: flex;
  width: auto;
  min-height: 56px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.mine-page.is-guest .mine-toolbar {
  position: absolute;
  z-index: 25;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  pointer-events: auto;
}

.mine-page.is-guest .mine-toolbar > span,
.mine-page.is-guest .mine-toolbar h1 {
  display: none;
}

.mine-page.is-guest .mine-toolbar > button {
  top: 35px;
  right: 18px;
  height: 56px;
  justify-content: center;
  pointer-events: auto;
  z-index: 2;
}

.mine-page.is-guest .guest-avatar {
  flex: 0 0 60px;
}

.mine-page.is-guest .guest-copy {
  padding: 0;
}

.mine-page.is-guest .guest-arrow {
  flex: 0 0 20px;
}

.mine-page.is-guest .mine-orders {
  margin-top: 8px;
}

.mine-page.is-guest .guest-profile {
  margin-bottom: 0;
}

.mine-page.is-guest .guest-copy small {
  display: none;
}

.mine-page.is-guest .guest-copy {
  flex: 0 0 auto;
  align-items: flex-start;
  margin-left: 16px;
  text-align: left;
}

.mine-page.is-guest .guest-copy strong {
  color: #333333;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}

.mine-page.is-guest .guest-arrow {
  display: grid;
  width: 20px;
  height: 20px;
  margin-left: 0;
  place-items: center;
}

.mine-page.is-guest .guest-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.mine-page.is-guest .common-card,
.mine-page.is-guest .wallet-card,
.mine-page.is-guest .shopping-card,
.mine-page.is-guest .other-card,
.mine-page.is-guest .logout-button,
.mine-page.is-guest > .page-footer {
  display: none;
}

.mine-guest-recommend {
  order: 3;
  margin-top: 10px;
  padding-bottom: 20px;
  background: transparent;
}

.mine-page.is-guest .mine-guest-recommend {
  display: block;
}

.mine-guest-recommend > header {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mine-guest-recommend > header h2 {
  margin: 0;
  color: #39332e;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.mine-guest-recommend > header button {
  display: grid;
  width: 24px;
  height: 30px;
  color: #999999;
  place-items: center;
}

.mine-guest-recommend > header svg {
  width: 13px;
  height: 13px;
}

.guest-recommend-card {
  margin: 0 8px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 4px;
}

.guest-recommend-banner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #111111;
}

.guest-recommend-banner > img {
  display: block;
  width: 100%;
  aspect-ratio: 702 / 388;
  object-fit: cover;
}

.guest-recommend-count {
  position: absolute;
  top: 10px;
  right: 11px;
  padding: 2px 7px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 10px;
  font-size: 10px;
  line-height: 16px;
}

.guest-recommend-thumbnails {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
  padding: 7px 5px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.guest-recommend-thumbnails::-webkit-scrollbar {
  display: none;
}

.guest-recommend-thumbnails button {
  width: 100%;
  height: 56px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 2px;
}

.guest-recommend-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-recommend-products {
  padding: 12px 12px 0;
}

.guest-product-card {
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.guest-product-card > button:first-child {
  display: block;
  width: 100%;
  max-height: 190px;
  overflow: hidden;
  background: #f7f6f4;
}

.guest-product-card > button:first-child img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center top;
}

.guest-product-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 4px 7px;
}

.guest-product-card strong {
  overflow: hidden;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-product-card span {
  color: #f01b3f;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.guest-product-card > div button {
  padding: 4px 8px;
  color: #666666;
  background: #f4f4f4;
  border-radius: 3px;
  font-size: 11px;
}

.guest-login-prompt {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: calc(49px + env(safe-area-inset-bottom));
  left: 0;
  order: 4;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 12px 0 60px;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: none;
}

.mine-page.is-guest .guest-login-prompt {
  display: flex;
}

.guest-login-prompt span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-login-prompt button {
  flex: 0 0 88px;
  width: 88px;
  height: 28px;
  color: #ffffff;
  background: #f01b3f;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 400;
}

.guest-login-prompt > img {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
}

.member-profile {
  display: grid;
  grid-template-columns: 72.5px minmax(0, 1fr);
  align-items: center;
  min-height: 88px;
  margin-top: 0;
  padding: 2px 0;
  color: #333333;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #7b2021;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
}

.member-avatar svg {
  width: 100%;
  height: 100%;
  stroke: none;
}

.member-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.member-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.member-name-row > strong {
  color: #000000;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.member-copy p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #666666;
  font-size: 11px;
}

.member-copy p i {
  display: none;
}

.member-copy p span {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: 0;
  font-size: 10px;
  line-height: 17px;
}

.member-tier {
  color: #790021;
  background: linear-gradient(90deg, #ffd8de, #ffc9bf);
}

.member-status {
  color: #333333;
  background: #ffffff;
  border: 1px solid #000000;
}

.member-level {
  color: #333333;
  background: linear-gradient(90deg, #ffd2f0, #ffa3ab 55%, #ffecdb);
}

.member-copy > small {
  margin-top: 3.5px;
  color: #999999;
  font-size: 12px;
  line-height: 20px;
}

.member-copy > small b {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
}

.member-copy > small button {
  color: #a5762b;
  font-size: inherit;
}

.member-edit {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 1px;
  color: #333333;
  font-size: 12px;
}

.member-edit svg {
  width: 12px;
  height: 12px;
}

.mine-orders,
.mine-card {
  margin: 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mine-orders {
  order: 2;
  margin-top: 0;
  padding: 0 0 26px;
}

.mine-orders > header,
.mine-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mine-orders > header {
  height: 54px;
  padding: 0 16px;
  border-top: 0;
}

.mine-orders h2,
.mine-card h2 {
  margin: 0;
  color: #39332e;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.mine-orders header button,
.mine-card header button {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #999999;
  font-size: 12px;
}

.mine-orders header svg,
.mine-card header button svg {
  width: 12px;
  height: 12px;
}

.order-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  padding: 0 23.75px;
}

.order-grid button {
  position: relative;
  display: flex;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: transparent;
}

.mine-orders header button {
  font-size: 0;
}

.order-grid svg {
  width: 30px;
  height: 30px;
  color: #aa7a47;
  stroke-width: 1.45;
}

.order-grid img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.order-grid strong {
  color: #4a433d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
}

.order-grid span {
  color: #333333;
  font-size: 12px;
}

.mine-card {
  padding: 0 16px 10px;
}

.mine-card > header > span {
  color: #999999;
  font-size: 11px;
}

.mine-card > header {
  min-height: 45px;
}

.common-card {
  order: 3;
  margin-top: 0;
  padding-bottom: 24px;
}

.common-card > header,
.shopping-card > header {
  border-top: 1px solid #e5e5e5;
}

.common-card > header > span {
  display: none;
}

.shopping-card {
  order: 4;
  margin-top: 0;
}

.wallet-card {
  order: 5;
}

.wallet-card > header > button {
  display: none;
}

.other-card {
  order: 6;
}

.common-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 -7px;
}

.common-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  min-height: 64px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: center;
}

.common-grid button > span {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #8b5733;
  background: transparent;
  border-radius: 0;
  place-items: center;
}

.common-grid svg {
  width: 27px;
  height: 27px;
}

.common-grid button > span img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.common-grid small {
  overflow: hidden;
  color: #333333;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 0;
  margin: 0 -4px;
}

.wallet-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.wallet-grid button > span {
  display: grid;
  width: 32px;
  height: 32px;
  color: #7d5d3c;
  background: transparent;
  border-radius: 0;
  place-items: center;
}

.wallet-grid svg {
  width: 28px;
  height: 28px;
}

.wallet-grid button > span img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.wallet-grid small {
  overflow: hidden;
  color: #333333;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-list {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eee9e4;
  border-radius: calc(13px);
}

.menu-list > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(50px);
  padding: 0 calc(15px);
  color: #4c4540;
  border-bottom: 1px solid #f0ebe6;
  font-size: calc(14px);
  text-align: left;
}

.menu-list > button:last-child {
  border-bottom: 0;
}

.menu-list > button > span {
  flex: 1;
}

.menu-list > button > small {
  margin-left: auto;
  margin-right: calc(10px);
  color: #999999;
  font-size: calc(12px);
}

.menu-list svg {
  flex: 0 0 auto;
  width: calc(12px);
  height: calc(12px);
  color: #b4aaa2;
}

.mine-menu {
  order: 6;
  margin: 10px 0 0;
  border: 0;
  border-radius: 0;
}

.logout-button {
  width: calc(100% - 24px);
  height: calc(44px);
  margin: calc(14px) calc(12px) 0;
  order: 7;
  color: #9e292c;
  background: #ffffff;
  border: 1px solid #eadcd8;
  border-radius: calc(12px);
  font-size: calc(14px);
  display: none;
}

.mine-scroll > .page-footer {
  order: 8;
  display: none;
}

/* Common secondary pages. */
.inner-page {
  background: #f8f8f8;
}

.inner-scroll {
  background: #f8f8f8;
}

.inline-search {
  display: flex;
  align-items: center;
  height: calc(36px);
  gap: calc(7px);
  margin: calc(10px) calc(12px);
  padding: 0 calc(13px);
  background: #ffffff;
  border-radius: 999px;
}

.inline-search svg {
  width: calc(15px);
  height: calc(15px);
  color: #bbb4ae;
}

.inline-search input {
  flex: 1;
  min-width: 0;
  color: #666666;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: calc(13px);
}

.category-layout {
  display: grid;
  grid-template-columns: calc(96px) minmax(0, 1fr);
  min-height: calc(100% - 56px);
  background: #ffffff;
}

.category-rail {
  background: #f5f5f5;
}

.category-rail button {
  position: relative;
  width: 100%;
  min-height: calc(52px);
  padding: 0 calc(8px);
  color: #666666;
  font-size: calc(13px);
}

.category-rail button.active {
  color: #333333;
  background: #ffffff;
  font-weight: 500;
}

.category-rail button.active::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(3px);
  height: calc(18px);
  background: var(--red);
  border-radius: 0 calc(2px) calc(2px) 0;
  content: "";
  transform: translateY(-50%);
}

.category-content {
  padding: calc(17px) calc(12px);
}

.category-content h2 {
  margin: 0 0 calc(14px);
  font-size: calc(15px);
  font-weight: 500;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(12px) calc(8px);
}

.category-products button {
  overflow: hidden;
  background: #ffffff;
  border-radius: calc(8px);
  text-align: left;
}

.category-products img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.category-products span {
  display: -webkit-box;
  min-height: calc(36px);
  padding: calc(7px);
  overflow: hidden;
  color: #55504c;
  font-size: calc(11px);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(70px);
  text-align: center;
}

.cart-empty > img {
  width: calc(42px);
  height: calc(42px);
  opacity: 0.35;
  filter: grayscale(1);
}

.cart-empty > strong {
  margin-top: calc(14px);
  color: #55514e;
  font-size: calc(15px);
  font-weight: 500;
}

.cart-empty > p {
  margin: calc(5px) 0 0;
  color: #aaa4a0;
  font-size: calc(12px);
}

.large-line-icon {
  width: calc(46px);
  height: calc(46px);
  color: #c7c1bc;
  stroke-width: 1.2;
}

.outline-button {
  width: calc(132px);
  height: calc(38px);
  margin-top: calc(20px);
  color: #9e292c;
  background: #ffffff;
  border: 1px solid #dfb9b7;
  border-radius: calc(20px);
  font-size: calc(13px);
}

.tabs-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.tabs-line button {
  position: relative;
  height: calc(44px);
  color: #666666;
  font-size: calc(13px);
}

.tabs-line button.active {
  color: #333333;
  font-weight: 500;
}

.tabs-line button.active::after {
  position: absolute;
  right: calc(13px);
  bottom: 0;
  left: calc(13px);
  height: calc(2px);
  background: var(--red);
  border-radius: 99px;
  content: "";
}

.wallet-balance {
  margin: calc(12px);
  padding: calc(23px) calc(20px);
  color: #fff7ec;
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 223, 177, 0.23), transparent 26%),
    linear-gradient(135deg, #8c2023, #67171b);
  border-radius: calc(14px);
}

.wallet-balance small {
  color: rgba(255, 247, 236, 0.65);
  font-size: calc(12px);
}

.wallet-balance strong {
  display: block;
  margin-top: calc(12px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(36px);
  font-weight: 400;
}

.wallet-balance button {
  float: right;
  margin-top: calc(-31px);
  padding: calc(6px) calc(14px);
  color: #7b1c20;
  background: #f3ddb7;
  border-radius: calc(20px);
  font-size: calc(12px);
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: calc(-2px) calc(12px) calc(12px);
  padding: calc(15px) 0;
  background: #ffffff;
  border-radius: calc(10px);
}

.balance-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(3px);
}

.balance-grid div + div {
  border-left: 1px solid #eee9e4;
}

.balance-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(19px);
  font-weight: 500;
}

.balance-grid span {
  color: #877e77;
  font-size: calc(10px);
}

.wallet-page {
  background: #f2f2f2;
}

.wallet-screen {
  background: #f2f2f2;
}

.share-wallet-hero {
  height: 182px;
  overflow: hidden;
  padding: 0 15px;
  background: #f5f2eb url("assets/wallet/wallet-page-bg.png") center top / cover no-repeat;
}

.share-wallet-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  height: 50px;
  margin: 0 -15px;
}

.share-wallet-header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.share-wallet-header svg {
  width: 22px;
  height: 22px;
  color: #333333;
  stroke-width: 1.8;
}

.share-wallet-header h1 {
  position: relative;
  top: -4px;
  left: -7.5px;
  margin: 0;
  color: #333333;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.share-wallet-balance {
  display: flex;
  width: 100%;
  height: 115px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  color: #ffffff;
  background: url("assets/wallet/wallet-card-bg.png") center / cover no-repeat;
  border-radius: 0;
}

.share-wallet-balance > strong {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.share-wallet-balance > span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  transform: translateX(4px);
}

.share-wallet-actions {
  padding-top: 1.5px;
  background: #ffffff;
}

.share-wallet-actions > button {
  display: flex;
  width: 100%;
  height: 67px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.share-wallet-actions > button > img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.share-wallet-actions > button > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin-left: 12px;
}

.share-wallet-actions strong {
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.share-wallet-actions small {
  color: #999999;
  font-size: 12px;
  line-height: 1.4;
}

.share-wallet-actions svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #999999;
}

.share-wallet-bottom {
  height: 110px;
  background: #f2f2f2;
}

.ai-float-button {
  position: absolute;
  z-index: 28;
  right: -8px;
  bottom: 28px;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ai-float-button:active {
  cursor: grabbing;
}

.ai-float-button.is-dragging {
  cursor: grabbing;
  transition: none;
}

.ai-float-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ai-float-button:focus-visible {
  outline: 2px solid rgba(31, 157, 255, 0.72);
  outline-offset: -2px;
}

.wallet-form-page,
.transaction-page {
  background: #f2f2f2;
}

.wallet-form-scroll {
  padding: 12px 0 18px;
  background: #f2f2f2;
}

.wallet-sub-header {
  background: #ffffff;
  border-bottom: 0;
}

.wallet-notice {
  margin: 0 12px 12px;
  padding: 14px 16px;
  color: #777777;
  background: #fff8f3;
  border-left: 3px solid #d9b577;
}

.wallet-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
}

.wallet-notice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.wallet-notice-single {
  padding: 15px 16px;
}

.wallet-notice-single p {
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
}

.wallet-form-card {
  margin: 0 12px 10px;
  padding: 0 16px;
  background: #ffffff;
}

.wallet-form-card h2 {
  margin: 0;
  padding: 15px 0 12px;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
}

.wallet-form-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  gap: 10px;
  border-top: 1px solid #eeeeee;
  color: #333333;
  font-size: 14px;
}

.wallet-form-row > span {
  flex: 0 0 82px;
  color: #333333;
}

.wallet-form-row > b,
.wallet-form-row > input {
  flex: 1;
  min-width: 0;
  color: #666666;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.wallet-form-row > input {
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.wallet-form-row > input::placeholder {
  color: #b3b3b3;
}

.wallet-select svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #aaaaaa;
}

.wallet-source-balance,
.wallet-transfer-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-top: 1px solid #eeeeee;
  font-size: 14px;
}

.wallet-source-balance strong,
.wallet-transfer-balance b {
  color: #333333;
  font-size: 14px;
  font-weight: 500;
}

.wallet-amount-field {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 8px;
  border-top: 1px solid #eeeeee;
  font-size: 18px;
}

.wallet-amount-field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 15px;
}

.wallet-amount-field button {
  color: #f01b3f;
  font-size: 12px;
}

.wallet-note-field {
  display: flex;
  align-items: flex-start;
  min-height: 92px;
  padding: 14px 0;
  gap: 12px;
  border-top: 1px solid #eeeeee;
  font-size: 14px;
}

.wallet-note-field textarea {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0;
  resize: none;
  color: #333333;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 13px;
}

.wallet-note-field textarea::placeholder {
  color: #b3b3b3;
}

.wallet-submit-bar {
  width: calc(100% - 24px);
  height: 48px;
  margin: 16px 12px 0;
  color: #ffffff;
  background: #ef1c3f;
  border-radius: 4px;
  font-size: 15px;
}

.transaction-scroll {
  padding-top: 0;
  background: #ffffff;
}

.transaction-page .simple-header {
  border-bottom: 0;
}

.transaction-page .simple-header > button:first-child,
.transaction-page .simple-header h1 {
  transform: translateY(6.25px);
}

.transaction-row {
  display: flex;
  width: 100%;
  height: 69.5px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  text-align: left;
}

.transaction-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.transaction-row > div:last-child {
  align-items: flex-end;
}

.transaction-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transaction-row strong {
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.transaction-row small,
.transaction-row time {
  color: #666666;
  font-size: 10px;
  line-height: 1.25;
}

.transaction-row b {
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.transaction-wallet-tag {
  display: inline-flex;
  width: fit-content;
  height: 16px;
  align-items: center;
  align-self: flex-start;
  padding: 0 5px;
  color: #a5762b !important;
  background: rgba(165, 118, 43, 0.1);
  border: 1px solid #a5762b;
  border-radius: 2px;
  font-size: 10px !important;
  line-height: 14px !important;
}

.transaction-row .transaction-result {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.transaction-result > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.transaction-result > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #999999;
}

.transaction-more {
  padding: 18px 0 34px;
  color: #999999;
  font-size: 12px;
  text-align: center;
}

.transaction-loading,
.transaction-empty {
  padding: 56px 20px;
  color: #999999;
  font-size: 13px;
  text-align: center;
}

.transaction-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #666666;
  font-size: 15px;
  font-weight: 500;
}

.transaction-detail-page,
.transaction-detail-scroll {
  background: #ffffff;
}

.transaction-detail-page .simple-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  padding: 0 4px;
  border-bottom: 0;
}

.transaction-detail-page .simple-header > button:first-child,
.transaction-detail-page .simple-header h1 {
  transform: translateY(12.5px);
}

.transaction-detail-page .simple-header > button:first-child svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.transaction-detail-page .simple-header h1 {
  font-size: 17px;
}

.transaction-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 69px 16px 35.5px;
  color: #333333;
  border-bottom: 1px solid #eeeeee;
}

.transaction-type-icon {
  position: absolute;
  top: 28.625px;
  left: calc(50% - 3.125px);
  width: 38px;
  height: 30px;
  object-fit: contain;
  transform: translateX(-50%);
}

.transaction-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transaction-summary-title > strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.transaction-summary .transaction-wallet-tag {
  align-self: center;
  margin-top: 7px;
}

.transaction-summary > b {
  margin-top: 31px;
  color: #666666;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.transaction-detail-list {
  padding: 0 12px;
}

.transaction-detail-list > div {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 0;
  color: #999999;
  font-size: 13px;
}

.transaction-detail-list > div > span {
  flex: 0 0 auto;
}

.transaction-detail-list > div > b {
  min-width: 0;
  color: #333333;
  font-weight: 400;
  text-align: right;
  word-break: break-all;
}

.transaction-detail-list > div:nth-child(6) {
  padding-top: 11px;
  padding-bottom: 1px;
  border-top: 1px solid #eeeeee;
}

.transaction-delete-panel {
  padding: 24px 16px 40px;
}

.transaction-delete-button {
  width: 100%;
  height: 44px;
  color: #d7193d;
  background: #fff7f8;
  border: 1px solid #e8b8c1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.transaction-delete-button:active {
  background: #ffedf0;
}

.ai-sheet,
.ai-confirm {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: none;
}

.ai-sheet.is-open,
.ai-confirm.is-open {
  display: block;
}

.ai-sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(23, 16, 17, 0.42);
  border: 0;
  backdrop-filter: blur(1.5px);
}

.ai-sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  max-height: calc(var(--app-height, 681px) - 52px);
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 36px rgba(45, 21, 25, 0.16);
  animation: ai-sheet-up 0.24s ease-out;
}

.ai-sheet-panel > header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  padding: 16px 12px 13px 15px;
  border-bottom: 1px solid #f0eeee;
}

.ai-sheet-badge,
.ai-confirm-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #ff6658, #e91539);
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(225, 29, 61, 0.22);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
}

.ai-sheet-panel h2,
.ai-confirm h2 {
  margin: 0;
  color: #292426;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.ai-sheet-panel header p {
  margin: 3px 0 0;
  color: #9a9295;
  font-size: 10px;
  line-height: 1.35;
}

.ai-sheet-panel header > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #8d8588;
}

.ai-sheet-panel header > button svg {
  width: 18px;
  height: 18px;
}

.ai-sheet-panel form {
  min-height: 0;
  overflow-y: auto;
}

.ai-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  padding: 14px 14px 2px;
}

.ai-form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.ai-form-grid label > span {
  color: #777074;
  font-size: 10px;
}

.ai-form-grid input,
.ai-form-grid select,
.ai-date-trigger {
  width: 100%;
  height: 37px;
  padding: 0 9px;
  color: #302a2c;
  background: #f8f7f7;
  border: 1px solid #e8e4e5;
  border-radius: 6px;
  outline: 0;
  font-family: inherit;
  font-size: 12px;
}

.ai-form-grid input:focus,
.ai-form-grid select:focus,
.ai-date-trigger:focus {
  background: #ffffff;
  border-color: #d9485e;
  box-shadow: 0 0 0 2px rgba(225, 42, 72, 0.08);
}

.ai-form-grid input::placeholder {
  color: #b8b2b4;
}

.ai-form-grid label > small {
  display: block;
  margin-top: 5px;
  color: #9f948c;
  font-size: calc(10px);
  font-weight: 400;
  line-height: 1.45;
}

.ai-form-wide {
  grid-column: 1 / -1;
}

.ai-datetime-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(68px, 0.72fr);
  gap: 7px;
}

.ai-datetime-fields label {
  min-width: 0;
}

.ai-datetime-fields select {
  appearance: auto;
}

.ai-date-trigger {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-calendar {
  margin-top: 2px;
  padding: 10px;
  background: #fffdfc;
  border: 1px solid #efd9db;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(96, 31, 39, 0.08);
}

.ai-calendar > header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 7px;
}

.ai-calendar > header > button {
  width: 30px;
  height: 28px;
  color: #776d70;
  font-size: 22px;
  line-height: 1;
}

.ai-calendar > header > strong {
  color: #3d3437;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.ai-calendar-weekdays,
.ai-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.ai-calendar-weekdays {
  margin-bottom: 4px;
}

.ai-calendar-weekdays span {
  padding: 3px 0;
  color: #9a9295;
  font-size: 10px;
  text-align: center;
  border-radius: 4px;
}

.ai-calendar-weekdays .is-wednesday,
.ai-calendar-days [data-wednesday="true"] {
  color: #c45162;
  background: #fff0f2;
}

.ai-calendar-days button,
.ai-calendar-blank {
  height: 30px;
  border-radius: 5px;
}

.ai-calendar-days button {
  color: #51484b;
  font-size: 11px;
}

.ai-calendar-days button:hover {
  background: #f7f1f1;
}

.ai-calendar-days button.is-selected {
  color: #ffffff;
  background: #d9485e;
}

.ai-form-error {
  min-height: 17px;
  margin: 7px 14px 0;
  color: #d7193d;
  font-size: 10px;
  line-height: 1.4;
}

.ai-sheet-panel form > footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 9px;
  padding: 7px 14px 14px;
}

.ai-sheet-panel form > footer button,
.ai-confirm section > div button {
  height: 43px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

.ai-secondary-button,
.ai-confirm section > div button:first-child {
  color: #595255;
  background: #f5f3f3;
  border: 1px solid #e5e1e2;
}

.ai-primary-button,
.ai-confirm section > div button:last-child {
  color: #ffffff;
  background: #ed1b3f;
  border: 1px solid #ed1b3f;
}

.ai-primary-button:disabled,
.ai-confirm section > div button:last-child:disabled {
  opacity: 0.58;
}

.ai-confirm section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 292px;
  padding: 20px 18px 16px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(25, 15, 17, 0.22);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: ai-confirm-in 0.18s ease-out;
}

.ai-confirm-icon {
  display: grid;
  margin: 0 auto 12px;
}

.ai-confirm p {
  margin: 8px 2px 17px;
  color: #7e7679;
  font-size: 11px;
  line-height: 1.55;
}

.ai-confirm section > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

@keyframes ai-sheet-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes ai-confirm-in {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.97);
  }
}

.inner-page .menu-list {
  margin: calc(10px) calc(12px);
}

.profile-form > section {
  margin: calc(10px) calc(12px) 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: calc(10px);
}

.profile-form h2 {
  margin: 0;
  padding: calc(12px) calc(15px);
  color: #999999;
  font-size: calc(12px);
  font-weight: 400;
}

.profile-form label {
  display: flex;
  align-items: center;
  min-height: calc(50px);
  padding: 0 calc(15px);
  border-top: 1px solid #efefef;
  font-size: calc(14px);
}

.profile-form label span {
  flex: 0 0 calc(92px);
  color: #555555;
}

.profile-form label input {
  flex: 1;
  min-width: 0;
  color: #333333;
  background: transparent;
  border: 0;
  outline: 0;
  text-align: right;
}

.coupon-list {
  padding: calc(12px);
}

.coupon-list article {
  display: grid;
  grid-template-columns: calc(100px) minmax(0, 1fr) auto;
  align-items: center;
  min-height: calc(92px);
  margin-bottom: calc(10px);
  padding: 0 calc(12px);
  background: #ffffff;
  border-radius: calc(10px);
}

.coupon-list article > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a52c30;
}

.coupon-list article > div strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(24px);
  font-weight: 400;
}

.coupon-list article > div small {
  color: #999999;
  font-size: calc(9px);
}

.coupon-list article > section {
  min-width: 0;
  padding-left: calc(8px);
}

.coupon-list article > section b {
  font-size: calc(13px);
  font-weight: 500;
}

.coupon-list article > section p {
  margin: calc(7px) 0 0;
  color: #999999;
  font-size: calc(10px);
}

.coupon-list article > button {
  color: #a52c30;
  font-size: calc(12px);
}

.settings-menu {
  margin-top: calc(10px);
}

.settings-page {
  background: #f2f2f2;
}

.settings-page .simple-header {
  background: #ffffff;
  border-bottom: 0;
}

.settings-scroll {
  padding-bottom: 60px;
  background: #f2f2f2;
}

.settings-page .settings-menu {
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.settings-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  color: #666666;
  background: #ffffff;
  text-align: left;
}

.settings-row::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 1px;
  background: #e8e8e8;
  content: "";
  transform: scaleY(0.5);
  transform-origin: bottom;
}

.settings-row.no-line::after,
.settings-row:last-child::after {
  display: none;
}

.settings-row > span {
  color: #666666;
  font-size: 14px;
}

.settings-row > small {
  min-width: 0;
  overflow: hidden;
  color: #999999;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row > svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #bbbbbb;
  stroke-width: 1.4;
}

.settings-switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  background: #999999;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.settings-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fafafa;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  content: "";
  transition: transform 0.2s ease;
}

.settings-switch[aria-checked="true"] {
  background: #000000;
}

.settings-switch[aria-checked="true"]::after {
  transform: translateX(18px);
}

.settings-notification {
  display: block;
  min-height: 105px;
  padding-top: 13px;
  padding-bottom: 12px;
}

.settings-notification > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-notification > div small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f01b3f;
  font-size: 14px;
}

.settings-notification > div svg {
  width: 12px;
  height: 12px;
}

.settings-notification p {
  margin: 8px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.45;
}

.settings-notification em {
  color: #3a5e98;
  font-style: normal;
}

.settings-clear-cache {
  min-height: 50px;
}

.settings-logout-button {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #f01b3f;
  background: #ffffff;
  font-size: 16px;
}

.work-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(50px);
  padding: 0 calc(12px);
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.performance-scroll {
  padding-bottom: 66px;
  background: #fafafa;
}

.performance-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px 18px 17px;
}

.performance-member-mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: #9d743a;
  background: linear-gradient(145deg, #f9e8c8, #deb976);
  border-radius: 50%;
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  place-items: center;
}

.performance-member > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.performance-member strong {
  color: #222222;
  font-size: 18px;
  font-weight: 600;
}

.performance-member small {
  color: #8a7c70;
  font-size: 12px;
}

.ai-digital-hero {
  position: relative;
  display: block;
  width: calc(100% - 24px);
  min-height: 165px;
  margin: 0 12px;
  overflow: hidden;
  padding: 23px 18px;
  color: #f8f4ed;
  background:
    radial-gradient(circle at 85% 12%, rgba(248, 216, 169, 0.26), transparent 27%),
    linear-gradient(135deg, #31373d, #171c21);
  border-radius: 12px;
  text-align: left;
}

.ai-digital-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 60%;
  flex-direction: column;
}

.ai-digital-copy strong {
  font-size: 22px;
  font-weight: 500;
}

.ai-digital-copy small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  letter-spacing: 1px;
}

.ai-digital-copy b {
  margin-top: 13px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-weight: 500;
}

.ai-digital-copy em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-style: normal;
}

.ai-digital-copy i {
  width: 69px;
  margin-top: 12px;
  padding: 7px 0;
  color: #5a3d22;
  background: #e9c68d;
  border-radius: 99px;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.ai-digital-hero > img {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.performance-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 13px;
  padding: 12px 10px;
  background: #ffffff;
}

.performance-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.performance-actions button > span {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
}

.performance-actions img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.performance-actions small {
  color: #333333;
  font-size: 12px;
}

.performance-section {
  margin-top: 10px;
  padding: 13px 12px 12px;
  background: #ffffff;
}

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

.performance-section h2 {
  margin: 0;
  color: #333333;
  font-size: 18px;
  font-weight: 500;
}

.performance-section header button {
  display: flex;
  align-items: center;
  color: #666666;
  font-size: 12px;
}

.performance-section header svg {
  width: 13px;
  height: 13px;
}

.performance-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.performance-scroll-row::-webkit-scrollbar {
  display: none;
}

.performance-scroll-row button {
  flex: 0 0 34%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 7px;
  scroll-snap-align: start;
  text-align: left;
}

.performance-scroll-row img {
  width: 100%;
  aspect-ratio: 226 / 393;
  object-fit: cover;
}

.performance-scroll-row span {
  display: -webkit-box;
  padding: 6px 2px 0;
  overflow: hidden;
  color: #4c4743;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-section {
  margin-bottom: 9px;
}

.course-row button {
  flex-basis: 47%;
}

.course-row img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.work-header h1 {
  margin: 0;
  color: #333333;
  font-size: calc(18px);
  font-weight: 500;
}

.work-header button {
  justify-self: end;
  color: #4d4742;
}

.work-hero {
  margin: calc(12px);
  padding: calc(28px) calc(20px);
  color: #fff6ea;
  background:
    radial-gradient(circle at 88% 16%, rgba(241, 208, 150, 0.22), transparent 27%),
    linear-gradient(135deg, #8b2327, #61171b);
  border-radius: calc(14px);
}

.work-hero small {
  color: rgba(255, 246, 234, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(8px);
  letter-spacing: calc(1.4px);
}

.work-hero h2 {
  margin: calc(10px) 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: calc(24px);
  font-weight: 500;
}

.work-hero p {
  margin: calc(8px) 0 0;
  color: rgba(255, 246, 234, 0.6);
  font-size: calc(11px);
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: calc(-2px) calc(12px) calc(10px);
  padding: calc(16px) 0;
  background: #ffffff;
  border-radius: calc(10px);
}

.work-metrics button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4px);
}

.work-metrics button + button {
  border-left: 1px solid #eeeeee;
}

.work-metrics strong {
  color: #3d3733;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(22px);
  font-weight: 500;
}

.work-metrics span {
  color: #88817c;
  font-size: calc(10px);
}

.work-menu > button {
  min-height: calc(62px);
  flex-wrap: wrap;
}

.work-menu > button > span {
  flex: 0 0 100%;
}

.work-menu > button > small {
  flex: 1;
  margin: calc(4px) 0 0;
  text-align: left;
}

.work-menu > button > svg {
  margin-top: calc(-16px);
}

.inner-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(9px);
  margin: calc(12px);
}

.inner-products .product-card {
  flex-basis: auto;
}

.shop-hero {
  margin: calc(12px);
  padding: calc(28px) calc(20px);
  color: #4a332a;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, #efe7dd, #dcc9b8);
  border-radius: calc(14px);
}

.shop-hero small {
  color: #9e7258;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(8px);
  letter-spacing: calc(1.3px);
}

.shop-hero h2 {
  margin: calc(8px) 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: calc(25px);
  font-weight: 500;
}

.shop-hero p {
  margin: calc(7px) 0 0;
  color: #8c7466;
  font-size: calc(11px);
}

/* Product detail. */
.product-detail-page {
  background: #f8f8f8;
}

.overlay-header {
  position: absolute;
  z-index: 5;
  top: calc(10px);
  right: calc(12px);
  left: calc(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.overlay-header button {
  display: grid;
  min-width: calc(34px);
  height: calc(34px);
  color: #3f3935;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 calc(3px) calc(12px) rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  place-items: center;
  backdrop-filter: blur(8px);
}

.overlay-header button span {
  padding: 0 calc(9px);
  font-size: calc(11px);
}

.product-detail-scroll {
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

.detail-media {
  width: 100%;
  aspect-ratio: 1;
  background: #f0ebe6;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  padding: calc(17px) calc(15px) calc(20px);
  background: #ffffff;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: calc(8px);
}

.detail-price strong {
  color: #a52c30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(16px);
  font-weight: 400;
}

.detail-price strong b {
  font-size: calc(28px);
  font-weight: 400;
}

.detail-price del {
  color: #b8b0aa;
  font-size: calc(11px);
}

.detail-price > span {
  margin-left: auto;
  color: #a5762b;
  font-size: calc(11px);
}

.detail-copy h1 {
  margin: calc(10px) 0 0;
  color: #302c29;
  font-size: calc(18px);
  font-weight: 500;
  line-height: 1.5;
}

.detail-copy > p {
  margin: calc(8px) 0 0;
  color: #88817c;
  font-size: calc(12px);
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 11px;
  color: #999999;
  font-size: 11px;
  line-height: 1.6;
}

.detail-meta b {
  color: #555555;
  font-weight: 400;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px);
  margin-top: calc(12px);
}

.detail-tags span {
  padding: calc(4px) calc(8px);
  color: #9d5f42;
  background: #faf0ea;
  border-radius: calc(4px);
  font-size: calc(9px);
}

.detail-section {
  margin-top: calc(10px);
  padding: calc(17px) 0 0;
  background: #ffffff;
}

.detail-section h2 {
  margin: 0;
  padding: 0 calc(15px);
  color: #333333;
  font-size: calc(15px);
  font-weight: 500;
  text-align: center;
}

.detail-section p {
  margin: calc(10px) calc(15px) calc(15px);
  color: #88817c;
  font-size: calc(12px);
  line-height: 1.7;
}

.detail-section img {
  width: 100%;
}

.detail-actions {
  display: grid;
  grid-template-columns: calc(52px) calc(52px) 1fr 1fr;
  align-items: center;
  height: calc(61px + env(safe-area-inset-bottom));
  padding: 0 calc(8px) env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.detail-actions > button {
  display: flex;
  height: calc(39px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: calc(1px);
  font-size: calc(10px);
}

.detail-actions > button svg {
  width: calc(18px);
  height: calc(18px);
}

.detail-actions .add-cart,
.detail-actions .buy-now {
  margin-left: calc(4px);
  color: #ffffff;
  border-radius: 999px;
  font-size: calc(13px);
}

.detail-actions .add-cart {
  background: #d8a56b;
}

.detail-actions .buy-now {
  background: var(--red);
}

/* Search overlay. */
.search-overlay {
  position: absolute;
  z-index: 60;
  inset: 0;
  visibility: hidden;
  overflow-y: auto;
  background: #f8f8f8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.search-overlay header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: calc(42px) minmax(0, 1fr) calc(48px);
  align-items: center;
  gap: calc(4px);
  height: calc(56px);
  padding: 0 calc(8px);
  background: #ffffff;
}

.search-overlay header > button:first-child {
  display: grid;
  width: calc(42px);
  height: calc(42px);
  place-items: center;
}

.search-overlay header form {
  display: flex;
  align-items: center;
  min-width: 0;
  height: calc(36px);
  padding: 0 calc(11px);
  gap: calc(6px);
  background: #f3f2f0;
  border-radius: 999px;
}

.search-overlay header form svg {
  flex: 0 0 auto;
  width: calc(15px);
  height: calc(15px);
  color: #a8a29d;
}

.search-overlay header input {
  width: 100%;
  min-width: 0;
  color: #333333;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: calc(14px);
}

#search-submit {
  color: #7d252b;
  font-size: calc(13px);
}

.search-body {
  padding: calc(18px) calc(15px);
}

.search-body h2 {
  margin: 0;
  color: #44403d;
  font-size: calc(14px);
  font-weight: 500;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px);
  margin-top: calc(12px);
}

.search-tags button {
  height: calc(30px);
  padding: 0 calc(12px);
  color: #766f69;
  background: #ffffff;
  border: 1px solid #eee9e4;
  border-radius: 999px;
  font-size: calc(11px);
}

.search-results {
  margin-top: calc(18px);
}

.search-results button {
  display: grid;
  grid-template-columns: calc(62px) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: calc(11px);
  padding: calc(10px) 0;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.search-results img {
  width: calc(62px);
  height: calc(62px);
  object-fit: cover;
  border-radius: calc(8px);
}

.search-results strong {
  display: block;
  color: #403a36;
  font-size: calc(13px);
  font-weight: 500;
}

.search-results small {
  display: block;
  margin-top: calc(5px);
  color: #a52c30;
  font-size: calc(12px);
}

.toast {
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  max-width: 78%;
  gap: calc(7px);
  padding: calc(11px) calc(16px);
  color: #ffffff;
  background: rgba(28, 25, 23, 0.87);
  border-radius: calc(10px);
  box-shadow: 0 calc(10px) calc(30px) rgba(0, 0, 0, 0.18);
  font-size: calc(13px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast svg {
  flex: 0 0 auto;
  width: calc(16px);
  height: calc(16px);
}

@media (min-width: 650px) {
  .app-shell {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(42, 34, 29, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
