/**
 * 1.php 专用样式
 * 背景图由后台 bg_image 配置；无整页底色与遮罩，背景图更突出。
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.page1 {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: #333;
  overflow-x: hidden;
  background: transparent;
}

/* 全屏背景图（行内 background-image） */
body.page1 .bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

body.page1 .bg-layer[style*="background-image"] {
  filter: saturate(1.08) contrast(1.03);
}

/* 不叠色，让背景图更亮、更突出 */
body.page1 .bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

body.page1 .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 顶栏：金色主标题 + 白色日期 + Logo */
body.page1 .page1-top {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 4px 4px;
}

body.page1 .page1-banner-title {
  margin: 0 0 11px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: #ffd54a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

body.page1 .page1-banner-date {
  margin: 0 0 14px;
  font-size: 1.22rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.page1 .page1-banner-logo {
  margin: 0 auto 4px;
  max-width: 300px;
}

body.page1 .page1-banner-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* 白卡片：最小高度略低于半屏，整体靠下 */
body.page1 .page1-card {
  display: flex;
  flex-direction: column;
  min-height: 42vh;
  margin-top: auto;
  margin-bottom: max(5vh, 16px);
  background: #fff;
  border-radius: 14px;
  padding: 20px 14px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  width: 100%;
}

body.page1 .page1-card-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.98rem;
  color: #111;
  font-weight: 600;
}

body.page1 .page1-form {
  margin: 0;
}

body.page1 .page1-input-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}

body.page1 .page1-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 12px;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

body.page1 .page1-input::placeholder {
  color: #999;
}

body.page1 .page1-input:focus {
  border-color: #e64545;
  box-shadow: 0 0 0 2px rgba(230, 69, 69, 0.18);
}

body.page1 .page1-btn-red {
  flex: 0 0 auto;
  padding: 12px 16px;
  margin: 0;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: #e02020;
  box-shadow: 0 3px 10px rgba(200, 30, 30, 0.4);
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  line-height: 1.25;
}

body.page1 .page1-btn-red:active {
  background: #c41818;
  transform: translateY(1px);
}

body.page1 .page1-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 16px 4px 14px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 16px;
}

body.page1 .page1-info-muted {
  margin: 6px 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.55;
}

body.page1 .page1-price-line {
  margin: 12px 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #e02020;
}

body.page1 .page1-price-num {
  font-size: 1.12em;
  font-weight: 800;
}

body.page1 .page1-footer-note {
  margin-top: 8px;
}

/* 收款码区（无绿条；跟在 flex 展开的说明区下方，自然贴底） */
body.page1 .page1-wxpay {
  flex-shrink: 0;
  margin: 0 -14px 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: #fff;
}

body.page1 .page1-wxpay-body {
  max-width: 156px;
  margin: 0 auto;
  padding: 5px 5px 8px;
  background: #f0f0f0;
  text-align: center;
}

body.page1 .page1-wxpay-qr {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 4px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
