/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --primary-dark: #0066D6;
    --primary-light: #E8F0FE;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --text-main: #1d1d1f;
    --text-sub: #86868b;
    --bg-page: #F2F2F7;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --border: #E5E5EA;
    --border-light: rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --sidebar-bg: rgba(28, 28, 30, 0.82);
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(255, 255, 255, 0.12);
    --topbar-bg: rgba(255, 255, 255, 0.72);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: var(--primary); }
ul, ol { list-style: none; }

/* ==================== 登录页面样式 ==================== */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* 全页面鸟瞰图背景 */
.login-bg {
    position: fixed;
    inset: 0;
    background-color: #d7ddd8;
    background-image: url('/static/images/birdview.jpg?v=20261018_login_bg_2560');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* 品牌内容叠加在背景上 - 左下角 */
.login-brand {
    position: fixed;
    left: 60px;
    bottom: 60px;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    max-width: 400px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.login-card-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #17665f;
}

.login-card-logo {
    display: block;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
}

.login-card-brand-name {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.login-card-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-card-brand-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 2px;
    color: #607d77;
    white-space: nowrap;
}

.login-body .login-brand-header {
    padding-bottom: 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(23, 102, 95, 0.14);
}

.logo-icon {
    background: rgba(255, 255, 255, 0.95);
    color: #0d9488;
    font-size: 16px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.brand-tagline h2 {
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.brand-tagline h2 span {
    display: block;
    white-space: nowrap;
}

.brand-tagline p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 登录容器 - 居中 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 登录卡片 - iOS 毛玻璃 */
.login-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 登录表单 */
.card-form {
    padding: 40px;
}

.form-header {
    margin-bottom: 24px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #D4F8E0;
    color: #0A6C3A;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.security-icon {
    font-size: 13px;
}

.form-title {
    font-size: 26px;
    color: var(--text-main);
    margin-bottom: 4px;
    font-weight: 700;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 6px;
    font-weight: 400;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group > label {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.input-icon {
    flex-shrink: 0;
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    pointer-events: none;
}

.input-wrapper input {
    flex: 1;
    height: 100%;
    padding: 0 12px 0 0;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    background: transparent;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-sub);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #0d9488;
    border-color: #0d9488;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.forgot-link {
    color: #0d9488;
    font-size: 12px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(13, 148, 136, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 登录页底部提示 */
.login-tip {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: var(--text-sub);
}

.login-tip span {
    color: #0d9488;
    font-weight: 500;
}

/* ============ 忘记密码弹窗 ============ */
.forgot-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.forgot-modal.active {
    display: flex;
}

.forgot-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.forgot-modal-card {
    position: relative;
    width: 420px;
    max-width: 92vw;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: forgotSlideIn 0.3s ease;
}

@keyframes forgotSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.forgot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.forgot-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.forgot-modal-close {
    font-size: 26px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    transition: color 0.2s;
}

.forgot-modal-close:hover {
    color: #ef4444;
}

.forgot-modal-body {
    padding: 24px;
}

/* 步骤指示器 */
.forgot-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 10px;
}

.forgot-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    transition: all 0.3s;
}

.forgot-step.active {
    opacity: 1;
}

.forgot-step.done .step-num {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
}

.forgot-step.done .step-label {
    color: #0d9488;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.forgot-step.active .step-num {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

.step-label {
    font-size: 11px;
    color: var(--text-sub);
    white-space: nowrap;
}

.forgot-step.active .step-label {
    color: #0d9488;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.step-line.active {
    background: #14b8a6;
}

/* 步骤内容 */
.forgot-step-content .form-group {
    margin-bottom: 18px;
}

.forgot-next-btn {
    margin-top: 8px;
    height: 42px;
    font-size: 14px;
    letter-spacing: 2px;
}

.forgot-next-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-sub);
    background: #f0f9ff;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #0ea5e9;
    line-height: 1.5;
}

/* 验证码输入行 */
.code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.code-input-wrapper {
    flex: 1;
}

.btn-send-code {
    flex-shrink: 0;
    width: 110px;
    height: 42px;
    border: 1.5px solid #0d9488;
    border-radius: 8px;
    background: #fff;
    color: #0d9488;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
    background: #0d9488;
    color: #fff;
}

.btn-send-code:disabled {
    border-color: var(--border);
    color: var(--text-sub);
    cursor: not-allowed;
    background: #f5f5f5;
}

.btn-send-code.counting {
    border-color: var(--border);
    color: var(--text-sub);
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 成功提示 */
.forgot-success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.forgot-success-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 6px;
}

.forgot-success-hint {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0 0 24px;
}

.forgot-success-hint {
    text-align: center;
}

#forgotDone .forgot-next-btn {
    margin-top: 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-brand {
        display: none;
    }
    .login-card-logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
    .login-card-brand {
        gap: 12px;
    }
    .login-card-brand-name {
        font-size: 21px;
        letter-spacing: 1px;
    }
    .login-card {
        width: 100%;
        max-width: 360px;
    }
    .card-form {
        padding: 28px;
    }
    .forgot-modal-card {
        width: 100%;
        max-width: 340px;
    }
    .forgot-steps {
        gap: 2px;
    }
    .step-label {
        font-size: 10px;
    }
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { opacity: 0.88; }

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { opacity: 0.88; }

.btn-secondary {
    background: var(--text-sub);
    color: #fff;
}
.btn-secondary:hover { opacity: 0.88; }

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover { opacity: 0.88; }

.btn-info {
    background: #5AC8FA;
    color: #fff;
}
.btn-info:hover { opacity: 0.88; }

/* 提示信息 */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}
.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}
.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* 登录页底部提示 */
.login-tip {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-sub);
}

