:root {
    --app-primary: #2f7de1;
    --app-primary-dark: #2567bd;
    --app-primary-soft: #eaf3ff;
    --app-bg: #f3f6fa;
    --app-panel: #ffffff;
    --app-panel-muted: #f8fbff;
    --app-border: #dbe4ee;
    --app-border-strong: #c9d7e6;
    --app-text: #1f2d3d;
    --app-text-soft: #65758b;
    --app-text-faint: #94a3b8;
    --app-success: #16a34a;
    --app-warning: #f59e0b;
    --app-danger: #ef4444;
    --app-shadow: 0 8px 24px rgba(31, 45, 61, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--app-text);
    background: var(--app-bg);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

a {
    text-decoration: none;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-light {
    border-color: var(--app-border);
}

.form-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-text);
    margin-bottom: 0.55rem;
}

.form-control,
.form-check-input {
    border-color: var(--app-border-strong);
}

.form-control {
    min-height: 44px;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    background: #fff;
}

.form-control:focus {
    border-color: #9dc1ef;
    box-shadow: 0 0 0 0.2rem rgba(47, 125, 225, 0.1);
}

.alert {
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: none;
}

.auth-body {
    background: linear-gradient(90deg, #eef3f8 0%, #eef3f8 42%, #e8f0fb 42%, #edf4fc 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(460px, 520px) minmax(560px, 1fr);
}

.auth-panel {
    min-height: 100vh;
}

.auth-panel-form {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-stage {
    width: 100%;
    max-width: 388px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.auth-brand-mark-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary);
    border-radius: inherit;
}

.auth-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: #204369;
}

.auth-brand-subtitle {
    font-size: 0.82rem;
    color: var(--app-text-soft);
}

.auth-form-wrap {
    width: 100%;
}

.auth-form-footer {
    margin-top: 16px;
    color: var(--app-text-faint);
    font-size: 0.82rem;
    line-height: 1.8;
}

.login-form-card {
    padding: 30px 30px 24px;
    border: 1px solid rgba(205, 219, 235, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(31, 45, 61, 0.06);
}

.login-form-head {
    margin-bottom: 24px;
}

.login-form-kicker {
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.login-form-head h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}

.login-form-head p {
    margin: 0;
    color: var(--app-text-soft);
    font-size: 0.92rem;
    line-height: 1.75;
}

.login-mobile-points {
    display: none;
}

.login-form-grid {
    display: grid;
    gap: 16px;
}

.login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--app-text-soft);
    font-size: 0.85rem;
}

.login-form-tip {
    color: var(--app-text-faint);
}

.login-helper-panel {
    margin-top: 20px;
}

.login-helper-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--app-text-soft);
    margin-bottom: 10px;
}

.login-credential-card {
    margin-top: 0;
    padding: 16px 18px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #f8fbff;
}

.credential-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.credential-item:last-of-type {
    margin-bottom: 0;
}

.credential-label {
    color: var(--app-text-soft);
}

.login-credential-card code {
    color: var(--app-primary-dark);
    font-size: 0.9rem;
    background: var(--app-primary-soft);
    padding: 4px 8px;
    border-radius: 6px;
}

.credential-note {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px dashed var(--app-border);
    color: var(--app-text-soft);
    font-size: 0.85rem;
}

.auth-panel-visual {
    padding: 52px 56px 52px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual-head {
    max-width: 600px;
    margin: 0 auto 24px;
}

.auth-visual-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 125, 225, 0.1);
    color: var(--app-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.auth-visual-head h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.28;
    margin: 0 0 12px;
}

.auth-visual-head p {
    margin: 0;
    color: var(--app-text-soft);
    font-size: 0.96rem;
    line-height: 1.8;
}

.auth-scene {
    position: relative;
    width: min(100%, 720px);
    min-height: 470px;
    margin: 0 auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
    overflow: hidden;
}

.scene-top-strip {
    position: absolute;
    left: 28px;
    top: 22px;
    display: flex;
    gap: 8px;
}

.scene-top-strip span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(47, 125, 225, 0.18);
}

