:root {
  --pink: #ef4163;
  --pink-dark: #e83256;
  --orange: #ef4163;
  --orange-dark: #d82c4f;
  --ink: #262626;
  --muted: #999;
  --paper: #f5f5f5;
  --line: #eee;
  --white: #fff;
  --radius: 12px;
  --screen-width: 430px;
  --screen-bottom: 34px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #edf0f5;
}

body {
  min-width: 300px;
  min-height: 100dvh;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #edf0f5;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f48aa0;
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: min(454px, 100%);
  height: calc(100dvh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 12px solid #fff;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 16px 30px #66708025;
}

.app-shell::-webkit-scrollbar {
  display: none;
}

.site-header,
.desktop-nav,
.site-footer,
.preview-notice {
  display: none;
}

#app {
  width: 100%;
  min-height: 100%;
  padding: 0 0 90px;
  overflow-wrap: break-word;
}

.header-title,
.subpage-head {
  position: sticky;
  z-index: 15;
  top: 0;
  height: 50px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5f5;
  color: #1d1d1d;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.header-title a,
.header-title > button,
.subpage-head a {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 44px;
  height: 44px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 30px;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-icon svg,
.header-title svg {
  width: 22px;
  height: 22px;
}

.button {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.primary {
  background: var(--pink);
  color: #fff;
}

.primary:hover {
  background: var(--pink-dark);
}

.secondary,
.subtle {
  border-color: #e8e8e8;
  background: #fff;
  color: #777;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8d5dd;
  color: #dc3256;
  font-size: 24px;
  font-weight: 700;
}

.home-content {
  padding-top: 0;
}

.search {
  height: 39px;
  min-width: 0;
  margin: 5px 16px 10px;
  padding: 0 13px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #b4b4b4;
}

.search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #444;
  font-size: 16px;
}

.search input::placeholder {
  color: #b9b9b9;
}

.search .ui-icon,
.search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.home-banner {
  position: relative;
  width: calc(100% - 32px);
  min-height: 180px;
  aspect-ratio: 2 / 1;
  margin: 0 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff6;
  border-radius: 12px;
  display: block;
  text-align: left;
  background-color: #f9c9da;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 20px, #ffffff24 20px 40px),
    repeating-linear-gradient(90deg, transparent 0 20px, #ffffff24 20px 40px);
}

.banner-copy {
  position: relative;
  z-index: 2;
  width: 56%;
  padding: 20px 0 25px 17px;
  display: flex;
  flex-direction: column;
  color: #912c51;
}

.banner-copy strong,
.banner-copy h1 {
  margin: 5px 0 8px;
  color: #8e244a;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
}

.banner-copy > span,
.banner-copy p {
  margin: 0;
  font-size: 10px;
}

.banner-visual {
  position: absolute;
  right: 87px;
  top: 22px;
  width: clamp(84px, 28vw, 128px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.banner-qr {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 28px;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.banner-bottom {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e59ebc7a;
  color: #a13c63;
  font-size: 10px;
  letter-spacing: 2px;
}

.announcement,
.notice-line {
  min-height: 56px;
  margin: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d7d7d;
  font-size: 14px;
  line-height: 1.4;
}

.announcement .ui-icon,
.announcement svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--pink);
}

.announcement > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card {
  min-height: 80px;
  margin: 0 16px 10px;
  padding: 16px 17px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(105deg, #fff2c2, #ffebac);
  color: #68502f;
}

.wallet-card strong {
  font-size: 18px;
  font-weight: 600;
}

.wallet-card em {
  margin-left: 5px;
  font-size: 20px;
  font-style: normal;
}

.wallet-card .button {
  min-height: 29px;
  padding: 5px 13px;
  border: 0;
  font-size: 14px;
  white-space: nowrap;
}

.category-grid {
  margin: 0 16px 16px;
  padding: 16px 7px 14px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 24px;
  background: #fff;
}

.category-item {
  min-width: 0;
  padding: 0 1px;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #646464;
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
}

.category-icon {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: #fceaf0;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.product-picture {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6e8e7;
}

.product-picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.product-body {
  flex: 1;
  padding: 10px 9px 12px;
}

.product-body h3 {
  min-height: 20px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #494949;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-body > p,
.arrow,
.feature-strip,
.eyebrow {
  display: none;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.price {
  color: var(--pink);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.price small {
  font-size: 11px;
  font-weight: 400;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading {
  margin: 16px 15px 12px;
}

.section-heading h2,
.panel-heading strong {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.section-heading p,
.panel-heading a,
.record-status {
  color: #999;
  font-size: 11px;
}

.chips {
  margin: 0 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #888;
  font-size: 11px;
}

.chip.active {
  background: #ffe7ed;
  color: var(--pink);
}

.mobile-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--screen-bottom) + 2px);
  width: min(398px, calc(100vw - 56px));
  height: 68px;
  padding: 8px 7px 5px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transform: translateX(-50%);
  background: #ffffffed;
  box-shadow: 0 -2px 15px #c5d8eb18;
  backdrop-filter: blur(12px);
}

.mobile-nav a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #17232a;
  line-height: 1;
}

.nav-icon svg {
  width: 25px;
  height: 25px;
}

.mobile-nav a.active,
.mobile-nav a.active .nav-icon {
  color: var(--pink);
}

.is-detail .mobile-nav {
  display: none;
}

.zone-layout {
  min-height: calc(100dvh - 168px);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.zone-nav {
  position: sticky;
  top: 50px;
  display: flex;
  flex-direction: column;
}

.zone-nav button {
  min-height: 49px;
  padding: 10px 3px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #939393;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
}

.zone-nav button.active {
  border-left-color: var(--pink);
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: #444;
}

.zone-products {
  min-width: 0;
  min-height: calc(100dvh - 168px);
  margin: 4px 10px 0 0;
  padding: 16px 12px;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.zone-section-head {
  margin: 3px 0 18px;
  font-size: 14px;
}

.zone-product-item {
  min-width: 0;
  margin: 0 0 19px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.zone-product-item img {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
}

.zone-product-item strong {
  min-height: 38px;
  margin: 3px 0 10px;
  display: block;
  font-size: 12px;
  font-weight: 400;
}

.zone-product-item em {
  display: block;
  color: var(--pink);
  font-size: 12px;
  font-style: normal;
}

.zone-products .empty-state {
  margin: 0;
  padding-inline: 0;
}

.player-filters {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.player-filters button {
  position: relative;
  min-height: 40px;
  padding: 8px 1px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
}

.player-filters button.active {
  color: var(--pink);
}

.player-filters button.active::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  content: "";
  transform: translateX(-50%);
}

.player-list {
  margin: 12px;
  display: grid;
  gap: 10px;
}

.player-card {
  min-width: 0;
  padding: 14px 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.player-card > img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.player-info {
  min-width: 0;
  flex: 1;
}

.player-info h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
}

.player-info p,
.player-info small {
  margin: 4px 0;
  display: block;
  color: #aaa;
  font-size: 10px;
}

.player-tag {
  padding: 2px 5px;
  border-radius: 3px;
  background: #f9edf1;
  color: #d5849a;
  font-size: 10px;
}

.player-card .button {
  min-height: 29px;
  padding: 5px 9px;
  font-size: 10px;
}

.empty-state {
  margin: 12px;
  padding: 48px 18px 36px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 12px 0 7px;
  color: #999;
  font-size: 14px;
  font-weight: 400;
}

.empty-state p {
  margin: 8px auto 18px;
  color: #aaa;
  font-size: 11px;
  line-height: 1.8;
}

.empty-illustration {
  width: 96px;
  height: 82px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #d0d5df;
}

.empty-illustration svg {
  width: 90px;
  height: 80px;
}

.empty-state .button {
  min-height: 34px;
  padding: 7px 15px;
  font-size: 11px;
}

.profile-hero {
  position: relative;
  min-height: 270px;
  padding: 0 18px 22px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 12%, #7e8feb 0, #424b91 28%, transparent 55%), linear-gradient(165deg, #15264d, #667fb5 55%, #eef1f8);
  color: #fff;
}

.profile-row {
  min-height: 236px;
  padding-top: 100px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  border: 2px solid #ffffff9c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff8;
  color: #b2b2b2;
}

.profile-avatar {
  overflow: hidden;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-row strong {
  font-size: 18px;
  font-weight: 400;
}

.profile-row p {
  margin: 7px 0;
  color: #fff;
  font-size: 11px;
}

.profile-settings {
  position: absolute;
  right: 18px;
  top: 163px;
  color: #fff;
  font-size: 12px;
}

.profile-level {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #8294ef6b;
  font-size: 10px;
}

.order-panel {
  position: relative;
  margin: -36px 12px 12px;
  padding: 16px 14px 18px;
  border-radius: 12px;
  background: #fff;
}

.panel-heading {
  margin-bottom: 21px;
}

.order-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.order-status-grid a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #777;
  font-size: 11px;
}

.order-status-icon,
.order-status-icon svg {
  width: 27px;
  height: 27px;
  color: #6f86df;
}

.order-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f8ee;
  color: #2ec76b;
}

.order-status-icon svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.order-status-icon.status-1 { background: #fff0e6; color: #ff9963; }
.order-status-icon.status-2 { background: #eaf0ff; color: #4f73ee; }

.tools-grid {
  margin: 0 12px 12px;
  padding: 22px 9px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 4px;
  background: #fff;
}

.tool-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #202020;
  font-size: 12px;
}

.tool-item svg {
  width: 27px;
  height: 27px;
  color: #202020;
}

.tool-item:nth-child(4n + 1) svg {
  color: #202020;
}

.tool-item:nth-child(4n + 2) svg {
  color: #202020;
}

.my-service-link {
  min-height: 45px;
  margin: 0 12px 12px;
  padding: 12px 15px;
  border-radius: 10px;
  display: block;
  background: #fff;
  color: #999;
  font-size: 12px;
}

.consultation-card {
  margin: 10px 12px;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
}

.consultation-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 400;
}

.consultation-card p {
  margin: 5px 0;
  color: #999;
  font-size: 11px;
}

.record-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.record-footer .button {
  min-height: 29px;
  padding: 5px 11px;
  font-size: 10px;
}

.subpage-content {
  padding-top: 2px;
}

.detail-image {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  background: #fff;
}

.detail-info {
  margin: 12px;
  padding: 15px 16px;
  border-radius: 11px;
  background: #fff;
}

.detail-info h1 {
  margin: 0 0 12px;
  color: #424242;
  font-size: 15px;
  font-weight: 400;
}

.detail-subtitle {
  margin: 0 0 15px;
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-price {
  color: var(--pink);
  font-size: 21px;
  font-weight: 500;
}

.favorite-button {
  min-height: 35px;
  padding: 4px 0 4px 10px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #999;
  font-size: 11px;
}

.favorite-button svg {
  width: 17px;
  height: 17px;
}

.favorite-button[aria-pressed="true"] {
  color: var(--pink);
}

.selection-card {
  width: calc(100% - 24px);
  min-height: 51px;
  margin: 0 12px;
  padding: 12px 15px;
  border: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  color: #999;
  font-size: 11px;
}

.selection-card strong {
  flex: 1;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.shop-card {
  min-height: 80px;
  margin: 12px;
  padding: 14px 15px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.shop-avatar {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #f6f6f6;
  color: #454545;
  font-size: 26px;
  object-fit: cover;
}

.shop-info {
  flex: 1;
}

.shop-info strong {
  font-size: 14px;
  font-weight: 500;
}

.shop-info small {
  margin-top: 5px;
  display: block;
  color: #999;
  font-size: 10px;
}

.shop-card .button {
  min-height: 29px;
  padding: 4px 11px;
  font-size: 11px;
}

.detail-tabs {
  min-height: 47px;
  margin: 12px 12px 0;
  padding: 0 14px;
  border-radius: 11px 11px 0 0;
  display: flex;
  align-items: center;
  gap: 25px;
  background: #fff;
  color: #999;
  font-size: 13px;
}

.detail-tabs button {
  min-height: 43px;
  border: 0;
  background: transparent;
  color: inherit;
}

.detail-tabs .active {
  color: var(--pink);
}

.rules {
  margin: 0 12px 12px;
  padding: 18px 16px;
  border-radius: 0 0 11px 11px;
  background: #fff;
}

.rules h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 400;
}

.rules ul {
  margin: 0;
  padding-left: 17px;
  color: #888;
  font-size: 12px;
  line-height: 1.9;
}

.rules li {
  margin-bottom: 8px;
}

.detail-bar {
  position: fixed;
  z-index: 35;
  bottom: var(--screen-bottom);
  left: 50%;
  width: min(var(--screen-width), calc(100vw - 68px));
  min-height: 64px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
  background: #fafafafa;
  backdrop-filter: blur(10px);
}

.detail-bar > a {
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #333;
  font-size: 12px;
}

.detail-bar svg {
  width: 22px;
  height: 22px;
}

.detail-bar .primary {
  flex: 1;
  min-height: 40px;
  font-size: 13px;
}

.field-label {
  margin: 17px 0 8px;
  display: block;
  color: #555;
  font-size: 13px;
  font-weight: 400;
}

.variants,
.sku-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.variant {
  min-height: 37px;
  padding: 7px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #f8f8f8;
  color: #777;
  font-size: 12px;
}

.variant.active {
  border-color: var(--pink);
  background: #fff0f4;
  color: var(--pink);
}

dialog {
  position: fixed;
  z-index: 60;
  top: auto;
  right: auto;
  bottom: var(--screen-bottom);
  left: 50%;
  width: min(var(--screen-width), calc(100vw - 68px));
  max-height: min(85dvh, 760px);
  margin: 0;
  padding: 22px 18px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 18px 18px 0 0;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 -6px 30px #1b263526;
}

dialog::backdrop {
  background: #0006;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dialog-head h2 {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 400;
}

.icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #aaa;
  font-size: 27px;
  line-height: 1;
}

.dialog-intro,
.dialog-footnote {
  margin: 10px 0 0;
  color: #aaa;
  font-size: 10px;
  line-height: 1.7;
}

select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #eee;
  border-radius: 7px;
  background: #fafafa;
  color: #555;
  font-size: 12px;
}

textarea {
  resize: vertical;
}

.consultation-summary {
  max-height: 180px;
  margin: 14px 0;
  padding: 13px;
  overflow: auto;
  border-radius: 7px;
  background: #f8f8f8;
  color: #777;
  font: 11px / 1.9 "Microsoft YaHei", system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-note {
  margin: 10px 0 15px;
  color: #be6d81;
  font-size: 11px;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  gap: 9px;
}

.dialog-actions .button {
  flex: 1;
  min-height: 43px;
  padding: 10px 9px;
  font-size: 12px;
}

.sku-dialog {
  padding: 18px 16px 16px;
}

#sku-form {
  position: relative;
}

.sku-close {
  position: absolute;
  z-index: 1;
  top: -9px;
  right: -7px;
}

.sku-top {
  min-height: 88px;
  padding-right: 26px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sku-cover {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid #eee;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
}

.sku-top .price {
  margin-top: 8px;
  font-size: 20px;
}

.sku-top p {
  margin: 15px 0 0;
  color: #aaa;
  font-size: 12px;
}

.sku-variants {
  margin: 14px 0 22px;
}

.sku-quantity-row {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #444;
  font-size: 13px;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 3px;
}

.quantity-stepper button {
  width: 32px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #eee;
  color: #666;
  font-size: 20px;
}

.quantity-stepper input {
  width: 44px;
  height: 29px;
  padding: 4px;
  border: 0;
  border-radius: 2px;
  background: #eee;
  color: #555;
  font-size: 12px;
  text-align: center;
  appearance: textfield;
}

.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.sku-confirm {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 0;
  border-radius: 24px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 90;
  bottom: calc(var(--screen-bottom) + 90px);
  left: 50%;
  max-width: min(340px, calc(100vw - 40px));
  padding: 10px 17px;
  border-radius: 7px;
  transform: translate(-50%, 10px);
  background: #2a2a2acc;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}

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

@media (max-width: 480px) {
  :root {
    --screen-bottom: 0px;
  }

  html,
  body {
    background: var(--paper);
  }

  body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
    max-width: 430px;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(398px, calc(100vw - 16px));
    height: 65px;
  }

  .detail-bar,
  dialog {
    width: min(430px, 100vw);
    bottom: 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .detail-bar {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }

  .zone-layout,
  .zone-products {
    min-height: calc(100dvh - 130px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .banner-copy strong {
    font-size: 22px;
  }

  .banner-visual {
    width: 76px;
  }
}
