:root {
  --page-bg: #fed76e;
  --card-bg: #fffbef;
  --title: #291f06;
  --sub: #86630d;
  --btn: #fece2f;
  --line: #ede3c4;
  --danger: #eb0000;
  --muted: #6c6c6c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--page-bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--title);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  margin: 0;
}

.look {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: url("../assets/look_bg.png") var(--page-bg) no-repeat;
  background-size: 100% auto;
  background-position: top center;
  padding: 38vw 3.2vw 4vw;
}

@media (min-width: 480px) {
  .look {
    max-width: 430px;
    margin: 0 auto;
    padding-top: 160px;
    background-size: 100% 308px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  }
}

.look-btnbox,
.look-linkbox,
.look-prod,
.look-tw,
.look-zk {
  width: 100%;
  margin: 0 auto 3vw;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 13px;
}

.look-btnbox,
.look-tw {
  min-height: 60px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.look-btnbox-icon,
.look-linkbox-icon,
.look-tw-icon {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  flex-shrink: 0;
}

.look-btnbox-main,
.look-tw-main,
.look-linkbox-titles {
  flex: 1;
  min-width: 0;
}

.look-btnbox-t1,
.look-linkbox-t1 {
  font-weight: 700;
  font-size: 13px;
  color: var(--title);
}

.look-btnbox-t2,
.look-linkbox-t2 {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

.look-btnbox-btn,
.look-tw-btn,
.look-prod-coupon-btn {
  width: 48px;
  height: 31px;
  background: var(--btn);
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--title);
  line-height: 31px;
  text-align: center;
  flex-shrink: 0;
}

.look-linkbox-top {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.look-linkbox-btnbox {
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
}

.look-linkbox-text {
  font-weight: 700;
  font-size: 12px;
  margin-left: 2px;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
}

.switch.on {
  background: #ffcc33;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.switch.on::after {
  transform: translateX(18px);
}

.look-textarea {
  display: block;
  width: 100%;
  min-height: 69px;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 12px;
  color: var(--title);
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.look-textarea::placeholder {
  color: #b9a878;
}

.look-linkbox-btn {
  width: 100%;
  height: 43px;
  margin-top: 13px;
  border: none;
  background: linear-gradient(180deg, #fef183, #fdb62b, #fec63c);
  border-radius: 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--title);
  cursor: pointer;
}

.look-linkbox-btn:disabled {
  opacity: 0.65;
}

.look-prod-top {
  display: flex;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.look-prod-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.look-prod-text {
  font-weight: 700;
  font-size: 14px;
}

.look-prod-detail {
  display: flex;
}

.look-prod-detail-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 10px;
  background: #f3e7c4;
}

.look-prod-detail-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  word-break: break-all;
}

.look-prod-actions {
  display: flex;
  align-items: center;
}

.dp,
.gxq {
  height: 19px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  margin-right: 6px;
  background: var(--card-bg);
  cursor: pointer;
  padding: 0 8px;
}

.dp {
  border: 1px solid #f00505;
  color: #f00c19;
}

.gxq {
  border: 1px solid #139317;
  color: #089303;
}

.look-prod-coupon {
  width: 100%;
  min-height: 88px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.look-prod-coupon-t1,
.look-prod-coupon-t3 {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

.look-prod-coupon-t2 {
  font-weight: 700;
  font-size: 14px;
  color: var(--danger);
  margin-bottom: 2px;
}

.look-prod-sikp {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

.look-tw.lookActive {
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
}

.look-tw-t1 {
  font-weight: 700;
  font-size: 14px;
}

.look-tw-t2 {
  font-size: 12px;
  margin-top: 2px;
}

.look-zk {
  border-radius: 0 0 14px 14px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.look-zk-title {
  font-size: 12px;
  margin-bottom: 8px;
}

.look-zk-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 99;
  max-width: 80%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

.wx-tip {
  display: none;
  width: 100%;
  margin: 0 auto 3vw;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(41, 31, 6, 0.08);
  border-radius: 12px;
  line-height: 1.45;
}

.wx-tip.show {
  display: block;
}

.wx-tip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 4px;
}

.wx-tip-line {
  font-size: 12px;
  color: var(--muted);
}

.wx-tip-line b {
  color: var(--title);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* 美团页：热门/搜索/附近优惠 */
.deal-box {
  width: 100%;
  margin: 0 auto 4vw;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 13px;
}

.deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--title);
}

.deal-tabs {
  display: flex;
  gap: 6px;
}

.deal-tab {
  border: none;
  background: #f3e7c4;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.deal-tab.active {
  background: #fece2f;
  color: var(--title);
}

.deal-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.deal-input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
  outline: none;
  font-family: inherit;
}

.deal-search-btn {
  height: 36px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fef183, #fdb62b);
  font-weight: 700;
  font-size: 13px;
  color: var(--title);
  cursor: pointer;
}

.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.deal-tags button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.deal-status {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 8px;
  min-height: 18px;
}

.deal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.deal-item:active {
  transform: scale(0.985);
}

.deal-cover {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3e7c4;
  flex-shrink: 0;
}

.deal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.deal-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--sub);
}

.deal-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.deal-price {
  color: #eb0000;
  font-size: 16px;
  font-weight: 800;
}

.deal-market {
  color: #999;
  font-size: 11px;
  text-decoration: line-through;
}

.deal-get {
  align-self: center;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 14px;
  background: #fece2f;
  font-size: 12px;
  font-weight: 700;
  color: var(--title);
}

.deal-more {
  width: 100%;
  margin-top: 10px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
}
