/* 木屿 H5 · 商品详情页样式（自 detail.wxss rpx→rem，1rem = 100rpx） */

.detail-page {
  position: relative;
  min-height: 100vh;
  background: #f7f3ea;
}

/* ---------- Hero 大图 ---------- */
.detail-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8.1rem;
}

/* 复用 nav 生成的返回按钮，绝对定位覆盖在大图上 */
.detail-hero .nav-shell {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 0.2rem);
  left: 0;
  right: 0;
  z-index: 6;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.detail-hero .nav-inner {
  min-height: 0 !important;
  padding: 0 0 0 0.28rem !important;
}
.detail-hero .nav-left {
  min-width: 0;
}
.detail-hero .back-btn {
  width: 0.68rem;
  height: 0.68rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: 0 0.08rem 0.2rem rgba(44, 40, 30, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-product-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-product-image.is-contain {
  object-fit: contain;
}

.hero-top-shade {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2.6rem;
  background: linear-gradient(180deg, rgba(28, 32, 25, 0.32) 0%, rgba(28, 32, 25, 0) 100%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 1.9rem;
  right: -0.86rem;
  width: 3.3rem;
  height: 3.3rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero .back-arrow {
  width: 0.18rem;
  height: 0.18rem;
  margin-left: 0.05rem;
  border-bottom: 0.02rem solid #2e3129;
  border-left: 0.02rem solid #2e3129;
  transform: rotate(45deg);
}

.hero-actions {
  position: absolute;
  right: 0.28rem;
  bottom: 1.42rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
}

.hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.68rem;
  height: 0.68rem;
  margin-bottom: 0.16rem;
  padding: 0;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.84);
  color: #3d4238;
  box-shadow: 0 0.08rem 0.2rem rgba(44, 40, 30, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-action:active {
  opacity: 0.68;
}
.hero-action .icon {
  width: 0.3rem;
  height: 0.3rem;
}
.favorite-icon {
  color: #b05f40;
}

.hero-meta {
  position: absolute;
  bottom: 1.04rem;
  left: 0.3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 0.48rem;
  padding: 0 0.18rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 999rem;
  background: rgba(255, 252, 246, 0.7);
  color: #4c4d42;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.13rem;
  letter-spacing: 0.02rem;
}
.hero-meta-line {
  width: 0.18rem;
  height: 0.01rem;
  margin: 0 0.1rem;
  background: rgba(36, 38, 31, 0.25);
}
.hero-meta-category {
  font-size: 0.17rem;
  letter-spacing: 0.01rem;
}

.hero-serial {
  position: absolute;
  top: 2.1rem;
  left: 0.32rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: rgba(36, 38, 31, 0.37);
  font-size: 0.12rem;
  letter-spacing: 0.02rem;
}
.hero-serial-number {
  font-size: 0.17rem;
  letter-spacing: 0.01rem;
}
.hero-serial-line {
  width: 0.01rem;
  height: 0.38rem;
  margin: 0.09rem 0 0.08rem 0.07rem;
  background: rgba(36, 38, 31, 0.2);
}
.hero-serial-en {
  writing-mode: vertical-rl;
  letter-spacing: 0.02rem;
}

/* ---------- 详情 Sheet ---------- */
.detail-sheet {
  position: relative;
  z-index: 5;
  margin-top: -0.58rem;
  padding: 0 0.32rem;
  border-radius: 0.42rem 0.42rem 0 0;
  background: #f7f3ea;
  box-shadow: 0 -0.1rem 0.4rem rgba(44, 39, 28, 0.05);
}
.sheet-handle {
  width: 0.66rem;
  height: 0.06rem;
  margin: 0.16rem auto 0;
  border-radius: 999rem;
  background: rgba(36, 38, 31, 0.13);
}

.detail-heading {
  padding-top: 0.24rem;
}
.tag-row {
  display: flex;
  align-items: center;
}
.detail-tag {
  height: 0.36rem;
  padding: 0 0.15rem;
  border-radius: 999rem;
  background: #20372c;
  color: #f7f3ea;
  font-size: 0.17rem;
  letter-spacing: 0.015rem;
  line-height: 0.36rem;
}
.detail-badge {
  height: 0.34rem;
  margin-left: 0.1rem;
  padding: 0 0.13rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 999rem;
  color: #8f8778;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.14rem;
  letter-spacing: 0.01rem;
  line-height: 0.32rem;
}
.detail-title {
  display: block;
  margin-top: 0.18rem;
  color: #282b23;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  line-height: 1.25;
}
.detail-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.09rem;
}
.detail-en {
  color: #948d7f;
}
.rating {
  display: flex;
  align-items: center;
  color: #817b6e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.17rem;
  letter-spacing: 0.005rem;
}
.rating .icon {
  width: 0.2rem;
  height: 0.2rem;
  margin-right: 0.04rem;
  color: #b28d55;
}
.rating-divider {
  margin: 0 0.04rem;
  color: #b8b1a3;
}
.detail-blurb {
  display: block;
  margin-top: 0.17rem;
  color: #797367;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
  line-height: 1.8;
}
.detail-price-row {
  display: flex;
  align-items: center;
  margin-top: 0.2rem;
}
.detail-price {
  color: #2b2e26;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52rem;
  letter-spacing: 0;
  line-height: 1;
}
.detail-price-symbol {
  margin-right: 0.03rem;
  font-size: 0.26rem;
}
.detail-original {
  margin-left: 0.13rem;
  color: #aaa396;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.21rem;
  text-decoration: line-through;
}
.member-price {
  margin-left: 0.15rem;
  padding: 0.05rem 0.12rem;
  border-radius: 0.05rem;
  background: #eee3d1;
  color: #8e7145;
  font-size: 0.16rem;
  letter-spacing: 0.005rem;
}

/* ---------- 信任条 ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.24rem;
  padding: 0.18rem 0.08rem;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-bottom: 0.01rem solid rgba(36, 38, 31, 0.08);
}
.trust-item {
  display: flex;
  align-items: center;
  color: #6e685c;
  font-size: 0.18rem;
  letter-spacing: 0.005rem;
}
.trust-item .icon {
  width: 0.26rem;
  height: 0.26rem;
  margin-right: 0.08rem;
  color: #7b806e;
}
.trust-divider {
  width: 0.01rem;
  height: 0.22rem;
  background: rgba(36, 38, 31, 0.1);
}

/* ---------- 规格 / 数量 ---------- */
.selection-card {
  margin-top: 0.22rem;
  padding: 0.23rem 0.24rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.06);
  border-radius: 0.24rem;
  background: #fffcf6;
}
.selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.selection-title {
  color: #3b3e35;
  font-size: 0.23rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
}
.selection-current {
  color: #999284;
  font-size: 0.17rem;
}
.spec-options {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.16rem;
}
.spec-option {
  display: flex;
  align-items: center;
  height: 0.6rem;
  margin: 0 0.12rem 0.1rem 0;
  padding: 0 0.22rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.11);
  border-radius: 999rem;
  color: #6b6559;
  font-size: 0.2rem;
  letter-spacing: 0.005rem;
  transition: all 0.2s ease;
}
.spec-option--active {
  border-color: #20372c;
  background: #20372c;
  color: #f7f3ea;
}
.spec-check {
  display: none;
  width: 0.07rem;
  height: 0.07rem;
  margin-left: 0.08rem;
  border-radius: 50%;
  background: #c6b287;
}
.spec-option--active .spec-check {
  display: block;
}
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.14rem;
  padding-top: 0.2rem;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.08);
}
.quantity-note {
  margin-left: 0.12rem;
  color: #b0a99c;
  font-size: 0.16rem;
}
.stepper {
  display: flex;
  align-items: center;
  height: 0.5rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 999rem;
}
.step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.48rem;
  height: 100%;
  color: #43463d;
}
.step-btn .icon {
  width: 0.18rem;
  height: 0.18rem;
}
.step-btn--muted {
  color: #c8c1b5;
}
.step-value {
  width: 0.42rem;
  color: #3a3d34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.21rem;
  text-align: center;
}

