@font-face{font-family:MiSans;src:url('./fonts/MiSans-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:MiSans;src:url('./fonts/MiSans-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:MiSans;src:url('./fonts/MiSans-Semibold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:MiSans;src:url('./fonts/MiSans-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}:root{--red:#bc2f2e;--deep-red:#8b2323;--gold:#ffef84;--ink:#342525;--line:#e2d2c9}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#6f2626;font-family:MiSans,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink)}
button,input,select{font:inherit}
[hidden]{display:none !important}
.page{width:min(100%,577px);margin:0 auto;background:#6f2626}
.poster{position:relative;line-height:0}
.poster-image{display:block;width:100%;height:auto}
.rsvp-zone{position:absolute;left:0;right:0;top:68.1%;bottom:0;display:flex;justify-content:flex-start;align-items:center;flex-direction:column;padding:10px 0 16px}
.rsvp-card{width:85.6%;border:3px solid var(--gold);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 8px 18px rgba(81,25,25,.18)}
.rsvp-head{background:var(--red);padding:12px 10px;text-align:center;color:#fff}
.rsvp-head h2{margin:0;font-size:22px;line-height:1.15;font-weight:700;letter-spacing:.08em}
.rsvp-head span{font-size:.76em;letter-spacing:.22em;margin-left:8px}
.rsvp-body{padding:16px 18px 16px;line-height:normal;background:#fff}
.rsvp-intro{margin:0 0 14px;text-align:center;color:#a02b2b;font-size:14px;font-weight:500;letter-spacing:.03em}
.field{margin:0 0 12px}
.field label,.field legend{display:block;margin:0 0 7px;font-size:15px;line-height:1.3;font-weight:600;color:#3d2b2b}
.field small{font-size:.85em;color:#7b6b6b;font-weight:400}
.required{color:#b72d2f}
.field input[type=text],.field select{width:100%;height:44px;border:1.5px solid var(--line);border-radius:10px;background:#fff;padding:0 14px;font-size:16px;color:#2f2323;outline:none}
.field input[type=text]:focus,.field select:focus{border-color:#ba2e2e;box-shadow:0 0 0 3px rgba(186,46,46,.10)}
.field select{-webkit-appearance:none;appearance:none;padding-right:40px;background:#fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"%3E%3Cpath d="m6 9 6 6 6-6" fill="none" stroke="%23b92e2e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') no-repeat right 12px center}
.fieldset{padding:0;border:none}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice-item{position:relative;display:block;cursor:pointer}
.choice-item input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.choice-face{display:flex;align-items:center;justify-content:center;height:52px;border-radius:10px;border:1.5px solid #e3cfc6;background:#fff;color:#933838;font-size:16px;font-weight:600;line-height:1.2;text-align:center;transition:.15s ease}
.choice-item input:checked + .choice-face{background:var(--red);border-color:var(--red);color:#fff}
.choice-item input:focus-visible + .choice-face{outline:3px solid rgba(188,47,46,.28);outline-offset:1px}
.form-message{min-height:0;margin:0;font-size:12px;line-height:1.6;color:#b72d2f;white-space:pre-wrap}
.form-message:not(:empty){margin:0 0 8px}
.submit-button{display:block;width:100%;height:45px;border:0;border-radius:10px;background:var(--red);color:#fff;font-size:16px;font-weight:700;letter-spacing:.03em;cursor:pointer}
.submit-button:disabled{opacity:.72;cursor:wait}
.tips{margin:10px 0 0;text-align:center;color:#887372;font-size:12px;line-height:1.45}
.success{text-align:center;padding:8px 2px 8px;line-height:normal}
.success-heart{font-size:30px;line-height:1;color:var(--red)}
.success h3{margin:8px 0 10px;color:var(--red);font-size:20px;line-height:1.3;font-weight:700}
.success p{margin:0 0 12px;font-size:14px;line-height:1.8;white-space:pre-wrap}
.edit-button{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border-radius:10px;border:1.5px solid var(--red);background:#fff;color:var(--red);font-size:14px;font-weight:600;cursor:pointer}
.honeypot{position:absolute !important;left:-9999px !important;width:1px !important;height:1px !important;opacity:0 !important;pointer-events:none !important}
@media (max-width:420px){
  .rsvp-zone{top:67.7%;padding:8px 0 14px}
  .rsvp-card{width:86.2%;border-radius:20px}
  .rsvp-head{padding:10px 8px}
  .rsvp-head h2{font-size:20px}
  .rsvp-body{padding:14px 14px 14px}
  .rsvp-intro{font-size:13px;margin-bottom:12px}
  .field{margin-bottom:10px}
  .field label,.field legend{font-size:14px}
  .field input[type=text],.field select{height:42px;padding:0 12px}
  .choice-face{height:50px;font-size:15px}
}
@media (max-width:360px){
  .rsvp-zone{top:67.4%;padding:6px 0 12px}
  .rsvp-card{width:88%;border-width:2.5px}
  .rsvp-head h2{font-size:18px}
  .rsvp-head span{margin-left:6px}
  .rsvp-body{padding:12px 12px 12px}
  .field label,.field legend{font-size:13px;margin-bottom:6px}
  .field input[type=text],.field select{height:40px;font-size:15px}
  .choice-grid{gap:8px}
  .choice-face{height:46px;font-size:14px}
  .submit-button{height:42px;font-size:15px}
  .tips{font-size:11px}
}
