* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f5f7fa;
}

#app {
    height: 100%;
}

/* ==================== 登录页面样式 ==================== */

.login-container {
    --login-accent: #4f7dff;
    --login-accent-strong: #315fff;
    --login-accent-soft: rgba(79, 125, 255, 0.14);
    --login-emerald: #22c5a7;
    --login-navy-deep: #071427;
    --login-navy-mid: #0a1f3d;
    --login-text-main: #f5f8ff;
    --login-text-soft: rgba(218, 229, 248, 0.78);
    position: relative;
    min-height: 100vh;
    padding: 36px clamp(18px, 4vw, 48px);
    overflow: hidden;
    font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 14% 18%, rgba(69, 130, 255, 0.22), transparent 0, transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(41, 199, 167, 0.18), transparent 0, transparent 22%),
        radial-gradient(circle at 78% 76%, rgba(76, 124, 255, 0.16), transparent 0, transparent 24%),
        linear-gradient(135deg, var(--login-navy-deep) 0%, var(--login-navy-mid) 42%, #0c2a4b 100%);
}

.login-container::before,
.login-container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-container::before {
    width: 640px;
    height: 640px;
    top: -260px;
    right: -140px;
    background: radial-gradient(circle, rgba(79, 127, 255, 0.34) 0%, rgba(79, 127, 255, 0.08) 44%, transparent 72%);
    filter: blur(6px);
    opacity: 0.9;
}

.login-container::after {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(38, 195, 167, 0.22) 0%, transparent 68%);
    filter: blur(18px);
    opacity: 0.9;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, 450px);
    align-items: center;
    gap: clamp(28px, 3vw, 48px);
    max-width: 1320px;
    min-height: calc(100vh - 72px);
    margin: 0 auto;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 20px 34% 20px 0;
    border: 1px solid rgba(140, 181, 255, 0.1);
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        repeating-linear-gradient(90deg, rgba(126, 161, 230, 0.04) 0, rgba(126, 161, 230, 0.04) 1px, transparent 1px, transparent 88px),
        repeating-linear-gradient(0deg, rgba(126, 161, 230, 0.04) 0, rgba(126, 161, 230, 0.04) 1px, transparent 1px, transparent 88px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-showcase,
.login-panel {
    position: relative;
    z-index: 1;
}

.login-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    padding: clamp(30px, 4vw, 46px);
    border-radius: 40px;
    border: 1px solid rgba(144, 181, 255, 0.14);
    background: linear-gradient(160deg, rgba(8, 25, 51, 0.82) 0%, rgba(9, 30, 59, 0.66) 56%, rgba(9, 25, 45, 0.78) 100%);
    box-shadow: 0 30px 80px rgba(2, 12, 30, 0.24);
    overflow: hidden;
    animation: slideIn 0.55s ease-out both;
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.login-showcase::before {
    top: -80px;
    right: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 127, 255, 0.28) 0%, transparent 72%);
}

.login-showcase::after {
    bottom: -120px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 197, 166, 0.16) 0%, transparent 72%);
}

.login-showcase > * {
    position: relative;
    z-index: 1;
}

.login-showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

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

.login-showcase-logo {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #91deff 0%, #4d7cff 52%, #2cc4ab 100%);
    box-shadow: 0 16px 36px rgba(46, 103, 255, 0.34);
}

.login-showcase-logo::before,
.login-showcase-logo::after {
    content: "";
    position: absolute;
}

.login-showcase-logo::before {
    inset: 12px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
}

.login-showcase-logo::after {
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
}

.login-showcase-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-showcase-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #8fb2ff;
}

.login-showcase-title {
    font-size: 36px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1px;
    color: #f4f8ff;
}

.login-showcase-tag {
    padding: 8px 14px;
    border: 1px solid rgba(143, 178, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbe8ff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.login-showcase-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.login-stage-panel {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(147, 182, 255, 0.14);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(12, 33, 62, 0.86) 0%, rgba(7, 23, 43, 0.68) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.login-stage-panel--hero {
    min-height: 280px;
    padding: 28px;
}

.login-stage-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce9ff;
    font-size: 12px;
    font-weight: 700;
}

.login-stage-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.login-stage-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08));
}

