/* PayGate · 页面专属样式 */

/* ============================ 通用布局 ============================ */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(28px + var(--safe-top)) 20px calc(60px + var(--safe-bottom));
  box-sizing: border-box;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand .logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #30d158, #0a84ff);
  box-shadow: 0 6px 18px rgba(48,209,88,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  animation: logo-breathe 4.5s var(--ease-in-out) infinite;
}
@keyframes logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(48,209,88,0.4); }
  50%      { transform: translateY(-2px) scale(1.045); box-shadow: 0 10px 26px rgba(48,209,88,0.55); }
}

.brand .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.card { padding: 24px; margin-bottom: 18px; }

.card h2 {
  margin: 0 0 4px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card .desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }

/* ============================ 落地页 ============================ */
.hero {
  text-align: center;
  padding: 46px 8px 26px;
}

.hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(120deg, #0a84ff 0%, #30d158 44%, #bf5af2 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 9s var(--ease-in-out) infinite alternate;
}
@keyframes gradient-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero p.lead {
  margin: 0 auto;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0a6cff;
  background: rgba(10,132,255,0.11);
  border: 0.5px solid rgba(10,132,255,0.24);
}

.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 0 0 rgba(48,209,88,0.7);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(48,209,88,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.feature {
  padding: 20px;
  border-radius: var(--r-md);
  transition: transform 0.42s var(--spring), box-shadow 0.42s var(--ease-out);
}
.feature:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: var(--glass-shadow-lg);
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, rgba(10,132,255,0.20), rgba(48,209,88,0.20));
  border: 0.5px solid rgba(255,255,255,0.6);
}
.feature h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================ 登录页 ============================ */
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 28px 30px;
  text-align: center;
}
.login-card .lock {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 19px;
  display: grid; place-items: center;
  font-size: 27px;
  background: linear-gradient(145deg, rgba(10,132,255,0.9), rgba(48,209,88,0.85));
  box-shadow: 0 14px 36px rgba(10,132,255,0.32);
  animation: lock-float 5s var(--ease-in-out) infinite;
}
@keyframes lock-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
.login-card h1 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.login-card .hint {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-2);
}
.login-card input { text-align: center; letter-spacing: 0.08em; }