/* ---------- 配送行 ---------- */
.delivery-row {
  display: flex;
  align-items: center;
  margin-top: 0.06rem;
  padding: 0.2rem 0.04rem;
  border-bottom: 0.01rem solid rgba(36, 38, 31, 0.08);
  color: #817b6e;
}
.delivery-row > .icon:first-child {
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.12rem;
  color: #767f6d;
}
.delivery-copy {
  flex: 1;
  min-width: 0;
}
.delivery-main {
  display: block;
  color: #4c4e44;
  font-size: 0.2rem;
  letter-spacing: 0.002rem;
}
.delivery-sub {
  display: block;
  margin-top: 0.03rem;
  color: #aaa294;
  font-size: 0.16rem;
  letter-spacing: 0.002rem;
}
.delivery-row .icon-chevron-right {
  width: 0.21rem;
  height: 0.21rem;
  color: #b4ada0;
}

/* ---------- 通用 section ---------- */
.detail-section {
  margin-top: 0.44rem;
}
.detail-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.detail-section-title {
  display: block;
  margin-top: 0.07rem;
  color: #2e3129;
  font-size: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
  line-height: 1.3;
}
.detail-section-note {
  color: #c0b8aa;
  font-size: 0.26rem;
  letter-spacing: 0.01rem;
}

