/* 参考爱奇艺官网 iqiyi.com：白底、品牌绿 #00BE06、克制干净 */
:root{
  --iq:#00be06;
  --iq-deep:#00a005;
  --iq-hover:#00a805;
  --iq-soft:#e8f9e9;
  --ink:#222;
  --ink-2:#555;
  --muted:#999;
  --line:#e6e6e6;
  --bg:#f5f5f5;
  --surface:#fff;
  --danger:#f44336;
  --ease:cubic-bezier(.22,1,.36,1);
  --font:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-size-adjust:100%}
body{
  font-family:var(--font);
  color:var(--ink);
  min-height:100vh;
  background:var(--bg);
}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

.shell{
  position:relative;z-index:1;min-height:100vh;
  display:flex;flex-direction:column;align-items:center;
  padding:28px 16px 40px;
}
.panel{
  width:100%;max-width:420px;
  background:var(--surface);
  border:1px solid #eee;
  border-radius:12px;
  padding:28px 22px 24px;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  animation:rise .4s var(--ease);
}
.brand-line{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-bottom:8px;color:var(--iq);font-size:12px;letter-spacing:.12em;font-weight:600;
}
.brand-line::before,.brand-line::after{
  content:"";height:1px;width:24px;background:#d8f5d9;
}
.logo-title{
  font-size:22px;line-height:1.35;text-align:center;font-weight:700;
  color:var(--iq);letter-spacing:.02em;
}
.logo-sub{
  text-align:center;color:var(--muted);font-size:13px;
  margin-top:8px;margin-bottom:22px;line-height:1.6;
}

label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:8px;font-weight:600}
input,textarea,select{
  width:100%;border:1px solid var(--line);border-radius:8px;
  padding:12px 14px;font-size:15px;outline:none;
  background:#fff;color:var(--ink);
  font-family:inherit;
  transition:border-color .2s, box-shadow .2s;
}
input:focus,textarea:focus,select:focus{
  border-color:var(--iq);
  box-shadow:0 0 0 3px rgba(0,190,6,.12);
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  width:100%;border:0;border-radius:8px;padding:13px 16px;
  font-size:15px;font-weight:700;letter-spacing:.02em;cursor:pointer;
  font-family:inherit;text-decoration:none;
  transition:background .2s, opacity .2s, transform .15s;
}
.btn:active:not(:disabled){transform:scale(.985)}
.btn-primary{
  background:var(--iq);color:#fff;
}
.btn-primary:hover{background:var(--iq-hover)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed;background:#a8d9a9}
.btn-secondary{
  background:#f7f7f7;color:var(--ink-2);border:1px solid var(--line);
}
.btn-pay{
  background:#1677ff;color:#fff;
  font-size:16px;padding:14px 16px;border-radius:8px;
}
.btn-pay:hover{background:#0f6ae6}
.btn-cancel{
  background:#ff7a00;color:#fff;
  font-size:16px;padding:14px 16px;border-radius:8px;
}
.btn-cancel:hover{background:#e86e00}
.err{color:var(--danger);font-size:13px;margin-top:10px;min-height:18px;text-align:center}
.hint{margin-top:14px;font-size:12px;color:var(--muted);line-height:1.65;text-align:center}
.pay-warn{
  margin:0 0 14px;padding:11px 12px;border-radius:8px;
  background:#fff8e8;border:1px solid #ffe0a3;
  color:#9a4b00;font-size:13px;font-weight:600;line-height:1.5;
}
.qrbox{text-align:center}
#qrcode{width:210px;height:210px;margin:10px auto;display:flex;align-items:center;justify-content:center}
#qrcode img,#qrcode canvas{
  width:210px!important;height:210px!important;display:block;margin:0 auto;
  border-radius:8px;background:#fff;padding:8px;border:1px solid var(--line);box-sizing:content-box;
}
.amount{
  font-size:30px;color:var(--danger);
  font-weight:700;margin:10px 0 4px;
}
.pay-actions{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.hidden{display:none!important}

.modal-mask{
  position:fixed;inset:0;background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px;
}
.modal-mask.hidden{display:none!important}
.modal-box{
  background:#fff;border-radius:12px;padding:26px 22px;text-align:center;
  box-shadow:0 12px 40px rgba(0,0,0,.15);width:100%;max-width:340px;
  animation:pop .25s var(--ease);
}
.modal-icon{
  width:52px;height:52px;margin:0 auto 12px;border-radius:50%;
  background:var(--iq-soft);color:var(--iq-deep);
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;
}
.modal-title{font-size:18px;font-weight:700;margin-bottom:8px;color:#222}
.modal-text{font-size:14px;color:var(--ink-2);line-height:1.7}
.modal-actions{display:flex;gap:10px;margin-top:18px}
.modal-actions .btn{margin-top:0;flex:1}
.loading-spinner{
  width:40px;height:40px;border:3px solid #e8f5e8;border-top-color:var(--iq);
  border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 16px;
}
.guide-box{
  background:#fff;border-radius:12px;padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.15);
  width:100%;max-width:420px;max-height:90vh;display:flex;flex-direction:column;gap:10px;
  animation:pop .25s var(--ease);
}
.guide-box img{width:100%;border-radius:8px;display:block;cursor:zoom-in;max-height:72vh;object-fit:contain;background:#f5f5f5}
.guide-tip{font-size:12px;color:#888;text-align:center}
.img-viewer{position:fixed;inset:0;z-index:1300;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:12px}
.img-viewer.hidden{display:none!important}
.img-viewer img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-out;transition:transform .2s ease}
.img-viewer img.zoomed{transform:scale(1.85);cursor:grab}
.img-viewer-close{
  position:absolute;top:14px;right:16px;width:40px;height:40px;border:0;border-radius:50%;
  background:rgba(255,255,255,.18);color:#fff;font-size:22px;line-height:40px;cursor:pointer;
}
.info-card{
  text-align:left;background:#fafafa;
  border:1px solid #eee;border-radius:8px;padding:4px 16px;margin-top:8px;
}
.info-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:14px}
.info-row + .info-row{border-top:1px solid #f0f0f0}
.info-k{color:var(--muted)}.info-v{color:var(--ink);font-weight:600;text-align:right;word-break:break-all}
.ok-badge{
  width:72px;height:72px;margin:0 auto 14px;border-radius:50%;
  background:var(--iq);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:700;
  animation:rise .45s var(--ease);
}
