/* 融森园林 · 树详情页 v2（2026-09-19 批次1：底部四件套 收藏/立即锁定/立即购买/客服）
   只作用于 tree.html，不动全局 style.css。 */

/* ---- 底部固定栏 ---- */
.fixed-bar.bar4 { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); align-items: stretch; }

.b4-mini {
  flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(176,141,87,.45); background: #fff; color: #6B5B33;
  border-radius: 12px; font-size: 11px; cursor: pointer; padding: 6px 0; min-height: 52px;
  font-family: inherit; -webkit-appearance: none; transition: all .15s;
}
.b4-mini svg { width: 20px; height: 20px; }
.b4-mini.on { color: #C0392B; border-color: rgba(192,57,43,.45); background: #FDF3F1; font-weight: 600; }
.b4-main { flex: 1; display: flex; gap: 8px; }
.b4-lock {
  flex: 1; border: 0; border-radius: 12px; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none;
  background: linear-gradient(135deg, #2E7D32, #1B5E20); color: #fff;
  font-size: clamp(13px, 4.1vw, 16px); font-weight: 700; font-family: inherit; letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(27,94,32,.25);
}
.b4-lock:active { transform: scale(.98); }
.b4-buy {
  flex: 1; border: 0; border-radius: 12px; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none;
  background: linear-gradient(135deg, #FFB800, #E8A400); color: #4A3B00;
  font-size: clamp(13px, 4.1vw, 16px); font-weight: 700; font-family: inherit; letter-spacing: .03em;
  box-shadow: 0 6px 14px rgba(232,164,0,.28);
}
.b4-buy:active { transform: scale(.98); }
.b4-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.b4-state b { font-size: 14px; color: #8A6D1A; }
.b4-state a { font-size: 12.5px; color: #2E7D32; text-decoration: underline; }

/* ---- 弹层（立即锁定 / 全款购买）---- */
.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); box-sizing: border-box;
}
.sheet-panel h3 { margin: 0 0 10px; font-size: 17px; color: #2B2B2B; }
.sheet-close { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 0;
  background: transparent; font-size: 24px; line-height: 1; color: #999; cursor: pointer; }
.sheet-tree { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #F8F6F0;
  font-size: 14px; color: #333; line-height: 1.7; }
.sheet-tree b { color: #1B3A2A; }
.sheet-input { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 12px;
  border: 1px solid #DDD5C5; border-radius: 10px; font-size: 15px; -webkit-appearance: none; font-family: inherit; }
.sheet-go { width: 100%; }
.sheet-msg { min-height: 20px; font-size: 13px; color: #666; margin-top: 8px; line-height: 1.7; }
.sheet-msg.ok { color: #2E7D32; }
.sheet-msg.bad { color: #C0392B; }
.sheet-qr { margin: 6px 0 12px; padding: 14px; border: 1px dashed #D8C79A; border-radius: 12px; background: #FFFDF6; text-align: center; }
.sheet-qr p { margin: 0 0 10px; font-size: 14px; color: #6B5B33; }
.sheet-qr img { width: 220px; height: 220px; display: block; margin: 0 auto 8px; }
.sheet-qr-sub { font-size: 12.5px; color: #8A8A8A; margin: 0 0 10px; line-height: 1.7; }
.lk-fee { font-size: 15px; color: #B8860B; font-weight: 700; margin: 0 0 10px; }
.lk-fee b { font-size: 18px; }
.lk-rule { font-size: 12.5px; color: #8A6D1A; background: #FDF8EC; border: 1px solid #F0E4C8;
  border-radius: 8px; padding: 9px 10px; line-height: 1.7; margin: 0 0 12px; }
.lk-rule a { color: #8A6D1A; text-decoration: underline; }
.pay-two { display: flex; gap: 8px; margin: 6px 0 12px; }
.pay-two label { flex: 1; border: 1px solid #DDD5C5; border-radius: 10px; padding: 9px 6px;
  font-size: 13px; color: #444; text-align: center; cursor: pointer; line-height: 1.4; }
.pay-two input[type=radio] { width: auto; height: auto; margin: 0 6px 0 0; padding: 0;
  -webkit-appearance: auto; appearance: auto; vertical-align: -2px; }

/* 客服弹窗补充（树号 + 复制） */
.wecom-tree { font-size: 13px; color: #1B3A2A; margin-top: 6px; }
.wecom-tree b { color: #B8860B; }
.wecom-copy { margin-top: 10px; display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(176,141,87,.5); background: #fff; color: #6B5B33;
  font-size: 13px; cursor: pointer; font-family: inherit; -webkit-appearance: none; }

@media (min-width: 700px) {
  .sheet-panel { left: 50%; right: auto; width: 480px; margin-left: -240px; border-radius: 16px; bottom: 6vh; }
}