.login-tip span {
    color: #0d9488;
    font-weight: 500;
}

/* 加载中 */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-hero {
        min-height: 200px;
    }
    .hero-content {
        padding: 30px;
    }
    .hero-tagline h2 {
        font-size: 24px;
    }
    .login-form-section {
        padding: 30px 20px;
    }
}

/* ==================== 后台布局样式 ==================== */
.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 - iOS 毛玻璃风格 */
.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: rgba(235, 235, 240, 0.9);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.sidebar-header .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-header span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.sidebar-header .sidebar-brand-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 44px;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(235, 235, 240, 0.85);
    font-size: 14px;
    font-weight: 400;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
    border-radius: 0;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-menu a.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 500;
    border-left-color: var(--primary);
}

.sidebar-menu .menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* 二级菜单 */
.menu-group {
    width: 100%;
}

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(235, 235, 240, 0.85);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
}

.menu-group-title:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.menu-group-title .menu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.menu-group.expanded .menu-group-title .menu-arrow {
    transform: rotate(180deg);
}

.menu-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.25);
}

.menu-group.expanded .menu-submenu {
    display: block;
}

.menu-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 50px;
    color: rgba(200, 200, 210, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
}

.menu-submenu a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.menu-submenu a.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: var(--primary);
}

.menu-submenu .sub-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* 三级菜单 */
.menu-sub-group {
    width: 100%;
}

.menu-sub-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 36px;
    color: rgba(200, 200, 210, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
}

.menu-sub-title:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.menu-sub-title .menu-arrow.small {
    margin-left: auto;
    font-size: 9px;
    transition: transform 0.3s;
}

.menu-sub-group.expanded .menu-sub-title .menu-arrow.small {
    transform: rotate(90deg);
}

.menu-sub-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.3);
}

.menu-sub-group.expanded .menu-sub-submenu {
    display: block;
}

.menu-sub-submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 56px;
    color: rgba(180, 180, 190, 0.6);
    font-size: 12.5px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
}

.menu-sub-submenu a:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.menu-sub-submenu a.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: var(--primary);
}

