:root {
  --commerce-version: "0.2";
  --ink: #281f18;
  --paper: #f7f3ed;
  --card: #fffefa;
  --muted: #91877e;
  --line: #e9e1d8;
  --brand: #8b5a35;
  --brand-dark: #38291f;
  --soft: #efe4d7;
  --success: #55705a;
  --bottom-safe-area: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: calc(78px + var(--bottom-safe-area));
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: #d8d2cb;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
.mini-app {
  width: min(100%, 460px);
  height: 100%;
  min-height: 0;
  margin: auto;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 80px #2e21172e;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-header {
  height: 68px;
  flex: 0 0 68px;
  position: relative;
  z-index: 30;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 219, 209, 0.78);
  display: grid;
  grid-template-columns: 62px 1fr 76px;
  align-items: center;
  padding: 12px 14px;
}
.header-brand {
  text-align: center;
}
.header-brand b {
  display: block;
  font:
    700 16px Georgia,
    serif;
  letter-spacing: 2.5px;
}
.header-brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.nav-icon img {
  width: 20px;
  height: 20px;
}
.header-capsule {
  justify-self: end;
  width: 72px;
  height: 38px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.header-capsule i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    6px 0 var(--ink),
    -6px 0 var(--ink);
}
.header-capsule span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 5px var(--ink);
}
.app-view {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scroll-padding-bottom: 16px;
}
.app-view.has-fixed-actions {
  padding-bottom: calc(92px + var(--bottom-safe-area));
  scroll-padding-bottom: calc(92px + var(--bottom-safe-area));
}
.tabbar {
  position: relative;
  flex: 0 0 var(--bottom-nav-height);
  z-index: 35;
  width: 100%;
  height: var(--bottom-nav-height);
  padding: 7px 8px calc(7px + var(--bottom-safe-area));
  background: rgba(255, 254, 251, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 28px #39291d14;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.tab-item {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9b9189;
  font-size: 10px;
  position: relative;
}
.tab-item img {
  width: 25px;
  height: 25px;
  opacity: 0.65;
}
.tab-item.active {
  color: var(--ink);
  font-weight: 650;
}
.tab-item.active img {
  opacity: 1;
}
.tab-item.active::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 24px;
  height: 2px;
  background: var(--ink);
}
.page-loading,
.empty-state {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.page-loading i {
  width: 28px;
  height: 28px;
  border: 2px solid #d8ccc0;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.section {
  padding: 34px 20px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font:
    500 24px Georgia,
    "Songti SC",
    serif;
}
.section-head h2 small {
  font: 400 10px sans-serif;
  color: var(--muted);
  margin-left: 5px;
}
.section-head p,
.section-head button {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  background: transparent;
  padding: 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2.8px;
  color: #9f826a;
}
.pill {
  border-radius: 99px;
  padding: 7px 11px;
  background: var(--soft);
  color: #795437;
  font-size: 10px;
}
.primary-button,
.outline-button {
  height: 46px;
  border-radius: 10px;
  padding: 0 20px;
}
.primary-button {
  background: var(--brand-dark);
  color: #fff;
}
.outline-button {
  background: #fff;
  border: 1px solid var(--ink);
}
.icon-img {
  width: 20px;
  height: 20px;
}

.home-top {
  height: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}
.wordmark {
  font:
    700 18px Georgia,
    serif;
  letter-spacing: 3px;
}
.home-top span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.home-hero {
  height: clamp(340px, calc(100svh - 202px), 560px);
  margin: 0 12px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  position: relative;
  background: #bba58b;
}
.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(32, 24, 17, 0.02),
    rgba(32, 24, 17, 0.12) 45%,
    rgba(32, 24, 17, 0.58)
  );
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 55px;
  color: #fff;
}
.hero-copy small {
  font-size: 9px;
  letter-spacing: 3px;
}
.hero-copy h1 {
  font:
    500 36px/1.32 Georgia,
    "Songti SC",
    serif;
  margin: 13px 0 25px;
  text-wrap: balance;
}
.hero-copy button {
  background: #fff;
  color: var(--ink);
  height: 42px;
  padding: 0 25px;
  border-radius: 3px;
  font-size: 12px;
}
.hero-page {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 28px;
  color: #fff;
  font-size: 10px;
}
.coupon-banner {
  margin: -20px 24px 0;
  position: relative;
  z-index: 4;
  background: linear-gradient(105deg, #9a653c, #72472d);
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 28px #6f472b2b;
}
.coupon-banner small,
.coupon-banner b {
  display: block;
}
.coupon-banner small {
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.7;
}
.coupon-banner b {
  font:
    500 16px Georgia,
    "Songti SC",
    serif;
  margin-top: 5px;
}
.coupon-banner span {
  font-size: 11px;
}
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 16px 8px;
}
.quick-item {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eee4d8;
  display: grid;
  place-items: center;
}
.quick-icon img {
  width: 22px;
  height: 22px;
}
.product-scroll {
  display: flex;
  gap: 13px;
  overflow: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px;
}
.product-scroll::-webkit-scrollbar {
  display: none;
}
.product-card {
  flex: 0 0 184px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 7px 24px #3c2c1f0a;
  position: relative;
  text-align: left;
  padding: 0;
}
.product-card.grid-card {
  flex: auto;
}
.product-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e7ddd0;
}
.product-info {
  padding: 14px;
}
.product-info h3 {
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 5px;
  font-weight: 550;
}
.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 11px;
}
.price-row b {
  font:
    600 18px Georgia,
    serif;
}
.price-row del {
  font-size: 9px;
  color: #b4aaa1;
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 253, 249, 0.9);
  border-radius: 99px;
  padding: 5px 8px;
  color: #755238;
  font-size: 9px;
}
.mini-add {
  position: absolute;
  right: 11px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  line-height: 1;
}
.editorial {
  background: #2c251f;
  color: #fff;
}
.editorial .section-head p {
  color: #afa197;
}
.story-list {
  display: flex;
  flex-direction: column;
}
.story-card {
  display: grid;
  grid-template-columns: 92px 1fr 18px;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #ffffff1d;
  background: transparent;
  color: #fff;
  text-align: left;
}
.story-card img {
  width: 92px;
  height: 105px;
  object-fit: cover;
}
.story-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-card small {
  color: #b49c87;
  font-size: 9px;
}
.story-card b {
  font:
    500 15px/1.45 Georgia,
    "Songti SC",
    serif;
}
.story-card p {
  margin: 0;
  color: #aaa099;
  font-size: 10px;
  line-height: 1.55;
}
.member-teaser {
  margin: 24px 20px;
  padding: 34px 28px;
  background: #e9dfd2;
  border: 1px solid #c9b69f;
}
.member-teaser small {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #816d5b;
}
.member-teaser h2 {
  font:
    500 24px/1.5 Georgia,
    "Songti SC",
    serif;
  margin: 14px 0 24px;
}
.member-teaser button {
  background: transparent;
  border-bottom: 1px solid;
  padding: 0 0 3px;
  font-size: 11px;
}

