:root{
  --bg:#0b1020;
  --bg2:#131b34;
  --card:rgba(17,24,39,.72);
  --card-strong:rgba(17,24,39,.88);
  --line:rgba(255,255,255,.08);
  --text:#ecf4ff;
  --muted:#8fa3c4;
  --input:#0f172a;
  --input-line:#334155;
  --ok-bg:rgba(34,197,94,.15);
  --ok-line:rgba(74,222,128,.45);
  --warn-bg:rgba(245,158,11,.14);
  --warn-line:rgba(251,191,36,.38);
  --primary1:#5b8cff;
  --primary2:#8b5cf6;
  --accent:#22d3ee;
  --green1:#22c55e;
  --green2:#10b981;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(91,140,255,.25), transparent 30%),
    radial-gradient(circle at right center, rgba(139,92,246,.22), transparent 24%),
    linear-gradient(135deg,var(--bg),var(--bg2));
}

.bg-orb{
  position:fixed;
  border-radius:50%;
  filter:blur(40px);
  opacity:.35;
  pointer-events:none;
}
.orb-a{width:220px;height:220px;left:-40px;top:60px;background:#22d3ee}
.orb-b{width:260px;height:260px;right:20px;top:140px;background:#8b5cf6}
.orb-c{width:180px;height:180px;left:35%;bottom:40px;background:#5b8cff}

.shell{
  position:relative;
  z-index:1;
  width:min(1240px,calc(100% - 28px));
  margin:26px auto 24px;
}

.hero{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.eyebrow{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#d8e5ff;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero h1{
  margin:14px 0 8px;
  font-size:40px;
  line-height:1.1;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.tabs{
  display:flex;
  gap:10px;
  background:rgba(255,255,255,.06);
  padding:8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.tabs button{
  border:0;
  color:#dbe7ff;
  background:transparent;
  font-weight:700;
  padding:16px 28px;
  border-radius:18px;
  cursor:pointer;
  transition:.2s ease;
  font-size:15px;
}
.tabs button.active{
  color:#fff;
  background:linear-gradient(90deg,var(--primary1),var(--primary2));
  box-shadow:0 10px 25px rgba(91,140,255,.28);
}

.app-card{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:18px;
  min-height:700px;
}

.rail,
.panel{
  background:var(--card);
  border:1px solid var(--line);
  backdrop-filter:blur(18px);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.rail{
  padding:28px 24px;
}
.rail-title small{
  color:#8bdff0;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
}
.rail-title h2{
  margin:8px 0 22px;
  font-size:28px;
}
.steps{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.step-line{
  height:22px;
  width:2px;
  background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.04));
  margin-left:23px;
}
.step{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  color:#8fa3c4;
}
.step b{
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#e2e8f0;
}
.step span{
  display:block;
  font-weight:700;
  color:#d8e5ff;
}
.step small{
  display:block;
  margin-top:4px;
  color:#8fa3c4;
}
.step.on,.step.done{
  border-color:rgba(91,140,255,.45);
  background:linear-gradient(135deg,rgba(91,140,255,.18),rgba(139,92,246,.12));
}
.step.on b,.step.done b{
  background:linear-gradient(135deg,var(--primary1),var(--primary2));
  color:#fff;
}
.rail-tip{
  margin-top:28px;
  padding:16px;
  border-radius:18px;
  background:rgba(34,211,238,.10);
  border:1px solid rgba(34,211,238,.18);
  display:flex;
  gap:12px;
}
.rail-tip span{font-size:18px}
.rail-tip p{
  margin:0;
  color:#c6d8ff;
  line-height:1.65;
  font-size:14px;
}

.panel{
  padding:28px;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:20px;
}
.panel-head h3{
  margin:0 0 6px;
  font-size:30px;
}
.panel-head p{
  margin:0;
  color:var(--muted);
}
.stock{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  color:#bafad0;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(74,222,128,.35);
  font-weight:700;
  font-size:14px;
}
.page{display:block}
.hide{display:none !important}

.field-card,
.info-card,
.confirm-card,
.task-box,
.used-box{
  background:var(--card-strong);
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.no-shadow{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
}

label{
  display:block;
  margin:0 0 10px;
  color:#dbe7ff;
  font-weight:600;
}
em{color:#ff8ea1;font-style:normal}

input,textarea{
  width:100%;
  border:1px solid var(--input-line);
  background:rgba(15,23,42,.72);
  color:#eef6ff;
  border-radius:18px;
  padding:15px 16px;
  outline:none;
  font-size:15px;
  transition:.2s ease;
}
input::placeholder,textarea::placeholder{color:#8092b7}
input:focus,textarea:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(96,165,250,.16);
}
textarea{
  min-height:160px;
  resize:vertical;
}

.msg{
  margin:0 0 18px;
  padding:15px 18px;
  border-radius:18px;
  border:1px solid;
  font-weight:600;
}
.msg.ok{
  background:var(--ok-bg);
  border-color:var(--ok-line);
  color:#bdf6cb;
}
.msg.err{
  background:rgba(244,63,94,.16);
  border-color:rgba(251,113,133,.32);
  color:#fecdd3;
}
.used-box{
  margin-top:18px;
  background:var(--warn-bg);
  border-color:var(--warn-line);
}
.used-title{
  color:#fcd34d;
  font-weight:800;
  margin-bottom:8px;
}
.used-email{
  color:#ffe6a5;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  font-weight:800;
  transition:transform .15s ease,opacity .15s ease,box-shadow .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.72;cursor:not-allowed;transform:none}

.primary{
  color:#fff;
  background:linear-gradient(90deg,var(--primary1),var(--primary2));
  box-shadow:0 14px 28px rgba(91,140,255,.25);
}
.secondary{
  color:#fff;
  background:linear-gradient(90deg,#3b82f6,#2563eb);
}
.success{
  color:#fff;
  background:linear-gradient(90deg,var(--green1),var(--green2));
}
.muted{
  color:#e2e8f0;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.wide{
  width:100%;
  min-height:56px;
  border-radius:18px;
  padding:0 20px;
  margin-top:16px;
  font-size:16px;
}
.mini{
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  font-size:14px;
}
.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:22px;
}
.action-btn{
  width:100%;
  min-height:56px;
  border-radius:18px;
  padding:0 18px;
  font-size:16px;
}
.action-list{
  margin:18px 0 4px;
}
.action-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.action-label{
  min-width:72px;
  font-weight:700;
}
.warn{
  color:#fbbf24;
  line-height:1.7;
  margin:6px 0 18px;
}
.hint{
  margin:10px 0 0;
  color:var(--muted);
}
.info-card{
  background:rgba(96,165,250,.10);
  border-color:rgba(96,165,250,.24);
  margin-bottom:18px;
}
.info-card b{
  color:#cce5ff;
}
.info-card p{
  margin:10px 0 0;
  color:#dbeafe;
}
.confirm-card h4{
  margin:0 0 18px;
  font-size:22px;
}
.confirm-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.confirm-item{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.confirm-item.full{grid-column:1 / -1}
.confirm-item span{
  display:block;
  color:var(--muted);
  margin-bottom:10px;
}
.confirm-item b{
  color:#f1f5f9;
  word-break:break-all;
}
.check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:18px 2px 0;
  color:#dce7fa;
}
.check input{
  width:18px;
  height:18px;
  margin-top:3px;
}
.check small{
  display:block;
  color:#fbbf24;
  margin-top:6px;
  line-height:1.6;
}
.task-box{
  margin-top:22px;
  background:rgba(34,211,238,.10);
  border-color:rgba(34,211,238,.25);
}
.task-box b{
  display:block;
  margin-bottom:8px;
  font-size:18px;
}
.task-box p{
  margin:0 0 12px;
  color:#dbeafe;
}
.footer{
  text-align:center;
  margin:20px 0 8px;
  color:#91a4c5;
}

@media (max-width: 980px){
  .app-card{
    grid-template-columns:1fr;
  }
  .rail{
    order:2;
  }
  .panel{
    order:1;
  }
  .steps{
    display:grid;
    grid-template-columns:1fr;
  }
}

@media (max-width: 680px){
  .shell{
    width:min(100% - 18px, 100%);
    margin:16px auto;
  }
  .hero h1{font-size:31px}
  .panel,.rail{padding:20px}
  .tabs{
    width:100%;
  }
  .tabs button{
    flex:1;
    padding:14px 16px;
  }
  .actions{
    grid-template-columns:1fr;
  }
  .confirm-grid{
    grid-template-columns:1fr;
  }
  .action-row{
    align-items:flex-start;
  }
}

/* STYLE B：白金简约版 */
:root{
  --bg:#f5f7fb;
  --bg2:#eef2f8;
  --card:rgba(255,255,255,.82);
  --card-strong:rgba(255,255,255,.96);
  --line:rgba(15,23,42,.10);
  --text:#102033;
  --muted:#667085;
  --input:#ffffff;
  --input-line:#d0d7e2;
  --ok-bg:#ecfdf5;
  --ok-line:#a7f3d0;
  --warn-bg:#fffbeb;
  --warn-line:#fde68a;
  --primary1:#111827;
  --primary2:#64748b;
  --accent:#c8a96a;
  --green1:#16a34a;
  --green2:#22c55e;
  --shadow:0 24px 55px rgba(15,23,42,.10);
}
body{
  color:var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(200,169,106,.22), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(148,163,184,.16), transparent 24%),
    linear-gradient(135deg,#ffffff,var(--bg2));
}
.bg-orb{opacity:.18}
.orb-a{background:#c8a96a}.orb-b{background:#94a3b8}.orb-c{background:#e2e8f0}
.eyebrow{background:#fff;border-color:#e5e7eb;color:#8a6a24}
.hero h1{color:#111827}
.hero p,.panel-head p,.rail-tip p,.step small,.hint{color:#667085}
.tabs,.rail,.panel{background:rgba(255,255,255,.82);border-color:#e5e7eb}
.tabs button{color:#475569}
.tabs button.active,.primary{background:linear-gradient(90deg,#111827,#64748b);color:#fff}
.rail-title small{color:#8a6a24}
.step{background:#fff;color:#475569;border-color:#e5e7eb}
.step span{color:#111827}.step b{background:#e5e7eb;color:#475569}
.step.on,.step.done{background:#f8fafc;border-color:#c8a96a}
.step.on b,.step.done b{background:linear-gradient(135deg,#c8a96a,#9a7938);color:#fff}
.rail-tip{background:#fff8e8;border-color:#f1dca6}
.field-card,.info-card,.confirm-card,.task-box,.used-box{background:#fff;border-color:#e5e7eb}
label{color:#111827}
input,textarea{background:#fff;color:#111827;border-color:#d0d7e2}
input::placeholder,textarea::placeholder{color:#98a2b3}
.msg.ok{color:#166534}.msg.err{color:#be123c}
.info-card{background:#f8fafc;border-color:#e2e8f0}.info-card b,.info-card p{color:#111827}
.confirm-item{background:#f8fafc;border-color:#e5e7eb}.confirm-item b{color:#111827}
.muted{background:#f1f5f9;color:#334155;border-color:#e2e8f0}
.warn{color:#b45309}.stock{background:#fff8e8;border-color:#f1dca6;color:#8a6a24}


/* V4：白金简约风二次优化
   - 统一切换业务和主操作按钮色彩
   - 提升提示小字可读性
   - 优化“卡密已使用”提示颜色
   - 功能与 API 不变
*/
:root{
  --primary1:#2563eb;
  --primary2:#7c3aed;
  --accent:#b88a2c;
  --text:#111827;
  --muted:#4b5563;
  --line:rgba(17,24,39,.12);
  --input-line:#b8c2d4;
}

body{
  background:
    radial-gradient(circle at 14% 8%, rgba(37,99,235,.10), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(184,138,44,.14), transparent 24%),
    linear-gradient(135deg,#ffffff,#eef3fb);
}

.eyebrow{
  color:#6f4f12;
  background:#fff9ed;
  border-color:#eed9a5;
}

.hero h1{
  color:#111827;
}

.hero p,
.panel-head p,
.rail-tip p,
.step small,
.hint,
.warn,
.admin-hint,
.table-head p{
  color:#4b5563 !important;
  font-weight:500;
}

.tabs{
  background:#ffffff;
  border-color:#dbe3ef;
}

.tabs button{
  color:#334155;
}

.tabs button.active,
.primary,
.big,
.blue{
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
  color:#ffffff !important;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}

.btn.primary,
.btn.secondary,
.action-btn.primary{
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
  color:#ffffff !important;
}

.secondary{
  background:linear-gradient(90deg,#2563eb,#3b82f6) !important;
  color:#ffffff !important;
}

.success{
  background:linear-gradient(90deg,#16a34a,#22c55e) !important;
  color:#ffffff !important;
}

.muted{
  background:#eef2f7 !important;
  color:#334155 !important;
  border:1px solid #cfd8e6 !important;
}

.rail-title small{
  color:#6f4f12;
}

.step{
  background:#ffffff;
  border-color:#dbe3ef;
}

.step span{
  color:#111827;
}

.step small{
  color:#526173 !important;
}

.step.on,
.step.done{
  background:#eef5ff;
  border-color:#7aa7ff;
}

.step.on b,
.step.done b{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
}

.rail-tip{
  background:#fff9ed;
  border-color:#eed9a5;
}

.stock{
  background:#ecfdf5 !important;
  border-color:#86efac !important;
  color:#047857 !important;
  font-weight:800;
}

label{
  color:#111827 !important;
  font-weight:700;
}

input,
textarea{
  color:#111827 !important;
  background:#ffffff !important;
  border-color:#b8c2d4 !important;
}

input::placeholder,
textarea::placeholder{
  color:#6b7280 !important;
}

input:focus,
textarea:focus{
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}

.msg.ok{
  background:#ecfdf5 !important;
  border-color:#86efac !important;
  color:#047857 !important;
  font-weight:800;
}

.msg.err{
  background:#fff1f2 !important;
  border-color:#fecdd3 !important;
  color:#be123c !important;
  font-weight:800;
}

.used-box{
  background:#fff8e6 !important;
  border-color:#f3c96b !important;
  color:#92400e !important;
}

.used-title{
  color:#92400e !important;
  font-weight:900;
}

.used-email{
  color:#92400e !important;
  font-weight:700;
}

.used-email b{
  color:#c2410c !important;
  font-weight:900;
}

.info-card{
  background:#eff6ff !important;
  border-color:#bfdbfe !important;
}

.info-card b,
.info-card p{
  color:#1d4ed8 !important;
  font-weight:700;
}

.warn{
  color:#b45309 !important;
  font-weight:700;
}

.hint{
  color:#526173 !important;
  font-weight:600;
}

.confirm-item span{
  color:#4b5563 !important;
  font-weight:700;
}

.confirm-item b{
  color:#111827 !important;
}

.check small{
  color:#b45309 !important;
  font-weight:700;
}

.task-box{
  background:#eff6ff !important;
  border-color:#bfdbfe !important;
}

.task-box b,
.task-box p{
  color:#1d4ed8 !important;
}

.btn{
  letter-spacing:.01em;
}

.btn:hover{
  opacity:.96;
}

.row-actions .outline{
  color:#334155 !important;
  background:#ffffff !important;
  border:1px solid #cfd8e6 !important;
}

.row-actions .warning{
  background:linear-gradient(90deg,#f59e0b,#d97706) !important;
  color:#fff !important;
}

.badge.active{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border-color:#86efac !important;
}

.badge.disabled{
  background:#eef2f7 !important;
  color:#334155 !important;
  border-color:#cfd8e6 !important;
}

.badge.destroyed{
  background:#fff1f2 !important;
  color:#be123c !important;
  border-color:#fecdd3 !important;
}

.danger{
  background:linear-gradient(90deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
}


/* v10.6：充值页布局微调为“会员充值”版，仅影响充值前台，不影响 admin.html */
body.recharge-page{
  min-height:100vh;
  color:#101828;
  background:
    radial-gradient(circle at 8% 18%, rgba(59,130,246,.14), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(184,138,44,.18), transparent 26%),
    linear-gradient(90deg,#eef4ff 0%,#ffffff 38%,#f7f1e7 100%);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}

.recharge-page .bg-orb,
.recharge-page .orb-a,
.recharge-page .orb-b,
.recharge-page .orb-c{
  display:none !important;
}

.page-glow{
  position:fixed;
  pointer-events:none;
  z-index:0;
  border-radius:999px;
  filter:blur(58px);
  opacity:.52;
}
.glow-left{
  width:360px;
  height:360px;
  left:-110px;
  top:130px;
  background:#dbeafe;
}
.glow-right{
  width:430px;
  height:430px;
  right:-120px;
  top:80px;
  background:#e8ddc3;
}

.recharge-shell{
  position:relative;
  z-index:1;
  width:min(1280px,calc(100% - 48px));
  margin:24px auto 18px;
}

.recharge-top{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:24px;
  min-height:112px;
  margin-bottom:16px;
}

.brand-block{
  justify-self:start;
  min-width:438px;
  padding:18px 58px 22px;
  background:rgba(255,255,255,.86);
  box-shadow:0 26px 48px rgba(15,23,42,.05);
}

.brand-block h1{
  margin:0;
  color:#000;
  font-size:66px;
  line-height:1;
  letter-spacing:.04em;
  font-weight:900;
  font-family:"Microsoft YaHei","PingFang SC",Inter,Arial,sans-serif;
}

.recharge-tabs{
  justify-self:center;
  margin-top:14px;
  padding:8px;
  border-radius:24px;
  background:#fff;
  border:1px solid #d9e2ef;
  box-shadow:0 18px 45px rgba(15,23,42,.10);
  min-width:290px;
}

.recharge-tabs button{
  font-size:15px;
  font-weight:900;
  min-width:122px;
  padding:17px 24px;
}

.recharge-tabs button.active{
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
  color:#fff !important;
}

.recharge-layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:18px;
  align-items:stretch;
  width:min(1240px,100%);
  margin:0 auto;
}

.recharge-rail,
.recharge-panel{
  background:rgba(255,255,255,.86) !important;
  border:1px solid rgba(203,213,225,.78) !important;
  box-shadow:0 24px 58px rgba(15,23,42,.10) !important;
  backdrop-filter:blur(12px);
}

.recharge-rail{
  min-height:700px;
  border-radius:26px !important;
  padding:44px 24px !important;
}

.recharge-rail .rail-title{
  margin-bottom:30px;
}

.recharge-rail .rail-title small{
  display:none;
}

.recharge-rail .rail-title h2{
  margin:0;
  color:#111827;
  text-align:center;
  font-size:32px;
  font-weight:900;
  letter-spacing:.02em;
}

.recharge-rail .steps{
  display:grid;
  gap:0;
}

.recharge-rail .step{
  grid-template-columns:48px 1fr;
  min-height:72px;
  border-radius:16px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #dbe3ef;
  box-shadow:none;
}

.recharge-rail .step-spacer{
  margin-top:76px;
}

.recharge-rail .step b{
  width:34px;
  height:34px;
  font-size:16px;
  font-weight:900;
  background:#e5eaf2;
  color:#64748b;
}

.recharge-rail .step span{
  color:#111827;
  font-size:16px;
  font-weight:900;
}

.recharge-rail .step small{
  color:#526173 !important;
  font-weight:600;
}

.recharge-rail .step.on,
.recharge-rail .step.done{
  background:#eaf2ff !important;
  border-color:#75a5ff !important;
}

.recharge-rail .step.on b,
.recharge-rail .step.done b{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
}

.recharge-panel{
  position:relative;
  min-height:700px;
  border-radius:26px !important;
  padding:30px 28px 42px !important;
}

.recharge-panel .stock{
  position:absolute;
  top:16px;
  right:18px;
  z-index:2;
  background:#ecfdf5 !important;
  border-color:#86efac !important;
  color:#047857 !important;
  font-size:15px;
  font-weight:900;
  min-height:44px;
  padding:0 18px;
}

.recharge-panel-head{
  min-height:78px;
  display:block !important;
  margin-bottom:16px !important;
}

.recharge-panel-head h3{
  margin:0 0 8px;
  color:#111827;
  font-size:34px;
  font-weight:900;
  letter-spacing:-.02em;
}

.recharge-panel-head p{
  margin:0;
  color:#526173 !important;
  font-size:16px;
  font-weight:600;
}

.recharge-form-card{
  width:min(100%,846px);
  margin:22px auto 0;
  padding:20px !important;
  border-radius:22px !important;
  background:#fff !important;
  border:1px solid #dde6f2 !important;
  box-shadow:0 16px 28px rgba(15,23,42,.04) !important;
}

.recharge-form-card label,
.recharge-panel label{
  color:#111827 !important;
  font-size:16px;
  font-weight:900;
}

.recharge-form-card input,
.recharge-panel input,
.recharge-panel textarea{
  height:50px;
  border-radius:18px;
  border:1px solid #b9c5d8 !important;
  background:#fff !important;
  color:#111827 !important;
  font-size:15px;
  font-weight:600;
}

.recharge-form-card input::placeholder,
.recharge-panel input::placeholder,
.recharge-panel textarea::placeholder{
  color:#6b7280 !important;
}

.recharge-form-card .msg.ok{
  margin:0 !important;
  border-radius:16px !important;
  background:#ecfdf5 !important;
  border-color:#86efac !important;
  color:#047857 !important;
  font-size:16px;
  font-weight:900;
}

.recharge-form-card .wide{
  margin-top:34px;
  min-height:56px;
  border-radius:18px;
  font-size:17px;
  font-weight:900;
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
}

.recharge-panel .info-card,
.recharge-panel .confirm-card,
.recharge-panel .task-box{
  background:#fff !important;
  border-color:#dbe3ef !important;
  border-radius:22px;
}

.recharge-panel textarea{
  height:auto;
  min-height:150px;
}

.recharge-panel .actions{
  margin-top:28px;
}

.recharge-panel .action-btn{
  min-height:56px;
  border-radius:18px;
}

.recharge-page .footer{
  color:#64748b;
  font-weight:600;
}

@media(max-width:1050px){
  .recharge-top{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .brand-block{
    min-width:0;
    width:100%;
    padding:20px 24px;
  }
  .brand-block h1{
    font-size:48px;
  }
  .recharge-tabs{
    justify-self:start;
  }
  .recharge-layout{
    grid-template-columns:1fr;
  }
  .recharge-rail{
    min-height:auto;
  }
  .recharge-rail .step-spacer{
    margin-top:12px;
  }
}

@media(max-width:680px){
  .recharge-shell{
    width:min(100% - 18px,100%);
    margin:12px auto;
  }
  .brand-block h1{
    font-size:40px;
  }
  .recharge-tabs{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .recharge-tabs button{
    min-width:0;
    padding:14px 10px;
  }
  .recharge-panel{
    min-height:auto;
    padding:22px 14px 28px !important;
  }
  .recharge-panel .stock{
    position:static;
    margin-bottom:14px;
  }
  .recharge-panel-head h3{
    font-size:28px;
  }
}


/* v10.7：正式版前台充值页面重新设计，仅影响 body.official-page，不影响后台 admin */
body.official-page{
  min-height:100vh;
  margin:0;
  color:#172033;
  background:
    radial-gradient(circle at 12% 18%, rgba(37,99,235,.10), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(184,138,44,.12), transparent 26%),
    linear-gradient(135deg,#f6f8fc 0%,#ffffff 44%,#f6f1e7 100%);
  font-family:"Inter","Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}

.official-page .bg-orb,
.official-page .orb-a,
.official-page .orb-b,
.official-page .orb-c{
  display:none !important;
}

.official-shell{
  width:min(1180px,calc(100% - 40px));
  margin:26px auto 18px;
}

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

.official-brand{
  display:flex;
  align-items:center;
  gap:16px;
}

.brand-mark{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:18px;
  color:#fff;
  font-size:24px;
  font-weight:900;
  background:linear-gradient(135deg,#1d4ed8,#7c3aed);
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}

.official-brand h1{
  margin:0;
  font-size:36px;
  line-height:1.1;
  letter-spacing:-.04em;
  color:#111827;
  font-weight:900;
}

.official-brand p{
  margin:8px 0 0;
  color:#667085;
  font-size:14px;
  font-weight:600;
}

.official-tabs{
  display:flex;
  gap:8px;
  padding:7px;
  border-radius:18px;
  border:1px solid #dbe3ef;
  background:rgba(255,255,255,.82);
  box-shadow:0 16px 38px rgba(15,23,42,.08);
  backdrop-filter:blur(10px);
}

.official-tabs button{
  min-width:122px;
  height:50px;
  padding:0 20px;
  border-radius:14px;
  border:0;
  color:#334155;
  background:transparent;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.official-tabs button.active{
  color:#fff !important;
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
  box-shadow:0 10px 24px rgba(37,99,235,.20);
}

.official-card{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:18px;
  min-height:650px;
}

.official-side,
.official-main{
  background:rgba(255,255,255,.86);
  border:1px solid #dbe3ef;
  box-shadow:0 24px 60px rgba(15,23,42,.10);
  backdrop-filter:blur(12px);
}

.official-side{
  border-radius:26px;
  padding:30px 24px;
  display:flex;
  flex-direction:column;
}

.side-title small{
  display:block;
  color:#9a7938;
  font-size:11px;
  letter-spacing:.16em;
  font-weight:900;
}

.side-title h2{
  margin:10px 0 28px;
  color:#111827;
  font-size:28px;
  letter-spacing:-.03em;
  font-weight:900;
}

.official-steps{
  display:grid;
  gap:12px;
}

.official-steps .step{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  min-height:74px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid #dde6f2;
  background:#fff;
  box-shadow:none;
}

.official-steps .step-line{
  width:2px;
  height:18px;
  margin-left:21px;
  background:#dbe3ef;
}

.official-steps .step b{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e7edf6;
  color:#64748b;
  font-weight:900;
}

.official-steps .step span{
  display:block;
  color:#172033;
  font-size:15px;
  font-weight:900;
}

.official-steps .step small{
  display:block;
  margin-top:4px;
  color:#64748b !important;
  font-size:12px;
  font-weight:600;
}

.official-steps .step.on,
.official-steps .step.done{
  background:#edf5ff !important;
  border-color:#8ab4ff !important;
}

.official-steps .step.on b,
.official-steps .step.done b{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
}

.side-note{
  margin-top:auto;
  padding:16px;
  border-radius:18px;
  background:#fff9ed;
  border:1px solid #eed9a5;
}

.side-note strong{
  color:#8a6a24;
  font-size:14px;
}

.side-note p{
  margin:8px 0 0;
  color:#667085;
  line-height:1.65;
  font-size:13px;
  font-weight:600;
}

.official-main{
  position:relative;
  border-radius:26px;
  padding:30px;
}

.main-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:22px;
  margin-bottom:22px;
  border-bottom:1px solid #edf1f7;
}

.main-head h3{
  margin:0 0 8px;
  color:#111827;
  font-size:30px;
  letter-spacing:-.04em;
  font-weight:900;
}

.main-head p{
  margin:0;
  color:#64748b !important;
  font-size:15px;
  font-weight:600;
}

.official-main .stock{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:#ecfdf5 !important;
  border:1px solid #86efac !important;
  color:#047857 !important;
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}

.form-panel,
.official-main .info-card,
.official-main .confirm-card,
.official-main .task-box{
  border-radius:22px !important;
  background:#fff !important;
  border:1px solid #dbe3ef !important;
  box-shadow:0 18px 38px rgba(15,23,42,.05) !important;
}

.form-panel{
  padding:24px;
}

.form-panel.flat{
  padding:0;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

.official-main label{
  display:block;
  margin:0 0 10px;
  color:#111827 !important;
  font-size:15px;
  font-weight:900;
}

.official-main em{
  color:#ef4444;
  font-style:normal;
}

.official-main input,
.official-main textarea{
  width:100%;
  border:1px solid #bfcbdd !important;
  background:#fff !important;
  color:#111827 !important;
  border-radius:16px;
  padding:15px 16px;
  outline:none;
  font-size:15px;
  font-weight:600;
  transition:.18s ease;
}

.official-main input{
  height:52px;
}

.official-main textarea{
  min-height:150px;
  resize:vertical;
}

.official-main input::placeholder,
.official-main textarea::placeholder{
  color:#7b8798 !important;
}

.official-main input:focus,
.official-main textarea:focus{
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}

.official-main .msg.ok{
  margin-top:10px;
  margin-bottom:0;
  border-radius:16px !important;
  background:#ecfdf5 !important;
  border-color:#86efac !important;
  color:#047857 !important;
  font-weight:900;
}

.official-main .wide{
  width:100%;
  min-height:54px;
  margin-top:20px;
  border-radius:16px;
  font-size:16px;
  font-weight:900;
}

.official-main .btn.primary,
.official-main .primary{
  background:linear-gradient(90deg,#2563eb,#7c3aed) !important;
  color:#fff !important;
}

.official-main .secondary{
  background:linear-gradient(90deg,#2563eb,#3b82f6) !important;
  color:#fff !important;
}

.official-main .success{
  background:linear-gradient(90deg,#16a34a,#22c55e) !important;
  color:#fff !important;
}

.official-main .muted{
  background:#eef2f7 !important;
  color:#334155 !important;
  border:1px solid #cfd8e6 !important;
}

.official-action-list{
  padding:18px 20px;
  margin:0 0 18px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e4eaf3;
}

.official-main .action-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.official-main .action-label{
  min-width:72px;
  color:#111827;
  font-weight:900;
}

.official-main .mini{
  min-height:42px;
  padding:0 18px;
  border-radius:13px;
  font-size:14px;
  font-weight:900;
}

.official-main .warn{
  margin:6px 0 0;
  color:#b45309 !important;
  line-height:1.7;
  font-weight:700;
}

.official-main .hint{
  color:#667085 !important;
  font-weight:600;
}

.official-main .actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:24px;
}

.official-main .action-btn{
  width:100%;
  min-height:54px;
  border-radius:16px;
  font-size:16px;
  font-weight:900;
}

.official-main .info-card{
  padding:18px 20px;
  background:#eff6ff !important;
  border-color:#bfdbfe !important;
}

.official-main .info-card b,
.official-main .info-card p{
  color:#1d4ed8 !important;
  font-weight:800;
}

.official-main .used-box{
  margin-top:18px;
  border-radius:18px;
  background:#fff8e6 !important;
  border:1px solid #f3c96b !important;
}

.official-main .used-title,
.official-main .used-email{
  color:#92400e !important;
  font-weight:900;
}

.official-main .used-email b{
  color:#c2410c !important;
}

.official-main .confirm-card{
  padding:22px;
}

.official-main .confirm-card h4{
  margin:0 0 18px;
  color:#111827;
  font-size:22px;
  font-weight:900;
}

.official-main .confirm-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.official-main .confirm-item{
  padding:16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e4eaf3;
}

.official-main .confirm-item.full{
  grid-column:1 / -1;
}

.official-main .confirm-item span{
  display:block;
  margin-bottom:8px;
  color:#667085;
  font-weight:800;
}

.official-main .confirm-item b{
  color:#111827;
  word-break:break-all;
}

.official-main .check{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:18px;
  color:#111827;
  font-weight:800;
}

.official-main .check input{
  width:18px;
  height:18px;
  margin-top:3px;
}

.official-main .check small{
  display:block;
  margin-top:6px;
  color:#b45309 !important;
  line-height:1.6;
  font-weight:700;
}

.official-page .footer{
  margin:18px 0 0;
  text-align:center;
  color:#667085;
  font-weight:600;
}

@media(max-width:960px){
  .official-header{
    align-items:flex-start;
    flex-direction:column;
  }
  .official-card{
    grid-template-columns:1fr;
  }
  .official-side{
    min-height:auto;
  }
  .side-note{
    margin-top:18px;
  }
}

@media(max-width:680px){
  .official-shell{
    width:min(100% - 18px,100%);
    margin:14px auto;
  }
  .official-brand h1{
    font-size:30px;
  }
  .brand-mark{
    width:48px;
    height:48px;
  }
  .official-tabs{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .official-tabs button{
    min-width:0;
  }
  .official-main{
    padding:18px 14px;
  }
  .main-head{
    display:block;
  }
  .main-head .stock,
  .official-main .stock{
    margin-top:14px;
  }
  .official-main .actions,
  .official-main .confirm-grid{
    grid-template-columns:1fr;
  }
}


/* v10.8：正式版微调
   - 移除“测试”字样
   - 整体布局缩小
   - 手机浏览器保持桌面式左右布局，不自动上下堆叠
*/
body.official-page{
  min-width:1040px;
}

.official-shell{
  width:min(1080px,calc(100% - 36px)) !important;
  margin:18px auto 14px !important;
}

.official-header{
  margin-bottom:16px !important;
}

.brand-mark{
  width:48px !important;
  height:48px !important;
  border-radius:15px !important;
  font-size:21px !important;
}

.official-brand h1{
  font-size:31px !important;
}

.official-brand p{
  font-size:13px !important;
  margin-top:6px !important;
}

.official-tabs{
  padding:6px !important;
  border-radius:16px !important;
}

.official-tabs button{
  min-width:110px !important;
  height:44px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  font-size:14px !important;
}

.official-card{
  grid-template-columns:270px minmax(0,1fr) !important;
  gap:14px !important;
  min-height:560px !important;
}

.official-side{
  border-radius:22px !important;
  padding:24px 20px !important;
}

.side-title small{
  font-size:10px !important;
}

.side-title h2{
  margin:8px 0 22px !important;
  font-size:24px !important;
}

.official-steps{
  gap:9px !important;
}

.official-steps .step{
  min-height:64px !important;
  padding:12px 14px !important;
  border-radius:15px !important;
  grid-template-columns:38px 1fr !important;
  gap:10px !important;
}

.official-steps .step-line{
  height:12px !important;
  margin-left:19px !important;
}

.official-steps .step b{
  width:30px !important;
  height:30px !important;
  font-size:14px !important;
}

.official-steps .step span{
  font-size:14px !important;
}

.official-steps .step small{
  font-size:11px !important;
}

.side-note{
  padding:13px !important;
  border-radius:15px !important;
}

.side-note p{
  font-size:12px !important;
}

.official-main{
  border-radius:22px !important;
  padding:24px !important;
}

.main-head{
  padding-bottom:16px !important;
  margin-bottom:18px !important;
}

.main-head h3{
  font-size:26px !important;
}

.main-head p{
  font-size:14px !important;
}

.official-main .stock{
  min-height:36px !important;
  padding:0 14px !important;
  font-size:13px !important;
}

.form-panel{
  padding:20px !important;
  border-radius:18px !important;
}

.official-main label{
  font-size:14px !important;
}

.official-main input{
  height:48px !important;
}

.official-main input,
.official-main textarea{
  border-radius:14px !important;
  font-size:14px !important;
  padding:13px 15px !important;
}

.official-main textarea{
  min-height:132px !important;
}

.official-main .wide,
.official-main .action-btn{
  min-height:50px !important;
  border-radius:14px !important;
  font-size:15px !important;
}

.official-main .wide{
  margin-top:18px !important;
}

.official-action-list{
  padding:15px 18px !important;
  border-radius:17px !important;
}

.official-main .mini{
  min-height:38px !important;
  border-radius:11px !important;
  font-size:13px !important;
}

.official-main .confirm-card{
  padding:18px !important;
}

.official-main .confirm-card h4{
  font-size:20px !important;
}

.official-main .confirm-item{
  padding:14px !important;
  border-radius:14px !important;
}

/* 覆盖 v10.7 的响应式规则：手机端也保持同一左右布局 */
@media(max-width:960px){
  body.official-page{
    min-width:1040px !important;
  }

  .official-shell{
    width:1080px !important;
    margin:18px auto 14px !important;
  }

  .official-header{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  .official-card{
    grid-template-columns:270px minmax(0,1fr) !important;
  }

  .official-side{
    min-height:560px !important;
  }

  .side-note{
    margin-top:auto !important;
  }
}

@media(max-width:680px){
  body.official-page{
    min-width:1040px !important;
  }

  .official-shell{
    width:1080px !important;
    margin:18px auto 14px !important;
  }

  .official-brand h1{
    font-size:31px !important;
  }

  .brand-mark{
    width:48px !important;
    height:48px !important;
  }

  .official-tabs{
    width:auto !important;
    display:flex !important;
    grid-template-columns:none !important;
  }

  .official-tabs button{
    min-width:110px !important;
  }

  .official-main{
    padding:24px !important;
  }

  .main-head{
    display:flex !important;
  }

  .main-head .stock,
  .official-main .stock{
    margin-top:0 !important;
  }

  .official-main .actions{
    grid-template-columns:1fr 1fr !important;
  }

  .official-main .confirm-grid{
    grid-template-columns:1fr 1fr !important;
  }
}

/* v10.9：手机版布局优化 */
@media (max-width:960px) {
  .official-card{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .official-side{
    width: 100% !important;
    min-height: auto !important;
  }

  .official-main{
    width: 100% !important;
    min-height: auto !important;
  }

  .official-steps{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .official-steps .step-line{
    display:none !important;
  }
}


/* v10.10：手机版自动缩小居中，不遮挡主框 */
@media (max-width: 680px) {
  html,
  body.official-page {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .official-shell {
    width: min(100% - 18px, 430px) !important;
    max-width: 430px !important;
    margin: 12px auto 14px !important;
  }

  .official-header {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .official-brand {
    justify-content: center !important;
    text-align: left !important;
  }

  .official-brand h1 {
    font-size: 26px !important;
    letter-spacing: -0.03em !important;
  }

  .official-brand p {
    font-size: 12px !important;
  }

  .brand-mark {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 20px !important;
    flex: 0 0 auto !important;
  }

  .official-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 6px !important;
    margin: 0 auto !important;
  }

  .official-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
  }

  .official-card {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  .official-side,
  .official-main {
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .official-side {
    padding: 18px 16px !important;
  }

  .side-title h2 {
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .official-steps {
    display: grid !important;
    gap: 8px !important;
  }

  .official-steps .step {
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
    grid-template-columns: 34px 1fr !important;
    border-radius: 14px !important;
  }

  .official-steps .step-line {
    display: none !important;
  }

  .official-steps .step b {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }

  .official-steps .step span {
    font-size: 13px !important;
  }

  .official-steps .step small {
    font-size: 11px !important;
  }

  .side-note {
    margin-top: 12px !important;
    padding: 12px !important;
  }

  .official-main {
    padding: 18px 14px 22px !important;
  }

  .main-head {
    display: block !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
  }

  .main-head h3 {
    font-size: 24px !important;
  }

  .main-head p {
    font-size: 13px !important;
  }

  .official-main .stock {
    margin-top: 12px !important;
    width: fit-content !important;
    max-width: 100% !important;
  }

  .form-panel {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .official-main input,
  .official-main textarea {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .official-main .wide,
  .official-main .action-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .official-main .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .official-main .confirm-grid {
    grid-template-columns: 1fr !important;
  }

  .official-action-list {
    padding: 14px !important;
  }

  .official-main .action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .official-main .action-label {
    min-width: 0 !important;
  }

  .official-main .mini {
    width: 100% !important;
  }

  .footer {
    font-size: 12px !important;
    padding-bottom: 10px !important;
  }
}


/* v10.12：手机端确认充值区域微调 & 移除账户ID显示后两列更协调 */
.official-main .confirm-grid{
  grid-template-columns:1fr 1fr;
}

@media (max-width: 680px) {
  /* 两个确认信息卡上下留白更协调 */
  .official-main .confirm-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  /* 覆盖充值区域改为更协调的左右布局 */
  .official-main .check{
    display:grid !important;
    grid-template-columns:34px 1fr !important;
    gap:12px !important;
    align-items:flex-start !important;
    margin-top:16px !important;
    padding:14px 14px 12px !important;
    border:1px solid #e7d6a6 !important;
    border-radius:16px !important;
    background:#fffaf0 !important;
  }

  .official-main .check input{
    width:20px !important;
    height:20px !important;
    margin:4px 0 0 !important;
    justify-self:center !important;
  }

  .official-main .check > span{
    display:block !important;
    color:#111827 !important;
    font-weight:900 !important;
    line-height:1.5 !important;
  }

  .official-main .check > span > small{
    display:block !important;
    margin-top:6px !important;
    color:#b45309 !important;
    line-height:1.7 !important;
    font-size:13px !important;
    font-weight:700 !important;
  }
}
