/* =====================================================
   H5 移动端 C 端基础样式 (康寿云 PMS)
   适用：押金支付/退款/自助入住 等住客端页面
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #efe9dd; /* v6.07 桌面浅灰背景突出移动容器 */
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---- Layout ---- v6.07 整页手机宽度模拟 ---- */
.deposit-h5-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 40px;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 14px rgba(26, 37, 64, 0.06);
}

/* v6.07-pj 兴趣社群全局容器（与 .deposit-h5-wrap 同等约束）*/
.cm-page {
  max-width: 560px;
  margin: 0 auto;
  background: #faf8f4;
  min-height: 100vh;
  box-shadow: 0 0 14px rgba(26, 37, 64, 0.06);
  position: relative;
  overflow-x: hidden;
}

/* ---- Card ---- */
.deposit-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.deposit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.deposit-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

/* ---- Amount Display ---- */
.deposit-amount-big {
  text-align: center;
  padding: 20px 0 16px;
}
.deposit-amount-big .label {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}
.deposit-amount-big .amount {
  font-size: 36px;
  font-weight: 700;
  color: #d8253a;
  letter-spacing: .5px;
}
.deposit-amount-big .unit {
  font-size: 22px;
  font-weight: 500;
}

/* ---- Info Rows ---- */
.deposit-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.deposit-info-row:last-child {
  border-bottom: none;
}
.deposit-info-row .label {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}
.deposit-info-row .value {
  font-size: 13px;
  color: #333;
  text-align: right;
  word-break: break-all;
}

/* ---- Status Tag ---- */
.deposit-status-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ---- Buttons ---- */
.deposit-pay-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity .2s;
  color: #fff;
  background: #1677ff;
}
.deposit-pay-btn:active { opacity: .8; }
.deposit-pay-btn:disabled { opacity: .5; pointer-events: none; }
.deposit-pay-btn.primary { background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%); color: #fff; }
.deposit-pay-btn.secondary { background: #f0f5ff; color: #1677ff; }
.deposit-pay-btn.warning { background: linear-gradient(135deg, #ff9800, #f57c00); color: #fff; }

/* ---- Refund Progress ---- */
.deposit-refund-progress { margin-top: 16px; }
.deposit-progress-steps { position: relative; padding-left: 12px; }
.deposit-progress-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}
.deposit-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.deposit-progress-step.completed:not(:last-child)::after { background: #67C23A; }
.deposit-progress-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #f5f5f5;
  color: #ccc;
}
.deposit-progress-step.completed .deposit-progress-dot { background: #f0f9eb; color: #67C23A; }
.deposit-progress-step.active .deposit-progress-dot { background: #fff7e6; color: #ff9800; animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.deposit-progress-content { flex: 1; min-width: 0; }
.deposit-progress-title { font-size: 14px; font-weight: 600; color: #333; }
.deposit-progress-desc { font-size: 12px; color: #999; margin-top: 2px; }
.deposit-progress-step.completed .deposit-progress-title { color: #67C23A; }

/* ---- Success Page ---- */
.deposit-success-icon {
  text-align: center;
  padding: 40px 0 20px;
}
.deposit-success-icon .icon {
  font-size: 56px;
  margin-bottom: 12px;
}

/* ---- Log List ---- */
.deposit-log-list { padding-top: 4px; }
.deposit-log-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.deposit-log-item:last-child { border-bottom: none; }
.deposit-log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1677ff;
  margin-top: 6px;
  flex-shrink: 0;
}
.deposit-log-content { flex: 1; min-width: 0; }
.deposit-log-title { font-size: 13px; color: #333; }
.deposit-log-time { font-size: 11px; color: #bbb; margin-top: 2px; }
.deposit-log-remark { font-size: 12px; color: #999; margin-top: 4px; }

/* ---- Back Navigation Link ---- */
.h5-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  margin-bottom: 8px;
}
.h5-back-link:active { opacity: .7; }