.menu-sub-submenu .sub-icon-sm {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* 顶部栏 - iOS 毛玻璃 */
.topbar {
    height: 60px;
    background: var(--topbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.topbar-user .user-name {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.topbar-user .user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.topbar-user .user-dept-pos {
    font-size: 12px;
    color: var(--text-sub);
    background: var(--bg-page);
    padding: 3px 10px;
    border-radius: 9px;
    margin-right: 6px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user .btn-logout {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    background: var(--bg-page);
    color: var(--text-sub);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-user .btn-logout:hover {
    background: var(--border);
    color: var(--danger);
}

.topbar-user .btn-logout:active {
    transform: scale(0.97);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ==================== 卡片/表格样式 ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 0;
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-page);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table td {
    padding: 13px 16px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
    background: rgba(0, 122, 255, 0.03);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* 标签 - iOS 药丸 */
.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue   { background: #D6EBFF; color: #0040A0; }
.tag-green  { background: #D4F8E0; color: #0A6C3A; }
.tag-orange { background: #FFE4CC; color: #B84800; }
.tag-red    { background: #FFD6D6; color: #A01818; }
.tag-purple { background: #E8DCFF; color: #5800A0; }
.tag-gray   { background: #E8E8ED; color: #3A3A3C; }

/* ==================== 弹窗样式 - iOS Sheet ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    animation: iosSheetIn 0.3s cubic-bezier(0.32, 1, 0.23, 1);
}

@keyframes iosSheetIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: var(--bg-page);
    border: none;
    font-size: 18px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.modal-close:hover { background: var(--border); color: var(--danger); }
.modal-close:active { transform: scale(0.92); }

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* 表单弹窗内的 select */
.form-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* 表单弹窗内的 input（含 text/number/date） */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="phone"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

/* 日期输入框在各浏览器中样式统一 */
.form-group input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="phone"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.form-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.6;
}

/* 表单悬浮效果 */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

/* 按钮（非全宽） */
.btn-default {
    background: var(--bg-page);
    color: var(--text-main);
}
.btn-default:hover { background: var(--border); }
.btn-default:active { transform: scale(0.97); }

.btn-primary:not(.w-full) {
    width: auto;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
    font-size: 14px;
}

/* ==================== Dashboard 数据卡片 ==================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon.blue   { background: #D6EBFF; color: #007AFF; }
.stat-card-icon.green  { background: #D4F8E0; color: #34C759; }
.stat-card-icon.orange { background: #FFE4CC; color: #FF9500; }
.stat-card-icon.red    { background: #FFD6D6; color: #FF3B30; }
.stat-card-icon.purple { background: #E8DCFF; color: #5856D6; }
.stat-card-icon.teal   { background: #CFF5F0; color: #5AC8FA; }

.stat-card-info .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-card-info .stat-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
}

/* ==================== 列表页数据卡片（与页面模板 stats-grid 对齐） ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
}
.stat-grid .stat-card,
.stats-grid .stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    border: 1px solid var(--border-light);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-info .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}
.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
}

/* 图表网格 */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--border-light);
}

.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.chart-box {
    height: 260px;
}

/* ==================== 房态图网格 ==================== */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.room-cell {
    aspect-ratio: 1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.32, 1, 0.23, 1), box-shadow 0.2s;
    color: #fff;
    font-weight: 600;
    user-select: none;
}

.room-cell:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.room-cell:active {
    transform: scale(0.96);
}

.room-cell .room-num {
    font-size: 20px;
}

.room-cell .room-status {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.room-cell .room-count {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.room-cell .room-names {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 房态颜色 */
.room-empty   { background: #22c55e; }
.room-booked  { background: #f59e0b; }
.room-occupied { background: #ef4444; }
.room-leave   { background: #8b5cf6; }
.room-repair  { background: #6b7280; }

/* 房态图例 */
.room-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-sub);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ============ 工作台样式 ============ */
.workbench-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.shortcut-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.shortcut-btn:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.shortcut-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}
.shortcut-label {
    font-size: 12px;
    color: #64748b;
}

.workbench-task-stats .card-body {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
}
.task-stat-item {
    text-align: center;
}
.task-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}
.task-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}
.filter-tab {
    padding: 4px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab.active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.filter-tab:hover:not(.active) {
    color: #334155;
}

.row-done {
    opacity: 0.6;
}
.row-done td:nth-child(2) {
    text-decoration: line-through;
}

.btn-link {
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
    padding: 0 6px;
}
.btn-link:hover {
    text-decoration: underline;
}

/* ============ 表单样式 ============ */
.form-group {
    margin-bottom: 14px;
}
.form-label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==================== 全局高端视觉统一（不改变业务结构） ==================== */
:root {
    --primary: #147d78;
    --primary-dark: #0e625f;
    --primary-light: #e8f5f3;
    --success: #24856f;
    --warning: #b78335;
    --danger: #c45d59;
    --text-main: #202b36;
    --text-sub: #748292;
    --bg-page: #f3f6f8;
    --bg-card: #fff;
    --bg-glass: rgba(255,255,255,.84);
    --border: #dce4e9;
    --border-light: rgba(33, 55, 71, .09);
    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 22px;
    --shadow: 0 2px 8px rgba(28, 48, 62, .045), 0 10px 28px rgba(28,48,62,.035);
    --shadow-lg: 0 18px 54px rgba(28, 48, 62, .13), 0 2px 10px rgba(28,48,62,.05);
    --sidebar-bg: rgba(29, 43, 52, .97);
    --sidebar-hover: rgba(255,255,255,.075);
    --sidebar-active: rgba(48, 160, 148, .2);
    --topbar-bg: rgba(255,255,255,.86);
}

body { background: var(--bg-page); color: var(--text-main); }
.layout { background: var(--bg-page); }
.sidebar {
    width: 252px;
    background: linear-gradient(180deg, #243640 0%, #1d2b34 48%, #1b2932 100%);
    border-right: 1px solid rgba(255,255,255,.075);
    box-shadow: 8px 0 28px rgba(27,41,50,.07);
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar-header {
    height: 72px;
    padding: 0 21px;
    border-bottom: 1px solid rgba(255,255,255,.075);
    margin-bottom: 8px;
}
.sidebar-header .logo-icon {
    background: linear-gradient(145deg, #178c83, #106a66);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(8,103,98,.3);
}
.sidebar-header > span {
    font-size: 18px;
    letter-spacing: 1px;
}
.sidebar-menu { padding: 9px 11px 20px; }
.sidebar-menu a {
    min-height: 43px;
    margin: 3px 0;
    padding: 10px 13px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(232,240,242,.78);
    font-weight: 450;
}
.sidebar-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-menu a.active {
    color: #f3fffd;
    background: linear-gradient(100deg, rgba(39,149,139,.25), rgba(39,149,139,.11));
    border-color: rgba(127,211,200,.16);
    border-left-color: #65c7bb;
    box-shadow: inset 0 1px rgba(255,255,255,.05);
}
.menu-icon, .sub-icon, .sub-icon-sm { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-icon { width: 19px; height: 19px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.menu-icon .nav-icon { width: 19px; height: 19px; color: #a9c7c9; }
.active .menu-icon .nav-icon { color: #84dbcf; }
.menu-group-title, .menu-sub-title {
    border-radius: 10px;
    margin: 3px 0;
    padding-top: 10px;
    padding-bottom: 10px;
    color: rgba(225,235,238,.78);
}
.menu-group-title:hover, .menu-sub-title:hover { background: rgba(255,255,255,.065); color: #fff; }
.menu-submenu, .menu-sub-submenu { background: rgba(7,17,22,.16); border-radius: 11px; margin: 2px 0 5px; }
.menu-submenu a, .menu-sub-submenu a { border-radius: 9px; margin: 2px 6px; }
.menu-submenu .sub-icon .nav-icon { width: 17px; height: 17px; color: #91b7b8; }
.menu-sub-submenu .sub-icon-sm .nav-icon { width: 15px; height: 15px; color: #87a6aa; }
.topbar {
    height: 68px;
    padding: 0 28px;
    background: var(--topbar-bg);
    border-bottom: 1px solid rgba(38,63,78,.09);
    box-shadow: 0 4px 18px rgba(28,48,62,.025);
}
.topbar-title { font-size: 16px; letter-spacing: .01em; }
.topbar-user { gap: 13px; }
.topbar-user .avatar {
    background: linear-gradient(145deg, #d5f2ed, #b6e4dc);
    color: #126f69;
    border: 1px solid rgba(20,125,120,.12);
    box-shadow: 0 3px 10px rgba(20,125,120,.08);
}
.topbar-user .btn-logout { border: 1px solid var(--border-light); background: #f7f9fa; }
.action-icon { width: 19px; height: 19px; vertical-align: middle; fill: none; stroke: #526a76; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-user button:hover, .topbar-user a:hover { background: var(--primary-light) !important; }
.content-area { padding: 24px 28px 34px; scroll-behavior: smooth; }
.card, .sales-target-panel, .chart-card {
    border: 1px solid rgba(47,75,91,.1);
    border-radius: 17px;
    box-shadow: var(--shadow);
}
.card-header { padding: 17px 21px; border-bottom-color: rgba(47,75,91,.09); }
.card-header h3 { letter-spacing: -.015em; }
.data-table th { background: #f4f8f7; color: #748590; border-bottom-color: #e3eae9; }
.data-table td { border-bottom-color: rgba(47,75,91,.075); }
.data-table tr:hover td { background: rgba(20,125,120,.035); }
.btn {
    border-radius: 11px;
    font-weight: 560;
    letter-spacing: .005em;
    box-shadow: 0 2px 5px rgba(25,48,59,.06);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-primary { background: linear-gradient(135deg, #16877f, #116f6b); }
.btn-primary:hover { background: linear-gradient(135deg, #11756f, #0d5f5c); box-shadow: 0 5px 14px rgba(17,111,107,.19); }
.btn-success { background: #278575; }
.btn-secondary { background: #72818b; }
.form-input, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
    border-color: #d7e0e5;
    border-radius: 10px;
}
.form-input:focus, input:focus, select:focus, textarea:focus {
    border-color: #61aaa2;
    box-shadow: 0 0 0 3px rgba(32,137,128,.1);
}
.modal-content, .modal-card, .modal-dialog > div {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
    .sidebar { width: 220px; }
    .content-area { padding: 18px; }
    .topbar { padding: 0 18px; }
}
@media (max-width: 640px) {
    .sidebar { width: 68px; }
    .sidebar-header { justify-content: center; padding: 0 8px; }
    .sidebar-header > span, .sidebar-menu a:not(:has(.menu-icon)) { display: none; }
    .sidebar-menu { padding-left: 8px; padding-right: 8px; }
    .sidebar-menu a { justify-content: center; padding: 10px 6px; font-size: 0; }
    .sidebar-menu .menu-icon { margin: 0; }
    .sidebar-menu .menu-icon .nav-icon { width: 21px; height: 21px; }
    .menu-group-title { justify-content: center; padding-left: 6px; padding-right: 6px; font-size: 0; }
    .menu-group-title .menu-arrow { display: none; }
    .topbar { height: 60px; padding: 0 12px; }
    .topbar-user .user-info-wrapper, .topbar-user .btn-logout { display: none; }
    .content-area { padding: 13px; }
}

/* 菜单辨识度增强：区分一级模块、分组与当前页面 */
.sidebar-menu {
    padding: 12px 10px 24px;
}
.sidebar-menu > a {
    min-height: 46px;
    padding: 9px 12px;
    margin: 4px 0;
    gap: 12px;
    position: relative;
    color: rgba(222, 234, 236, .76);
    font-size: 13.5px;
    letter-spacing: .015em;
}
.sidebar-menu > a > .menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(202, 225, 226, .075);
    color: #a9c9ca;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar-menu > a:hover > .menu-icon {
    color: #e4fffa;
    background: rgba(98, 190, 177, .16);
    transform: translateY(-1px);
}
.sidebar-menu > a.active {
    background: linear-gradient(105deg, rgba(37, 141, 132, .27), rgba(35, 109, 106, .12));
    border-color: rgba(127, 211, 200, .19);
    color: #f5fffd;
    box-shadow: inset 0 1px rgba(255,255,255,.045), 0 5px 16px rgba(5,25,28,.12);
}
.sidebar-menu > a.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #70d2c4;
    box-shadow: 0 0 12px rgba(112,210,196,.38);
}
.sidebar-menu > a.active > .menu-icon {
    background: linear-gradient(145deg, rgba(91,194,180,.24), rgba(48,145,138,.15));
    color: #91e0d3;
}
.sidebar-menu > .menu-group {
    margin: 7px 0 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(205,225,229,.075);
}
.sidebar-menu > .menu-group:first-of-type { border-top: 0; }
.menu-group-title {
    min-height: 46px;
    margin: 1px 0;
    padding: 8px 12px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(224,235,238,.82);
    font-size: 13.5px;
    font-weight: 560;
    letter-spacing: .015em;
    position: relative;
}
.menu-group-title > .menu-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(180,209,212,.12);
    border-radius: 9px;
    background: rgba(203,226,228,.07);
    color: #a9cccd;
}
.menu-group-title .menu-arrow {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(208,226,228,.11);
    border-radius: 7px;
    background: rgba(213,231,232,.055);
    color: #a3b9bd;
    font-size: 9px;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}
.menu-group-title:hover { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.045); }
.menu-group.expanded > .menu-group-title {
    background: linear-gradient(100deg, rgba(50,144,136,.16), rgba(255,255,255,.018));
    border-color: rgba(104,186,177,.12);
    color: #edfffc;
}
.menu-group.expanded > .menu-group-title > .menu-icon {
    background: rgba(60,166,155,.2);
    border-color: rgba(118,209,198,.2);
    color: #8bd8ce;
}
.menu-group.expanded > .menu-group-title .menu-arrow {
    color: #9ce0d7;
    background: rgba(59,154,146,.16);
    transform: rotate(180deg);
}
.menu-submenu {
    position: relative;
    margin: 4px 0 8px 13px;
    padding: 5px 5px 7px 8px;
    border: 1px solid rgba(195,220,222,.075);
    border-radius: 13px;
    background: linear-gradient(155deg, rgba(8,22,28,.27), rgba(11,27,33,.14));
}
.menu-submenu::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(111,177,175,.23), rgba(111,177,175,.035));
    pointer-events: none;
}
.menu-submenu > a {
    min-height: 39px;
    margin: 2px 0;
    padding: 7px 9px 7px 13px;
    gap: 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    color: rgba(202,220,223,.72);
    font-size: 12.5px;
}
.menu-submenu > a > .sub-icon { width: 21px; height: 21px; color: #87aeb1; }
.menu-submenu > a:hover { background: rgba(255,255,255,.045); color: #edf8f8; }
.menu-submenu > a.active {
    position: relative;
    background: linear-gradient(105deg, rgba(39,142,133,.28), rgba(24,99,96,.17));
    border-color: rgba(117,210,199,.28);
    color: #f1fffd;
    box-shadow: inset 0 1px rgba(255,255,255,.055), 0 4px 11px rgba(1,20,23,.15);
}
.menu-submenu > a.active::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #82dbd0;
    box-shadow: 0 0 9px rgba(130,219,208,.65);
}
.menu-submenu > a.active > .sub-icon { color: #9be2d9; }
.menu-sub-group { margin: 2px 0; }
.menu-sub-title {
    min-height: 39px;
    margin: 1px 0;
    padding: 6px 8px 6px 5px;
    gap: 9px;
    border-radius: 9px;
    color: rgba(205,222,225,.78);
    font-size: 12.5px;
    font-weight: 540;
}
.menu-sub-title > .sub-icon {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(182,213,214,.1);
    border-radius: 7px;
    background: rgba(203,226,228,.055);
    color: #9fc1c3;
}
.menu-sub-title .menu-arrow.small {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(220,235,236,.045);
    color: #8aa3a8;
    font-size: 8px;
}
.menu-sub-group.expanded > .menu-sub-title { color: #effcfa; background: rgba(45,132,128,.115); }
.menu-sub-group.expanded > .menu-sub-title > .sub-icon { color: #8bd4cd; background: rgba(45,151,142,.16); }
.menu-sub-submenu {
    margin: 2px 0 6px 10px;
    padding: 3px 3px 4px 7px;
    border-left: 1px solid rgba(126,179,180,.16);
    border-radius: 0 9px 9px 0;
    background: rgba(5,17,22,.13);
}
.menu-sub-submenu > a {
    min-height: 34px;
    margin: 1px 0;
    padding: 6px 8px;
    gap: 9px;
    border-radius: 8px;
    color: rgba(190,212,216,.67);
}
.menu-sub-submenu > a > .sub-icon-sm { width: 19px; height: 19px; color: #799ea2; }
.menu-sub-submenu > a.active {
    color: #effcf9;
    background: rgba(43,139,131,.2);
    border-color: rgba(116,198,190,.17);
}
.menu-sub-submenu > a.active > .sub-icon-sm { color: #8cd5cb; }
.sidebar-menu > div[style*="border-top"] { border-color: rgba(204,226,228,.08) !important; margin: 11px 10px !important; }
/* 用低饱和色标识模块类型；选中项统一回到品牌青绿 */
.menu-group-title[onclick*="'marketing'"] > .menu-icon,
.menu-group-title[onclick*="'marketing_support'"] > .menu-icon { color:#8bd8ce; background:rgba(47,161,149,.13); }
.menu-group-title[onclick*="'portrait'"] > .menu-icon,
.menu-group-title[onclick*="'profile_gov'"] > .menu-icon { color:#b2c9a2; background:rgba(131,165,105,.12); }
.menu-group-title[onclick*="'supervision'"] > .menu-icon,
.menu-group-title[onclick*="'approval'"] > .menu-icon { color:#e1b784; background:rgba(191,132,69,.12); }
.menu-group-title[onclick*="'analytics'"] > .menu-icon,
.menu-group-title[onclick*="'content_platform'"] > .menu-icon { color:#91c9df; background:rgba(71,149,185,.12); }
.menu-group-title[onclick*="'logistics'"] > .menu-icon,
.menu-group-title[onclick*="'toolbox'"] > .menu-icon { color:#c3b4e3; background:rgba(133,105,179,.12); }
.menu-group-title[onclick*="'hr'"] > .menu-icon,
.menu-group-title[onclick*="'incentive'"] > .menu-icon { color:#dfb8c2; background:rgba(172,98,124,.12); }
.menu-group-title[onclick*="'mini_points'"] > .menu-icon,
.menu-group-title[onclick*="'broker_channels'"] > .menu-icon { color:#e0ce91; background:rgba(176,147,71,.12); }
.menu-group-title[onclick*="'std_output'"] > .menu-icon { color:#b2c7de; background:rgba(100,143,184,.12); }
.menu-group.expanded > .menu-group-title > .menu-icon,
.menu-group-title:hover > .menu-icon { color:#9ce0d7; background:rgba(45,151,142,.19); }
@media (max-width: 640px) {
    .sidebar-menu > a > .menu-icon, .menu-group-title > .menu-icon { width: 34px; height: 34px; }
    .sidebar-menu > .menu-group { padding-top: 4px; }
}