.search-block {
  padding: 14px 18px;
  background: #fffefb;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
}
.search-box {
  height: 44px;
  background: #f2eee9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.search-box img {
  width: 18px;
  height: 18px;
  opacity: 0.62;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.square-icon {
  border-radius: 12px;
  background: #eee8e0;
  display: grid;
  place-items: center;
  position: relative;
}
.square-icon img {
  width: 22px;
  height: 22px;
}
.bubble {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #a95435;
  color: #fff;
  border: 1px solid #fff;
  font-size: 9px;
  line-height: 15px;
}
.category-tabs {
  display: flex;
  gap: 26px;
  overflow: auto;
  padding: 5px 20px 18px;
  background: #fffefb;
  scrollbar-width: none;
}
.category-tabs button {
  flex: 0 0 auto;
  background: transparent;
  padding: 10px 1px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.category-tabs button.active {
  color: var(--ink);
  font-weight: 650;
  border-color: var(--ink);
}
.mall-banner {
  height: 230px;
  margin: 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #fff;
}
.mall-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mall-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(32, 24, 17, 0.6));
}
.mall-banner-copy {
  position: absolute;
  z-index: 2;
  left: 25px;
  bottom: 26px;
}
.mall-banner-copy small {
  font-size: 8px;
  letter-spacing: 3px;
}
.mall-banner-copy h2 {
  font:
    500 24px Georgia,
    "Songti SC",
    serif;
  margin: 9px 0 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.product-grid .product-photo {
  height: 190px;
}

.magazine-hero {
  height: 310px;
  margin: 16px 18px 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: #29231e;
}
.magazine-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.magazine-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 22, 16, 0.12),
    rgba(30, 22, 16, 0.66)
  );
}
.magazine-copy {
  position: absolute;
  z-index: 2;
  left: 25px;
  right: 25px;
  bottom: 28px;
}
.magazine-copy b {
  font:
    700 20px Georgia,
    serif;
  letter-spacing: 4px;
}
.magazine-copy h1 {
  font:
    500 25px/1.45 Georgia,
    "Songti SC",
    serif;
  margin: 12px 0;
}
.magazine-copy small {
  font-size: 8px;
  letter-spacing: 2px;
}
.article-feed {
  padding: 22px 18px;
}
.article-card {
  background: var(--card);
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 18px;
}
.article-cover {
  height: 225px;
  position: relative;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-index {
  position: absolute;
  left: 18px;
  top: 16px;
  color: #fff;
  font:
    28px Georgia,
    serif;
  text-shadow: 0 2px 12px #0006;
}
.article-copy {
  padding: 20px;
}
.article-copy small {
  color: #997456;
  font-size: 10px;
}
.article-copy h2 {
  font:
    500 20px/1.5 Georgia,
    "Songti SC",
    serif;
  margin: 9px 0;
}
.article-copy p {
  color: #746b63;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.article-copy span {
  display: block;
  margin-top: 15px;
  font-size: 10px;
}

.points-hero {
  margin: 16px 18px 0;
  padding: 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #7f5a3d, #3c2c22);
  position: relative;
  overflow: hidden;
}
.points-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  right: -90px;
  top: -90px;
}
.points-hero small {
  font-size: 8px;
  letter-spacing: 2.5px;
  opacity: 0.65;
}
.balance {
  font:
    500 46px Georgia,
    serif;
  margin: 14px 0 5px;
}
.points-hero p {
  margin: 0;
  color: #d5c6ba;
  font-size: 10px;
}
.points-hero button {
  margin-top: 24px;
  height: 39px;
  border-radius: 99px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
.streak {
  margin: 13px 18px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.streak div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.streak b {
  font-size: 13px;
}
.streak span {
  color: var(--muted);
  font-size: 10px;
}
.points-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.points-product {
  background: #fff;
  border-radius: 15px;
  padding: 11px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 13px;
  align-items: center;
}
.points-product img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}
.points-product div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.points-product b {
  font-size: 13px;
}
.points-product span {
  color: var(--brand);
  font:
    600 16px Georgia,
    serif;
}
.points-product button {
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  padding: 8px 11px;
  font-size: 9px;
}
.points-product button:disabled {
  background: #d2cac2;
}
.rule-card {
  margin: 0 20px 20px;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
}
.rule-card h3 {
  font:
    500 17px Georgia,
    "Songti SC",
    serif;
  margin: 0 0 14px;
}
.rule-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #766d65;
  margin: 0;
}