/* ============================ 后台 ============================ */
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}
.stat {
  padding: 15px 14px;
  border-radius: var(--r-md);
  text-align: left;
}
.stat .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}
.stat .v {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #0a84ff, #30d158);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 拖拽上传区 */
.dropzone {
  border: 1.5px dashed rgba(10,132,255,0.38);
  border-radius: var(--r-md);
  padding: 30px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.34s var(--spring);
  background: rgba(10,132,255,0.045);
}
.dropzone:hover {
  border-color: rgba(10,132,255,0.72);
  background: rgba(10,132,255,0.09);
  transform: scale(1.008);
}
.dropzone.drag {
  border-color: var(--ios-green);
  background: rgba(48,209,88,0.13);
  transform: scale(1.018);
  box-shadow: 0 0 0 6px rgba(48,209,88,0.12);
}
.dropzone .big {
  font-size: 34px;
  margin-bottom: 8px;
  display: block;
  animation: drop-bob 3.2s var(--ease-in-out) infinite;
}
@keyframes drop-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.dropzone .t1 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.dropzone .t2 { font-size: 12.5px; color: var(--text-3); }

/* 码卡片列表 */
.codegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.codecard {
  padding: 16px;
  border-radius: var(--r-md);
  transition: transform 0.42s var(--spring), box-shadow 0.42s var(--ease-out);
  animation: pop 0.55s var(--spring) both;
}
.codecard:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-lg); }
.codecard .head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.codecard .thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.08);
  flex: 0 0 auto;
}
.codecard .nm {
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.codecard .pl {
  font-size: 11px;
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all;
  margin-top: 3px;
  line-height: 1.45;
  max-height: 2.9em;
  overflow: hidden;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.tag.wx { background: rgba(48,209,88,0.16); color: #1a8c46; }
.tag.ali { background: rgba(10,132,255,0.16); color: #0a6cff; }
.tag.other { background: rgba(128,128,140,0.16); color: #5b5b66; }

.mini-form { display: flex; gap: 8px; margin-top: 10px; }
.mini-form .field { padding: 10px 12px; font-size: 15px; }
.mini-form .btn { padding: 10px 18px; font-size: 14.5px; }

.out {
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: rgba(48,209,88,0.10);
  border: 0.5px solid rgba(48,209,88,0.26);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-all;
  animation: pop 0.42s var(--spring) both;
}
.out a { color: #0a6cff; font-weight: 600; text-decoration: none; }
.out a:hover { text-decoration: underline; }

/* 链接表格 */
.linklist { display: flex; flex-direction: column; gap: 9px; }
.linkrow {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.45);
  border: 0.5px solid rgba(255,255,255,0.6);
  transition: transform 0.32s var(--spring), background 0.24s;
  animation: rise 0.5s var(--spring-soft) both;
}
.linkrow:hover { transform: translateX(3px); background: rgba(255,255,255,0.68); }
.linkrow .amt {
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 74px;
}
.linkrow .meta { flex: 1; min-width: 0; }
.linkrow .ttl {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.linkrow .tk {
  font-size: 11px;
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.badge-paid { color: #1a8c46; font-weight: 650; font-size: 12.5px; }
.badge-wait { color: var(--ios-orange); font-weight: 650; font-size: 12.5px; }

body.dark .linkrow { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
body.dark .linkrow:hover { background: rgba(255,255,255,0.12); }

/* ============================ 付款页 ============================ */
.pay-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--safe-top)) 18px calc(30px + var(--safe-bottom));
  box-sizing: border-box;
}

.pay-card {
  width: 100%;
  max-width: 420px;
  padding: 30px 26px 26px;
  text-align: center;
  border-radius: var(--r-xl);
}

.pay-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  word-break: break-all;
}

.amount {
  font-size: clamp(46px, 15vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 6px;
  background: linear-gradient(120deg, #0a84ff, #30d158 55%, #bf5af2);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 7s var(--ease-in-out) infinite alternate;
  filter: drop-shadow(0 4px 18px rgba(10,132,255,0.18));
}
.amount .cur {
  font-size: 0.46em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.16em;
  margin-right: 2px;
}

.pay-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* 二维码舞台 */
.qr-stage {
  position: relative;
  width: 244px;
  height: 244px;
  margin: 0 auto 20px;
  border-radius: var(--r-lg);
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.07);
  box-shadow: 0 16px 44px rgba(0,0,0,0.14);
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease-out);
}
.qr-stage:hover {
  transform: translateY(-4px) scale(1.025) rotate(-0.6deg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.qr-stage img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  animation: qr-breathe 5.5s var(--ease-in-out) infinite;
}
@keyframes qr-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.018); filter: brightness(1.045); }
}

/* 扫描线 */
.scanline {
  position: absolute;
  left: 12px; right: 12px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(48,209,88,0.95), transparent);
  box-shadow: 0 0 14px 3px rgba(48,209,88,0.55);
  animation: scan 2.4s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 14px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: calc(100% - 16px); opacity: 0; }
}

/* 四角准星 */
.qr-stage .corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid var(--ios-green);
  border-radius: 4px;
  pointer-events: none;
}
.qr-stage .c-tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.qr-stage .c-tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.qr-stage .c-bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.qr-stage .c-br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.pay-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }
.pay-actions .btn { width: 100%; padding: 16px; font-size: 17px; letter-spacing: -0.015em; }

.tips {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(128,128,140,0.18);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-3);
  text-align: left;
}
.tips b { color: var(--text-2); font-weight: 650; }

.pay-foot {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
  text-align: center;
}

/* 金额强提示 */
.amount-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(255,159,10,0.13);
  border: 0.5px solid rgba(255,159,10,0.3);
  color: #a86200;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* 复制成功的勾 */
.chk {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ios-green);
  color: #fff;
  font-size: 11px;
  animation: pop 0.4s var(--spring) both;
}

/* ============================ 404 ============================ */
.nf {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}
.nf .code {
  font-size: clamp(72px, 22vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(120deg, #0a84ff, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float-slow 6s var(--ease-in-out) infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.nf p { color: var(--text-2); font-size: 15px; margin: 14px 0 26px; }

@media (max-width: 420px) {
  .wrap { padding-left: 15px; padding-right: 15px; }
  .card { padding: 19px; }
  .qr-stage { width: 220px; height: 220px; }
}

/* 错误提示 */
.out.err {
  background: rgba(255, 55, 95, 0.10);
  border-color: rgba(255, 55, 95, 0.30);
  color: #c81e3c;
}