.auth-scene::before,
.auth-scene::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(47, 125, 225, 0.08);
}

.auth-scene::before {
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: -100px;
}

.auth-scene::after {
    width: 180px;
    height: 180px;
    right: 40px;
    top: 24px;
}

.scene-monitor {
    position: absolute;
    right: 84px;
    top: 72px;
    width: 336px;
    height: 214px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
    border: 1px solid rgba(47, 125, 225, 0.14);
    box-shadow: 0 18px 40px rgba(54, 91, 140, 0.1);
}

.scene-monitor-top {
    height: 10px;
    width: 82px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #d8e7fb;
}

.scene-monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.scene-monitor-grid span,
.scene-monitor-panel {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(107, 166, 244, 0.2), rgba(47, 125, 225, 0.08));
    border: 1px solid rgba(47, 125, 225, 0.12);
}

.scene-monitor-grid span {
    height: 58px;
}

.scene-monitor-ring {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 12px solid rgba(47, 125, 225, 0.1);
    border-top-color: rgba(47, 125, 225, 0.45);
    border-right-color: rgba(47, 125, 225, 0.22);
}

.scene-monitor-panel {
    position: absolute;
    left: 18px;
    right: 116px;
    bottom: 18px;
    height: 64px;
}

.scene-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(47, 125, 225, 0.28);
}

.scene-orbit-a {
    left: 72px;
    top: 72px;
    width: 128px;
    height: 128px;
}

.scene-orbit-b {
    right: 36px;
    bottom: 112px;
    width: 108px;
    height: 108px;
}

.scene-orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #5fa4f1;
    box-shadow: 0 0 0 10px rgba(95, 164, 241, 0.12);
}

.scene-device-group {
    position: absolute;
    left: 118px;
    bottom: 94px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.scene-device {
    width: 42px;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(179, 210, 247, 0.7));
    border: 1px solid rgba(47, 125, 225, 0.1);
    box-shadow: 0 12px 28px rgba(54, 91, 140, 0.08);
}

.scene-device-tall {
    height: 150px;
}

.scene-device-mid {
    height: 112px;
}

.scene-device-small {
    height: 78px;
}

.scene-route {
    position: absolute;
    left: 144px;
    right: 172px;
    bottom: 110px;
    height: 76px;
    border-bottom: 3px solid rgba(47, 125, 225, 0.2);
    border-left: 3px solid rgba(47, 125, 225, 0.2);
    border-radius: 0 0 0 56px;
}

.scene-route-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5c9ff0;
}

.scene-route-dot-a {
    left: -5px;
    bottom: 62px;
}

.scene-route-dot-b {
    left: 42%;
    bottom: -6px;
}

.scene-route-dot-c {
    right: -5px;
    bottom: -6px;
}

.scene-platform {
    position: absolute;
    right: 112px;
    bottom: 64px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.scene-platform-card {
    width: 128px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(47, 125, 225, 0.12);
    box-shadow: 0 16px 34px rgba(54, 91, 140, 0.08);
}

.scene-platform-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(47, 125, 225, 0.12);
    margin-top: 10px;
}

.scene-platform-line.short {
    width: 58%;
    margin-top: 0;
}

.scene-platform-stack {
    display: grid;
    gap: 10px;
}

.scene-platform-stack span {
    width: 64px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(117, 173, 246, 0.85), rgba(47, 125, 225, 0.65));
}

.scene-marker-list {
    position: absolute;
    right: 56px;
    top: 156px;
    display: grid;
    gap: 18px;
}

.scene-marker-list span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(47, 125, 225, 0.36);
}

.auth-visual-foot {
    width: min(100%, 720px);
    margin: 18px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 26px;
    color: var(--app-text-soft);
    font-size: 0.92rem;
}

.auth-visual-foot i {
    color: var(--app-primary);
    margin-right: 6px;
}

.admin-body {
    background: var(--app-bg);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px 1fr;
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid var(--app-border);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 2px;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.sidebar-brand-icon-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary);
    border-radius: inherit;
}

