/* 暖屿首页组件：后台预览与顾客端共用同一套 DOM / CSS */
.wh {
  --wh-bg: #FBF5EC;
  --wh-card: #FFFFFF;
  --wh-card2: #FFFCF6;
  --wh-line: #EFE2D1;
  --wh-ink: #2B241E;
  --wh-ink2: #6C5F52;
  --wh-ink3: #A29485;
  --wh-brand: #9A6A3F;
  --wh-brand-deep: #7C5330;
  --wh-brand-mid: #B98A5C;
  --wh-soft: #F4E3CD;
  --wh-sage: #6E8768;
  --wh-sage-soft: #EAF0E6;
  display: block;
  color: var(--wh-ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wh, .wh * { box-sizing: border-box; }
.wh button { font-family: inherit; cursor: pointer; }
.wh .wh-ai {
  width: 100%; margin: 0 0 11px; padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  background: var(--wh-sage-soft); color: #4C6147;
  border: 0; border-radius: 13px; text-align: left;
  box-shadow: none;
}
.wh .wh-ai .ic { flex: none; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; }
.wh .wh-ai p { flex: 1; min-width: 0; margin: 0; font-size: 11.5px; line-height: 1.45; color: #4C6147; }
.wh .wh-ai p b { font-weight: 800; color: #3E523A; }
.wh .wh-ai .ar { flex: none; color: #7E9578; font-size: 12px; }

.wh .wh-hero {
  position: relative; overflow: hidden;
  padding: 15px 16px 14px; margin: 0 0 0;
  background: linear-gradient(155deg, #FDF1E1 0%, #F6E3CD 52%, #EFD9C2 100%);
  border-radius: 26px;
  box-shadow: 0 14px 30px rgba(160, 116, 74, .12);
}
.wh .wh-hero .rings {
  position: absolute; right: -58px; top: -38px; width: 186px; height: 186px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .65);
}
.wh .wh-hero .rings:before {
  content: ""; position: absolute; inset: 28px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
}
.wh .wh-hero .rings:after {
  content: ""; position: absolute; inset: 46px; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(255, 252, 246, .92), rgba(255, 252, 246, 0) 74%);
}
.wh .wh-hero .arc {
  position: absolute; left: -30px; bottom: -92px; width: 166px; height: 166px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
}
.wh .wh-hero .halo {
  position: absolute; right: 18px; bottom: 22px; width: 86px; height: 86px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 232, .9) 0%, rgba(255, 246, 232, 0) 68%);
}
.wh .wh-badge {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); color: var(--wh-brand-deep);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.wh .wh-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--wh-sage); }
.wh .wh-hero h2 {
  position: relative; margin: 9px 0 0; max-width: 225px;
  font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: .01em;
}
.wh .wh-hero .meta {
  position: relative; margin-top: 6px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #7B6248;
}
.wh .wh-hero .meta .clk { display: inline-flex; width: 12px; height: 12px; opacity: .8; }
.wh .wh-hero .meta b { font-size: 14px; font-weight: 800; color: var(--wh-brand-deep); }
.wh .wh-hero .meta em { font-style: normal; font-size: 10px; color: #9C8062; }
.wh .wh-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 250px; }
.wh .wh-tag {
  padding: 4px 7px; border-radius: 8px;
  background: rgba(255, 255, 255, .72); color: #7A5B3C;
  font-size: 10.5px; font-weight: 600;
}
.wh .wh-actions { position: relative; display: flex; gap: 9px; margin-top: 12px; }
.wh .wh-btn {
  width: auto; min-width: 0; height: 46px; flex: 1; border: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  box-shadow: none;
}
.wh .wh-btn.wh-primary {
  flex: 1.45; background: var(--wh-brand); color: #FFF9F1;
  box-shadow: 0 8px 18px rgba(154, 106, 63, .28);
}
.wh .wh-btn.ghost {
  background: #fff; color: var(--wh-brand);
  border: 1.5px solid var(--wh-soft); box-shadow: none;
}
.wh .wh-btn:active { transform: scale(.985); }

