:root {
  --pink: #ff6f9c;
  --pink-deep: #ff5f8f;
  --pink-soft: #ffb3cd;
  --violet: #a18cd1;
  --ink: #3a2a3f;
  --ink-soft: #7a6a80;
  --card: #ffffffcc;
  --border: #f3d9e5;
  --shadow: 0 18px 45px rgba(255, 95, 143, 0.18);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(170deg, #ffe3ec 0%, #efe4ff 38%, #dce9ff 72%, #d7f2ff 100%);
  overflow-x: hidden;
}

/* 漂浮爱心背景 */
.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.heart {
  position: absolute;
  bottom: -40px;
  opacity: 0;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 6px 10px rgba(255, 95, 143, 0.35));
}
.h1 { left: 8%;  font-size: 40px; animation-duration: 13s; animation-delay: 0s;   }
.h2 { left: 26%; font-size: 26px; animation-duration: 15s; animation-delay: 2s;   }
.h3 { left: 50%; font-size: 34px; animation-duration: 12s; animation-delay: 4s;   }
.h4 { left: 70%; font-size: 22px; animation-duration: 16s; animation-delay: 1.5s; }
.h5 { left: 88%; font-size: 30px; animation-duration: 14s; animation-delay: 3s;   }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.75; }
  50%  { opacity: 0.55; }
  100% { transform: translateY(-115vh) rotate(35deg); opacity: 0; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 30px 12px 14px;
}
.hero-chip {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 95, 143, 0.35);
  letter-spacing: 1px;
}
.hero-title {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink-deep), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.btn-record {
  margin-top: 18px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(161, 140, 209, 0.2);
  backdrop-filter: blur(6px);
}
.btn-record:active { transform: scale(0.97); }

/* 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-top: 18px;
}
.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 1px;
}
.card-title::before, .card-title::after {
  content: " ♥ ";
  color: var(--pink-soft);
  font-weight: 400;
}

/* 表单 */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field > label i {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}
input[type="text"], textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  resize: none;
}
input[type="text"]:focus, textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 111, 156, 0.15);
}
input[type="text"]::placeholder, textarea::placeholder { color: #c7b6c9; }

/* 性别 */
.radio-row { display: flex; gap: 12px; }
.radio-pill {
  flex: 1;
  cursor: pointer;
  position: relative;
  text-align: center;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.2s;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill:has(input:checked) {
  border-color: var(--pink);
  color: var(--pink-deep);
  font-weight: 700;
  background: linear-gradient(90deg, #fff0f5, #f4ecff);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

/* 照片上传 */
.photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  border: 2px dashed var(--pink-soft);
  border-radius: 16px;
  background: #fff7fa;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hint {
  color: var(--ink-soft);
  font-size: 15px;
}

/* 提交按钮 */
.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  padding: 15px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink), var(--violet));
  box-shadow: 0 12px 28px rgba(255, 95, 143, 0.4);
  transition: transform 0.12s;
}
.btn-submit:active { transform: scale(0.98); }
.form-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  margin-top: 10px;
}

/* 规则 */
.rules-card ol {
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.rules-card li { margin-bottom: 10px; }

.foot {
  text-align: center;
  color: #b3a2b8;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 26px;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 63, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 26px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-emoji { font-size: 44px; }
.modal h3 { font-size: 20px; margin: 8px 0 6px; color: var(--ink); }
.modal-tip { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }

.wechat-box {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff7fa;
}
.wechat-label { font-size: 12px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.wechat-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wechat-id b { font-size: 20px; letter-spacing: 1px; color: var(--pink-deep); }
.btn-copy {
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
}
.btn-copy:active { transform: scale(0.96); }

.qr-box { margin: 6px 0 14px; }
.qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #eee;
}
.qr-box span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

.btn-copy-info {
  width: 100%;
  border: none;
  cursor: pointer;
  color: var(--pink-deep);
  background: #fff0f5;
  border: 1.5px solid var(--pink-soft);
  border-radius: 14px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}
.modal-hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.btn-done {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-deep), var(--violet));
  border-radius: 999px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
}
.btn-done:active { transform: scale(0.98); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(58, 42, 63, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 60;
  animation: pop 0.25s ease;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .hero-title { font-size: 34px; }
}
