/* ==========================================================================
   子爵数字云 · 统一后台 / 用户中心主题
   覆盖 PixelAdmin 模板默认配色（深色侧栏 + 浅色内容区 + 品牌渐变）
   ========================================================================== */

:root {
    --zz-brand-1: #4f7cff;
    --zz-brand-2: #8b5cf6;
    --zz-brand-3: #22d3ee;
    --zz-grad: linear-gradient(135deg, #4f7cff 0%, #8b5cf6 60%, #22d3ee 100%);
    --zz-side: #0d1326;
    --zz-side-2: #131b33;
    --zz-ink: #1b2438;
    --zz-ink-2: #5b6885;
    --zz-ink-3: #8a95ad;
    --zz-line: #e7ebf3;
    --zz-page: #f5f7fc;
    --zz-card: #ffffff;
    --zz-radius: 14px;
    --zz-shadow: 0 10px 30px -18px rgba(20, 32, 66, .45);
    --zz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 全局 ---------- */
html body {
    font-family: var(--zz-font) !important;
    color: var(--zz-ink);
    background-color: var(--zz-page);
    -webkit-font-smoothing: antialiased;
}

html body input,
html body textarea,
html body select,
html body button,
html body .btn,
html body table,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body p,
html body a,
html body li,
html body span,
html body small,
html body strong,
html body label {
    font-family: var(--zz-font) !important;
}

/* ---------- 侧边栏 ---------- */
#sidebar {
    background: linear-gradient(185deg, #101a34 0%, #0b1122 60%, #0a0f1e 100%) !important;
    box-shadow: 6px 0 30px -18px rgba(6, 12, 28, .8);
}

#sidebar-brand .sidebar-title {
    background: transparent !important;
    display: flex !important;
    align-items: center;
    gap: 9px;
    height: 50px;
    line-height: 50px;
    padding: 0 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

#sidebar-brand {
    background: transparent !important;
}

#sidebar-brand .sidebar-title i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--zz-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 6px 16px -8px rgba(79, 124, 255, .95);
}

.sidebar-content {
    background: transparent !important;
}

.sidebar-nav a {
    color: #c3cddf !important;
    border-radius: 10px;
    margin: 2px 8px;
    padding: 0 10px !important;
    font-size: 13.5px;
    min-height: 38px;
    line-height: 38px;
    transition: background .18s ease, color .18s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
}

.sidebar-nav a.active,
.sidebar-nav a.open,
.sidebar-nav li.active > a {
    background: linear-gradient(90deg, rgba(79, 124, 255, .28), rgba(139, 92, 246, .12)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--zz-brand-1);
}

.sidebar-nav a > .sidebar-nav-icon,
.sidebar-nav a > .sidebar-nav-indicator {
    color: #93a2c0;
}

.sidebar-nav a:hover > .sidebar-nav-icon,
.sidebar-nav a.active > .sidebar-nav-icon,
.sidebar-nav a.open > .sidebar-nav-icon,
.sidebar-nav li.active > a > .sidebar-nav-icon {
    color: #cfe0ff !important;
}

.sidebar-nav ul {
    background: rgba(255, 255, 255, .02) !important;
    border-radius: 10px;
    margin: 2px 8px 6px !important;
    padding: 4px 0 !important;
}

.sidebar-nav ul li a {
    margin: 0 !important;
    padding-left: 34px !important;
    border-radius: 8px;
    min-height: 34px;
    line-height: 34px;
    font-size: 13px;
    color: #aebbd4 !important;
}

.sidebar-nav ul li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .06) !important;
}

.sidebar-separator {
    border-color: rgba(255, 255, 255, .08) !important;
    color: #47526b !important;
    margin: 8px 12px !important;
}

#sidebar-extra-info {
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
}

#sidebar-extra-info small,
#sidebar-extra-info a {
    color: #6f7c99 !important;
    font-size: 11.5px;
}

#sidebar-extra-info .progress {
    background: rgba(255, 255, 255, .08);
    height: 4px;
    border-radius: 4px;
}

#sidebar-extra-info .progress-bar {
    background: var(--zz-grad) !important;
}

/* ---------- 顶栏 ---------- */
header.navbar-inverse,
header.navbar-default {
    background: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 -1px 0 var(--zz-line), 0 6px 20px -18px rgba(20, 32, 66, .55);
}

