
/* ============================================
   LoliYC 充值收银台 – Spiker 极简风格
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: #FAFAFA;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 64px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Page container ---- */
.page {
  width: 100%;
  max-width: 520px;
  position: relative;
}

/* ---- Background glows ---- */
.glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.12) 0%, rgba(129,140,248,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.glow-2 {
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, rgba(34,197,94,0) 70%);
  transform: translate(-30%, -40%);
}

/* ---- Fade-in-up animation ---- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim {
  opacity: 0;
  animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ---- Header ---- */
.header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 8px;
}

.sub {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---- Account bar ---- */
.account-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: #666;
  position: relative;
  z-index: 1;
}

.account-ok b {
  color: #111;
  font-weight: 700;
}

.account-no a {
  color: #1677FF;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.account-no a:hover {
  color: #0d5bd9;
  text-decoration: underline;
}

/* ---- Card ---- */
.card {
  /* 无卡片外观：内容直接落在浅灰底层 */
  padding: 28px 0;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* ---- Field label ---- */
.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---- Preset buttons ---- */
#presets {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.preset {
  flex: 1;
  padding: 12px 0;
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.2,0.8,0.2,1);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.preset:hover {
  background: #fafafa;
  border-color: rgba(0,0,0,.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.preset.active {
  background: #111;
  border-color: rgba(0,0,0,.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

/* ---- Custom amount input ---- */
#custom-amount {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  margin-bottom: 24px;
  -moz-appearance: textfield;
}
#custom-amount::-webkit-inner-spin-button,
#custom-amount::-webkit-outer-spin-button { -webkit-appearance: none; }
#custom-amount:focus {
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
#custom-amount::placeholder { color: #bbb; font-weight: 400; }

/* ---- Pay type selector ---- */
.paytypes {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.pt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.pt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pt:hover {
  background: #fafafa;
  border-color: rgba(0,0,0,.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.pt.active {
  background: #e8f1ff;
  border-color: #1677FF;
  box-shadow: 0 2px 12px rgba(22,119,255,.15);
}

.pt-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-icon svg {
  width: 28px;
  height: 28px;
}

.pt-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
}

/* ---- Error text ---- */
.err-text {
  font-size: 0.85rem;
  color: #ef4444;
  font-weight: 500;
  margin-bottom: 12px;
  min-height: 0;
}
.err-text:empty {
  margin-bottom: 0;
}

/* ---- Primary button ---- */
.btn-primary {
  width: 100%;
  padding: 15px 0;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.btn-primary:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.btn-outline {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: none;
  margin-top: 16px;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ---- Step pay ---- */
.tip {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid #eee;
  object-fit: contain;
}

.pay-jump {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.pay-info-row {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.pay-info-row b {
  color: #111;
  font-weight: 700;
}

/* ---- Step done ---- */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon svg {
  width: 64px;
  height: 64px;
  animation: pop-in .5s cubic-bezier(0.2,0.8,0.2,1);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.done-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.done-tip {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 12px;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
  body { padding: 32px 16px 48px; }

  .header h1 { font-size: 1.75rem; }
  .sub { font-size: 0.88rem; }

  .card { padding: 24px 20px; border-radius: 16px; }

  #presets { gap: 8px; }
  .preset { padding: 10px 0; font-size: 0.9rem; }

  .paytypes { gap: 8px; }
  .pt { padding: 12px 6px; border-radius: 12px; }
  .pt-icon svg { width: 24px; height: 24px; }
  .pt-label { font-size: 0.72rem; }

  .btn-primary { border-radius: 14px; padding: 14px 0; font-size: 0.95rem; }

  .qr-wrap img { width: 170px; height: 170px; }
}

@media (max-width: 370px) {
  .header h1 { font-size: 1.5rem; }
  #presets { flex-wrap: nowrap; }
  .paytypes { flex-wrap: nowrap; }
}

/* ---- 支付链接复制 ---- */
.pay-link-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pay-link-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 10px;
  font-size: 0.78rem;
  color: #333;
  background: #fff;
  outline: none;
}
.btn-copy {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #1677FF;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-copy:active { opacity: .85; }
@media (max-width: 480px) {
  .pay-link-input { font-size: 0.7rem; padding: 10px 10px; }
  .btn-copy { padding: 10px 12px; font-size: 0.75rem; }
}
