.storefront {
  --app-bg: #f4f3ef;
  --app-card: #ffffff;
  --app-red: #db5f49;
  --app-red-soft: #fbe9e5;
  --app-green: #23372f;
  --app-gold: #e5c6aa;
  background: var(--app-bg);
}

.mobile-store-bar,
.mobile-bottom-nav {
  display: none;
}

.app-page-width {
  width: min(1180px, calc(100vw - 56px));
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1201px) {
  .storefront {
    --page: min(1420px, calc(100vw - 96px));
  }

  .app-page-width {
    width: var(--page);
  }
}

.app-search-row {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-location {
  min-width: 90px;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--app-green);
  background: var(--app-card);
  border-radius: 999px;
  font-size: 12px;
}

.app-location svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.app-location b {
  color: #8a8d87;
  font-size: 12px;
  font-weight: 400;
}

.app-search-box {
  height: 44px;
  padding: 0 17px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  background: var(--app-card);
  border-radius: 999px;
}

.app-share-trigger {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--app-green);
  background: var(--app-card);
  border: 0;
  border-radius: 50%;
}

.app-share-trigger svg,
.product-share-trigger svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.app-search-box svg,
.app-category-search svg {
  width: 19px;
  fill: none;
  stroke: #9b9d98;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.app-search-box input,
.app-category-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.app-promo {
  position: relative;
  height: 430px;
  overflow: hidden;
  color: #fff;
  background: #7b6b59;
  border-radius: 16px;
}

.app-promo-carousel {
  position: relative;
  height: 430px;
  overflow: hidden;
  color: #fff;
  background: #7b6b59;
  border-radius: 16px;
}

.app-promo-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.app-promo-track::-webkit-scrollbar {
  display: none;
}

.app-promo-slide {
  position: relative;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.app-promo-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-promo-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 37, 31, 0.76), rgba(26, 37, 31, 0.36) 43%, rgba(26, 37, 31, 0.02) 72%);
  content: "";
}

.app-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #24372e;
  background: rgba(255, 255, 255, 0.84);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.app-carousel-arrow.prev {
  left: 15px;
}

.app-carousel-arrow.next {
  right: 15px;
}

.app-carousel-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.app-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 8px;
  transition: width 220ms ease, background 220ms ease;
}

.app-carousel-dots button.active {
  width: 18px;
  background: #fff;
}

.app-promo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.app-promo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 37, 31, 0.74), rgba(26, 37, 31, 0.05) 70%);
  content: "";
}

.app-promo-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  z-index: 2;
  transform: translateY(-50%);
}

.app-promo-overlay p {
  margin-bottom: 9px;
  color: #f1ddc5;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.app-promo-overlay h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.25;
}

.app-promo-overlay a {
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-green);
  background: #fffaf3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.app-promo-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.app-promo-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.app-promo-dots span.active {
  width: 14px;
  background: #fff;
  border-radius: 8px;
}

.app-category-icons {
  margin-top: 20px;
  padding: 18px 12px 14px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--app-card);
  border-radius: 14px;
}

.app-category-icons a {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.app-category-icons a > span {
  width: 64px;
  height: 64px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f2eee7;
  border-radius: 50%;
}

.app-category-icons img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-category-icons strong {
  margin-top: 9px;
  color: #3e4642;
  font-size: 12px;
  font-weight: 500;
}

.app-category-all {
  color: var(--app-green);
  font-size: 14px;
  font-weight: 600;
}

.app-notice {
  min-height: 49px;
  margin-top: 14px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 31px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff5f1;
  border: 1px solid #f0d9d1;
  border-radius: 10px;
}

.app-notice-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--app-red);
  border-radius: 50%;
}

.app-notice strong {
  color: var(--app-red);
  font-size: 11px;
}

.app-notice p {
  margin: 0;
  overflow: hidden;
  color: #776e68;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-notice > span:last-child {
  color: #a5a09b;
  font-size: 20px;
}

.app-feed {
  margin-top: 19px;
}

.app-feed-head {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-feed-head > div {
  position: relative;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
}

.app-feed-head > div::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 4px;
  background: var(--app-red);
  border-radius: 4px;
  content: "";
}

.app-feed-head strong {
  font-family: var(--serif);
  font-size: 22px;
}

.app-feed-head span {
  margin-top: 2px;
  color: #979993;
  font-size: 9px;
}

.app-feed-head nav {
  display: flex;
  gap: 5px;
}

.app-feed-head nav a {
  padding: 7px 13px;
  color: #6f746f;
  background: #e9e8e3;
  border-radius: 999px;
  font-size: 10px;
}

.app-feed-head nav a.active {
  color: var(--app-red);
  background: var(--app-red-soft);
  border: 1px solid #efafa1;
}

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

.app-product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--app-card);
  border-radius: 11px;
}

.app-product-image {
  position: relative;
  height: 0;
  padding-bottom: 116%;
  display: block;
  overflow: hidden;
  background: #e8e3da;
}