.login-stage-line--lg {
    width: 68%;
}

.login-stage-line--md {
    width: 42%;
    opacity: 0.82;
}

.login-stage-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 122px;
}

.login-stage-bars span {
    flex: 1;
    min-width: 0;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, rgba(146, 188, 255, 0.95) 0%, rgba(84, 129, 255, 0.72) 72%, rgba(34, 197, 167, 0.72) 100%);
    box-shadow: 0 10px 24px rgba(49, 96, 234, 0.2);
}

.login-stage-card-title {
    margin-bottom: 18px;
    color: #dce8ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.login-stage-metric {
    margin-bottom: 18px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
}

.login-stage-skeleton {
    height: 54px;
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.04);
}

.login-stage-ring {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, rgba(9, 28, 54, 0.95) 66%, transparent 68% 100%),
        conic-gradient(#8edcff 0 30%, #4f7dff 30% 78%, rgba(255, 255, 255, 0.08) 78% 100%);
}

.login-stage-pill-row {
    display: flex;
    gap: 10px;
}

.login-stage-pill-row span {
    display: block;
    height: 12px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.login-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.login-showcase-footnote {
    max-width: 420px;
    color: rgba(219, 232, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
}

.login-showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dbe8ff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.login-showcase-status span:first-child {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #78c8ff, #2cc4ab);
    box-shadow: 0 0 0 6px rgba(72, 146, 255, 0.12);
}

.login-panel {
    width: min(100%, 450px);
    padding: 34px 32px 30px;
    border: 1px solid rgba(216, 227, 246, 0.92);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
    box-shadow: 0 28px 90px rgba(2, 12, 28, 0.34);
    backdrop-filter: blur(18px);
    animation: slideIn 0.55s ease-out 0.08s both;
}

.login-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 112px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--login-accent), var(--login-emerald));
}

.login-panel-header {
    margin-bottom: 24px;
}

.login-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2950b7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.login-panel-topline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--login-accent-soft);
    color: #29497a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.login-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--login-accent), var(--login-emerald));
    box-shadow: 0 0 0 5px rgba(79, 125, 255, 0.12);
}

.login-panel-title {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.8px;
    color: #0f1d32;
}

.login-panel-text {
    font-size: 14px;
    line-height: 1.8;
    color: #5e7089;
}

.login-form {
    margin-bottom: 16px;
}

.login-field-group {
    margin-bottom: 18px;
}

.login-field-group:last-of-type {
    margin-bottom: 12px;
}

.login-input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #30445e;
}

.login-form .el-form-item {
    margin-bottom: 0;
}

.login-form .el-input__wrapper,
.login-form .el-input__inner {
    min-height: 56px;
    border-radius: 18px;
    font-size: 14px;
}

.login-form .el-input__wrapper {
    padding: 0 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    box-shadow: 0 0 0 1px #d8e3f3 inset, 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.login-form .el-input__wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px #bfd1e8 inset, 0 14px 28px rgba(15, 23, 42, 0.06);
}

.login-form .el-input__wrapper.is-focus {
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--login-accent) inset, 0 0 0 4px rgba(79, 125, 255, 0.12), 0 14px 30px rgba(48, 83, 160, 0.08);
}

.login-form .el-input__inner {
    color: #14233c;
}

.login-form .el-input__inner::placeholder {
    color: #a0afc4;
}

.login-error-message {
    margin: 0 0 16px;
    padding: 13px 14px;
    border: 1px solid #ffd8cf;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff7f5 0%, #fff1ed 100%);
    color: #bf4a1a;
    font-size: 13px;
    line-height: 1.6;
}

.login-button {
    width: 100%;
    height: 56px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--login-accent-strong) 0%, #3d86ff 40%, var(--login-emerald) 100%);
    box-shadow: 0 18px 34px rgba(38, 92, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-button:hover,
.login-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(38, 92, 255, 0.32);
    filter: saturate(1.05);
}

.login-help-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: #718198;
}

/* ==================== 主应用容器 ==================== */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #eef3f8;
}

.app-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dbe5f0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    color: #475569;
    white-space: nowrap;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    min-height: 24px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

.role-badge .el-tag__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.role-badge.admin {
    background-color: #f56c6c;
    color: white;
}