.profile-hero {
  height: 240px;
  background: linear-gradient(140deg, #332921, #826246);
  color: #fff;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "M";
  position: absolute;
  right: -10px;
  top: 20px;
  font:
    200px Georgia,
    serif;
  color: #ffffff0c;
}
.profile-brand {
  font:
    700 13px Georgia,
    serif;
  letter-spacing: 3px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 42px;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #c9a889;
  display: grid;
  place-items: center;
  font:
    25px Georgia,
    serif;
}
.identity div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.identity b {
  font:
    500 19px Georgia,
    "Songti SC",
    serif;
}
.identity small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d5c7bb;
}
.asset-card {
  margin: -28px 20px 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 10px 30px #35251813;
}
.asset-card button {
  height: 88px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-size: 10px;
}
.asset-card button:last-child {
  border: 0;
}
.asset-card b {
  font:
    600 22px Georgia,
    serif;
}
.order-panel,
.service-panel {
  margin: 15px 20px;
  background: #fff;
  border-radius: 17px;
  padding: 20px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-title b {
  font:
    500 16px Georgia,
    "Songti SC",
    serif;
}
.panel-title button {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.order-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.order-shortcuts button {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}
.order-shortcuts img {
  width: 25px;
  height: 25px;
}
.member-card {
  margin: 15px 20px;
  padding: 24px;
  border-radius: 17px;
  background: linear-gradient(120deg, #e9dac7, #c8ab88);
  color: #493626;
}
.member-card small {
  font-size: 8px;
  letter-spacing: 2px;
}
.member-card h2 {
  font:
    500 20px Georgia,
    "Songti SC",
    serif;
  margin: 9px 0;
}
.member-card p {
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
  color: #705844;
}
.service-link {
  width: 100%;
  height: 53px;
  background: transparent;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  text-align: left;
  font-size: 12px;
}
.service-link img {
  width: 20px;
  height: 20px;
}
.service-link span:last-child {
  color: #a59b93;
}

.detail-hero {
  height: 510px;
  position: relative;
  background: #d6c2a4;
}
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 99px;
  padding: 6px 10px;
  background: #2a201999;
  color: #fff;
  font-size: 9px;
}
.detail-card {
  background: #fff;
  padding: 24px 20px;
}
.detail-card .price-main {
  color: #884d2b;
  font:
    600 34px Georgia,
    serif;
}
.detail-card del {
  color: #aaa098;
  font-size: 11px;
  margin-left: 8px;
}
.detail-card h1 {
  font:
    500 22px/1.5 Georgia,
    "Songti SC",
    serif;
  margin: 15px 0 5px;
}
.detail-card > p {
  color: #756c64;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.metrics {
  display: flex;
  gap: 18px;
  color: #a0978e;
  font-size: 9px;
  padding: 12px 0 18px;
}
.detail-coupon {
  width: 100%;
  height: 58px;
  border-radius: 10px;
  background: #f1e5d7;
  color: #68462f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.detail-coupon b {
  font:
    600 18px Georgia,
    serif;
  margin-right: 7px;
}
.detail-coupon em {
  font-style: normal;
  color: #fff;
  background: var(--brand);
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 9px;
}
.promise-row {
  display: flex;
  justify-content: space-between;
  padding: 17px 1px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  color: #6c625a;
}
.option-row {
  width: 100%;
  min-height: 55px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 11px;
}
.option-row span:first-child {
  color: var(--muted);
}
.option-row img {
  width: 15px;
  height: 15px;
}
.detail-story {
  margin-top: 12px;
  padding: 40px 20px;
  background: #2a241f;
  color: #fff;
}
.detail-story small {
  color: #b29983;
  font-size: 8px;
  letter-spacing: 3px;
}
.detail-story h2 {
  font:
    500 26px/1.5 Georgia,
    "Songti SC",
    serif;
  margin: 12px 0 24px;
}
.detail-story > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.story-points div {
  padding: 18px;
  border: 1px solid #ffffff20;
}
.story-points b {
  display: block;
  font:
    500 15px Georgia,
    "Songti SC",
    serif;
  margin: 20px 0 7px;
}
.story-points p {
  font-size: 9px;
  line-height: 1.7;
  color: #b6ada5;
  margin: 0;
}
.review-block {
  margin-top: 12px;
  background: #fff;
  padding: 25px 20px;
}
.review-tags {
  display: flex;
  gap: 7px;
  margin: 16px 0;
}
.review-tags span {
  padding: 7px 10px;
  background: #f2eee8;
  border-radius: 99px;
  font-size: 9px;
}
.review-user {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 9px;
  align-items: center;
}
.review-user .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.review-user div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
}
.review-user small,
.review-user time {
  font-size: 8px;
  color: var(--muted);
}
.review-text {
  font-size: 11px;
  line-height: 1.75;
  color: #645c54;
}
.buybar {
  position: absolute;
  z-index: 38;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(76px + var(--bottom-safe-area));
  background: rgba(255, 254, 251, 0.97);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 52px 52px 1fr 1fr;
  gap: 7px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px #39291d14;
}
.buybar button {
  border-radius: 9px;
  font-size: 11px;
}
.buy-icon {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 9px !important;
}
.buy-icon img {
  width: 21px;
  height: 21px;
}
.buybar .add {
  background: #fff;
  border: 1px solid var(--ink);
}
.buybar .buy {
  background: var(--ink);
  color: #fff;
}

.cart-page,
.checkout-page,
.orders-page {
  padding: 18px;
}
.cart-row {
  background: #fff;
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 13px;
}
.cart-row > img {
  width: 92px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cart-copy b {
  font-size: 12px;
}
.cart-copy small {
  color: var(--muted);
  font-size: 9px;
}
.cart-copy strong {
  font:
    600 17px Georgia,
    serif;
}
.stepper {
  display: flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.stepper button {
  width: 30px;
  height: 28px;
  background: #f2eee9;
}
.stepper span {
  width: 32px;
  text-align: center;
  font-size: 11px;
}
.remove-link {
  background: transparent;
  color: #a48369;
  font-size: 9px;
  padding: 0;
  align-self: end;
}
.sticky-total {
  position: absolute;
  z-index: 32;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 12px 18px calc(12px + var(--bottom-safe-area));
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 20px #39291d10;
}
.sticky-total div {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.sticky-total b {
  font:
    600 24px Georgia,
    serif;
}
.form-card,
.summary-card,
.order-card {
  background: #fff;
  border-radius: 15px;
  padding: 18px;
  margin-bottom: 13px;
}
.form-card h2,
.summary-card h2 {
  font:
    500 17px Georgia,
    "Songti SC",
    serif;
  margin: 0 0 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}
.field label {
  font-size: 9px;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf9f6;
  padding: 12px;
  font-size: 11px;
  outline: 0;
}
.field textarea {
  resize: none;
  min-height: 74px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.checkout-item img {
  width: 68px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.checkout-item small {
  color: var(--muted);
  font-size: 9px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 10px;
}
.totals-row.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 5px;
  font-weight: 650;
}
.totals-row.total b {
  font:
    600 22px Georgia,
    serif;
}
.checkout-submit {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.order-card {
  padding: 0 16px;
}
.order-head {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.order-head b {
  color: var(--brand);
  font-size: 11px;
}
.order-products {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
}
.order-foot {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.order-foot strong {
  font:
    600 18px Georgia,
    serif;
}
.order-foot button {
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 9px;
}

.article-detail {
  background: #fff;
}
.article-heading {
  padding: 35px 22px;
}
.article-heading small {
  color: #9b765a;
  font-size: 9px;
}
.article-heading h1 {
  font:
    500 28px/1.45 Georgia,
    "Songti SC",
    serif;
  margin: 12px 0;
}
.article-heading p {
  color: #756c64;
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
}
.article-main-image {
  width: calc(100% - 36px);
  margin: 0 18px;
  height: 460px;
  object-fit: cover;
}
.article-body {
  padding: 32px 24px;
  font:
    400 13px/2 "Songti SC",
    serif;
  color: #44382e;
}
.article-quote {
  margin: 26px 0;
  padding: 22px;
  background: #f1ebe3;
  border-left: 4px solid #8d6b50;
  font:
    500 16px/1.7 Georgia,
    "Songti SC",
    serif;
}
.linked-product {
  margin: 0 20px 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 82px 1fr 18px;
  gap: 12px;
  align-items: center;
  background: #fff;
}
.linked-product img {
  width: 82px;
  height: 90px;
  object-fit: cover;
  border-radius: 9px;
}
.linked-product div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.linked-product small {
  color: var(--brand);
  font-size: 9px;
}
.linked-product b {
  font-size: 12px;
}
.linked-product strong {
  font:
    600 16px Georgia,
    serif;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #1f18134d;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.22s;
}
.scrim.open {
  opacity: 1;
  visibility: visible;
}
.sheet {
  width: min(100%, 460px);
  max-height: 80vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  background: #fffdfa;
  padding: 30px 21px calc(22px + env(safe-area-inset-bottom));
  position: relative;
  transform: translateY(28px);
  transition: 0.24s;
}
.scrim.open .sheet {
  transform: translateY(0);
}
.sheet-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2eee9;
  color: #786d65;
  font-size: 19px;
}
.sheet h2 {
  font:
    500 21px Georgia,
    "Songti SC",
    serif;
  margin: 0 40px 20px 0;
}
.sheet-row {
  width: 100%;
  background: transparent;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 15px 0;
  text-align: left;
}
.sheet-row img {
  width: 21px;
  height: 21px;
}
.sheet-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-row b {
  font-size: 12px;
}
.sheet-row small {
  font-size: 9px;
  color: var(--muted);
}
.sheet-row em {
  font-style: normal;
  color: var(--brand);
  font-size: 9px;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 18px);
  padding: 10px 16px;
  border-radius: 99px;
  background: #211a16e8;
  color: #fff;
  white-space: nowrap;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error-card {
  margin: 30px 20px;
  padding: 24px;
  border-radius: 15px;
  background: #fff;
  color: #7e4e3a;
  font-size: 12px;
  line-height: 1.7;
}
.cart-float {
  position: absolute;
  z-index: 31;
  right: 18px;
  bottom: calc(var(--bottom-nav-height) + 14px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 9px 24px #3a291d38;
}
.cart-float img {
  width: 23px;
  height: 23px;
  filter: invert(1);
  margin: auto;
}
.cart-float .bubble {
  top: -3px;
  right: -3px;
}
@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }
  .mini-app {
    border-radius: 28px;
  }
  .tabbar,
  .buybar {
    border-radius: 0 0 28px 28px;
  }
  .scrim {
    align-items: center;
  }
  .sheet {
    border-radius: 22px;
  }
}
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8b5a35;
  outline-offset: 3px;
}
.product-card {
  cursor: pointer;
}
.product-photo {
  background: #eee7de;
}
.cart-row {
  grid-template-columns: 20px 78px 1fr auto;
  gap: 9px;
}
.cart-row > img {
  width: 78px;
  height: 100px;
}
.cart-select {
  align-self: center;
}
.field label,
.field {
  font-size: 12px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf9f6;
  padding: 12px;
  font-size: 14px;
  outline: 0;
}
.field textarea {
  min-height: 90px;
}
.field select {
  min-height: 44px;
}
.check-line {
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 15px 0;
}
.check-line input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--brand);
}
a {
  color: var(--brand);
}
.auth-page {
  padding: 52px 28px;
}
.auth-page > small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--brand);
}
.auth-page h1 {
  font:
    500 29px/1.5 Georgia,
    "Songti SC",
    serif;
}
.auth-page > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.text-button {
  background: transparent;
  padding: 14px 0;
  color: var(--brand);
  font-size: 12px;
  display: block;
}
.form-error {
  color: #ac3f32;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.form-error:not(:empty) {
  padding: 12px;
  background: #fff2ee;
  border-radius: 8px;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.legal-note {
  padding: 0 2px;
}
.pre-line {
  white-space: pre-line;
  line-height: 1.9;
}
.order-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 0 16px;
}
.compact {
  height: 36px;
  padding: 0 12px;
  font-size: 11px;
}
.order-status {
  padding: 22px 4px;
}
.order-status small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--brand);
}
.order-status h1 {
  font:
    500 28px Georgia,
    "Songti SC",
    serif;
}
.order-status p {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.summary-card p {
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}
.timeline-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 2px solid var(--line);
  padding-left: 13px;
}
.timeline-row b {
  font-weight: 500;
}
.timeline-row small {
  color: var(--muted);
  font-size: 10px;
}
.payment-page {
  padding: 45px 28px;
  text-align: center;
}
.payment-page > small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--brand);
}
.payment-page h1 {
  font:
    500 48px Georgia,
    serif;
  margin: 25px 0;
}
.payment-page > p {
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}
.payment-page button {
  margin-top: 15px;
  width: 100%;
}
.payment-qr {
  width: 260px;
  height: 260px;
  max-width: 100%;
  margin: 25px auto;
}
.payment-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 24px;
}
.notice-card {
  border: 1px solid #d8b78f;
  background: #f6ead8;
  padding: 18px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
  margin: 25px 0;
}
.coupon-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 12px;
  margin: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.coupon-card > strong {
  font:
    500 25px Georgia,
    serif;
  color: var(--brand);
  min-width: 55px;
}
.coupon-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.coupon-card b {
  font-size: 13px;
}
.coupon-card small {
  font-size: 10px;
  color: var(--muted);
}
.address-card {
  margin-top: 15px;
}
.address-card b {
  font-size: 13px;
}
.address-card b small {
  color: var(--brand);
}
.redeem-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.ticket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 19px 14px;
  border-radius: 12px;
  background: #fff;
  margin: 10px 0;
  text-align: left;
}
.ticket-card b {
  font-size: 13px;
  font-weight: 500;
}
.ticket-card span {
  font-size: 10px;
  color: var(--brand);
}
.messages {
  padding: 10px 0;
}
.message {
  background: #eee5da;
  border-radius: 14px;
  padding: 15px;
  margin: 15px 0 15px 30px;
  word-break: break-word;
}
.message.from-admin {
  margin-left: 0;
  margin-right: 30px;
  background: #fff;
}
.message small {
  font-size: 10px;
  color: var(--brand);
}
.message p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}
.message time {
  font-size: 9px;
  color: var(--muted);
}
.info-page {
  min-height: 60vh;
  background: #fff;
}
.info-page h1 {
  font-size: 24px;
}
.product-description {
  padding: 0;
  color: #e6d9cb;
  font: 400 14px/1.9 sans-serif;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 48%;
  width: 36px;
  height: 44px;
  background: #ffffff99;
  border-radius: 5px;
  font-size: 28px;
}
.gallery-prev {
  left: 10px;
}
.gallery-next {
  right: 10px;
}
.danger {
  color: #ac3f32;
}
.points-hero button + button {
  margin-left: 10px;
}
.sheet .field {
  margin-top: 13px;
}
.app-view > .orders-page > h2 {
  font:
    500 22px Georgia,
    "Songti SC",
    serif;
}
.service-link {
  font-size: 13px;
}
.section-head h2 {
  font-size: 23px;
}
@media (min-width: 700px) {
  .sticky-total {
    border-radius: 0 0 28px 28px;
  }
}
@media (max-width: 380px) {
  .cart-row {
    grid-template-columns: 18px 62px 1fr auto;
  }
  .cart-row > img {
    width: 62px;
  }
  .order-actions {
    gap: 5px;
  }
  .compact {
    font-size: 10px;
    padding: 0 8px;
  }
  .points-product {
    grid-template-columns: 65px 1fr auto;
    gap: 8px;
  }
  .points-product img {
    width: 65px;
    height: 75px;
  }
  .hero-copy h1 {
    font-size: 31px;
  }
}