.app-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.app-product-card:hover .app-product-image img {
  transform: scale(1.035);
}

.app-product-image > span {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(35, 55, 47, 0.82);
  border-radius: 3px;
  font-size: 8px;
}

.app-product-copy {
  padding: 10px 11px 12px;
}

.app-product-name {
  min-height: 38px;
  overflow: hidden;
  display: -webkit-box;
  color: #2b342f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-product-copy > p {
  margin: 4px 0 9px;
  overflow: hidden;
  color: #9a9c97;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.app-product-price-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-product-price-row strong {
  color: var(--app-red);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-product-price-row del {
  color: #bbb9b3;
  font-size: 10px;
}

/* 卡片底部两个动作：加购 + 立即购买 */
.app-product-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.app-product-actions > a {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 4px;
  text-align: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.app-cart-button {
  color: var(--app-red);
  background: #fff;
  border: 1px solid rgba(219, 95, 73, 0.55);
}

.app-cart-button:hover {
  background: var(--app-red-soft);
}

.app-product-actions .app-buy-button {
  padding: 7px 4px;
  color: #fff;
  background: linear-gradient(135deg, #e56850, #d94d39);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(220, 80, 57, 0.2);
  font-size: 11px;
}

.app-buy-button {
  padding: 6px 12px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #e56850, #d94d39);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(220, 80, 57, 0.2);
  font-size: 10px;
  font-weight: 600;
}

.app-load-more {
  width: fit-content;
  margin: 25px auto 0;
  padding: 10px 28px;
  display: block;
  color: #686d68;
  border: 1px solid #d8d7d1;
  border-radius: 999px;
  font-size: 11px;
}

.app-editorial-banner {
  position: relative;
  min-height: 390px;
  margin-top: 42px;
  overflow: hidden;
  color: #fff;
  border-radius: 15px;
}

.app-editorial-banner img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.app-editorial-banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 43, 36, 0.72), rgba(30, 43, 36, 0.02));
  content: "";
}

.app-editorial-banner > div {
  position: relative;
  z-index: 1;
  padding: 85px 8%;
}

.app-editorial-banner p {
  color: #efd9c1;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.app-editorial-banner h2 {
  margin-bottom: 24px;
  font-size: 36px;
  line-height: 1.35;
}

.app-editorial-banner a {
  font-size: 11px;
}

.app-category-page {
  padding-top: 18px;
  padding-bottom: 80px;
}

.app-category-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-category-search {
  height: 47px;
  min-width: 0;
  padding: 0 16px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--app-card);
  border: 1px solid #dad8d1;
  border-radius: 999px;
}

.app-category-search button {
  border: 0;
  background: transparent;
  color: var(--app-green);
  font-size: 11px;
}

.app-category-drawer-trigger {
  height: 47px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--app-red);
  background: var(--app-red-soft);
  border: 1px solid #efb2a7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.app-category-drawer-trigger svg,
.app-category-edge-tab svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-category-layout {
  margin-top: 13px;
}

.app-category-main {
  min-width: 0;
}

.app-category-browser {
  padding: 10px;
  overflow: hidden;
  background: var(--app-card);
  border-radius: 12px;
}

.app-category-edge-tab {
  width: 30px;
  min-height: 92px;
  padding: 8px 4px;
  position: fixed;
  top: 36%;
  left: 0;
  z-index: 60;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #fff;
  background: var(--app-red);
  border: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 5px 16px rgba(86, 42, 34, 0.2);
  font-size: 9px;
  letter-spacing: 2px;
}

.app-category-edge-tab span {
  writing-mode: vertical-rl;
}

.app-category-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  padding: 0;
  background: rgba(22, 28, 24, 0.34);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.app-category-drawer {
  width: min(320px, 84vw);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  padding: 0;
  overflow-y: auto;
  color: #3d4841;
  background: #fff;
  box-shadow: 16px 0 38px rgba(25, 34, 28, 0.16);
  transform: translateX(-104%);
  transition: transform 220ms ease;
}

.app-category-drawer.is-open {
  transform: translateX(0);
}

.app-category-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.category-drawer-open {
  overflow: hidden;
}

.app-category-drawer-head {
  min-height: 104px;
  padding: 25px 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eeeae2;
}

.app-category-drawer-head > div {
  display: grid;
  gap: 5px;
}

.app-category-drawer-head span,
.app-category-drawer-secondary > span {
  color: #a0a39d;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.app-category-drawer-head h2 {
  margin: 0;
  color: #24342b;
  font-size: 20px;
  font-weight: 500;
}

.app-category-drawer-head button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #747a74;
  background: #f2f0eb;
  border: 0;
  border-radius: 50%;
}

.app-category-drawer-head button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.app-category-drawer-nav {
  padding: 14px 0;
  display: grid;
}

.app-category-drawer-nav a {
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  color: #59625c;
  font-size: 15px;
}

