/* 八字精批落地页 · 移动端 H5（纯静态复刻）*/
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg1: #1a1030; --bg2: #2b1a4a; --gold: #e8c66a; --gold-deep: #c99b3c;
  --card: #fbf7ee; --ink: #2a2340; --muted: #8b8299; --danger: #e0483d;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 60%, #3a2560 100%);
  background-attachment: fixed;
  min-height: 100%;
}
.page { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; min-height: 100vh; }

/* 顶部社会证明滚动 */
.notice-bar { overflow: hidden; height: 34px; margin: 8px 0 4px; }
.notice-track { display: flex; gap: 22px; white-space: nowrap; animation: marquee 22s linear infinite; }
.notice-track span { color: #e9dcff; font-size: 12px; line-height: 34px; opacity: .85; }
.notice-track b { color: var(--gold); font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 主视觉 */
.hero { text-align: center; padding: 18px 0 22px; color: #fff; }
.hero-badge { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--gold);
  border: 1px solid rgba(232,198,106,.5); border-radius: 999px; padding: 4px 14px; }
.hero-title { font-size: 40px; letter-spacing: 6px; margin: 14px 0 8px; font-weight: 800;
  background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 13px; color: #d8ccf0; line-height: 1.7; padding: 0 20px; }
.hero-count { margin-top: 12px; font-size: 12px; color: #cdbfe8; }
.hero-count b { color: var(--gold); font-size: 15px; }

/* 表单卡 */
.form-card { background: var(--card); border-radius: 16px; padding: 20px 16px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.field input[type=text] { width: 100%; height: 46px; border: 1px solid #e6dfd0; border-radius: 10px;
  padding: 0 14px; font-size: 15px; background: #fffdf8; }
.field input::placeholder { color: #b9b1a2; }
.gender { display: flex; gap: 12px; }
.gender button { flex: 1; height: 46px; border: 1px solid #e6dfd0; border-radius: 10px; background: #fffdf8;
  font-size: 15px; color: var(--ink); }
.gender button.active { border-color: var(--gold-deep); background: #fdf3da; color: #7a5a12; font-weight: 600; }
.birth-select { width: 100%; height: 46px; border: 1px solid #e6dfd0; border-radius: 10px; background: #fffdf8;
  text-align: left; padding: 0 14px; font-size: 15px; color: var(--ink); }
.birth-select.placeholder { color: #b9b1a2; }
.agree-tip { font-size: 12px; color: var(--muted); margin: 4px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.agree-check { display: inline-flex; align-items: center; gap: 4px; }
.agree-tip a { color: var(--gold-deep); }
.submit-btn { width: 100%; height: 52px; border: none; border-radius: 26px; color: #4a2d00; font-size: 18px; font-weight: 700;
  background: linear-gradient(90deg, #f3d78a, var(--gold), #e0a83a); box-shadow: 0 8px 20px rgba(200,150,40,.4); letter-spacing: 2px; }
.submit-btn:active { transform: translateY(1px); }
.order-query { text-align: center; margin-top: 14px; }
.order-query a { color: var(--muted); font-size: 13px; }

/* 合规底部 */
.foot { text-align: center; color: #b7abd6; font-size: 11px; line-height: 1.9; margin-top: 22px; }
.foot .warn { color: #c9bce8; }
.foot .subject { opacity: .7; margin-top: 4px; }

/* 底部弹出滚轮 */
.sheet-mask, .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; z-index: 50; }
.sheet-mask { align-items: flex-end; }
.sheet { width: 100%; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0ece3; }
.sheet-btn { border: none; background: none; font-size: 15px; color: var(--muted); }
.sheet-btn.primary { color: var(--gold-deep); font-weight: 600; }
.cal-switch { display: flex; border: 1px solid #e6dfd0; border-radius: 8px; overflow: hidden; }
.cal-switch button { border: none; background: #fff; font-size: 13px; padding: 6px 14px; color: var(--muted); }
.cal-switch button.active { background: #fdf3da; color: #7a5a12; }
.picker { display: flex; height: 200px; position: relative; }
.picker::after { content: ""; position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; pointer-events: none; }
.picker-col { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; text-align: center; scrollbar-width: none; }
.picker-col::-webkit-scrollbar { display: none; }
.picker-col .pad { height: 80px; }
.picker-col .item { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 15px; color: #999; }
.picker-col .item.on { color: var(--ink); font-weight: 700; }

/* 通用弹窗 */
.modal-mask { align-items: center; justify-content: center; }
.modal { width: 84%; max-width: 340px; background: #fff; border-radius: 14px; padding: 22px 20px; text-align: center; }
.modal h3 { font-size: 17px; margin-bottom: 12px; }
.confirm-info, .agree-body { font-size: 14px; color: #5a5170; line-height: 1.7; margin-bottom: 18px; }
.modal-btns { display: flex; gap: 12px; }
.modal-btns button { flex: 1; height: 44px; border-radius: 22px; font-size: 15px; border: none; }
.modal-btns .ghost { background: #f2eee6; color: #7a7286; }
.modal-btns .primary { background: linear-gradient(90deg, var(--gold), #e0a83a); color: #4a2d00; font-weight: 700; }
[hidden] { display: none !important; }