.sidebar-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f4f81;
}

.sidebar-brand-subtitle {
    font-size: 0.78rem;
    color: var(--app-text-faint);
}

.sidebar-search,
.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--app-panel-muted);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0 12px;
    height: 40px;
    color: var(--app-text-faint);
}

.sidebar-search input,
.admin-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-text);
    font-size: 0.9rem;
}

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

.sidebar-nav-group {
    display: grid;
    gap: 4px;
}

.sidebar-nav-group-title {
    padding: 0 12px;
    color: var(--app-text-faint);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--app-text-soft);
    font-size: 0.92rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav-link:hover {
    background: #f7fbff;
    color: var(--app-primary-dark);
}

.sidebar-nav-link.is-active {
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 12px;
    border-radius: 10px;
    background: #f7fbff;
    border: 1px solid var(--app-border);
}

.sidebar-footer-title {
    color: var(--app-text-faint);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.sidebar-footer-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-footer-meta {
    color: var(--app-text-soft);
    font-size: 0.84rem;
    line-height: 1.6;
}

.sidebar-footer-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
}

.admin-header-left,
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-title {
    font-size: 0.96rem;
    font-weight: 700;
}

.admin-header-subtitle,
.admin-user-role {
    font-size: 0.78rem;
    color: var(--app-text-faint);
}

.admin-search {
    width: 260px;
    height: 36px;
    background: #f8fbff;
    border-color: #e5edf6;
    color: var(--app-text-faint);
}

.admin-search input {
    color: var(--app-text);
}

.admin-search input::placeholder {
    color: var(--app-text-faint);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--app-primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--app-primary-dark);
}

.admin-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-logout {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-header-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #e4ebf4;
    border-radius: 8px;
    background: #fff;
    color: var(--app-text-soft);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f4f8fc;
    color: var(--app-text-soft);
}

.sidebar-backdrop {
    display: none;
}

.admin-content {
    padding: 24px;
}

