/* =========================================================
   NPS 管理后台 · 主题美化 (theme.css)
   在 style.css 之后加载，叠加/覆盖视觉样式，不影响任何业务逻辑
   ========================================================= */

:root {
    --nps-primary: #4f46e5;
    --nps-primary-2: #2563eb;
    --nps-cyan: #06b6d4;
    --nps-side-1: #1e293b;
    --nps-side-2: #0f172a;
    --nps-side-text: #cbd5e1;
    --nps-side-active: #6366f1;
    --nps-radius: 14px;
}

/* ===================== 登录页 ===================== */
.nps-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.nps-login-body::before,
.nps-login-body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    z-index: 0;
}
.nps-login-body::before { width: 440px; height: 440px; background: #22d3ee; top: -130px; left: -90px; }
.nps-login-body::after  { width: 400px; height: 400px; background: #a855f7; bottom: -130px; right: -70px; }

.nps-lang-switch { position: absolute; top: 22px; right: 28px; z-index: 6; }
.btn-ghost {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 10px;
}
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255,255,255,.32); color: #fff; }

.nps-login-wrap {
    position: relative;
    z-index: 2;
    width: min(960px, 92vw);
    display: flex;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    min-height: 560px;
    box-shadow: 0 30px 80px rgba(2,6,23,.45);
    animation: npsPop .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes npsPop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.nps-login-aside {
    width: 46%;
    padding: 48px 40px;
    color: #fff;
    background: linear-gradient(160deg, #312e81 0%, #1e3a8a 60%, #0e7490 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.nps-brand { margin-bottom: 26px; }
.nps-logo {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.nps-brand-name { font-size: 26px; font-weight: 800; letter-spacing: .5px; margin: 0 0 6px; }
.nps-tagline { opacity: .85; font-size: 14px; line-height: 1.6; margin: 0; }
.nps-features { list-style: none; padding: 0; margin: 8px 0; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.nps-features li { display: flex; align-items: center; gap: 14px; font-size: 14px; opacity: .92; }
.nps-feat-ico {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
    background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.nps-aside-foot { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 12px; opacity: .9; padding: 0 20px; }
.nps-aside-foot a { color: #fff; text-decoration: underline; }

.nps-login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.nps-auth-card { width: 100%; max-width: 360px; }
.nps-auth-head { text-align: center; margin-bottom: 28px; }
.nps-auth-logo {
    width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px;
    background: linear-gradient(135deg, var(--nps-primary), var(--nps-cyan));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 8px 20px rgba(79,70,229,.35);
}
.nps-auth-head h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #1e293b; }
.nps-auth-sub { font-size: 13px; color: #94a3b8; margin: 0; }

.nps-field { position: relative; margin-bottom: 18px; }
.nps-field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; z-index: 2; }
.nps-field .form-control {
    padding-left: 42px; height: 48px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #f8fafc; transition: .2s;
}
.nps-field .form-control:focus {
    border-color: var(--nps-primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(79,70,229,.12); outline: none;
}
.btn-nps-login {
    height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600;
    background: linear-gradient(135deg, var(--nps-primary), var(--nps-primary-2));
    border: none; box-shadow: 0 10px 24px rgba(37,99,235,.35); transition: .2s;
}
.btn-nps-login:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37,99,235,.45); }
.nps-auth-foot { margin-top: 22px; text-align: center; font-size: 12px; color: #94a3b8; }
.nps-auth-foot a { color: var(--nps-primary); text-decoration: none; }

@media (max-width: 768px) {
    .nps-login-aside { display: none; }
    .nps-login-wrap { min-height: auto; }
}

/* ===================== 后台 · 顶栏 ===================== */
.navbar-fixed-top.nps-topbar { border-bottom: 1px solid #eef2f7 !important; box-shadow: 0 1px 10px rgba(15,23,42,.05); }
.nps-top-brand {
    font-weight: 700; color: #334155; font-size: 16px;
    display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; vertical-align: middle;
}
.nps-top-brand i { color: var(--nps-primary); }

/* ===================== 后台 · 侧边栏 ===================== */
.navbar-static-side { background: linear-gradient(180deg, var(--nps-side-1), var(--nps-side-2)) !important; }
.navbar-default.navbar-static-side { border-right: none !important; }

.nps-side-brand {
    display: flex; align-items: center; gap: 10px; padding: 18px 20px;
    color: #fff; font-weight: 700; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nps-side-brand i { color: #818cf8; font-size: 20px; }

#side-menu > li > a { color: var(--nps-side-text) !important; font-weight: 500; }
#side-menu > li > a:hover,
#side-menu > li > a:focus { background: rgba(255,255,255,.06) !important; color: #fff !important; }
#side-menu > li.active > a {
    background: linear-gradient(90deg, var(--nps-side-active), transparent) !important;
    color: #fff !important; border-left: 3px solid #818cf8;
}
.nav-header { background: transparent !important; padding: 20px 20px 25px !important; }
.nav-header .logo-element { display: none; }
#side-menu .nav-label { font-weight: 500; }

/* ===================== 后台 · 卡片 / 按钮 / 表格 ===================== */
.wrapper-content { background: #f4f6fb; }
.ibox { box-shadow: 0 4px 18px rgba(15,23,42,.05); border-radius: var(--nps-radius); border: none; overflow: hidden; }
.ibox-title { background: #fff; border-bottom: 1px solid #eef2f7; border-radius: var(--nps-radius) var(--nps-radius) 0 0; padding: 14px 20px; }
.ibox-title h5 { font-weight: 700; color: #334155; }
.ibox-content { background: #fff; }
.ibox-content.no-padding { border-radius: 0 0 var(--nps-radius) var(--nps-radius); }

.btn-primary,
.minimalize-styl-2.btn-primary {
    background: var(--nps-primary) !important;
    border-color: var(--nps-primary) !important;
    box-shadow: 0 4px 12px rgba(79,70,229,.25);
}
.btn-primary:hover,
.minimalize-styl-2.btn-primary:hover { background: #4338ca !important; border-color: #4338ca !important; }
.btn-white { border-color: #e2e8f0 !important; }

.fixed-nav-basic .navbar-fixed-top { box-shadow: 0 1px 10px rgba(15,23,42,.05); }
.footer.fixed.nps-footer { border-top: 1px solid #eef2f7; color: #94a3b8; font-size: 12px; }

/* 表格圆角 + 表头 */
.bootstrap-table .fixed-table-container { border-radius: 12px; border: none; overflow: hidden; }
.fixed-table-container thead th { background: #f8fafc; color: #475569; font-weight: 600; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfd; }

/* ===================== 登录页（单栏卡片） ===================== */
.nps-single-card {
    position: relative;
    z-index: 2;
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 22px;
    padding: 42px 38px 26px;
    box-shadow: 0 30px 80px rgba(2,6,23,.45);
    animation: npsPop .5s cubic-bezier(.2,.8,.2,1);
}
.nps-card-brand { text-align: center; margin-bottom: 28px; }
.nps-card-logo {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px;
    background: linear-gradient(135deg, var(--nps-primary), var(--nps-cyan));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px;
    box-shadow: 0 8px 20px rgba(79,70,229,.35);
}
.nps-card-title { font-size: 24px; font-weight: 800; color: #1e293b; margin: 0; letter-spacing: .5px; }
.nps-card-foot { margin-top: 18px; text-align: center; font-size: 12px; color: #94a3b8; }
.nps-card-foot a { color: var(--nps-primary); text-decoration: none; }

/* 页面底部版权备案 */
.nps-page-foot {
    position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2;
    text-align: center; font-size: 12px; color: rgba(255,255,255,.88);
}
.nps-page-foot a { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
    .nps-single-card { padding: 32px 22px 22px; }
}

/* 验证码：输入框 + 图片 同一行 */
.nps-captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nps-field-captcha { flex: 1 1 auto; margin-bottom: 0; }
.nps-captcha-row .captcha { flex: 0 0 auto; display: block; line-height: 0; }
.nps-captcha-row .captcha-img {
    height: 48px; border-radius: 12px; cursor: pointer;
    border: 1px solid #e2e8f0; display: block;
}