.role-badge.user {
    background-color: #67c23a;
    color: white;
}

.logout-btn {
    cursor: pointer;
    color: #409eff;
    border: none;
    background: none;
    font-size: 14px;
    padding: 4px 8px;
    white-space: nowrap;
}

.logout-btn:hover {
    color: #66b1ff;
}

.app-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(47, 107, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #eef3f8 0%, #e7edf5 100%);
}

.app-content.with-sidebar {
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

.app-sidebar {
    width: clamp(208px, 18vw, 278px);
    flex-shrink: 0;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(88, 162, 255, 0.26), transparent 30%),
        radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.14), transparent 28%),
        linear-gradient(180deg, #0f1c34 0%, #13284a 56%, #101c33 100%);
    box-shadow: 0 26px 44px rgba(8, 15, 34, 0.24);
    color: #f8fbff;
}

.sidebar-system-title {
    margin: 4px 4px 20px;
    padding: 0 2px 16px;
    border-bottom: 1px solid rgba(185, 206, 233, 0.18);
    color: #f8fbff;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sidebar-section-label {
    margin: 0 6px 12px;
    color: rgba(201, 216, 236, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar-nav-list {
    display: grid;
    gap: 12px;
}

.sidebar-nav-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #f8fbff;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.sidebar-nav-button:hover {
    transform: translateX(2px);
    border-color: rgba(159, 197, 255, 0.48);
    box-shadow: 0 16px 26px rgba(3, 10, 28, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-nav-button.active {
    border-color: rgba(162, 213, 255, 0.52);
    background: linear-gradient(135deg, rgba(75, 147, 255, 0.28) 0%, rgba(39, 198, 140, 0.2) 100%);
    box-shadow: 0 18px 30px rgba(6, 16, 38, 0.3);
}

.sidebar-nav-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sidebar-nav-kicker {
    color: rgba(202, 221, 242, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.sidebar-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fbff;
}

.sidebar-nav-description {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(225, 235, 247, 0.76);
}

.sidebar-nav-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(248, 251, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-nav-button.active .sidebar-nav-state {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.app-main {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dashboard-page {
    flex: 1;
    min-width: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-hero,
.dashboard-chart-card {
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #ebf2ff;
    color: #2456d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.dashboard-hero h2 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #102a43;
}

.dashboard-hero p {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.dashboard-filter-group,
.dashboard-update-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 168px;
    padding: 12px 14px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #f8fbff;
}

.dashboard-toolbar-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #64748b;
}

.dashboard-filter-select {
    width: 168px;
}

.dashboard-update-meta strong {
    font-size: 14px;
    color: #102a43;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stat-card {
    padding: 22px 20px;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-stat-label {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.dashboard-stat-value {
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-stat-trend.up {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.dashboard-stat-trend.down {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.dashboard-stat-trend.flat {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.dashboard-stat-trend-icon {
    font-size: 13px;
    line-height: 1;
}

.dashboard-stat-note {
    font-size: 13px;
    line-height: 1.7;
    color: #7b8797;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-secondary-card {
    padding: 22px 22px 20px;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-secondary-label {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.dashboard-secondary-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-secondary-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-secondary-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-secondary-badge.healthy {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.dashboard-secondary-badge.warning {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.dashboard-secondary-badge.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.dashboard-secondary-note {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.dashboard-secondary-meta {
    font-size: 12px;
    color: #7b8797;
}

.dashboard-chart-card {
    padding: 22px 24px 24px;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-card-header h3 {
    margin-bottom: 6px;
    font-size: 20px;
    color: #102a43;
}

.dashboard-card-header p {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.dashboard-chart-body {
    min-height: 380px;
}

.dashboard-chart {
    width: 100%;
    height: 380px;
}

.dashboard-chart-empty {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fbff;
    color: #64748b;
}

/* ==================== 账户管理页面 ==================== */

.account-management-page {
    flex: 1;
    min-width: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-management-hero,
.account-management-card {
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.account-management-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at top right, rgba(47, 107, 255, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.account-management-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #ebf4ff;
    color: #2456d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.account-management-hero h2 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #102a43;
}

.account-management-hero p {
    max-width: 640px;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.account-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.account-management-button {
    min-width: 150px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
}

.account-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.account-management-card {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.account-management-card h3 {
    font-size: 20px;
    color: #102a43;
}

.account-management-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.account-management-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-summary-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.account-summary-tag.admin {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.account-summary-tag.user {
    background: rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.account-management-table-card {
    padding: 22px 22px 20px;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.account-management-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.account-management-table-header h3 {
    margin-bottom: 6px;
    font-size: 20px;
    color: #102a43;
}

.account-management-table-header p {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.account-management-table-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-management-table-total {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2456d6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==================== 客户列表页面 ==================== */

.customer-list-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
    min-width: 0;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.search-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    flex-shrink: 0;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-panel {
    flex: 1;
    min-width: 280px;
}

.search-panel-header {
    margin-bottom: 14px;
}

.search-panel-header--collapsible {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.search-panel-heading {
    flex: 1;
    min-width: 0;
}

.search-panel-header h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #1e3a5f;
}

.search-panel-header p {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.search-panel-summary {
    color: #2456d6;
}

.search-panel-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.search-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2456d6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.search-collapse-button {
    font-weight: 700;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
}

.search-form.is-compact {
    gap: 10px 12px;
}

.search-form .el-form-item {
    margin-bottom: 0;
    margin-right: 0;
}

.search-form .el-form-item__label {
    padding-right: 10px;
    font-weight: 600;
    color: #334155;
}

.search-input,
.search-form .el-input,
.search-form .el-select,
.search-form .el-date-editor,
.search-form .el-input-number {
    width: 220px;
}

.search-form-actions {
    display: flex;
    align-items: flex-end;
}

.search-form-actions .el-form-item__content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-form-actions .el-button+.el-button {
    margin-left: 0;
}

.search-form-basic {
    align-items: flex-end;
}

.search-form-basic .search-input,
.search-form-basic .el-input {
    width: 320px;
}

.search-form-basic .search-form-actions {
    margin-left: 0;
}

.search-form-admin .search-form-actions {
    margin-left: auto;
}

.search-button,
.add-button,
.account-button {
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    align-items: center;
}

.action-buttons .el-button {
    justify-content: center;
    text-align: center;
}

.selection-summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.selection-summary.active {
    background: #fee2e2;
    color: #b91c1c;
}

.customer-batch-delete-button {
    min-width: 96px;
    font-weight: 700;
}

.customer-batch-delete-button.el-button--danger.is-plain {
    color: #c62828;
    background: #fff5f5;
    border-color: #f5b5b5;
}

.customer-batch-delete-button.el-button--danger.is-plain:not(.is-disabled):hover,
.customer-batch-delete-button.el-button--danger.is-plain:not(.is-disabled):focus {
    color: #ffffff;
    background: #f56c6c;
    border-color: #f56c6c;
}

.customer-batch-delete-button.el-button--danger.is-plain.is-disabled {
    color: #d8a0a0;
    background: #fff7f7;
    border-color: #f5d0d0;
}

.table-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px;
    background-color: #ffffff;
}

.el-table {
    background-color: white;
    border-radius: 4px;
}

.el-table::before {
    display: none;
}

.el-table::after {
    display: none;
}

.table-header {
    background-color: #f5f7fa !important;
    font-weight: bold;
}

.el-table th {
    background-color: #f5f7fa;
    color: #333;
    border: none;
    padding: 12px 0;
    font-weight: bold;
}

.el-table td {
    border: none;
    padding: 12px 0;
    border-bottom: 1px solid #ebeef5;
}

.el-table tr:last-child td {
    border-bottom: none;
}

.el-table tr:hover>td {
    background-color: #f9fafc !important;
}

.table-action-buttons {
    display: flex;
    gap: 8px;
}

.table-action-buttons .el-button {
    padding: 4px 10px;
    font-size: 12px;
}

.pagination-container {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f5f7fa;
}

.el-pagination {
    display: flex;
    justify-content: center;
}

/* ==================== 对话框样式 ==================== */

.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    border-bottom: 1px solid #ebeef5;
    padding: 20px;
}

.el-dialog__title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.el-dialog__body {
    padding: 20px;
}

.el-dialog__footer {
    border-top: 1px solid #ebeef5;
    padding: 15px 20px;
    text-align: right;
}

.form-container {
    max-width: 600px;
}

.customer-dialog-form .customer-dialog-required-tip {
    margin-bottom: 18px;
    padding-left: 100px;
    color: #f56c6c;
    font-size: 12px;
    line-height: 1.5;
}

.form-container .el-form-item {
    margin-bottom: 22px;
}

.customer-dialog-form .el-form-item.is-required .el-form-item__label::before {
    color: #f56c6c;
    font-weight: 700;
}

.form-container .el-input__inner,
.form-container .el-textarea__inner {
    border-radius: 4px;
}

.delete-dialog-content {
    text-align: center;
}

.delete-dialog-message {
    margin: 16px 0;
    font-size: 16px;
}

.delete-preview-list {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    background: #fff7f7;
    text-align: left;
}

.delete-preview-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #b91c1c;
}

.delete-preview-items {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
}

.delete-preview-more {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

/* ==================== 状态样式 ==================== */

.status-enabled {
    color: #67c23a;
    font-weight: bold;
}

.status-disabled {
    color: #f56c6c;
    font-weight: bold;
}

.license-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.license-type.standard {
    background-color: #e6f7ff;
    color: #1890ff;
}

.license-type.professional {
    background-color: #f6ffed;
    color: #52c41a;
}

.license-type.enterprise {
    background-color: #fef0f5;
    color: #eb2f96;
}

/* ==================== 加载和空状态 ==================== */

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    flex-direction: column;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d9d9d9;
}

.empty-text {
    font-size: 14px;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1280px), (max-height: 860px) {
    .app-content.with-sidebar {
        gap: 16px;
    }

    .app-sidebar {
        width: 220px;
        padding: 16px 14px;
        border-radius: 24px;
    }

    .sidebar-system-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
        font-size: 18px;
        letter-spacing: 0.2px;
    }

    .sidebar-nav-button {
        gap: 10px;
        padding: 14px 12px;
        border-radius: 18px;
    }

    .sidebar-nav-title {
        font-size: 14px;
    }

    .sidebar-nav-description {
        font-size: 11px;
    }

    .sidebar-nav-state {
        min-width: 42px;
        padding: 6px 8px;
    }

    .search-bar {
        padding: 14px 16px;
        gap: 14px;
    }

    .search-panel.is-compact .search-input,
    .search-panel.is-compact .search-form .el-input,
    .search-panel.is-compact .search-form .el-select,
    .search-panel.is-compact .search-form .el-date-editor,
    .search-panel.is-compact .search-form .el-input-number {
        width: 200px;
    }

    .search-panel.is-compact .search-form-actions {
        margin-left: auto;
    }

    .table-container {
        padding: 14px 16px;
    }

    .pagination-container {
        padding: 14px 16px;
    }
}

@media (max-width: 1024px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 22px;
    }

    .login-shell::before {
        inset: 18px 0 36% 0;
    }

    .login-showcase {
        min-height: 0;
    }

    .login-panel {
        width: min(100%, 560px);
    }

    .app-content.with-sidebar {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        padding: 16px;
    }

    .sidebar-nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .app-title {
        font-size: 16px;
    }

    .user-name {
        font-size: 12px;
    }

    .search-bar {
        padding: 12px 15px;
    }

    .search-form-actions {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 18px 14px;
    }

    .login-shell::before {
        display: none;
    }

    .login-showcase,
    .login-panel {
        padding: 26px 22px;
        border-radius: 28px;
    }

    .login-showcase-header,
    .login-showcase-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-showcase-brand {
        align-items: flex-start;
    }

    .login-showcase-logo {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .login-showcase-title {
        font-size: 30px;
    }

    .login-stage-grid {
        grid-template-columns: 1fr;
    }

    .login-stage-panel--hero {
        min-height: 240px;
    }

    .login-panel-title {
        font-size: 30px;
    }

    .login-panel {
        width: 100%;
    }

    .app-header {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .app-title {
        font-size: 14px;
        width: 100%;
        flex: none;
        text-align: center;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 10px;
        flex-wrap: wrap;
    }

    .user-name {
        font-size: 12px;
    }

    .app-content {
        padding: 12px;
    }

    .app-sidebar {
        border-radius: 24px;
    }

    .sidebar-nav-list {
        grid-template-columns: 1fr;
    }

    .sidebar-system-title {
        margin-bottom: 18px;
        padding-bottom: 14px;
        font-size: 20px;
    }

    .dashboard-hero {
        flex-direction: column;
        padding: 20px;
    }

    .account-management-hero {
        flex-direction: column;
        padding: 20px;
    }

    .account-management-hero h2 {
        font-size: 26px;
    }

    .account-management-actions {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }

    .account-management-button {
        width: 100%;
    }

    .account-management-table-header {
        flex-direction: column;
    }

    .account-management-table-tools {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-filter-group,
    .dashboard-update-meta,
    .dashboard-filter-select {
        width: 100%;
    }

    .dashboard-hero h2 {
        font-size: 26px;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-card {
        padding: 18px;
    }

    .dashboard-chart-body,
    .dashboard-chart,
    .dashboard-chart-empty {
        min-height: 320px;
        height: 320px;
    }

    .search-bar {
        flex-direction: column;
        padding: 10px 15px;
        gap: 12px;
    }

    .search-panel-header--collapsible {
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel-tools {
        width: 100%;
        justify-content: space-between;
    }

    .search-panel {
        width: 100%;
        min-width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-form .el-form-item {
        width: 100%;
        margin-right: 0;
    }

    .search-input,
    .search-form .el-input,
    .search-form .el-select,
    .search-form .el-date-editor,
    .search-form .el-input-number {
        width: 100%;
    }

    .action-buttons {
        width: 100%;
        flex-direction: column;
    }

    .action-buttons .el-button {
        width: 100%;
    }

    .table-action-buttons {
        flex-direction: column;
    }

    .el-table {
        font-size: 12px;
    }

    .el-table th,
    .el-table td {
        padding: 8px 4px;
    }

    .table-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }

    .login-showcase,
    .login-panel {
        padding: 22px 18px 20px;
        border-radius: 24px;
    }

    .login-showcase-title {
        font-size: 26px;
    }

    .login-panel-badge {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .login-panel-topline {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .login-panel-title {
        font-size: 26px;
    }

    .app-title {
        font-size: 12px;
    }

    .sidebar-nav-button {
        align-items: flex-start;
    }

    .sidebar-nav-button {
        padding: 14px;
        gap: 12px;
    }

    .sidebar-nav-state {
        margin-left: auto;
    }

    .sidebar-system-title {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 18px;
    }

    .search-button,
    .add-button,
    .account-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .el-table {
        font-size: 11px;
    }

    .el-table th,
    .el-table td {
        padding: 6px 2px;
    }

    .el-dialog {
        width: 90% !important;
    }
}

/* ==================== 动画效果 ==================== */

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}

/* ==================== Element UI 覆盖 ==================== */

.el-button--primary {
    background-color: #409eff;
    border-color: #409eff;
}

.el-button--primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}

.el-button--primary:active {
    background-color: #0085d1;
    border-color: #0085d1;
}

.el-button--success {
    background-color: #67c23a;
    border-color: #67c23a;
}

.el-button--danger {
    background-color: #f56c6c;
    border-color: #f56c6c;
}

.el-message-box {
    border-radius: 8px;
}

.el-message {
    border-radius: 4px;
}

/* ==================== 账户管理样式 ==================== */

.account-dialog-form {
    max-width: 500px;
}

.account-dialog-form .el-form-item__label {
    white-space: nowrap;
}

.account-form-item {
    margin-bottom: 20px;
}

.account-form-item .el-input {
    width: 100%;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
    color: #909399;
}

.password-strength.weak {
    color: #f56c6c;
}

.password-strength.medium {
    color: #e6a23c;
}

.password-strength.strong {
    color: #67c23a;
}

/* ==================== 系统日志页面样式 ==================== */

.logs-page {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logs-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.logs-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #909399;
    margin-bottom: 6px;
}

.logs-hero h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.logs-hero p {
    font-size: 13px;
    color: #606266;
}

.logs-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logs-total-hint {
    font-size: 13px;
    color: #909399;
    margin-left: 4px;
}

.logs-table-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logs-pagination {
    display: flex;
    justify-content: flex-end;
}