.wh .wh-quick {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin: 12px 0 12px;
}
.wh .wh-quick button {
  width: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  color: var(--wh-ink2); box-shadow: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; line-height: 1.2;
}
.wh .wh-qi {
  width: 46px; height: 46px; border-radius: 18px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(126, 94, 63, .08);
}
.wh .wh-qi.accent { background: linear-gradient(150deg, #F7E7D2, #EFD6B9); }
.wh .wh-qi.sage { background: var(--wh-sage-soft); }

.wh .wh-sec {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 14px 0 9px;
}
.wh .wh-sec h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.wh .wh-sec span { flex: none; font-size: 11px; color: var(--wh-ink3); }
.wh .wh-products {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.wh .wh-pcard {
  min-width: 0; margin: 0; padding: 8px;
  background: #fff; border: 0; border-radius: 20px; text-align: left;
  box-shadow: 0 8px 20px rgba(126, 94, 63, .07);
}
.wh .wh-pthumb {
  position: relative; height: 66px; overflow: hidden; border-radius: 14px;
  background: linear-gradient(150deg, #F9ECDC, #EAD3B8);
}
.wh .wh-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh .wh-pthumb .mono {
  position: absolute; left: 0; right: 0; top: 6px; text-align: center;
  font-size: 6px; line-height: 1; letter-spacing: .12em; color: #A98460; font-weight: 700;
}
.wh .wh-pthumb .bottle {
  position: absolute; left: 50%; top: 17px; width: 21px; height: 38px;
  transform: translateX(-50%); border-radius: 7px 7px 6px 6px;
  background: linear-gradient(180deg, #FFFDF8, #E3CBAE);
  box-shadow: inset 0 -6px 10px rgba(160, 120, 80, .12);
}
.wh .wh-pthumb .bottle:before {
  content: ""; position: absolute; left: 5px; right: 5px; top: -4px; height: 6px;
  border-radius: 3px; background: #D6B48E;
}
.wh .wh-pname {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.3; font-weight: 700;
  color: var(--wh-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wh .wh-pg { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 5px; }
.wh .wh-pg em {
  font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--wh-brand-deep);
  white-space: nowrap;
}
.wh .wh-pg span {
  flex: none; padding: 2px 5px; border-radius: 6px;
  background: var(--wh-sage-soft); color: var(--wh-sage);
  font-size: 10px; font-weight: 700;
}
.wh .wh-empty {
  grid-column: 1 / -1; padding: 18px 14px; text-align: center;
  background: #FFFCF6; border: 1px dashed #E8D2B5; border-radius: 16px;
  font-size: 11.5px; color: var(--wh-ink3);
}
.wh .wh-hint {
  width: 100%; margin: 12px 0 0; padding: 10px 13px;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 0; border-radius: 16px; text-align: left;
  box-shadow: 0 7px 18px rgba(126, 94, 63, .06); color: var(--wh-ink2);
}
.wh .wh-hint .hi {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--wh-sage-soft); color: var(--wh-sage);
  display: flex; align-items: center; justify-content: center;
}
.wh .wh-hint p { flex: 1; min-width: 0; margin: 0; font-size: 11.5px; line-height: 1.4; }
.wh .wh-hint p b { color: var(--wh-brand-deep); font-weight: 800; }
.wh .wh-hint .ar { flex: none; color: #CBBEAF; font-size: 12px; }

/* 推荐理由弹层（顾客端） */
.wh-why-mask {
  position: fixed; inset: 0; z-index: 85; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; background: rgba(43, 36, 30, .42); backdrop-filter: blur(3px);
}
.wh-why-mask.hide { display: none; }
.wh-why-panel {
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto;
  padding: 20px 18px 24px; background: #FBF5EC;
  border-radius: 26px 26px 0 0; box-shadow: 0 -18px 40px rgba(43, 36, 30, .22);
  color: #2B241E; font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.wh-why-panel .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wh-why-panel .ph b { font-size: 17px; font-weight: 800; }
.wh-why-panel .ph button { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F4E3CD; color: #7C5330; font-size: 15px; }
.wh-why-hero { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 20px; background: linear-gradient(140deg, #FDF2E3, #F5E2CB); }
.wh-why-score {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  border: 2px solid #6E8768; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #4C6147;
}
.wh-why-score b { font-size: 18px; line-height: 1; }
.wh-why-score span { font-size: 9px; margin-top: 2px; }
.wh-why-hero .t { flex: 1; min-width: 0; }
.wh-why-hero .t b { display: block; font-size: 15px; font-weight: 800; }
.wh-why-hero .t span { display: block; margin-top: 4px; font-size: 10.5px; color: #8A6F52; }
.wh-why-list { margin: 14px 0 16px; padding: 0; list-style: none; }
.wh-why-list li { display: flex; gap: 8px; margin: 0 0 9px; font-size: 12px; line-height: 1.5; color: #6C5F52; }
.wh-why-list li i { flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: #EAF0E6; color: #4C6147; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; font-weight: 700; }
.wh-why-actions { display: flex; gap: 9px; }
.wh-why-actions .btn { flex: 1; height: 46px; border: 0; border-radius: 16px; font-size: 15px; font-weight: 700; background: #fff; color: #9A6A3F; border: 1.5px solid #F4E3CD; }
.wh-why-actions .btn.wh-primary { flex: 1.4; background: #9A6A3F; color: #FFF9F1; border: 0; box-shadow: 0 8px 18px rgba(154, 106, 63, .28); }
.wh-why-note { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: #A29485; }

@media (max-width: 345px) {
  .wh .wh-hero h2 { font-size: 21px; }
  .wh .wh-quick { gap: 5px; }
  .wh .wh-qi { width: 42px; height: 42px; border-radius: 16px; }
  .wh .wh-pcard { padding: 7px; }
  .wh .wh-pthumb { height: 58px; }
}