/* ---------- 细节与用心 ---------- */
.feature-card {
  margin-top: 0.2rem;
  padding: 0.02rem 0.24rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.06);
  border-radius: 0.24rem;
  background: #fffcf6;
}
.feature-row {
  display: flex;
  align-items: center;
  height: 0.82rem;
  border-bottom: 0.01rem solid rgba(36, 38, 31, 0.07);
}
.feature-number {
  width: 0.56rem;
  color: #b49a6b;
  font-size: 0.2rem;
  letter-spacing: 0.01rem;
}
.feature-text {
  flex: 1;
  color: #54564c;
  font-size: 0.21rem;
  letter-spacing: 0.004rem;
}
.feature-dot {
  width: 0.04rem;
  height: 0.04rem;
  border-radius: 50%;
  background: #c2b9a9;
}
.feature-note {
  display: flex;
  align-items: flex-start;
  margin: 0.16rem 0 0.18rem;
  padding: 0.15rem 0.16rem;
  border-radius: 0.14rem;
  background: #f2eee4;
  color: #9b9385;
  font-size: 0.17rem;
  line-height: 1.6;
}
.feature-note .icon {
  flex: none;
  width: 0.24rem;
  height: 0.24rem;
  margin: 0.01rem 0.09rem 0 0;
  color: #7e8b75;
}

/* ---------- 关于这件好物 ---------- */
.story-text {
  display: block;
  margin-top: 0.17rem;
  color: #6d675b;
  font-size: 0.22rem;
  letter-spacing: 0.004rem;
  line-height: 1.9;
}
.story-card {
  position: relative;
  overflow: hidden;
  height: 3.9rem;
  margin-top: 0.24rem;
  border-radius: 0.28rem;
}
.story-product {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-product.is-contain {
  object-fit: contain;
}
.story-card-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(30, 37, 29, 0.48) 0%, rgba(30, 37, 29, 0) 54%);
}
.story-card-label {
  position: absolute;
  right: 0.28rem;
  bottom: 0.26rem;
  left: 0.28rem;
  z-index: 2;
}
.story-card-en {
  display: block;
  color: #f3e6cc;
  font-size: 0.17rem;
  letter-spacing: 0.03rem;
}
.story-card-cn {
  display: block;
  margin-top: 0.05rem;
  color: rgba(250, 246, 236, 0.72);
  font-size: 0.17rem;
  letter-spacing: 0.02rem;
}
.story-card-ring {
  position: absolute;
  top: 0.24rem;
  right: 0.24rem;
  width: 0.76rem;
  height: 0.76rem;
  border: 0.01rem solid rgba(250, 246, 236, 0.4);
  border-radius: 50%;
}

/* ---------- 品牌承诺卡 ---------- */
.pledge-card {
  position: relative;
  overflow: hidden;
  margin-top: 0.44rem;
  padding: 0.3rem 0.3rem 0.26rem;
  border-radius: 0.3rem;
  background: #20372c;
  color: #f6f1e8;
}
.pledge-card::after {
  position: absolute;
  top: -1.2rem;
  right: -1rem;
  width: 3.3rem;
  height: 3.3rem;
  border: 0.01rem solid rgba(246, 241, 232, 0.08);
  border-radius: 50%;
  content: "";
}
.pledge-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pledge-eyebrow {
  color: #b9a274;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.15rem;
  letter-spacing: 0.04rem;
}
.pledge-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.64rem;
  height: 0.64rem;
  border: 0.01rem solid rgba(246, 241, 232, 0.3);
  border-radius: 50%;
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.17rem;
  letter-spacing: 0.01rem;
  transform: rotate(7deg);
}
.pledge-title {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 0.2rem;
  font-size: 0.44rem;
  font-weight: 400;
  letter-spacing: 0.01rem;
  line-height: 1.42;
}
.pledge-title span {
  display: block;
}
.pledge-text {
  position: relative;
  z-index: 2;
  margin-top: 0.14rem;
  color: rgba(246, 241, 232, 0.56);
  font-size: 0.19rem;
  letter-spacing: 0.005rem;
  line-height: 1.8;
}
.pledge-text span {
  display: block;
}
.pledge-line {
  position: relative;
  z-index: 2;
  height: 0.01rem;
  margin-top: 0.24rem;
  background: rgba(246, 241, 232, 0.12);
}
.pledge-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.18rem;
  color: rgba(246, 241, 232, 0.52);
  font-size: 0.15rem;
  letter-spacing: 0.01rem;
}