header.navbar-inverse .navbar-nav-custom > li > a,
header.navbar-default .navbar-nav-custom > li > a,
header.navbar-inverse .navbar-nav > li > a {
    color: #4a5878 !important;
    font-size: 13.5px;
    font-weight: 500;
}

header.navbar-inverse .navbar-nav-custom > li > a:hover,
header.navbar-default .navbar-nav-custom > li > a:hover {
    color: #1b2438 !important;
    background: rgba(79, 124, 255, .07) !important;
}

header.navbar-inverse .navbar-nav-custom > li > a i,
header.navbar-inverse .navbar-nav > li > a i {
    color: #6b7aa0;
}

header.navbar-inverse .dropdown-menu,
header.navbar-default .dropdown-menu {
    border-radius: 12px;
    border-color: var(--zz-line);
    box-shadow: 0 18px 40px -22px rgba(20, 32, 66, .6);
    padding: 6px;
}

/* ---------- 内容区 ---------- */
#page-content {
    background-color: var(--zz-page) !important;
    padding: 18px 22px 26px !important;
}

#page-content .row {
    margin-left: -8px;
    margin-right: -8px;
}

#page-content .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.content-header {
    background: transparent !important;
    border-bottom: 0 !important;
    margin: -6px -6px 18px !important;
    padding: 0 6px !important;
}

.content-header h1 {
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: -.3px;
    color: var(--zz-ink);
}

.content-header h2 {
    font-size: 14px !important;
    color: var(--zz-ink-3);
    font-weight: 400;
}

.content-header small {
    color: var(--zz-ink-3) !important;
}

.breadcrumb {
    background: transparent !important;
    margin-bottom: 0;
    padding: 6px 0 0;
    font-size: 12.5px;
}

.breadcrumb > li > a {
    color: var(--zz-ink-3) !important;
}

.breadcrumb > .active {
    color: var(--zz-ink-2) !important;
}

