:root {
  --rose: #A8455B; --rose-d: #7C2C40; --rose-l: #F5E6E9; --rose-m: #E4BFC7;
  --cream: #FBF8F5; --ink: #2F2529; --mid: #75676C; --line: #E9E1DD; --card: #fff; --ok: #3E7D62;
  --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select {
  font: inherit; color: inherit; width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; outline: none; font-size: 17px;
}
input:focus, textarea:focus, select:focus { border-color: var(--rose-m); }
img { display: block; max-width: 100%; }
.primary {
  display: block; width: 100%; padding: 13px; border-radius: 12px; background: var(--rose);
  color: #fff; font-weight: 600; font-size: 17px; text-align: center;
}
.primary:disabled { opacity: .45; }
.ghost {
  padding: 13px; border-radius: 12px; border: 1px solid var(--rose); color: var(--rose);
  font-weight: 600; text-align: center;
}
.link { color: var(--rose); font-size: 16px; }
.muted { color: var(--mid); font-size: 15px; }
.danger { color: #B3261E; }
.toast {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 99;
  transform: translateX(-50%); background: rgba(47, 37, 41, .92); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-size: 16px; max-width: 86vw; text-align: center;
}
.spin {
  width: 22px; height: 22px; border: 2.5px solid var(--rose-m); border-top-color: var(--rose);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
