@charset "utf-8";
:root{
  --sp-primary:#2563eb;
  --sp-primary-dark:#1d4ed8;
  --sp-primary-soft:#eff6ff;
  --sp-ink:#1f2937;
  --sp-sub:#6b7280;
  --sp-muted:#9ca3af;
  --sp-line:#e5e7eb;
  --sp-bg:#eef2f7;
  --sp-card:#ffffff;
  --sp-shadow:0 1px 3px rgba(0,0,0,.08),0 8px 24px rgba(0,0,0,.04);
  --sp-radius:12px;
  --sp-sidebar:#ffffff;
  --sp-sidebar-2:#f9fafb;
  --sp-sidebar-border:#e5e7eb;
  --sp-sidebar-text:#374151;
  --sp-sidebar-muted:#9ca3af;
  --sp-success:#16a34a;
  --sp-warning:#d97706;
  --sp-danger:#dc2626;
}
html,
body{
  min-height:100%;
  background:var(--sp-bg);
}
body.superpay-body{
  font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
  color:var(--sp-ink);
  background:#eef2f7;
}
.superpay-body a{transition:all .2s ease;}
.superpay-body .btn{
  border-radius:6px;
  padding:7px 16px;
  font-weight:500;
  border-width:1px;
  font-size:13px;
}
.superpay-body .btn-primary,
.superpay-body .btn-info{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.superpay-body .btn-primary:hover,
.superpay-body .btn-info:hover{
  background:#1d4ed8;
  border-color:#1d4ed8;
  color:#fff;
}
.superpay-body .btn-default,
.superpay-body .btn-white{
  background:#fff;
  border-color:#d1d5db;
  color:#374151;
}
.superpay-body .btn-danger{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}
.superpay-body .btn-success{
  background:#16a34a;
  border-color:#16a34a;
  color:#fff;
}
.superpay-body .btn-warning{
  background:#d97706;
  border-color:#d97706;
  color:#fff;
}
.superpay-body .form-control,
.superpay-body .input-group-addon,
.superpay-body .form-control[readonly],
.superpay-body textarea,
.superpay-body select{
  border-radius:6px !important;
  border-color:#d1d5db;
  box-shadow:none !important;
  min-height:36px;
  font-size:13px;
}
.superpay-body .form-control:focus,
.superpay-body textarea:focus,
.superpay-body select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12) !important;
}
.superpay-body .input-group-addon{
  background:#f9fafb;
  color:#6b7280;
  border-color:#d1d5db;
}
.superpay-body .panel,
.superpay-body .modal-content,
.superpay-body .well,
.superpay-body .list-group,
.superpay-body .table-responsive,
.superpay-body .alert,
.superpay-body .thumbnail{
  border:1px solid #e5e7eb !important;
  border-radius:var(--sp-radius) !important;
  box-shadow:var(--sp-shadow);
  overflow:hidden;
}
.superpay-body .panel-heading,
.superpay-body .modal-header,
.superpay-body .panel-footer{
  border-color:#f3f4f6 !important;
}
.superpay-body .panel-heading{
  background:#fff !important;
  padding:16px 20px;
}
.superpay-body .panel-body,
.superpay-body .panel-footer{
  background:#fff;
}
.superpay-body .panel-title{
  font-size:15px;
  font-weight:600;
  color:var(--sp-ink);
}
.superpay-body .alert{
  padding:12px 16px;
  background:#fff;
  color:var(--sp-sub);
}
.superpay-body .table{
  margin-bottom:0;
  background:#fff;
}
.superpay-body .table>thead>tr>th{
  border-bottom:1px solid #f3f4f6;
  border-top:none !important;
  color:#6b7280;
  font-weight:500;
  padding:11px 14px;
  background:#fff;
  font-size:13px;
}
.superpay-body .table>tbody>tr>td{
  border-top:1px solid #f9fafb;
  padding:12px 14px;
  vertical-align:middle;
  font-size:13px;
  color:#374151;
}
.superpay-body .table>tbody>tr:hover>td{background:#f9fafb;}
.superpay-body .nav-tabs{
  border-bottom:1px solid #e5e7eb;
  display:flex;
  gap:0;
  flex-wrap:wrap;
  padding:0;
  margin-bottom:16px;
}
.superpay-body .nav-tabs>li{float:none;margin:0;}
.superpay-body .nav-tabs>li>a{
  border:none !important;
  border-radius:0;
  background:transparent;
  color:#6b7280;
  font-weight:500;
  padding:10px 18px;
  border-bottom:2px solid transparent !important;
  font-size:14px;
}
.superpay-body .nav-tabs>li.active>a,
.superpay-body .nav-tabs>li.active>a:hover,
.superpay-body .nav-tabs>li.active>a:focus{
  background:transparent;
  color:#2563eb;
  border-bottom-color:#2563eb !important;
  font-weight:600;
}
.superpay-body .tab-content{padding:6px 0 0;}
.superpay-body .list-group-item{
  border-color:#f3f4f6;
  padding:14px 16px;
}
.superpay-body .text-muted{color:#9ca3af !important;}
.superpay-body .bg-light,
.superpay-body .bg-info,
.superpay-body .bg-primary,
.superpay-body .bg-success,
.superpay-body .bg-warning,
.superpay-body .bg-dark,
.superpay-body .bg-black{background:transparent !important;}
.superpay-body .bg-light.lter.b-b.wrapper-md.hidden-print{display:none !important;}
.superpay-body .wrapper-md,
.superpay-body .wrapper{padding:0 !important;}
.superpay-body .app-content-body{padding:0 !important;}
.superpay-body .h1,
.superpay-body .h2,
.superpay-body .h3,
.superpay-body .h4{color:var(--sp-ink);}
.superpay-body .label,
.superpay-body .badge{border-radius:4px; box-shadow:none;}

.sp-shell{display:flex;min-height:100vh;}
.sp-sidebar{
  position:fixed;
  left:0;
  top:0;
  width:220px;
  height:100vh;
  padding:0;
  background:#ffffff;
  border-right:1px solid #e5e7eb;
  color:var(--sp-sidebar-text);
  overflow-y:auto;
  z-index:70;
  display:flex;
  flex-direction:column;
}
.sp-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--sp-ink) !important;
  padding:16px 16px 12px;
  text-decoration:none;
  border-bottom:1px solid #f3f4f6;
  flex-shrink:0;
}
.sp-brand__logo{
  width:36px;
  height:36px;
  border-radius:8px;
  background:linear-gradient(135deg,#1d4ed8,#3b82f6);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  color:#fff;
  flex-shrink:0;
}
.sp-brand__title{font-size:15px;font-weight:700;color:#1f2937;line-height:1.2;}
.sp-brand__sub{font-size:11px;color:#9ca3af;margin-top:2px;}
.sp-sidebar-card{display:none;}
.sp-tag{display:none;}
.sp-nav-group{padding:8px 0 4px;}
.sp-nav-group__title{
  font-size:11px;
  letter-spacing:.04em;
  color:#9ca3af;
  margin:0 0 4px;
  padding:4px 16px 2px;
  font-weight:500;
}
.sp-nav{display:flex;flex-direction:column;gap:1px;padding:0 8px;}
.sp-nav-link{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:6px;
  color:#374151 !important;
  text-decoration:none;
  font-weight:400;
  font-size:13px;
  transition:all .15s ease;
}
.sp-nav-link i{width:16px;text-align:center;font-size:14px;color:#9ca3af;flex-shrink:0;}
.sp-nav-link:hover{
  background:#f3f4f6;
  color:#1f2937 !important;
}
.sp-nav-link:hover i{color:#374151;}
.sp-nav-link.is-active{
  background:#eff6ff;
  color:#2563eb !important;
  font-weight:600;
}
.sp-nav-link.is-active i{color:#2563eb;}
.sp-main{
  margin-left:220px;
  width:calc(100% - 220px);
  min-height:100vh;
  background:#eef2f7;
}
.sp-topbar{
  position:sticky;
  top:0;
  z-index:50;
  padding:16px 24px 12px;
  background:#eef2f7;
}
.sp-topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.sp-topbar__title{font-size:22px;font-weight:700;color:var(--sp-ink);margin:0;}
.sp-topbar__sub{margin-top:4px;color:var(--sp-sub);font-size:13px;}
.sp-topbar__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.sp-profile-pill{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:6px 12px 6px 8px;
  box-shadow:var(--sp-shadow);
}
.sp-profile-pill img{width:30px;height:30px;border-radius:50%;object-fit:cover;}
.sp-profile-pill strong{display:block;font-size:13px;}
.sp-profile-pill span{display:block;font-size:12px;color:#9ca3af;}
.sp-mobile-toggle,
.sp-mobile-close{
  display:none;
  border:none;
  background:#fff;
  width:38px;
  height:38px;
  border-radius:8px;
  box-shadow:var(--sp-shadow);
}
.sp-mobile-mask{display:none;}

#content.app-content{padding:0 20px 20px;background:transparent;}
.sp-page{display:flex;flex-direction:column;gap:16px;}
.sp-hero,
.sp-surface,
.sp-stat-card,
.sp-kv-card,
.sp-market-card,
.sp-login-card{
  background:var(--sp-card);
  border-radius:var(--sp-radius);
  box-shadow:var(--sp-shadow);
  border:1px solid #e5e7eb;
}
.sp-hero{
  padding:22px 24px;
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.sp-hero:after{
  content:"";
  position:absolute;
  inset:auto -30px -50px auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
}
.sp-hero__eyebrow{font-size:12px;letter-spacing:.06em;opacity:.72;margin-bottom:8px;}
.sp-hero__title{font-size:26px;font-weight:700;line-height:1.25;margin:0;}
.sp-hero__desc{font-size:13px;line-height:1.8;opacity:.86;margin:10px 0 0;max-width:760px;}
.sp-hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;position:relative;z-index:1;}
.sp-hero__actions .btn-default{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.18);color:#fff;}
.sp-grid{display:grid;gap:16px;}
.sp-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.sp-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.sp-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.sp-stat-card{padding:20px;position:relative;overflow:hidden;}
.sp-stat-card__label{font-size:13px;color:#6b7280;margin-bottom:10px;font-weight:400;}
.sp-stat-card__value{font-size:28px;font-weight:700;color:#1f2937;line-height:1.2;}
.sp-stat-card__hint{margin-top:6px;font-size:12px;color:#9ca3af;}
.sp-stat-card__icon{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.sp-surface{padding:20px;}
.sp-surface__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.sp-surface__title{font-size:15px;font-weight:600;color:var(--sp-ink);margin:0;}
.sp-surface__desc{font-size:12px;color:#9ca3af;margin-top:4px;}
.sp-kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sp-kv-card{padding:16px;}
.sp-kv-card__label{font-size:12px;color:#9ca3af;margin-bottom:6px;}
.sp-kv-card__value{font-size:14px;font-weight:600;color:#1f2937;word-break:break-all;}
.sp-code-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
  border-radius:8px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
}
.sp-code-box__label{font-size:12px;color:#9ca3af;margin-bottom:4px;}
.sp-code-box__value{font-size:13px;font-weight:600;color:#1f2937;word-break:break-all;}
.sp-market-layout{display:grid;grid-template-columns:240px 1fr;gap:16px;}
.sp-market-sidebar,
.sp-market-main{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:var(--sp-shadow);}
.sp-market-sidebar{padding:16px;}
.sp-market-main{padding:20px;}
.sp-market-search{display:flex;gap:8px;align-items:center;margin-bottom:16px;}
.sp-market-card{padding:16px;display:flex;flex-direction:column;gap:12px;}
.sp-market-card__top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.sp-market-card__title{font-size:16px;font-weight:700;color:#1f2937;margin:0;}
.sp-market-card__meta{font-size:12px;color:#9ca3af;margin-top:4px;}
.sp-market-card__desc{font-size:13px;color:#6b7280;line-height:1.65;margin:0;}
.sp-market-badges{display:flex;flex-wrap:wrap;gap:6px;}
.sp-market-badge{padding:4px 8px;border-radius:4px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:500;}
.sp-market-actions{display:flex;gap:8px;flex-wrap:wrap;}
.sp-empty{
  padding:40px 20px;
  text-align:center;
  color:#9ca3af;
  font-size:13px;
}
.sp-empty-icon{font-size:32px;color:#d1d5db;margin-bottom:8px;}
.sp-footer{
  padding:16px 20px 24px;
  color:#9ca3af;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:12px;
}
.sp-footer a{color:#2563eb;}
/* ============================================================
   商户端 — 顶部栏（超级支付风格）
   ============================================================ */
.sp-user-topbar{
  position:sticky;top:0;z-index:50;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  height:48px;
  padding:0 20px;
}
.sp-user-topbar__inner{
  display:flex;align-items:center;justify-content:space-between;
  height:100%;
}
.sp-user-topbar__left{display:flex;align-items:center;gap:12px;}
.sp-user-topbar__site{
  font-size:13px;color:#374151;text-decoration:none;
  padding:4px 10px;border-radius:6px;
  border:1px solid #e5e7eb;
  transition:all .15s;
}
.sp-user-topbar__site:hover{background:#f3f4f6;color:#1f2937;}
.sp-user-topbar__right{display:flex;align-items:center;gap:8px;}
.sp-user-notice{
  font-size:13px;color:#374151;text-decoration:none !important;
  padding:4px 10px;border-radius:6px;
  transition:background .15s;
}
.sp-user-notice:hover{background:#f3f4f6;}
/* 商户端用户下拉 */
.sp-user-profile{
  position:relative;
  display:flex;align-items:center;gap:5px;
  padding:5px 10px;
  border-radius:6px;
  background:#f9fafb;border:1px solid #e5e7eb;
  cursor:pointer;font-size:13px;color:#374151;
  user-select:none;
}
.sp-user-profile:hover{background:#f3f4f6;}
.sp-user-profile__menu{
  display:none;
  position:absolute;top:calc(100% + 6px);right:0;
  min-width:140px;background:#fff;
  border:1px solid #e5e7eb;border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  overflow:hidden;z-index:200;
}
.sp-user-profile.is-open .sp-user-profile__menu{display:block;}
.sp-user-profile__menu a{
  display:flex;align-items:center;gap:8px;
  padding:9px 14px;font-size:13px;
  color:#374151;text-decoration:none;
  transition:background .15s;
}
.sp-user-profile__menu a:hover{background:#f3f4f6;color:#1f2937;}
/* 侧边栏版本号 */
.sp-sidebar-version{
  margin-top:auto;padding:12px 16px;
  font-size:11px;color:#9ca3af;
  border-top:1px solid #f3f4f6;
}
/* 商户端底部 */
.sp-user-footer{
  padding:12px 20px;
  font-size:12px;color:#9ca3af;
  border-top:1px solid #f3f4f6;
  text-align:center;
}

/* ============================================================
   商户端 — 仪表盘布局
   ============================================================ */

/* 覆盖旧 app.css 中 .app-content 的 margin-left:200px */
.sp-main .app-content,
.sp-main .app-content-body,
.sp-main .navbar-collapse,
.sp-main .app-footer{
  margin-left:0 !important;
}
.sp-main .app-content{
  width:100% !important;
  float:none !important;
  padding:0 !important;
  height:auto !important;
}
.sp-main .app-content-body{
  float:none !important;
  width:100% !important;
}
.sp-main .wrapper-md{padding:0 !important;}
.sp-main .wrapper-md.control{padding:0 !important;max-width:none !important;}
.sp-main .bg-light.lter.b-b.wrapper-md{display:none !important;}

.sp-user-content{padding:16px 20px 20px !important;}
.sp-user-body{display:grid;grid-template-columns:1fr 260px;gap:16px;align-items:start;}
.sp-user-main{}
.sp-user-right{display:flex;flex-direction:column;gap:12px;}
/* 蓝色英雄横幅 */
.sp-merchant-hero{
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);
  border-radius:10px;
  padding:18px 20px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.sp-merchant-hero:after{
  content:"";position:absolute;right:-30px;bottom:-30px;
  width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.08);
}
.sp-merchant-hero__text{margin-bottom:14px;position:relative;z-index:1;}
.sp-merchant-hero__title{font-size:16px;font-weight:700;margin-bottom:3px;}
.sp-merchant-hero__time{font-size:11px;opacity:.7;}
.sp-merchant-hero__stats{display:flex;gap:0;flex-wrap:wrap;position:relative;z-index:1;}
.sp-merchant-hero__stat{
  flex:1;min-width:70px;
  text-align:center;
  padding:10px 6px;
  background:rgba(255,255,255,.15);
  border-radius:8px;
  margin:2px;
}
.sp-merchant-hero__val{font-size:18px;font-weight:700;}
.sp-merchant-hero__lab{font-size:10px;opacity:.8;margin-top:3px;}
/* 今日数据格子 */
.sp-today-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid #f3f4f6;border-radius:8px;overflow:hidden;}
.sp-today-item{padding:14px 16px;border-right:1px solid #f3f4f6;}
.sp-today-item:last-child{border-right:none;}
.sp-today-label{font-size:12px;color:#9ca3af;margin-bottom:6px;}
.sp-today-value{font-size:20px;font-weight:700;color:#1f2937;}
.sp-today-hint{font-size:11px;color:#9ca3af;margin-top:3px;}
/* 快捷操作 */
.sp-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.sp-quick-item{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:12px 6px;
  border-radius:8px;
  background:#f9fafb;border:1px solid #f3f4f6;
  text-decoration:none !important;
  color:#374151;
  font-size:11px;font-weight:500;
  transition:all .15s;
}
.sp-quick-item i{font-size:16px;color:#2563eb;}
.sp-quick-item:hover{background:#eff6ff;border-color:#bfdbfe;color:#2563eb;}
@media (max-width:1200px){
  .sp-user-body{grid-template-columns:1fr;}
  .sp-user-right{flex-direction:row;flex-wrap:wrap;}
  .sp-user-right > .sp-surface{flex:1;min-width:220px;}
}
@media (max-width:767px){
  .sp-user-content{padding:12px 12px 16px !important;}
  .sp-today-grid{grid-template-columns:repeat(2,1fr);}
  .sp-today-item:nth-child(2){border-right:none;}
  .sp-today-item:nth-child(3){border-top:1px solid #f3f4f6;}
  .sp-today-item:nth-child(4){border-top:1px solid #f3f4f6;border-right:none;}
}

/* ============================================================
   商户端 — 应用密钥页布局
   ============================================================ */
.sp-apikey-layout{display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start;}
.sp-apikey-list{
  background:#fff;border:1px solid #e5edf7;border-radius:18px;
  padding:14px;
  box-shadow:0 8px 28px rgba(37,99,235,.05);
}
.sp-apikey-list__head{
  display:flex;justify-content:space-between;align-items:center;
  font-size:13px;font-weight:700;color:#374151;
  padding:0 4px 12px;
  border-bottom:1px solid #f1f5f9;
  margin-bottom:8px;
}
.sp-apikey-list__add{font-size:12px;color:#2563eb;text-decoration:none;}
.sp-apikey-list__item{
  padding:12px 14px;border-radius:12px;cursor:pointer;
  transition:background .15s;
}
.sp-apikey-list__item.is-active{background:linear-gradient(135deg,#eff6ff,#dbeafe);}
.sp-apikey-list__name{font-size:14px;font-weight:700;color:#0f172a;}
.sp-apikey-list__no{font-size:11px;color:#64748b;margin-top:3px;word-break:break-all;}
@media (max-width:991px){
  .sp-apikey-layout{grid-template-columns:1fr;}
}

/* ============================================================
   商户端 — 开发文档页（对标 chaoji.moyukeji.top/docs）
   ============================================================ */
.sp-doc-layout{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:start;}
.sp-doc-nav{
  position:sticky;top:76px;
  background:#fff;border:1px solid #e8eef7;border-radius:18px;
  padding:20px 16px;
  box-shadow:0 6px 24px rgba(37,99,235,.05);
}
.sp-doc-nav__title{font-size:14px;font-weight:800;color:#0f172a;margin-bottom:2px;}
.sp-doc-nav__meta{font-size:11px;color:#94a3b8;margin-bottom:14px;}
.sp-doc-menu{list-style:none;padding:0;margin:0;}
.sp-doc-menu li{margin-bottom:2px;}
.sp-doc-menu ul{list-style:none;padding:0 0 0 14px;margin:4px 0;}
.sp-doc-menu__link{
  display:block;padding:8px 12px;border-radius:10px;
  font-size:13px;color:#475569;text-decoration:none;font-weight:500;
  transition:all .15s;
}
.sp-doc-menu__link:hover{background:#eff6ff;color:#2563eb;}
.sp-doc-menu__link.is-active{background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;font-weight:700;}
.sp-doc-menu__sub{
  display:block;padding:5px 12px;border-radius:8px;
  font-size:12px;color:#64748b;text-decoration:none;
  transition:all .15s;
}
.sp-doc-menu__sub:hover{background:#f5f8ff;color:#2563eb;}
/* 文档内容区 */
.sp-doc-body{display:flex;flex-direction:column;gap:28px;}
.sp-doc-section{}
.sp-doc-h2{
  font-size:20px;font-weight:800;color:#0f172a;
  margin:0 0 14px;padding-bottom:10px;
  border-bottom:2px solid #e8eef7;
}
.sp-doc-h3{font-size:15px;font-weight:700;color:#374151;margin:0 0 10px;}
.sp-doc-card{
  background:#fff;border:1px solid #e8eef7;border-radius:16px;
  padding:20px 22px;
  box-shadow:0 4px 18px rgba(37,99,235,.04);
}
.sp-doc-endpoint{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;background:#f8fbff;border-radius:10px;
  font-size:13px;
}
.sp-doc-method{
  display:inline-block;padding:3px 10px;border-radius:6px;
  background:#2563eb;color:#fff;font-size:11px;font-weight:700;
}
.sp-doc-table{width:100%;border-collapse:collapse;}
.sp-doc-table th{
  background:#f8fbff;padding:10px 14px;
  font-size:12px;font-weight:700;color:#64748b;
  border-bottom:1px solid #e8eef7;text-align:left;
}
.sp-doc-table td{
  padding:10px 14px;font-size:13px;color:#374151;
  border-bottom:1px solid #f1f5f9;vertical-align:top;
}
.sp-doc-table tr:last-child td{border-bottom:none;}
.sp-doc-table__label{font-size:13px;font-weight:600;color:#374151;width:120px;}
.sp-doc-table--full{width:100%;}
.sp-doc-badge{
  display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;
}
.sp-doc-badge--blue{background:#dbeafe;color:#1d4ed8;}
.sp-doc-badge--green{background:#d1fae5;color:#065f46;}
.sp-doc-badge--red{background:#fee2e2;color:#991b1b;}
.sp-doc-tip{
  padding:10px 14px;background:#fffbeb;border:1px solid #fde68a;
  border-radius:10px;font-size:13px;color:#92400e;
}
.sp-doc-code{
  background:#1e293b;border-radius:12px;padding:16px 18px;margin-top:12px;
}
.sp-doc-code pre{
  margin:0;color:#e2e8f0;font-size:12px;line-height:1.7;
  white-space:pre-wrap;word-break:break-all;
}
.sp-doc-ol{padding-left:20px;margin:0;}
.sp-doc-ol li{font-size:13px;color:#374151;line-height:1.8;}
.sp-doc-sdk-item{
  background:#f8fbff;border:1px solid #e8eef7;border-radius:14px;
  padding:18px;text-align:center;
}
@media (max-width:991px){
  .sp-doc-layout{grid-template-columns:1fr;}
  .sp-doc-nav{position:static;}
}

/* ============================================================
   商户端 — 应用密钥V2（对标超级支付截图：左应用信息+签名，右V1+V2）
   ============================================================ */
.sp-apikey-v2-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;}
.sp-apikey-v2-card{
  background:#fff;
  border:1px solid #e8eef7;
  border-radius:18px;
  padding:20px 22px;
  box-shadow:0 6px 24px rgba(37,99,235,.04);
}
.sp-apikey-v2-card__title{font-size:15px;font-weight:800;color:#0f172a;margin-bottom:4px;}
.sp-apikey-v2-card__desc{font-size:12px;color:#64748b;margin-bottom:16px;}
.sp-apikey-field{
  border-bottom:1px solid #f1f5f9;
  padding:12px 0;
}
.sp-apikey-field__label{font-size:12px;color:#64748b;margin-bottom:6px;}
.sp-apikey-field__row{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.sp-apikey-field__val{
  font-size:14px;font-weight:600;color:#0f172a;
  word-break:break-all;flex:1;
}
.sp-apikey-field__copy{
  flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:8px;
  border:1px solid #e8eef7;background:#f8fbff;
  color:#2563eb;font-size:13px;
  text-decoration:none;transition:background .15s;
}
.sp-apikey-field__copy:hover{background:#eff6ff;}
@media (max-width:991px){
  .sp-apikey-v2-layout{grid-template-columns:1fr;}
}

/* ============================================================
   商户端 — 账号设置列表样式
   ============================================================ */
.sp-acct-table{border:1px solid #f1f5f9;border-radius:14px;overflow:hidden;}
.sp-acct-row{
  display:flex;align-items:center;
  padding:16px 20px;
  border-bottom:1px solid #f1f5f9;
}
.sp-acct-row:last-child{border-bottom:none;}
.sp-acct-label{width:100px;font-size:14px;color:#374151;font-weight:500;flex-shrink:0;}
.sp-acct-value{flex:1;font-size:14px;color:#0f172a;}
.sp-acct-action{flex-shrink:0;margin-left:16px;}
.sp-acct-link{font-size:13px;color:#2563eb;text-decoration:none;font-weight:600;}
.sp-acct-link:hover{color:#1d4ed8;}

/* ============================================================
   总后台 — 顶部横向导航（超级支付风格）
   ============================================================ */
.sp-admin-header{
  position:fixed;
  top:0;left:0;right:0;
  height:56px;
  background:#fff;
  border-bottom:1px solid #e8eef7;
  z-index:100;
  box-shadow:0 2px 12px rgba(37,99,235,.06);
}
.sp-admin-header__inner{
  display:flex;
  align-items:center;
  height:100%;
  padding:0 20px;
  gap:0;
}
/* Logo */
.sp-admin-logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
  color:var(--sp-ink) !important;
  flex-shrink:0;
  margin-right:18px;
}
.sp-admin-logo__icon{
  width:34px;height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:15px;
  box-shadow:0 6px 16px rgba(37,99,235,.22);
}
.sp-admin-logo__text{
  font-size:16px;font-weight:800;color:var(--sp-ink);
  white-space:nowrap;
}
/* 主导航 Tab */
.sp-admin-topnav{
  display:flex;
  align-items:center;
  gap:2px;
  flex:1;
  height:100%;
  overflow:hidden;
}
.sp-admin-topnav__item{
  display:flex;align-items:center;
  height:100%;
  padding:0 14px;
  font-size:14px;
  font-weight:500;
  color:#374151 !important;
  text-decoration:none !important;
  border-bottom:2px solid transparent;
  transition:all .18s ease;
  white-space:nowrap;
}
.sp-admin-topnav__item:hover{
  color:#2563eb !important;
  background:#f5f8ff;
}
.sp-admin-topnav__item.is-active{
  color:#2563eb !important;
  border-bottom-color:#2563eb;
  font-weight:700;
}
/* 右侧操作区 */
.sp-admin-header__right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  margin-left:12px;
}
.sp-admin-badge-pro{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  font-size:12px;font-weight:700;
  white-space:nowrap;
}
/* 个人中心下拉 */
.sp-admin-profile{
  position:relative;
  display:flex;align-items:center;gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:#f5f8ff;
  border:1px solid #e8eef7;
  cursor:pointer;
  font-size:13px;
  color:#374151;
  user-select:none;
  white-space:nowrap;
}
.sp-admin-profile:hover{background:#eff6ff;}
.sp-admin-profile__menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:150px;
  background:#fff;
  border:1px solid #e8eef7;
  border-radius:14px;
  box-shadow:0 16px 48px rgba(15,23,42,.12);
  overflow:hidden;
  z-index:200;
}
.sp-admin-profile.is-open .sp-admin-profile__menu{display:block;}
.sp-admin-profile__menu a{
  display:flex;align-items:center;gap:8px;
  padding:11px 16px;
  font-size:13px;
  color:#374151;
  text-decoration:none;
  transition:background .15s;
}
.sp-admin-profile__menu a:hover{background:#f5f8ff;color:#2563eb;}

/* 移动端总后台 toggle */
.sp-admin-mobile-toggle{display:none;}

/* 二级子菜单侧边栏 */
.sp-admin-subnav{
  position:fixed;
  top:56px;left:0;
  width:200px;height:calc(100vh - 56px);
  background:#fff;
  border-right:1px solid #e8eef7;
  padding:18px 14px 18px;
  overflow-y:auto;
  z-index:90;
  box-shadow:4px 0 18px rgba(37,99,235,.05);
  display:flex;flex-direction:column;gap:0;
}
.sp-subnav-group{margin-bottom:18px;}
.sp-subnav-group__title{
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color:#94a3b8;font-weight:700;
  padding:0 8px;margin-bottom:6px;
}
.sp-subnav-link{
  display:block;
  padding:9px 12px;
  border-radius:10px;
  font-size:13px;color:#475569 !important;
  text-decoration:none !important;
  font-weight:500;
  transition:all .15s;
}
.sp-subnav-link:hover{background:#eff6ff;color:#2563eb !important;}
.sp-subnav-link.is-active{
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#1d4ed8 !important;font-weight:700;
}
.sp-subnav-footer{
  margin-top:auto;
  padding-top:16px;
  font-size:11px;color:#94a3b8;
  text-align:center;
}
.sp-subnav-mask{display:none;}

/* 内容区偏移 */
body.superpay-admin-page .container,
body.superpay-admin-page .container-fluid{
  width:auto !important;
  max-width:none !important;
  padding-top:76px !important;
  padding-bottom:30px;
}
/* 有子菜单时内容区左移 */
body.superpay-admin-page.has-subnav .container,
body.superpay-admin-page.has-subnav .container-fluid{
  margin-left:214px !important;
  margin-right:24px !important;
}
body.superpay-admin-page:not(.has-subnav) .container,
body.superpay-admin-page:not(.has-subnav) .container-fluid{
  margin-left:24px !important;
  margin-right:24px !important;
}
body.superpay-admin-page .center-block{width:100% !important;max-width:none !important;}
body.superpay-admin-page .panel>.table-responsive:first-child,
body.superpay-admin-page .panel>.table:first-child{border-radius:0 0 24px 24px;}
body.superpay-admin-page .panel-heading .btn{padding:8px 14px;font-size:12px;}

/* 保留兼容旧侧边栏引用 */
.sp-admin-sidebar{display:none;}
.sp-admin-topbar{display:none;}

.sp-login-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
  background:
    radial-gradient(circle at left top, rgba(37,99,235,.18), transparent 24%),
    radial-gradient(circle at right bottom, rgba(59,130,246,.14), transparent 26%),
    linear-gradient(135deg,#eef4ff 0%,#f8fbff 48%,#eef5ff 100%);
}
.sp-login-card{
  width:min(1060px,100%);
  display:grid;
  grid-template-columns:1.08fr .92fr;
  overflow:hidden;
}
.sp-login-cover{
  padding:42px;
  background:linear-gradient(135deg,#0f4fe0 0%,#1d4ed8 55%,#3b82f6 100%);
  color:#fff;
  position:relative;
}
.sp-login-cover:after{
  content:"";
  position:absolute;
  right:-40px;
  bottom:-40px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.sp-login-cover__badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:700;}
.sp-login-cover__title{font-size:34px;font-weight:800;line-height:1.25;margin:18px 0 0;}
.sp-login-cover__desc{margin-top:14px;max-width:460px;font-size:14px;line-height:1.9;opacity:.88;}
.sp-login-cover__list{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:12px;position:relative;z-index:1;}
.sp-login-cover__list li{display:flex;align-items:center;gap:10px;font-size:14px;}
.sp-login-form{padding:40px 36px;background:#fff;}
.sp-login-form__title{font-size:28px;font-weight:800;color:#0f172a;margin:0;}
.sp-login-form__sub{font-size:14px;color:#64748b;margin:10px 0 28px;line-height:1.8;}
.sp-login-form .list-group,
.sp-login-form .list-group-item{box-shadow:none;border-radius:16px !important;}
.sp-login-form .list-group-item{border:1px solid #e2e8f0;margin-bottom:12px;}
.sp-login-form .btn-lg{height:48px;border-radius:16px;font-size:15px;}
.sp-login-foot{margin-top:20px;font-size:12px;color:#64748b;}

@media (max-width: 1199px){
  .sp-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sp-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sp-admin-topnav__item{padding:0 10px;font-size:13px;}
}
@media (max-width: 991px){
  .sp-login-card{grid-template-columns:1fr;}
  .sp-login-cover{display:none;}
  .sp-market-layout,
  .sp-grid.cols-2,
  .sp-grid.cols-3,
  .sp-grid.cols-4,
  .sp-kv-grid{grid-template-columns:1fr;}
  .sp-sidebar{
    transform:translateX(-100%);
    transition:transform .25s ease;
  }
  body.sp-sidebar-open .sp-sidebar{transform:translateX(0);}
  .sp-mobile-toggle,
  .sp-mobile-close{display:inline-flex;align-items:center;justify-content:center;}
  .sp-mobile-close{position:absolute;right:14px;top:14px;background:#f3f4f6;color:#374151;box-shadow:none;}
  .sp-mobile-mask{
    position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:60;
  }
  body.sp-sidebar-open .sp-mobile-mask{display:block;}
  .sp-main{margin-left:0 !important;width:100% !important;}
  .sp-topbar{padding:14px 14px 10px;}
  #content.app-content{padding:0 14px 16px;}
  .sp-footer{padding:14px;}
  /* 总后台响应式 */
  .sp-admin-topnav{display:none;position:fixed;top:56px;left:0;right:0;background:#fff;border-bottom:1px solid #e8eef7;flex-direction:column;padding:10px 0;z-index:99;box-shadow:0 8px 24px rgba(15,23,42,.10);}
  .sp-admin-topnav.is-open{display:flex;}
  .sp-admin-topnav__item{height:auto;padding:12px 20px;border-bottom:none;border-left:3px solid transparent;}
  .sp-admin-topnav__item.is-active{border-left-color:#2563eb;border-bottom:none;}
  .sp-admin-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;}
  .sp-admin-subnav{transform:translateX(-100%);transition:transform .25s ease;}
  .sp-admin-subnav.is-open{transform:translateX(0);}
  .sp-subnav-mask{position:fixed;inset:0;background:rgba(2,6,23,.48);z-index:80;display:none;}
  .sp-subnav-mask.is-open{display:block;}
  body.superpay-admin-page .container,
  body.superpay-admin-page .container-fluid{margin-left:0 !important;margin-right:0 !important;padding:76px 14px 24px !important;}
  body.superpay-admin-page.has-subnav .container,
  body.superpay-admin-page.has-subnav .container-fluid{margin-left:0 !important;}
}
@media (max-width: 767px){
  .sp-topbar__inner{align-items:flex-start;flex-direction:column;}
  .sp-topbar__actions{width:100%;justify-content:flex-start;}
  .sp-hero{padding:22px;}
  .sp-hero__title{font-size:24px;}
  .sp-stat-card__value{font-size:26px;}
  .sp-login-form{padding:28px 22px;}
  .sp-admin-logo__text{display:none;}
  .sp-admin-badge-pro span{display:none;}
}
/* ===== onecode 两列布局修复 ===== */
.oc-layout{display:grid;grid-template-columns:1fr 280px;gap:14px;align-items:start;min-width:0;}
.oc-config-col{min-width:0;}
.oc-preview-col{min-width:0;width:280px;flex-shrink:0;}
.oc-preview-col .sp-surface{position:sticky;top:76px;}
@media(max-width:960px){.oc-layout{grid-template-columns:1fr;}.oc-preview-col{width:auto;}.oc-preview-col .sp-surface{position:static !important;}}
