:root {
  --bg: #f2f5fa;
  --card: #ffffff;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --text: #1f2937;
  --muted: #8a94a6;
  --border: #e8edf4;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(30, 60, 120, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 760px; margin: 0 auto; padding: 16px 14px 48px; }

/* ---------- 顶部横幅 ---------- */
.banner {
  background: linear-gradient(135deg, #4f8ef7 0%, #6a5cf5 55%, #8b5cf6 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.banner::before, .banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.banner::before { width: 220px; height: 220px; right: -60px; top: -100px; }
.banner::after { width: 140px; height: 140px; right: 110px; bottom: -80px; }
.banner h1 { font-size: 30px; letter-spacing: 2px; position: relative; z-index: 1; }
.banner p { margin-top: 10px; opacity: 0.88; font-size: 14px; position: relative; z-index: 1; }
.banner .penguin { position: absolute; right: 22px; bottom: 10px; font-size: 64px; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 16px;
  overflow: hidden;
}
.card-header {
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
}
.card-header.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.card-header.green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.card-body { padding: 20px; }

/* ---------- 信息行 ---------- */
.info-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.info-row:last-child { border-bottom: none; }
.info-tag {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
  background: #eef4ff;
  border: 1px solid #d8e6ff;
  border-radius: 6px;
  padding: 4px 10px;
}
.info-row a { color: var(--primary-dark); font-weight: 600; }

/* ---------- 表单 ---------- */
.form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.form-label { flex: 0 0 76px; font-size: 14px; color: #4b5563; text-align: right; }
.form-label .req { color: #ef4444; margin-right: 2px; }
.form-control { flex: 1; min-width: 200px; }

select, input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 40px; border: none; background: #f6f8fb; color: #6b7280;
  font-size: 18px; cursor: pointer; transition: background .15s;
}
.stepper button:hover { background: #eaeef5; }
.stepper button:disabled { color: #cbd5e1; cursor: not-allowed; }
.stepper input {
  width: 72px; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  border-radius: 0; text-align: center; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio-group input { accent-color: var(--primary); width: 16px; height: 16px; }

.total-bar {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2661b;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 6px 0 16px;
}
.total-bar b { font-size: 17px; }

.btn {
  display: block; width: 100%;
  padding: 14px;
  border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: #fff;
  cursor: pointer;
  transition: transform .1s, filter .2s;
  font-family: inherit;
}
.btn:active { transform: scale(0.985); }
.btn-green { background: linear-gradient(90deg, var(--green), #34d399); box-shadow: 0 6px 16px rgba(34, 197, 94, .28); }
.btn-green:hover { filter: brightness(1.05); }
.btn-blue { background: linear-gradient(90deg, var(--primary), #6366f1); box-shadow: 0 6px 16px rgba(59, 130, 246, .28); }
.btn:disabled { filter: grayscale(.5); opacity: .6; cursor: not-allowed; }

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error-text { color: #ef4444; font-size: 12px; margin-top: 4px; }

/* ---------- 顶部导航链接 ---------- */
.topnav { display: flex; justify-content: flex-end; gap: 16px; padding: 4px 2px 10px; }
.topnav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.topnav a:hover { color: var(--primary); }

/* ---------- 收银台 ---------- */
.pay-wrap { max-width: 980px; margin: 0 auto; padding: 18px 14px 60px; }
.pay-top { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.pay-brand {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px;
}
.pay-brand .logo-line { display: flex; align-items: center; gap: 12px; }
.pay-brand .logo-dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 200deg, #3b82f6, #06b6d4, #6366f1, #3b82f6);
  position: relative;
}
.pay-brand .logo-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255,255,255,.9) 0 6px, transparent 7px);
}
.pay-brand h2 { font-size: 19px; }
.pay-brand .en { font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-top: 2px; }
.pay-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 13px; color: #64748b;
  background: #f1f5f9; border-radius: 999px; padding: 7px 14px;
}
.pay-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.pay-order {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px;
}
.pay-order .label { font-size: 12px; color: var(--muted); }
.pay-order .order-no { font-size: 17px; font-weight: 600; margin: 4px 0 14px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.pay-order .amount { font-size: 40px; font-weight: 800; color: #0f172a; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.pay-order .amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.pay-warning {
  margin-top: 14px;
  background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
  border-radius: 10px; padding: 12px 14px; font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}

.pay-methods-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: 16px; padding: 24px;
}
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pm-head h3 { font-size: 20px; }
.pm-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pm-tabs { display: inline-flex; background: #f1f5f9; border-radius: 12px; padding: 4px; }
.pm-tabs button {
  border: none; background: transparent; padding: 8px 18px; border-radius: 9px;
  font-size: 13px; color: #64748b; cursor: pointer; font-weight: 600; font-family: inherit;
  transition: all .2s;
}
.pm-tabs button.active { background: #fff; color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }

.pm-tip {
  margin-top: 14px; padding: 10px 14px; background: #f8fafc; border-radius: 10px;
  display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #64748b; flex-wrap: wrap;
}

.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pm-item {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px; cursor: pointer; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .1s;
}
.pm-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(59, 130, 246, .12); transform: translateY(-1px); }
.pm-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.pm-info { flex: 1; min-width: 0; }
.pm-info .name { font-weight: 700; font-size: 15px; }
.pm-info .desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.pm-tag {
  display: inline-block; margin-top: 7px; font-size: 11px;
  color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 2px 9px; border-radius: 999px;
}
.pm-arrow {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); color: #94a3b8;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* 手动支付 */
.manual-pane { margin-top: 16px; }
.addr-block { border: 1.5px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.addr-block .net { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.addr-block .net .chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.addr-line { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.addr-line code {
  flex: 1; min-width: 200px; background: #f8fafc; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; word-break: break-all; color: #334155;
}
.copy-btn {
  border: 1.5px solid var(--primary); color: var(--primary); background: #fff;
  border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; font-weight: 600; font-family: inherit;
  transition: all .15s;
}
.copy-btn:hover { background: var(--primary); color: #fff; }

/* 状态页 */
.result-box { text-align: center; padding: 40px 20px; }
.result-box .icon { font-size: 56px; }
.result-box h3 { margin-top: 14px; font-size: 20px; }
.result-box p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.cards-list { text-align: left; margin-top: 18px; }
.cards-list .card-item {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; font-family: Consolas, monospace;
  font-size: 13px; word-break: break-all;
}

/* 订单查询 */
.order-item { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.order-item .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-item .no { font-size: 13px; color: var(--muted); }
.status-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.status-0 { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-1 { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-2 { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.status-3 { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: #0f172a; color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; z-index: 999; transition: transform .3s ease; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.footer { text-align: center; color: #b0b9c6; font-size: 12px; margin-top: 30px; }
.footer a { color: #94a3b8; }

/* ---------- 手机端 ---------- */
@media (max-width: 720px) {
  .pay-top { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .banner h1 { font-size: 24px; }
  .banner { padding: 26px 20px; }
  .banner .penguin { font-size: 44px; }
  .form-label { flex: 0 0 100%; text-align: left; }
  .pay-order .amount { font-size: 32px; }
  .pm-head { flex-direction: column; align-items: flex-start; }
}
