:root {
  --primary: #c62828;
  --primary-dark: #8e1515;
  --primary-light: #ff5252;
  --gold: #d4a24a;
  --gold-light: #f3d98a;
  --bg: #f5f2ee;
  --card-bg: #ffffff;
  --text: #2a2a2a;
  --text-sub: #888;
  --border: #f0e9e0;
  --shadow: 0 4px 18px rgba(160, 50, 50, 0.08);
  --radius: 14px;
  --max-w: 750px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbeeea 0%, #f5f2ee 300px, #f5f2ee 100%);
  font-size: 14px;
  line-height: 1.6;
}

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

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

/* 页面容器：PC 居中，手机全屏 */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  background: transparent;
  padding-bottom: 80px;
  min-height: 100vh;
  position: relative;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.topbar__title {
  font-size: 16px;
  font-weight: 600;
}
.topbar__icon {
  font-size: 22px;
  color: #333;
  width: 28px;
  text-align: center;
  cursor: pointer;
}

/* 轮播 */
.swiper {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.swiper__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.swiper__track::-webkit-scrollbar { display: none; }

.swiper__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f5f2ee;
}
.swiper__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.swiper__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all .3s;
}
.swiper__dots span.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* 卡片 */
.card {
  margin: 12px;
  padding: 18px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--price {
  padding: 20px 16px 18px;
  background:
    linear-gradient(135deg, #fff8f3 0%, #fff 50%),
    #fff;
}

/* 价格区 */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  color: var(--primary);
  font-weight: 700;
}
.price__symbol {
  font-size: 18px;
  margin-right: 2px;
}
.price__major {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -1px;
  font-family: "DIN Alternate", -apple-system, sans-serif;
}
.price__unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  margin-left: 6px;
}
.price__tag {
  margin-left: 10px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffe2bd, #f3d98a);
  color: #8e5e0e;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.title {
  margin: 10px 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
}
.subtitle {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff1ec;
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.badge i {
  font-style: normal;
  font-size: 11px;
}

/* 区块标题 */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-header__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 50%,
    transparent
  );
}

/* 规格 */
.sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sku {
  position: relative;
  padding: 14px 8px 12px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffaf5;
  transition: all .25s;
}
.sku:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212, 162, 74, 0.15);
}
.sku__label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}
.sku__price {
  margin: 6px 0 4px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  font-family: "DIN Alternate", sans-serif;
  line-height: 1;
}
.sku__price em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  margin-right: 1px;
}
.sku__tip {
  font-size: 11px;
  color: var(--text-sub);
}
.sku--hot {
  background: linear-gradient(160deg, #fff1db 0%, #ffe0b8 100%);
  border-color: var(--gold);
}
.sku--hot::before {
  content: "热销";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}
.sku--single {
  grid-column: span 3;
  background: linear-gradient(90deg, #fff6ec 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 16px;
}
.sku--single .sku__price {
  margin: 0;
  font-size: 24px;
}
.sku--single .sku__tip {
  font-size: 12px;
}

.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #fdf6ee;
  border-radius: 10px;
  list-style: none;
  color: #7c6a4f;
  font-size: 12.5px;
  line-height: 1.9;
}
.notice li {
  position: relative;
  padding-left: 14px;
}
.notice li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 8px;
  top: 2px;
}

/* 特色 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.feature {
  padding: 14px 8px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7f4 0%, #fff 100%);
}
.feature__icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.feature__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.feature__desc {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 详情图 */
.detail-imgs figure {
  margin: 0 0 10px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f2ee;
}
.detail-imgs figure img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.detail-imgs figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 10px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  letter-spacing: 1px;
}
.detail-imgs__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.detail-imgs__row figure {
  margin: 0;
  aspect-ratio: 1 / 1;
}
.detail-imgs__row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 联系方式 */
.card--contact {
  text-align: center;
  background:
    radial-gradient(circle at top, #fff7f3 0%, #fff 60%),
    #fff;
}
.contact__tip {
  margin: 0 0 12px;
  color: var(--text-sub);
  font-size: 13px;
}
.qr {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 2px dashed var(--gold-light);
}
.qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
}
.contact__name {
  margin: 14px 0 6px;
  font-size: 14px;
  color: #333;
}
.contact__name strong {
  color: var(--primary);
  margin-left: 4px;
}
.contact__sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
}

/* 底部吸附按钮 */
.footer-space { height: 10px; }

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.bottom-bar__btn {
  flex: 1;
  max-width: calc(var(--max-w) - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
  transition: transform .15s ease;
}
.bottom-bar__btn:active { transform: scale(.98); }
.bottom-bar__icon { font-size: 18px; }

/* PC 端优化 */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, #f8d7cb 0%, transparent 60%),
      #f0ece6;
  }
  .page {
    margin: 24px auto;
    border-radius: 20px;
    background: #fbf8f4;
    box-shadow: 0 10px 40px rgba(120, 40, 40, 0.12);
    overflow: hidden;
    padding-bottom: 100px;
  }
  .bottom-bar {
    position: sticky;
    margin: 0 auto;
    max-width: var(--max-w);
    border-radius: 0 0 20px 20px;
  }
}

@media (max-width: 360px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sku__price { font-size: 20px; }
}