/* ---------- 搭配推荐 ---------- */
.recommend-section {
  margin-top: 0.46rem;
}
.rec-scroll {
  width: calc(100% + 0.64rem);
  margin-left: -0.32rem;
  white-space: nowrap;
}
.rec-track {
  display: inline-block;
  padding: 0 0.32rem;
}
.rec-card {
  display: inline-block;
  width: 2.86rem;
  margin-right: 0.18rem;
  vertical-align: top;
  white-space: normal;
}
.rec-card:last-child {
  margin-right: 0.32rem;
}
.rec-media {
  overflow: hidden;
  width: 2.86rem;
  height: 2.86rem;
  border-radius: 0.22rem;
}
.rec-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-image.is-contain {
  object-fit: contain;
}
.rec-name {
  display: block;
  overflow: hidden;
  margin-top: 0.11rem;
  color: #3a3d34;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rec-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.03rem;
}
.rec-price {
  color: #7e6247;
  font-size: 0.22rem;
}
.rec-tag {
  color: #aca497;
  font-size: 0.15rem;
}

/* ---------- 页脚 ---------- */
.detail-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.56rem 0 0.3rem;
}
.detail-end-en {
  color: #b2a891;
  font-size: 0.16rem;
  letter-spacing: 0.04rem;
}
.detail-end-line {
  width: 0.24rem;
  height: 0.01rem;
  margin: 0.13rem 0;
  background: rgba(36, 38, 31, 0.2);
}
.detail-end-text {
  color: #a29b8e;
  font-size: 0.15rem;
  letter-spacing: 0.02rem;
}
.detail-bottom-space {
  height: calc(1.6rem + env(safe-area-inset-bottom));
}

/* ---------- 底部固定操作栏 ---------- */
.action-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 480px);
  z-index: 90;
  display: flex;
  align-items: center;
  padding: 0.14rem 0.24rem calc(0.14rem + env(safe-area-inset-bottom));
  border-top: 0.01rem solid rgba(36, 38, 31, 0.08);
  background: rgba(255, 252, 246, 0.97);
  box-shadow: 0 -0.1rem 0.35rem rgba(50, 44, 32, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bar-icon {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 0.78rem;
  height: 0.82rem;
  color: #5f6258;
}
.bar-icon .icon {
  width: 0.33rem;
  height: 0.33rem;
}
.bar-icon span {
  margin-top: 0.03rem;
  font-size: 0.16rem;
  letter-spacing: 0.01rem;
}
.bar-badge {
  position: absolute;
  top: 0.01rem;
  right: 0.07rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.26rem;
  height: 0.26rem;
  padding: 0 0.05rem;
  border: 0.02rem solid #fffcf6;
  border-radius: 999rem;
  background: #b05f40;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.13rem;
  line-height: 1;
}
.bar-buttons {
  display: flex;
  flex: 1;
  min-width: 0;
  margin-left: 0.08rem;
}
.add-cart-btn,
.buy-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 0.86rem;
  border-radius: 0.24rem;
  font-size: 0.23rem;
  letter-spacing: 0.01rem;
  transition: opacity 0.2s ease;
}
.add-cart-btn {
  margin-right: 0.12rem;
  border: 0.01rem solid #20372c;
  color: #20372c;
}
.buy-btn {
  background: #20372c;
  color: #f8f3e9;
}
.add-cart-btn.is-loading,
.buy-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- 错误态 ---------- */
.detail-page--error .nav-shell {
  position: sticky;
  top: 0;
}
.detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  padding: 1rem 0.5rem;
  text-align: center;
}
.detail-error-orbit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 50%;
  color: #7d877a;
}
.detail-error-orbit .icon {
  width: 0.52rem;
  height: 0.52rem;
}
.detail-error-title {
  display: block;
  margin-top: 0.3rem;
  color: #2e3129;
  font-size: 0.34rem;
  letter-spacing: 0.01rem;
}
.detail-error-desc {
  display: block;
  margin-top: 0.12rem;
  color: #8d897c;
  font-size: 0.22rem;
}
.detail-error-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.72rem;
  margin-top: 0.36rem;
  padding: 0 0.5rem;
  border-radius: 999rem;
  background: #20372c;
  color: #f8f3e9;
  font-size: 0.24rem;
  letter-spacing: 0.01rem;
}