.page-section {
    margin-bottom: 20px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-head-label {
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-head-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.page-head-desc {
    margin: 0;
    color: var(--app-text-soft);
    line-height: 1.7;
}

.panel-card,
.data-card {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.data-card {
    padding: 18px;
}

.data-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.data-card-label {
    color: var(--app-text-soft);
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.data-card-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.data-card-meta {
    color: var(--app-text-faint);
    font-size: 0.84rem;
}

.data-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.panel-card {
    padding: 16px 16px 18px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.panel-desc {
    margin: 0;
    color: var(--app-text-soft);
    font-size: 0.84rem;
}

.panel-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-tabs span {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-text-soft);
    font-size: 0.82rem;
}

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-tabs .is-active {
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
    border-color: #c7dcfa;
}

.chart-board {
    height: 280px;
    padding: 16px 8px 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border: 1px solid #eef4f9;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chart-bar-wrap {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar-fill {
    width: 60%;
    min-width: 24px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #78b1f5 0%, #2f7de1 100%);
}

.chart-bar-label {
    font-size: 0.84rem;
    color: var(--app-text-soft);
}

.todo-list,
.notice-list {
    display: grid;
    gap: 14px;
}

.todo-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.todo-item:last-child,
.notice-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.todo-item-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 6px;
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.todo-item-title,
.notice-item-title,
.module-card-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.todo-item-desc,
.todo-item-time,
.notice-item-desc,
.module-card-status {
    color: var(--app-text-soft);
    font-size: 0.84rem;
    line-height: 1.7;
}

.todo-item-time {
    white-space: nowrap;
}

.admin-table th {
    color: #70849b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 11px 16px;
    border-bottom-color: #e5edf5;
    background: #f8fbff;
    white-space: nowrap;
}

.admin-table td {
    padding: 15px 16px;
    border-bottom-color: #eef3f7;
    font-size: 0.9rem;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background: #fafcff;
}

.admin-table-wrap {
    border: 1px solid #eaf0f6;
    border-radius: 10px;
    overflow: hidden;
}

.detail-table th {
    width: 160px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f8fd;
    border: 1px solid #d9e6f6;
    color: #3d6189;
    font-size: 0.8rem;
}

.status-tag-muted {
    background: #f6f8fb;
    border-color: #e3e8ef;
    color: #7a8797;
}

.status-tag-success {
    background: #eef8f1;
    border-color: #cfe9d7;
    color: #3d7a52;
}

.status-tag-warning {
    background: #fff7eb;
    border-color: #f3dec0;
    color: #9a6a20;
}

.permission-groups {
    display: grid;
    gap: 22px;
}

.permission-group {
    padding-top: 4px;
}

.permission-group-title {
    margin-bottom: 12px;
    color: var(--app-text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.permission-card {
    min-height: 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    background: #fbfdff;
    cursor: pointer;
}

.permission-card input {
    margin-top: 2px;
}

.permission-card-title {
    color: var(--app-text);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.permission-card-desc {
    color: var(--app-text-soft);
    font-size: 0.83rem;
    line-height: 1.7;
}

.table-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.tree-node {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tree-node-branch {
    width: 14px;
    height: 1px;
    background: #b9c8d8;
    flex-shrink: 0;
}

textarea.form-control {
    min-height: 96px;
}

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

.module-card {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e6eef7;
    background: #fbfdff;
}

.module-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.notice-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.notice-item-dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--app-primary);
}

@media (max-width: 1199.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel-form,
    .auth-panel-visual {
        min-height: auto;
    }

    .auth-panel-visual {
        padding: 8px 36px 36px;
    }

    .auth-visual-head {
        margin-bottom: 18px;
    }

    .auth-scene {
        min-height: 400px;
    }
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 248px;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(0, 0, 0, 0.35);
    }

    .sidebar-backdrop.is-visible {
        display: block;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-header {
        padding: 0 16px;
    }

    .admin-content {
        padding: 18px 16px;
    }

    .page-head-title {
        font-size: 1.45rem;
    }

    .chart-board {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .chart-bar-item {
        min-width: 34px;
    }
}

@media (max-width: 767.98px) {
    .auth-body {
        background: #eef3f8;
    }

    .auth-panel-form,
    .auth-panel-visual {
        padding: 20px 18px;
    }

    .auth-panel-form {
        padding-bottom: 10px;
    }

    .auth-panel-visual {
        padding-top: 4px;
    }

    .auth-form-stage {
        max-width: none;
    }

    .auth-form-wrap {
        max-width: none;
    }

    .auth-brand {
        margin-bottom: 16px;
    }

    .auth-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .auth-brand-title {
        font-size: 0.94rem;
    }

    .auth-brand-subtitle {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .login-form-options,
    .page-head,
    .panel-head,
    .todo-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .login-form-card {
        padding: 22px 18px 18px;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(31, 45, 61, 0.05);
    }

    .login-form-head {
        margin-bottom: 18px;
    }

    .login-form-head h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .login-form-head p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .login-mobile-points {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .login-mobile-points span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: #f4f8fd;
        border: 1px solid #dbe7f5;
        color: var(--app-text-soft);
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .login-mobile-points i {
        color: var(--app-primary);
    }

    .login-helper-panel {
        margin-top: 16px;
    }

    .login-credential-card {
        padding: 14px 14px 12px;
    }

    .credential-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }

    .credential-note {
        margin-top: 12px;
        padding-top: 12px;
        line-height: 1.65;
    }

    .auth-visual-head {
        margin-bottom: 0;
        text-align: left;
    }

    .auth-visual-badge {
        margin-bottom: 10px;
    }

    .auth-visual-head h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        line-height: 1.45;
    }

    .auth-visual-head p {
        font-size: 0.84rem;
        line-height: 1.65;
    }

    .auth-scene {
        display: none;
    }

    .auth-visual-foot {
        margin-top: 12px;
        gap: 8px;
    }

    .auth-visual-foot div {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(47, 125, 225, 0.12);
        font-size: 0.76rem;
    }

    .data-card-value {
        font-size: 1.5rem;
    }

    .data-card {
        padding: 16px;
    }

    .page-head-actions,
    .filter-actions,
    .table-action-group {
        width: 100%;
    }

    .page-head-actions .btn,
    .filter-actions .btn,
    .table-action-group .btn,
    .table-action-group form,
    .table-action-group form .btn {
        width: 100%;
    }

    .page-head-actions .btn,
    .filter-actions .btn,
    .table-action-group .btn {
        justify-content: center;
    }

    .page-head-title {
        font-size: 1.28rem;
        line-height: 1.35;
    }

    .page-head-desc,
    .panel-desc {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .panel-card {
        padding: 14px 14px 16px;
    }

    .admin-table th,
    .admin-table td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .detail-table,
    .detail-table tbody,
    .detail-table tr,
    .detail-table th,
    .detail-table td {
        display: block;
        width: 100% !important;
    }

    .detail-table tr {
        padding: 12px;
        border-bottom: 1px solid #eef3f7;
    }

    .detail-table tr:last-child {
        border-bottom: 0;
    }

    .detail-table th,
    .detail-table td {
        padding: 0;
        border: 0;
        background: transparent;
        white-space: normal;
    }

    .detail-table th {
        margin-bottom: 6px;
        color: var(--app-text-faint);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .detail-table td {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tbody tr {
        padding: 12px;
        border-bottom: 1px solid #eef3f7;
    }

    .table-mobile-cards tbody tr:last-child {
        border-bottom: 0;
    }

    .table-mobile-cards td {
        padding: 0 0 8px;
        border: 0;
        white-space: normal;
    }

    .table-mobile-cards td:last-child {
        padding-bottom: 0;
    }

    .table-mobile-cards td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--app-text-faint);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .table-mobile-cards td[data-label="操作"]::before {
        margin-bottom: 8px;
    }

    .module-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-stats {
        margin-bottom: 18px !important;
    }

    .dashboard-chart-board {
        height: 210px;
        gap: 10px;
        padding-top: 12px;
    }

    .dashboard-chart-board .chart-bar-wrap {
        height: 150px;
    }

    .dashboard-chart-board .chart-bar-item {
        min-width: 28px;
        gap: 8px;
    }

    .dashboard-chart-board .chart-bar-label {
        font-size: 0.72rem;
    }

    .dashboard-todo-list {
        gap: 10px;
    }

    .dashboard-todo-list .todo-item {
        padding: 12px 0;
        gap: 8px;
    }

    .dashboard-todo-list .todo-item-type {
        height: auto;
        width: fit-content;
        min-width: 52px;
        padding: 5px 8px;
    }

    .dashboard-todo-list .todo-item-title {
        margin-bottom: 2px;
        font-size: 0.92rem;
    }

    .dashboard-todo-list .todo-item-desc,
    .dashboard-todo-list .todo-item-time {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .dashboard-records-card .table-toolbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-records-card .panel-tabs {
        width: 100%;
    }

    .dashboard-records-card .panel-tabs span {
        flex: 1;
        justify-content: center;
        display: inline-flex;
    }

    .dashboard-records-card .table-toolbar .btn {
        width: 100%;
    }

    .dashboard-module-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-module-grid .module-card {
        padding: 14px;
    }

    .dashboard-notice-list {
        gap: 10px;
    }

    .dashboard-notice-list .notice-item {
        padding: 10px 0;
        gap: 10px;
    }

    .admin-user-role,
    .admin-header-subtitle {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-panel-visual {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-form-options .form-check-label,
    .login-form-tip,
    .auth-form-footer {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .dashboard-chart-board {
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 10px;
    }

    .dashboard-chart-board .chart-bar-item {
        min-width: 24px;
    }

    .dashboard-chart-board .chart-bar-label {
        font-size: 0.68rem;
    }
}

/* ---- 系统设置 Logo 预览 ---- */
.setting-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6fc;
    border: 1px dashed var(--app-border-strong);
}

.setting-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.setting-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--app-text-faint);
    font-size: 0.78rem;
}

.setting-logo-placeholder i {
    font-size: 1.6rem;
    color: var(--app-primary);
}
