/* kt.yuxutechdj.xyz - 商户自助开通平台样式（怪兽蓝色科技风） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #eaf3ff 0%, #f2f7ff 220px, #f5f8ff 100%);
    color: #243043; font-size: 15px; line-height: 1.6; min-height: 100vh;
}

.kt-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; max-width: 1080px; margin: 0 auto; width: 100%;
}
.kt-logo img { height: 34px; display: block; }

.app { max-width: 1080px; margin: 0 auto; padding: 10px 16px 56px; }
.app > .center { max-width: 420px; margin: 40px auto; }

h1 { font-size: 26px; font-weight: 900; letter-spacing: 1px; }
h2 { font-size: 18px; font-weight: 800; }

.card {
    background: rgba(255,255,255,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.85); border-radius: 16px; padding: 16px;
    box-shadow: 0 6px 24px rgba(31,72,143,.08); margin-top: 14px;
}
.hero {
    text-align: center; padding: 30px 16px 26px; border-radius: 20px; margin-top: 8px;
    background: linear-gradient(135deg, #3b8ff6 0%, #5b6fff 100%); color: #fff;
    box-shadow: 0 14px 34px rgba(59,108,246,.35);
}
.kt-hero .logo-big img { height: 52px; margin-bottom: 14px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.hero-sub { opacity: .92; font-size: 13.5px; margin-top: 8px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat { margin-top: 10px; padding: 14px 12px; }
.feat .f-icon { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b8ff6, #5b6fff); color: #fff; align-items: center; justify-content: center; margin-bottom: 8px; }
.feat .f-icon svg,.feat .f-icon img { width: 19px; height: 19px; }
.feat b { display: block; font-size: 14px; }
.feat p { font-size: 12px; color: #6b7a96; margin-top: 4px; line-height: 1.55; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cta b { font-size: 17px; }
.cta .tip { display: block; font-size: 12px; color: #6b7a96; }

.sec-head { margin: 20px 0 -6px; font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.sec-head::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #3b8ff6, #5b6fff); }

/* 开通进度步骤条 */
.steps { display: flex; align-items: center; gap: 8px; margin: 16px 2px 2px; }
.steps .step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9aa7c0; font-weight: 700; white-space: nowrap; }
.steps .step i { width: 22px; height: 22px; border-radius: 50%; background: #eef2f8; color: #9aa7c0; font-style: normal; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; transition: background .15s, color .15s; }
.steps .step.on { color: #3c9cff; }
.steps .step.on i { background: #3c9cff; color: #fff; box-shadow: 0 4px 10px rgba(60,156,255,.35); }
.steps .step.done { color: #0a9d5b; }
.steps .step.done i { background: #0a9d5b; color: #fff; }
.steps .sep { flex: 1; height: 2px; background: #e4e9f2; border-radius: 1px; min-width: 12px; }
/* JS 禁用时开通分步降级：两步同时可见，隐藏切换按钮 */
.no-js #st2 { display: block !important; }
.no-js #to2, .no-js #to1 { display: none !important; }

/* 套餐选择卡 */
.plan-card {
    display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
    background: #fff;
    border: 2px solid #e4e9f2; border-radius: 16px; padding: 14px; margin-top: 10px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.plan-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-card.on {
    background: linear-gradient(135deg, rgba(233,243,255,.9), rgba(255,255,255,.9));
    border-color: #3c9cff;
    box-shadow: 0 8px 22px rgba(60,156,255,.18);
}
.p-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e6; flex: none; margin-top: 3px; position: relative; background: #fff; }
.p-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #3c9cff; opacity: 0; transition: opacity .15s; }
.plan-card.on .p-radio { border-color: #3c9cff; }
.plan-card.on .p-radio::after { opacity: 1; }
.p-info { flex: 1; min-width: 0; }
.p-info b { font-size: 15px; }
.p-info p { font-size: 12.5px; color: #40506e; margin: 3px 0 6px; }
.p-info ul { list-style: none; }
.p-info li { font-size: 12px; color: #6b7a96; padding-left: 16px; position: relative; margin-bottom: 2px; }
.p-info li::before { content: "✓"; position: absolute; left: 0; color: #3c9cff; font-weight: 800; }
.p-price { text-align: right; flex: none; }
.p-price b, .p-price { font-size: 20px; font-weight: 900; color: #f56c6c; }
.p-price i { display: block; font-style: normal; font-size: 11px; color: #9aa7c0; font-weight: 400; }

/* 按钮 */
.btn {
    display: inline-block; border: none; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, #3b8ff6, #5b6fff); color: #fff; font-weight: 700; font-size: 14px;
    border-radius: 999px; padding: 9px 22px; box-shadow: 0 6px 16px rgba(59,108,246,.28);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.96); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.lg { padding: 12px 30px; font-size: 15.5px; }
.btn.ghost { background: #fff; color: #3c9cff; border: 1.5px solid #b3d8ff; box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff7d7d, #f56c6c); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.on { background: #e8f3ff; color: #3c9cff; box-shadow: none; }

/* 表单 */
label { display: block; font-size: 13px; font-weight: 700; color: #40506e; margin: 8px 0 4px; }
input[type=text], input[type=password], input[type=number], input:not([type]), select, textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid #dfe7f3; border-radius: 11px;
    font-size: 15px; background: #fff; color: #243043; outline: none; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: #3c9cff; box-shadow: 0 0 0 3px rgba(60,156,255,.14); }
p { margin: 8px 0; }
.tip { color: #8b98b1; font-size: 12.5px; }
.err-title { font-size: 20px; font-weight: 900; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f8; font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: #8b98b1; flex: none; }
.kv .v { font-weight: 700; text-align: right; word-break: break-all; }

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
.stat-grid .card { text-align: center; padding: 14px 8px; margin-top: 0; }
.stat-grid .n { font-size: 20px; font-weight: 900; color: #3c9cff; }
.stat-grid .t { font-size: 12px; color: #8b98b1; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #ebeef5; padding: 10px 8px; text-align: left; font-size: 13.5px; white-space: nowrap; }
th { font-weight: 700; color: #606266; }
tr:hover td { background: rgba(60,156,255,.04); }

/* 后台导航（总控简易版） */
.admin-nav { display: flex; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; align-items: center; }
.admin-nav .title { font-size: 17px; font-weight: 900; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.admin-nav .title svg,.admin-nav .title img { width: 20px; height: 20px; color: #3c9cff; }

.pay-amount { font-size: 36px; font-weight: 900; color: #f56c6c; margin: 10px 0; }

.foot-brand { text-align: center; color: #a8b8d8; font-size: 11px; letter-spacing: .5px; margin: 34px 0 4px; }

/* 顶部导航右侧 */
.kt-nav-r { display: flex; align-items: center; gap: 8px; }

/* 商户中心（我的商户） */
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; flex: none; }
.badge.b-done { background: #e6f9ef; color: #0a9d5b; }
.badge.b-cancelled { background: #feecec; color: #d94848; }
.my-card { margin-top: 12px; }
.my-head { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; border-bottom: 1px dashed #e8e2ff; text-decoration: none; }
.my-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #f0f5ff; border: 1px solid #e8e2ff; flex: none; }
.my-info { flex: 1; min-width: 0; }
.my-info b { display: block; font-size: 15px; color: #1c2340; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-info span { display: block; font-size: 12px; color: #8a93b8; margin-top: 3px; }
.my-go { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #4c5bd4, #6a5cff); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.my-meta { padding-top: 10px; }
.my-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.my-ops .btn { flex: 1; text-align: center; min-width: 130px; }

/* 微信登录 / 绑定 */
.wx-bind-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #12b76a, #0a9d5b); color: #fff; }
.wx-bind { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #0a9d5b; background: #e6f9ef; border: 1px dashed #9fe0c3; border-radius: 10px; padding: 10px 12px; }
.my-or { display: flex; align-items: center; gap: 12px; color: #a8b0cc; font-size: 12px; margin: 14px 0 2px; }
.my-or::before, .my-or::after { content: ""; flex: 1; height: 1px; background: #e8e2ff; }

/* 手机端 */
@media (max-width: 768px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .cta { flex-direction: column; text-align: center; }
    th, td { padding: 8px 6px; font-size: 12.5px; }
    .app { padding: 6px 12px 46px; }
    .kt-logo img { height: 28px; }
    .kt-nav-r .btn { padding: 7px 13px; font-size: 12.5px; }
}
@media (max-width: 350px) {
    .feat-grid { grid-template-columns: 1fr; }
}

/* ============ 加载动画（兼容微信内核，仅一个蓝色圆圈） ============ */
#splash{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999999;background:#f5f9ff;
  display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;
  -webkit-justify-content:center;justify-content:center;
  -webkit-transition:opacity .25s ease;transition:opacity .25s ease}
#splash.done{opacity:0;visibility:hidden;pointer-events:none;
  -webkit-transition:opacity .25s ease,visibility 0s linear .25s;transition:opacity .25s ease,visibility 0s linear .25s}
#splash{animation:splashAuto .3s ease .7s forwards}
#splash.done{animation:none}
@keyframes splashAuto{to{opacity:0;visibility:hidden;pointer-events:none}}
.sp-ring{width:32px;height:32px;border-radius:50%;border:3px solid #cfe4ff;border-top-color:#3c9cff;
  -webkit-animation:spSpin .8s linear infinite;animation:spSpin .8s linear infinite}
@keyframes spSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}

/* 顶部微进度条：点击/提交时反馈 */
#loadbar{position:fixed;top:0;left:0;height:3px;width:0;z-index:999998;pointer-events:none;
  background:linear-gradient(90deg,#3c9cff,#7dd3ff);box-shadow:0 0 10px rgba(60,156,255,.9);
  border-radius:0 3px 3px 0;opacity:0;
  transition:width .25s ease,opacity .4s ease .3s}
body.ldg #loadbar{opacity:1;width:72%;transition:width .25s ease}
body.ldd #loadbar{width:100%;opacity:0}

.app{animation:pageIn .26s ease-out both}
.kt-nav{animation:navIn .3s ease-out both}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes navIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

.card,.plan-card,.my-card,.feat-grid>*,.stat-grid>*{animation:cardIn .32s ease-out backwards}
.card:nth-child(1),.plan-card:nth-child(1),.my-card:nth-child(1){animation-delay:.02s}
.card:nth-child(2),.plan-card:nth-child(2),.my-card:nth-child(2){animation-delay:.06s}
.card:nth-child(3),.plan-card:nth-child(3),.my-card:nth-child(3){animation-delay:.1s}
.card:nth-child(4),.plan-card:nth-child(4),.my-card:nth-child(4){animation-delay:.14s}
.card:nth-child(n+5),.plan-card:nth-child(n+5),.my-card:nth-child(n+5){animation-delay:.18s}
.feat-grid>*:nth-child(1),.stat-grid>*:nth-child(1){animation-delay:.04s}
.feat-grid>*:nth-child(2),.stat-grid>*:nth-child(2){animation-delay:.08s}
.feat-grid>*:nth-child(3),.stat-grid>*:nth-child(3){animation-delay:.12s}
.feat-grid>*:nth-child(4),.stat-grid>*:nth-child(4){animation-delay:.16s}
.feat-grid>*:nth-child(n+5),.stat-grid>*:nth-child(n+5){animation-delay:.2s}
@keyframes cardIn{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

.btn,.btn-ghost,a{-webkit-tap-highlight-color:transparent;transition:transform .12s ease,background .18s ease,box-shadow .2s ease,color .18s ease}
.btn:active,.btn-ghost:active{transform:scale(.96)}
table tr{transition:background .15s ease}
tbody tr:hover{background:#f2f8ff}

@media (prefers-reduced-motion:reduce){
  #loadbar{display:none}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ============ 总控制面板侧边栏 ============ */
.admin-shell{display:flex;min-height:calc(100vh - 150px);margin:0 -18px -10px}
.admin-shell .nav-tgl{display:none}
.admin-side{width:196px;flex:none;background:linear-gradient(180deg,#eaf3ff,#f6faff);
  border-right:1px solid #dce7f5;padding:14px 10px;display:flex;flex-direction:column;gap:2px}
.admin-side .title{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px;
  color:#1f3a5f;padding:2px 8px 12px;border-bottom:1px solid #dce7f5;margin-bottom:10px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-side .title img{width:22px;height:22px;flex:none}
.n-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;
  color:#41536e;font-weight:700;font-size:13.5px;text-decoration:none}
.n-item svg,.n-item img{width:19px;height:19px;flex:none}
.n-item:hover{background:#e0eeff;color:#2c6fd6}
.n-item.active{background:linear-gradient(135deg,#2f8bff,#3c9cff);color:#fff;box-shadow:0 4px 12px rgba(60,156,255,.35)}
.n-item.out{margin-top:auto;color:#b91c1c;background:#fff0f0}
.n-item.out:hover{background:#ffe3e3;color:#b91c1c}
.side-foot{padding:12px 8px 2px;font-size:11px;color:#9aa7bb;line-height:1.6;text-align:center;margin-top:10px}
.admin-body{flex:1;min-width:0;padding:0 0 0 14px}
.nav-burger,.nav-mask{display:none}

@media (max-width:768px){
  .admin-shell{display:block;margin:0 -14px -10px;position:relative}
  .admin-shell .nav-tgl{position:absolute;opacity:0;width:0;height:0}
  .admin-side{position:fixed;top:0;bottom:0;left:0;width:236px;z-index:300;
    transform:translateX(-105%);transition:transform .25s ease;overflow-y:auto;
    border-radius:0;box-shadow:8px 0 30px rgba(15,35,70,.18)}
  .nav-tgl:checked ~ .admin-side{transform:none}
  .nav-mask{display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:290;
    background:rgba(15,35,70,.45);opacity:0;visibility:hidden;transition:all .25s ease}
  .nav-tgl:checked ~ .nav-mask{opacity:1;visibility:visible}
  .nav-burger{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:11px 14px;
    background:linear-gradient(135deg,#2f8bff,#3c9cff);color:#fff;border-radius:12px;
    font-weight:800;font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none}
  .nav-burger svg,.nav-burger img{width:20px;height:20px;flex:none}
  .nav-burger span{flex:1;text-align:center}
  .admin-body{padding:0}
  /* 总控面板手机端内容优化：卡片/表格/按钮/统计 */
  .card{padding:13px;border-radius:13px}
  .stat-grid{gap:8px}
  .stat-grid .card{padding:11px 6px}
  .stat-grid .n{font-size:17px}
  .stat-grid .t{font-size:11px}
  .card th,.card td{font-size:12px;padding:7px 6px}
  th{color:#8a94a6}
  .btn{padding:10px 16px;font-size:14px}
  .btn.sm{padding:7px 12px;font-size:12.5px}
  .btn.block{width:100%}
  label{font-size:12.5px}
  input[type=text],input[type=password],input[type=number],input:not([type]),select,textarea{font-size:15px;padding:10px 12px}
  .kv{font-size:13px;padding:8px 0}
  .admin-nav .title{font-size:15.5px}
  .my-ops .btn{min-width:110px}
  .pay-amount{font-size:30px}
  .err-title{font-size:18px}
  table tr:hover td{background:transparent}
}

/* 商户中心封禁卡片 */
.my-banned{border:1px solid #ffd3d3;background:#fffafa}
.my-banned .my-head{cursor:not-allowed}

/* 商户中心到期 / 续期 / 改密 */
.my-expired{border:1px solid #ffd9b0;background:#fffaf3}
.my-ops{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;border-top:1px dashed #e4e9f2;padding-top:10px}
.my-ops .btn{min-width:0}
.my-chpass label{margin-top:6px}

/* 图片上传组件 */
.up-field{display:flex;gap:10px;align-items:center;margin:4px 0 2px}
.up-prev{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #e4e9f2;background:#f5f8ff;flex:0 0 auto;display:block}
.up-ops{flex:1;display:grid;gap:6px;min-width:0}
.up-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:#f0f6ff;color:#3c9cff;border:1px dashed #b7d3ff;padding:9px 14px;border-radius:10px;font-size:13px;font-weight:600;text-align:center;transition:background .15s}
.up-btn:active{opacity:.7;background:#e3efff}
.up-btns{display:flex;gap:8px;flex-wrap:wrap}
.up-clear{cursor:pointer;background:#fff;color:#8a94a6;border:1px solid #e4e9f2;padding:9px 14px;border-radius:10px;font-size:13px;font-weight:600}
.up-clear:active{background:#f5f8ff}