.app-category-drawer-nav a.active {
  color: var(--app-red);
  background: #fff5f2;
  box-shadow: inset 4px 0 var(--app-red);
  font-weight: 600;
}

.app-category-drawer-secondary {
  margin-top: 8px;
  padding: 18px 0 28px;
  display: grid;
  border-top: 1px solid #eeeae2;
}

.app-category-drawer-secondary > span {
  padding: 0 24px 8px;
}

.app-category-drawer-secondary a {
  min-height: 47px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  color: #6c746e;
  font-size: 12px;
}

.app-category-quick {
  padding: 12px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  background: var(--app-card);
  border-radius: 12px;
  scrollbar-width: none;
}

.app-category-browser .app-category-quick {
  padding: 2px 2px 10px;
  background: transparent;
  border-radius: 0;
}

.app-category-quick::-webkit-scrollbar {
  display: none;
}

.app-category-quick a {
  padding: 8px 15px;
  flex: 0 0 auto;
  color: #666b66;
  background: #f4f3ef;
  border-radius: 999px;
  font-size: 10px;
}

.app-category-quick a.active {
  color: var(--app-red);
  background: var(--app-red-soft);
  border: 1px solid #eda497;
  font-weight: 600;
}

.app-subcategory-grid {
  margin-top: 7px;
  padding: 14px 8px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 14px;
  background: var(--app-card);
  border-radius: 10px;
}

.app-category-browser .app-subcategory-grid {
  margin-top: 0;
  padding: 12px 2px 2px;
  background: transparent;
  border-top: 1px solid #eeece7;
  border-radius: 0;
}

.app-subcategory-grid > a {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}

.app-subcategory-grid .subcategory-art {
  width: 62px;
  height: 62px;
  overflow: hidden;
  background: #f0eee8;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(67, 53, 43, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-subcategory-grid .subcategory-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.app-subcategory-grid > a:hover .subcategory-art {
  box-shadow: 0 6px 16px rgba(67, 53, 43, 0.14);
  transform: translateY(-1px);
}

.app-subcategory-grid > a:hover .subcategory-art img {
  transform: scale(1.04);
}

.app-subcategory-grid b {
  min-height: 23px;
  color: #5f6661;
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.35;
}

.app-subcategory-grid > a.active .subcategory-art {
  border-color: #e69182;
  box-shadow: 0 0 0 3px var(--app-red-soft), 0 5px 14px rgba(67, 53, 43, 0.12);
}

.app-subcategory-grid > a.active b {
  color: var(--app-red);
  font-weight: 700;
}

.app-sort-row {
  min-height: 49px;
  margin-top: 9px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--app-card);
  border-radius: 12px;
  color: #666c67;
  font-size: 10px;
}

.app-sort-row a.active {
  color: var(--app-red);
  font-weight: 600;
}

.app-sort-row b {
  font-weight: 400;
}

.app-sort-row > span:last-child {
  margin-left: auto;
  color: #a4a59f;
  font-size: 8px;
}

.app-category-banner {
  position: relative;
  min-height: 105px;
  margin: 10px 0;
  padding-left: 21px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(110deg, #24372e, #657266);
  border-radius: 11px;
}

.app-category-banner p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
}

.app-category-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.app-category-banner img {
  width: 110px;
  height: 140px;
  position: absolute;
  right: 10px;
  bottom: -20px;
  object-fit: cover;
  opacity: 0.85;
  transform: rotate(5deg);
  border-radius: 50% 50% 4px 4px;
}

.app-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-category-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--app-card);
  border-radius: 12px;
  text-align: center;
}

.app-category-empty > span {
  color: #d1d0ca;
  font-size: 52px;
}

.app-category-empty strong {
  color: #777973;
  font-size: 12px;
}

.app-category-empty p {
  color: #a4a49e;
  font-size: 9px;
}

.app-category-empty a {
  margin-top: 10px;
  padding: 7px 18px;
  color: #fff;
  background: var(--app-red);
  border-radius: 999px;
  font-size: 10px;
}