/* 后台首页大图块（若仍存在） */
.content-header-media {
    border-radius: 18px;
    overflow: hidden;
    height: auto !important;
    min-height: 150px;
    background: radial-gradient(600px 220px at 15% 0%, rgba(79, 124, 255, .55), transparent 70%),
    linear-gradient(135deg, #101a34, #1b2350) !important;
    box-shadow: 0 24px 50px -30px rgba(20, 32, 66, .8);
    margin-bottom: 18px;
}

.content-header-media > img {
    display: none !important;
}

.content-header-media .header-section {
    position: relative !important;
    inset: auto !important;
    background: transparent !important;
    color: #fff !important;
    padding: 22px !important;
    bottom: auto !important;
}

.content-header-media h1 {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.content-header-media h2 {
    color: #b9c8ee !important;
    font-size: 13px !important;
}

.content-header-media h2 a {
    color: #9fd0ff !important;
}

/* ---------- 卡片 / Widget ---------- */
.widget {
    border-radius: var(--zz-radius) !important;
    border: 1px solid var(--zz-line);
    background: var(--zz-card) !important;
    box-shadow: var(--zz-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -22px rgba(20, 32, 66, .55);
    border-color: #d9e2f5;
}

.widget-content {
    background: var(--zz-card) !important;
}

.widget-heading {
    font-weight: 700 !important;
    color: var(--zz-ink);
    letter-spacing: -.4px;
}

.widget-icon {
    border-radius: 12px !important;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    box-shadow: 0 10px 22px -16px rgba(20, 32, 66, .9);
}

.themed-background {
    background: var(--zz-grad) !important;
}

.themed-background-success {
    background: linear-gradient(135deg, #22c98a, #12a86e) !important;
}

.themed-background-warning {
    background: linear-gradient(135deg, #ffb347, #f08a1e) !important;
}

.themed-background-danger {
    background: linear-gradient(135deg, #ff7a86, #e94a5c) !important;
}

.themed-background-info {
    background: linear-gradient(135deg, #4f7cff, #7a5cf6) !important;
}

.text-primary {
    color: var(--zz-brand-1) !important;
}

/* Block（前台用户中心/表单区） */
.block {
    border-radius: var(--zz-radius) !important;
    border: 1px solid var(--zz-line) !important;
    background: var(--zz-card);
    box-shadow: var(--zz-shadow) !important;
    padding: 20px 18px 8px !important;
    margin-bottom: 16px !important;
}

.block .block {
    box-shadow: none !important;
    border: 1px solid var(--zz-line) !important;
}

.block-title {
    margin: -20px -18px 16px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--zz-line) !important;
    border-radius: var(--zz-radius) var(--zz-radius) 0 0;
    background: linear-gradient(180deg, #fbfcff, #f6f8fd) !important;
}

.block-title h2,
.block-title h3 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--zz-ink);
    margin: 0;
}

.block-title small {
    color: var(--zz-ink-3);
}

/* 列表组 */
.list-group {
    border-radius: var(--zz-radius);
    overflow: hidden;
    border: 1px solid var(--zz-line);
    background: #fff;
    box-shadow: var(--zz-shadow);
    margin-bottom: 16px;
}

.list-group-item {
    border-color: var(--zz-line) !important;
    background: #fff !important;
    padding: 14px 16px !important;
    color: var(--zz-ink-2);
}

/* ---------- 表单 ---------- */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #dde4f1 !important;
    background: #fbfcff !important;
    box-shadow: none !important;
    color: var(--zz-ink) !important;
    height: 40px;
    font-size: 13.5px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea.form-control {
    height: auto;
    padding: 10px 12px;
    line-height: 1.7;
}

.form-control:focus {
    border-color: var(--zz-brand-1) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .12) !important;
}

.form-control::placeholder {
    color: #a9b3c7;
}

.input-group-addon {
    border-radius: 10px 0 0 10px !important;
    border: 1px solid #dde4f1 !important;
    background: #f4f7fd !important;
    color: #4b5875 !important;
    font-size: 13px;
    padding: 0 14px;
    min-width: 96px;
    text-align: center;
}

.input-group .form-control:last-child {
    border-radius: 0 10px 10px 0 !important;
}

.form-group > label {
    font-size: 13px;
    color: #46536e;
    font-weight: 600;
}

/* ---------- 按钮 ---------- */
.btn {
    border-radius: 10px !important;
    font-size: 13.5px;
    font-weight: 600;
    border-width: 1px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn-primary {
    background: var(--zz-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 26px -16px rgba(79, 124, 255, .95);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #4169e8 0%, #7a4df0 60%, #17b8d4 100%) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #22c98a, #0fa06a) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffb347, #f08a1e) !important;
    border-color: transparent !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff7a86, #e94a5c) !important;
    border-color: transparent !important;
}

.btn-default {
    background: #fff !important;
    border-color: #dde4f1 !important;
    color: var(--zz-ink-2) !important;
}

.btn-default:hover {
    border-color: #c9d5ea !important;
    background: #f7f9ff !important;
}

.btn-block {
    padding: 10px 16px;
}

/* ---------- 表格 ---------- */
.table > thead > tr > th {
    background: #f6f8fd !important;
    color: #46536e !important;
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--zz-line) !important;
    padding: 12px 10px;
    white-space: nowrap;
}

.table > tbody > tr > td {
    border-color: #eef2f9 !important;
    padding: 12px 10px;
    font-size: 13px;
    color: #46536e;
    vertical-align: middle !important;
}

.table > tbody > tr:hover > td {
    background: #f8faff !important;
}

/* ---------- 标签 / 提示 ---------- */
.label-primary,
.badge-primary {
    background: var(--zz-brand-1) !important;
}

.alert {
    border-radius: 12px;
    border: 1px solid var(--zz-line);
    font-size: 13.5px;
}

/* ---------- 登录页 ---------- */
body.zz-login-page {
    background: radial-gradient(900px 600px at 15% -10%, rgba(79, 124, 255, .45), transparent 60%),
    radial-gradient(800px 600px at 90% 10%, rgba(139, 92, 246, .4), transparent 60%),
    #070b16 !important;
    color: #eef2ff;
    min-height: 100vh;
}

body.zz-login-page .full-bg {
    display: none !important;
}

body.zz-login-page .preloader {
    display: none !important;
}

body.zz-login-page #login-container {
    width: 100%;
    max-width: 420px;
    left: 50%;
    margin-left: -210px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 16px;
}

body.zz-login-page #login-container > h1,
body.zz-login-page #login-container > p,
body.zz-login-page #login-container > footer {
    color: #b9c6e2 !important;
}

body.zz-login-page .zz-login-card,
body.zz-login-page .block {
    background: rgba(255, 255, 255, .97) !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
    border-radius: 20px !important;
    box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .85), 0 0 0 1px rgba(120, 150, 255, .12) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 26px 24px 14px !important;
    color: #1b2438;
}

body.zz-login-page .block-title {
    background: linear-gradient(180deg, #fbfcff, #f4f7fd) !important;
    border-bottom: 1px solid #e7ebf3 !important;
    margin: -26px -24px 20px !important;
    padding: 18px 24px !important;
    border-radius: 20px 20px 0 0;
}

body.zz-login-page .block-title h2 {
    color: #1b2438 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.zz-login-page .block-title .btn {
    box-shadow: none !important;
}

body.zz-login-page .form-group > label,
body.zz-login-page label {
    color: #46536e !important;
    font-weight: 600;
    font-size: 13px;
}

body.zz-login-page .form-control {
    background: #f6f8fd !important;
    border: 1px solid #dde4f1 !important;
    color: #1b2438 !important;
    height: 44px;
    border-radius: 12px !important;
    font-size: 14px;
}

body.zz-login-page .form-control:focus {
    background: #ffffff !important;
    border-color: #6f95ff !important;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .16) !important;
}

body.zz-login-page .form-control::placeholder {
    color: #98a4bb;
}

body.zz-login-page .btn-primary,
body.zz-login-page .btn-success,
body.zz-login-page .btn-effect-ripple.btn-success {
    background: var(--zz-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 30px -16px rgba(79, 124, 255, .95) !important;
    font-weight: 600;
}

body.zz-login-page .btn-default {
    background: #f4f7fd !important;
    border-color: #dde4f1 !important;
    color: #46536e !important;
}

body.zz-login-page .input-group-addon {
    background: #f4f7fd !important;
    border-color: #dde4f1 !important;
    color: #46536e !important;
}

body.zz-login-page #login-container > h1,
body.zz-login-page #login-container > p {
    color: #eaf0ff !important;
}

body.zz-login-page a {
    color: #a9c4ff !important;
}

body.zz-login-page a:hover {
    color: #ffffff !important;
}

body.zz-login-page .block a {
    color: #4f7cff !important;
}

body.zz-login-page .block a:hover {
    color: #3a63d8 !important;
}

body.zz-login-page .text-muted,
body.zz-login-page small {
    color: #aab7d3 !important;
}

body.zz-login-page .block small,
body.zz-login-page .block .text-muted {
    color: #7d8aa3 !important;
}

body.zz-login-page .csscheckbox > span {
    border-color: #c9d3e6 !important;
}

/* 登录页品牌头 */
.zz-login-head {
    text-align: center;
    margin-bottom: 22px;
    color: #fff;
}

.zz-login-head .zz-login-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--zz-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 16px 34px -18px rgba(79, 124, 255, 1);
}

.zz-login-head .zz-login-mark svg {
    width: 28px;
    height: 28px;
}

.zz-login-head h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    margin: 0 0 6px;
    color: #fff;
}

.zz-login-head p {
    font-size: 13px;
    color: #8f9dbe;
    margin: 0;
}

.zz-login-foot {
    text-align: center;
    margin-top: 16px;
    font-size: 12.5px;
    color: #7b87a4;
}

.zz-login-foot a {
    color: #9fc0ff !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
    #page-content {
        padding: 12px 12px 22px !important;
    }

    .content-header {
        margin: -2px -2px 14px !important;
        padding: 0 2px !important;
    }

    .content-header h1 {
        font-size: 18px !important;
    }

    .widget-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .block {
        padding: 16px 14px 4px !important;
    }

    .block-title {
        margin: -16px -14px 14px !important;
        padding: 12px 14px !important;
    }

    .input-group-addon {
        min-width: 84px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.zz-login-page #login-container {
        left: 0;
        margin-left: 0;
        transform: none;
        top: 40px;
        max-width: 100%;
    }
}