@media (min-width: 901px) {
  .main-nav a {
    font-size: 15px;
  }

  .app-search-box input,
  .app-category-search input {
    font-size: 15px;
  }

  .app-category-icons strong {
    font-size: 14px;
  }

  .app-notice strong {
    font-size: 12px;
  }

  .app-notice p {
    font-size: 11px;
  }

  .app-feed-head span {
    font-size: 11px;
  }

  .app-feed-head nav a {
    font-size: 12px;
  }

  .app-product-image > span {
    font-size: 10px;
  }

  .app-product-name {
    min-height: 46px;
    font-size: 16px;
    line-height: 1.45;
  }

  .app-product-copy > p {
    font-size: 12px;
  }

  .app-product-price-row strong {
    font-size: 20px;
  }

  .app-product-price-row del {
    font-size: 10px;
  }

  .app-buy-button {
    padding: 7px 14px;
    font-size: 12px;
  }

  .app-load-more {
    font-size: 13px;
  }

  .app-category-drawer-trigger {
    font-size: 12px;
  }

  .app-category-browser {
    padding: 12px 14px;
  }

  .app-category-quick a {
    padding: 9px 17px;
    font-size: 12px;
  }

  .app-category-browser .app-subcategory-grid {
    padding-top: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .app-subcategory-grid > a {
    min-height: 66px;
    padding: 7px 10px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    background: #f7f6f2;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease;
  }

  .app-subcategory-grid > a:hover {
    background: #f2f0eb;
  }

  .app-subcategory-grid > a.active {
    background: #fff5f2;
    border-color: #edb0a5;
  }

  .app-subcategory-grid .subcategory-art {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-width: 1px;
    box-shadow: none;
  }

  .app-subcategory-grid b {
    min-height: 0;
    flex: 1;
    font-size: 12px;
    line-height: 1.35;
  }

  .app-sort-row {
    font-size: 12px;
  }

  .app-sort-row > span:last-child {
    font-size: 10px;
  }

  .app-category-banner p {
    font-size: 11px;
  }

  .app-category-banner strong {
    font-size: 17px;
  }

  .app-category-empty strong {
    font-size: 15px;
  }

  .app-category-empty p {
    font-size: 12px;
  }

  .app-category-empty a {
    font-size: 12px;
  }

  .product-subtitle {
    font-size: 15px;
  }

  .gallery-caption,
  .detail-badge {
    font-size: 10px;
  }

  .variant-heading {
    font-size: 14px;
  }

  .variant-heading span,
  .size-guide,
  .stock-message,
  .inventory-note,
  .pay-note {
    font-size: 12px;
  }

  .color-option,
  .size-option {
    font-size: 13px;
  }

  .quantity-row {
    font-size: 13px;
  }

  .product-purchase-actions .button {
    font-size: 13px;
  }

  .product-purchase-actions .button span:last-child {
    font-size: 12px;
  }

  .detail-accordions summary {
    font-size: 14px;
  }

  .detail-accordions p {
    font-size: 13px;
  }
}

.app-member-page {
  padding-top: 17px;
}

.app-member-hero {
  padding: 24px 20px 0;
  color: #fff;
  background:
    radial-gradient(circle at 76% 15%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(130deg, #d95740, #e67751);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(209, 83, 58, 0.18);
}

.app-member-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 9px;
  padding: 0;
  object-fit: cover;
  background: var(--app-green);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.app-member-hero h1 {
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.app-member-hero > p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  text-align: center;
}

.app-member-login-actions,
.app-member-actions {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.app-member-login-actions a,
.app-member-actions a {
  min-width: 90px;
  padding: 8px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
}

.app-member-login-actions a:first-child {
  background: #fff;
  color: #c64d38;
  border-color: #fff;
}

.app-member-stats {
  margin: 0 -20px;
  padding: 13px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(160, 47, 28, 0.15);
  border-radius: 0 0 16px 16px;
}

.app-member-stats a {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.app-member-stats strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.app-member-stats span {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.app-member-card {
  margin-top: 12px;
  padding: 16px;
  background: var(--app-card);
  border-radius: 12px;
}

.app-member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.app-member-card-head > strong {
  position: relative;
  padding-left: 11px;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.app-member-card-head > strong i {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  background: var(--app-red);
  border-radius: 4px;
}

.app-member-card-head > a,
.app-member-card-head > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #979a95;
  font-size: 9px;
}

.app-order-icon-grid {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.app-order-icon-grid a,
.app-tool-grid a,
.app-tool-share {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #5d645f;
  font-size: 10px;
}

.app-order-icon-grid b,
.app-tool-grid b,
.app-tool-share b {
  font-weight: 400;
}

.app-order-icon,
.app-tool-grid > a > span,
.app-tool-share > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  font-size: 18px;
  font-style: normal;
}

.app-order-icon.wallet { background: linear-gradient(145deg, #f08270, #df5b49); }
.app-order-icon.package { background: linear-gradient(145deg, #f09988, #df6959); }
.app-order-icon.truck { background: linear-gradient(145deg, #f5a17f, #e47757); }
.app-order-icon.done { background: linear-gradient(145deg, #88c9a2, #559c73); }
.app-order-icon.list { background: linear-gradient(145deg, #e98c80, #d65d50); }

.app-tool-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.app-tool-grid > a > span {
  background: linear-gradient(145deg, #88bfd8, #5796bc);
}

.app-tool-grid > a:nth-child(2) > span { background: linear-gradient(145deg, #f5bb68, #e69538); }
.app-tool-grid > a:nth-child(3) > span { background: linear-gradient(145deg, #ae8de2, #8262c4); }
.app-tool-grid > a:nth-child(4) > span { background: linear-gradient(145deg, #79c7a3, #4e9d79); }

.app-tool-share {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-tool-share > span {
  background: linear-gradient(145deg, #e89983, #d6644f);
}

.product-share-trigger {
  margin-top: 15px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #646a65;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.product-share-trigger svg {
  width: 16px;
}

.share-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  overflow: auto;
  color: var(--ink);
  background: #fffdf9;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 24px 80px rgba(24, 34, 28, 0.24);
}

.share-dialog::backdrop {
  background: rgba(24, 33, 28, 0.56);
  backdrop-filter: blur(4px);
}

.share-dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  padding: 0;
  color: #8a8d88;
  background: transparent;
  border: 0;
  font-size: 24px;
}

.share-dialog-eyebrow {
  margin-bottom: 5px;
  color: var(--app-red);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.share-dialog h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.share-poster-frame {
  display: flex;
  justify-content: center;
}

.share-poster-canvas {
  width: min(322px, 80vw);
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(24, 34, 28, 0.14);
}

.share-poster-loading {
  margin: 0;
  padding: 76px 0;
  color: #90938d;
  font-size: 11px;
  text-align: center;
}

.share-device-note {
  margin: 11px 0 16px;
  color: #90938d;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.share-link-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.share-link-field span {
  color: #8b8e88;
  font-size: 9px;
}

.share-link-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfdbd3;
  outline: 0;
  background: #faf8f3;
  font-size: 10px;
}

.share-dialog-actions {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-dialog-actions .button {
  min-height: 40px;
  padding: 0 10px;
  font-size: 10px;
}

.share-dialog-actions .button:first-child {
  grid-column: span 2;
}

.app-address-manager {
  scroll-margin-top: 75px;
}

.app-address-grid {
  margin-top: 14px;
}

.app-member-logout {
  margin: 14px 0 5px;
  padding: 14px;
  background: var(--app-card);
  border-radius: 12px;
  text-align: center;
}

.app-member-logout button {
  border: 0;
  background: transparent;
  color: #7f837e;
  font-size: 11px;
}

.app-orders-page {
  padding-top: 17px;
  padding-bottom: 40px;
}

.app-order-tabs {
  padding: 5px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: var(--app-card);
  border-radius: 999px;
  scrollbar-width: none;
}

.app-order-tabs::-webkit-scrollbar {
  display: none;
}

.app-order-tabs a {
  padding: 8px 15px;
  flex: 1 0 auto;
  color: #737873;
  border-radius: 999px;
  font-size: 10px;
  text-align: center;
}

.app-order-tabs a.active {
  color: var(--app-red);
  background: var(--app-red-soft);
  font-weight: 600;
}

.app-order-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-order-card {
  padding: 15px;
  background: var(--app-card);
  border-radius: 12px;
}

.app-order-head,
.app-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-order-head {
  padding-bottom: 11px;
  color: #969993;
  border-bottom: 1px solid #eeece6;
  font-size: 9px;
}

.app-order-product-row {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-order-images {
  width: 76px;
  height: 80px;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.app-order-images img {
  width: 65px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.app-order-product-row p {
  margin: 0 0 5px;
  color: #555d58;
  font-size: 10px;
}

.app-order-product-row span {
  color: #969993;
  font-size: 9px;
}

.app-order-foot {
  padding-top: 11px;
  border-top: 1px solid #eeece6;
  font-size: 9px;
}

.app-order-foot > span {
  color: #969993;
}

.app-order-foot > strong {
  margin-left: auto;
  color: #3e4642;
}

.app-order-foot > a {
  padding: 6px 12px;
  color: var(--app-red);
  border: 1px solid #ebaa9e;
  border-radius: 999px;
}

.app-orders-empty {
  min-height: 420px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.app-orders-empty > span {
  color: #d8c5bb;
  font-size: 65px;
}

.app-orders-empty strong {
  font-size: 15px;
}

.app-orders-empty p {
  color: #9a9c97;
  font-size: 10px;
}

.app-orders-empty a {
  padding: 8px 20px;
  color: #fff;
  background: var(--app-red);
  border-radius: 999px;
  font-size: 10px;
}

.storefront .page-shell {
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .storefront {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .storefront .announcement,
  .storefront .site-header {
    display: none;
  }

  /* 页脚在移动端收成一条合规信息卡（运营主体 / 版权），不再整块占屏 */
  .storefront .site-footer {
    padding: 0;
    background: transparent;
    color: #8a8880;
  }

  .storefront .site-footer .footer-main {
    display: none;
  }

  .storefront .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 10px calc(76px + env(safe-area-inset-bottom));
    padding: 14px;
    border: 0;
    border-radius: 9px;
    background: #ffffff;
    color: #8a8880;
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-align: left;
  }

  .mobile-store-bar {
    position: sticky;
    top: 0;
    z-index: 45;
    height: 60px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7e7e3;
    backdrop-filter: blur(14px);
  }

  .mobile-store-bar > strong {
    overflow: hidden;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-store-home,
  .mobile-store-user {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
  }

  .mobile-store-home svg,
  .mobile-store-user svg {
    width: 23px;
    fill: none;
    stroke: #2e3631;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 55;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e3e3df;
    backdrop-filter: blur(15px);
  }

  .mobile-bottom-nav > a {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    color: #696d69;
    font-size: 10px;
  }

  .mobile-bottom-nav svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
  }

  .mobile-bottom-nav > a.active {
    color: #e18335;
    font-weight: 600;
  }

  .mobile-cart-icon {
    position: relative;
    height: 26px;
  }

  .mobile-cart-icon b {
    position: absolute;
    top: -2px;
    right: -11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--app-red);
    border-radius: 20px;
    font-size: 8px;
    line-height: 1;
  }

  .app-page-width {
    width: auto;
    margin-right: 0;
    margin-left: 0;
  }

  .app-search-row {
    padding: 10px 12px;
    gap: 7px;
    background: #fff;
  }

  .app-location {
    min-width: 65px;
    height: 38px;
    padding: 0 9px;
    background: #f6f5f1;
    font-size: 10px;
  }

  .app-search-box {
    height: 38px;
    padding: 0 13px;
    background: #f6f5f1;
  }

  .app-search-box input {
    font-size: 11px;
  }

  .app-share-trigger {
    width: 38px;
    height: 38px;
    background: #f6f5f1;
  }

  .app-share-trigger svg {
    width: 19px;
  }

  .app-promo {
    height: 205px;
    margin: 0 10px;
    border-radius: 12px;
  }

  .app-promo-carousel {
    height: 205px;
    margin: 0 10px;
    border-radius: 12px;
  }

  .app-promo-slide::after {
    background: linear-gradient(0deg, rgba(27, 37, 31, 0.74), rgba(27, 37, 31, 0.02) 80%);
  }

  .app-carousel-arrow {
    display: none;
  }

  .app-carousel-dots {
    right: 14px;
    bottom: 12px;
  }

  .app-carousel-dots button {
    width: 6px;
    height: 6px;
  }

  .app-carousel-dots button.active {
    width: 14px;
  }

  .app-promo > img {
    object-position: 60% center;
  }

  .app-promo::after {
    background: linear-gradient(0deg, rgba(27, 37, 31, 0.72), rgba(27, 37, 31, 0.02) 78%);
  }

  .app-promo-overlay {
    top: auto;
    right: 18px;
    bottom: 20px;
    left: 18px;
    transform: none;
  }

  .app-promo-overlay p {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .app-promo-overlay h1 {
    margin-bottom: 9px;
    font-size: 25px;
    line-height: 1.23;
  }

  .app-promo-overlay a {
    padding: 6px 13px;
    font-size: 9px;
  }

  .app-category-icons {
    margin: 9px 0 0;
    padding: 14px 4px 12px;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 14px;
    border-radius: 0;
  }

  .app-category-icons a > span {
    width: 54px;
    height: 54px;
  }

  .app-category-icons strong {
    margin-top: 6px;
    font-size: 11px;
  }

  .app-notice {
    min-height: 44px;
    margin: 8px 10px 0;
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
    border-radius: 8px;
  }

  .app-notice-icon {
    width: 24px;
    height: 24px;
  }

  .app-notice strong {
    font-size: 10px;
  }

  .app-notice p {
    font-size: 9px;
  }

  .app-feed {
    margin: 11px 10px 0;
  }

  .app-feed-head {
    margin-bottom: 10px;
    align-items: flex-end;
  }

  .app-feed-head strong {
    font-size: 19px;
  }

  .app-feed-head span {
    font-size: 8px;
  }

  .app-feed-head nav a {
    padding: 6px 10px;
    font-size: 9px;
  }

  .app-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .app-product-card {
    border-radius: 9px;
  }

  .app-product-image {
    padding-bottom: 115%;
  }

  .app-product-copy {
    padding: 8px 9px 10px;
  }

  .app-product-name {
    min-height: 34px;
    font-size: 12px;
    line-height: 1.42;
  }

  .app-product-copy > p {
    margin: 3px 0 7px;
    font-size: 8px;
  }

  .app-product-price-row strong {
    font-size: 19px;
  }

  .app-product-price-row del {
    font-size: 9px;
  }

  .app-product-actions {
    margin-top: 7px;
    gap: 5px;
  }

  .app-product-actions > a,
  .app-product-actions .app-buy-button {
    padding: 7px 3px;
    font-size: 10px;
  }

  .app-load-more {
    margin-top: 17px;
    padding: 8px 22px;
    font-size: 10px;
  }

  .app-editorial-banner {
    min-height: 240px;
    margin: 17px 10px 0;
    border-radius: 11px;
  }

  .app-editorial-banner > div {
    padding: 48px 25px;
  }

  .app-editorial-banner h2 {
    margin-bottom: 17px;
    font-size: 27px;
  }

  .app-category-page {
    padding: 9px 0 20px;
  }

  .app-category-search-row {
    margin: 0 10px;
    gap: 6px;
  }

  .app-category-search {
    height: 40px;
    padding: 0 13px;
    background: #f1f0ed;
    border: 0;
  }

  .app-category-drawer-trigger {
    height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .app-category-layout {
    margin-top: 7px;
  }

  .app-category-main {
    padding: 0 7px;
  }

  /* 分类页右下角搜索栏已有「分类」按钮，边缘悬浮标签会压住宫格首列，移动端隐藏 */
  .app-category-edge-tab {
    display: none;
  }

  .app-category-drawer-head {
    min-height: 92px;
    padding: 22px 18px 17px;
  }

  .app-category-drawer-head h2 {
    font-size: 18px;
  }

  .app-category-drawer-nav a {
    min-height: 54px;
    padding: 0 20px;
    font-size: 14px;
  }

  .app-category-drawer-secondary > span {
    padding-left: 20px;
  }

  .app-category-drawer-secondary a {
    padding: 0 20px;
  }

  .app-category-quick {
    padding: 9px;
    gap: 7px;
    border-radius: 9px;
  }

  .app-category-quick a {
    padding: 8px 14px;
    font-size: 12px;
  }

  .app-subcategory-grid {
    margin-top: 6px;
    padding: 16px 6px 14px;
    row-gap: 17px;
    border-radius: 9px;
  }

  .app-subcategory-grid .subcategory-art {
    width: 56px;
    height: 56px;
  }

  .app-subcategory-grid > a {
    gap: 8px;
  }

  .app-subcategory-grid b {
    min-height: 28px;
    padding: 0 2px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  .app-sort-row {
    min-height: 43px;
    margin-top: 6px;
    padding: 0 9px;
    gap: 12px;
    border-radius: 9px;
    font-size: 9px;
  }

  .app-sort-row > span:last-child {
    font-size: 7px;
  }

  .app-category-banner {
    min-height: 82px;
    margin: 6px 0;
    padding-left: 13px;
    border-radius: 9px;
  }

  .app-category-banner strong {
    width: 135px;
    font-size: 12px;
  }

  .app-category-banner img {
    width: 80px;
    height: 112px;
    right: 3px;
    bottom: -24px;
  }

  .app-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .app-category-grid .app-product-copy {
    padding: 7px 7px 9px;
  }

  .app-category-grid .app-product-name {
    min-height: 32px;
    font-size: 11px;
  }

  .app-category-grid .app-product-copy > p {
    display: none;
  }

  .app-category-grid .app-product-price-row {
    margin-top: 5px;
  }

  .app-category-grid .app-buy-button {
    padding: 4px 7px;
    font-size: 8px;
  }

  .app-member-page {
    padding: 0 0 15px;
  }

  .app-member-hero {
    padding: 22px 16px 0;
    border-radius: 0 0 14px 14px;
  }

  .app-member-logo {
    width: 54px;
    height: 54px;
  }

  .app-member-hero h1 {
    font-size: 18px;
  }

  .app-member-stats {
    margin: 0 -16px;
  }

  .app-member-card {
    margin: 9px 9px 0;
    padding: 15px 13px;
    border-radius: 10px;
  }

  .app-member-card-head > strong {
    font-size: 17px;
  }

  .app-order-icon-grid {
    margin-top: 17px;
  }

  .app-order-icon-grid a,
  .app-tool-grid a,
  .app-tool-share {
    gap: 6px;
    font-size: 9px;
  }

  .app-order-icon,
  .app-tool-grid > a > span,
  .app-tool-share > span {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  .app-tool-grid {
    margin-top: 17px;
  }

  .app-member-logout {
    margin: 9px;
  }

  .share-dialog {
    padding: 25px 20px 20px;
  }

  .share-qr-frame {
    width: min(210px, 64vw);
    height: min(210px, 64vw);
  }

  .app-orders-page {
    padding: 9px 9px 20px;
  }

  .app-order-tabs {
    padding: 4px;
  }

  .app-order-tabs a {
    padding: 7px 11px;
    font-size: 9px;
  }

  .app-order-list {
    margin-top: 8px;
  }

  .app-order-card {
    padding: 12px;
    border-radius: 10px;
  }

  .storefront .page-shell,
  .storefront .product-detail-shell {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .storefront .breadcrumb {
    margin-bottom: 15px;
  }

  .storefront .product-main-image {
    margin: 0;
    border-radius: 10px;
  }

  .storefront .cart-summary,
  .storefront .checkout-summary,
  .storefront .order-panel,
  .storefront .checkout-card {
    border-radius: 10px;
  }
}

@media (min-width: 901px) {
  .app-home-page {
    padding-bottom: 55px;
  }

  .app-member-page {
    padding-bottom: 55px;
  }

  .app-member-hero {
    max-width: 850px;
    margin: 20px auto 0;
  }

  .app-member-card {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
  }

  .app-member-logout {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* 卡片底部双按钮：统一高度、字号与描边宽度，避免“立即购买”看上去错位 */
.app-product-card .app-product-actions > a {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.app-product-card .app-product-actions > .app-cart-button {
  border-color: rgba(219, 95, 73, 0.78);
}

.app-product-card .app-buy-button {
  box-shadow: none;
}

@media (max-width: 900px) {
  .app-product-card .app-product-actions > a {
    height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .app-category-grid .app-product-card .app-product-actions > a {
    height: 26px;
    font-size: 10px;
  }
}

@media (min-width: 901px) {
  .app-product-card .app-product-actions > a {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* 页脚法务链接（桌面 + 移动合规卡） */
.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--terracotta);
}

.footer-legal-links i {
  margin: 0 6px;
  font-style: normal;
  opacity: 0.5;
}

/* ===== 邀请好友页 ===== */
.invite-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: grid;
  gap: 18px;
}

.invite-hero {
  background: linear-gradient(150deg, #fdfaf3 0%, #f6f1e8 100%);
  border: 1px solid rgba(35, 55, 47, 0.08);
  border-radius: 18px;
  padding: 26px 22px;
}

.invite-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #8d8f86;
}

.invite-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.35;
  color: #23372f;
}

.invite-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #5c6259;
}

.invite-lead strong { color: #db5f49; }

.invite-code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(35, 55, 47, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.invite-code-block { display: grid; gap: 4px; }
.invite-code-block span { font-size: 11px; color: #8d8f86; letter-spacing: 0.08em; }
.invite-code-block strong {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: 0.18em;
  color: #23372f;
}

.invite-link-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.invite-link-field span { font-size: 12px; color: #8d8f86; }
.invite-link-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(35, 55, 47, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #23372f;
  font-size: 13px;
}

.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.invite-actions .button { flex: 1 1 auto; min-height: 42px; }

.invite-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #8d8f86;
}

.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.invite-stats div {
  background: #fff;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(35, 55, 47, 0.06);
}
.invite-stats strong { display: block; font-size: 20px; color: #23372f; }
.invite-stats span { font-size: 11px; color: #8d8f86; }

.invite-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(35, 55, 47, 0.06);
  padding: 18px 18px 20px;
}
.invite-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.invite-card-head h2 { margin: 0; font-size: 17px; color: #23372f; }
.invite-card-head span { font-size: 12px; color: #8d8f86; }
.invite-empty { margin: 0; padding: 10px 0 4px; font-size: 13px; line-height: 1.7; color: #8d8f86; }

.invite-record-list, .coupon-list, .invite-rules .policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.invite-record-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(35, 55, 47, 0.07);
}
.invite-record-list li div { display: grid; gap: 3px; }
.invite-record-list strong { font-size: 14px; color: #23372f; }
.invite-record-list span { font-size: 11px; color: #8d8f86; }
.invite-record-side { justify-items: end; }
.invite-record-side em { font-style: normal; font-size: 15px; color: #db5f49; }

.invite-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
}
.invite-badge.pending { background: #fdf1e3; color: #b07a3a; }
.invite-badge.granted { background: #e8f2ec; color: #2f6b4d; }
.invite-badge.void { background: #f2f1ee; color: #8d8f86; }

.coupon-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(219, 95, 73, 0.35);
  background: #fffaf7;
}
.coupon-item.is-off { border-color: rgba(35, 55, 47, 0.12); background: #f7f7f4; opacity: 0.75; }
.coupon-amount { text-align: center; }
.coupon-amount strong { display: block; font-size: 20px; color: #db5f49; }
.coupon-amount span { font-size: 10px; color: #8d8f86; }
.coupon-body { display: grid; gap: 3px; }
.coupon-body strong { font-size: 14px; color: #23372f; }
.coupon-body span { font-size: 11px; color: #8d8f86; }
.coupon-body em {
  font-style: normal;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  color: #a9a397;
}
.coupon-state { font-size: 12px; color: #8d8f86; }

.invite-rules .policy-list li { font-size: 13px; line-height: 1.8; color: #5c6259; padding: 7px 0; border-top: 1px solid rgba(35,55,47,0.07); }
.invite-rules .policy-list li:first-child { border-top: 0; }

.app-invite-teaser p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #5c6259; }
.app-invite-teaser p b { color: #db5f49; }
.app-invite-teaser-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #23372f;
  color: #f7f3ea;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .invite-page { padding: 18px 14px 44px; gap: 14px; }
  .invite-hero { padding: 22px 16px; border-radius: 14px; }
  .invite-code-panel { flex-direction: column; align-items: stretch; }
  .invite-code-panel .button { width: 100%; }
  .invite-actions .button { flex-basis: 100%; }
  .coupon-item { grid-template-columns: 76px 1fr; }
  .coupon-state { grid-column: 2; justify-self: end; }
}

/* 结算页优惠券提示 */
.delivery-tip.is-warn { color: #c2553f; }
.coupon-options .shipping-choice > strong { color: #db5f49; }
