/* =====================================================
   热工室奖金分配系统 - 样式表 (全面美化版)
   ===================================================== */

/* -- 全局变量 -- */
:root {
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --primary-blue: #0074D9;
    --primary-dark: #005ba0;
    --primary-light: #3399e6;
    --danger-red: #ef4444;
    --success-green: #22c55e;
    --warning-orange: #f59e0b;
    --info-cyan: #06b6d4;
    --purple: #8b5cf6;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* -- 全局 -- */
body {
    background: var(--bg-light);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* -- 后台导航栏 -- */
/* -- 导航栏美化 -- */
.navbar-dark.bg-dark {
    background: #0074D9 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    border: none;
    padding: 0;
    position: relative;
}

.navbar .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 18px;
    color: #fff !important;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.navbar .navbar-brand i {
    font-size: 24px;
    color: #fff;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 400;
    padding: 16px 16px;
    border-radius: 0;
    transition: all 0.2s;
    margin: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    transform: none;
}

.navbar .nav-link.active::before {
    width: 80%;
    background: #fff;
}

/* 下拉菜单美化 */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s;
    color: var(--text-primary) !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(90deg, #e8f4ff, #f0f9ff);
    color: var(--primary-blue) !important;
    padding-left: 24px;
}

.navbar .dropdown-item i {
    font-size: 16px;
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}

/* 用户信息导航链接美化 */
.navbar .nav-item:last-child .nav-link {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-right: 8px;
    padding: 10px 16px;
}

.navbar .nav-item:last-child .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 徽章美化 */
.navbar .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 1199.98px) {
    .navbar .nav-link::before {
        display: none;
    }
    
    .navbar .nav-link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.1);
    }
}

/* -- 卡片样式 -- */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 项目卡片悬停效果 - 淡色边框 */
.project-card {
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: rgba(24, 144, 255, 0.3);
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
    transform: translateY(-3px);
}

.card-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    border-radius: 0;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
    font-size: 17px;
    padding: 18px 20px;
}

.card-header.bg-success {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-header.bg-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-header.bg-danger {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-header.bg-dark {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
    border: none;
}

.card-body {
    padding: 20px;
}

/* -- 统计卡片 -- */
.stat-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .card-body {
    padding: 24px 28px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    font-weight: 500;
}

/* 在职人员卡：见下方"4 张主任统计卡统一规则"。 */

.stat-card.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
}

/* 活跃项目卡：见下方"4 张主任统计卡统一规则"。 */

.stat-card.bg-success {
    background: linear-gradient(135deg, var(--success-green), #16a34a) !important;
}

/* 科室总工天卡：见下方"4 张主任统计卡统一规则"。 */

/* 年度科室总工天卡：见下方"4 张主任统计卡统一规则"。 */

.stat-card.bg-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
}

.stat-card.bg-danger {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
}

/* 4 张主任统计卡统一规则：详情常驻显示、强制等高（与同行最高一张对齐）、无悬停交互。 */
.active-staff-card,
.active-project-card,
.department-workday-card,
.department-year-workday-card {
    cursor: default;
    height: 100%;          /* 撑满 col-md-3，让 row 内 4 张高度对齐 */
    width: 100%;
    min-height: 280px;     /* 最小高度，避免空状态显得过低 */
}

.active-staff-card .card-body,
.active-project-card .card-body,
.department-workday-card .card-body,
.department-year-workday-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.active-staff-card .active-staff-hover-list,
.active-project-card .active-project-hover-list,
.department-workday-card .department-workday-hover-list,
.department-year-workday-card .department-year-workday-hover-list {
    display: grid;
    gap: 4px;
    max-height: none;
    margin-top: 12px;
    flex-grow: 1;          /* 自动填满 card-body 剩余高度，让 4 张卡视觉高度一致 */
    overflow: hidden;
    opacity: 1;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.5;
    align-content: start; /* 内容少时靠上对齐，不拉伸 grid 行 */
}

.active-staff-card .active-staff-role,
.active-project-card .active-project-stage,
.department-workday-card .department-workday-type,
.department-year-workday-card .department-year-workday-type {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}

.active-staff-card:focus,
.active-project-card:focus,
.department-workday-card:focus,
.department-year-workday-card:focus {
    outline: 3px solid rgba(255, 255, 255, 0.56);
    outline-offset: 2px;
}

/* -- 数据表格 -- */
.table {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 0;
}

.table th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    font-weight: 700;
    white-space: nowrap;
    border-color: var(--border-color);
    padding: 14px 12px;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 12px 10px;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background 0.2s;
}

.table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border-color: var(--border-color);
}

.table-sm th,
.table-sm td {
    padding: 10px 8px;
    font-size: 13px;
}

/* 大型表格优化 */
.table-responsive .table {
    font-size: 13px;
}

.table-responsive .table th {
    font-size: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    padding: 12px 8px;
}

.table-responsive .table td {
    font-size: 13px;
    padding: 10px 8px;
}

.table-responsive .table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.table-responsive .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%);
}

/* -- 表格总计行 -- */
.table-primary {
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%) !important;
    font-weight: 700;
}

.table-light {
    background: #f8fafc !important;
}

/* -- 奖金/工天/��数样式 -- */
.bonus-amount {
    font-weight: 800;
    color: var(--danger-red);
    font-size: 15px;
}

.workday-num {
    font-weight: 700;
    color: var(--primary-blue);
}

.coefficient {
    color: var(--purple);
    font-weight: 700;
}

.highlight-row {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%) !important;
}

/* -- 标签徽章 --
   保持 Bootstrap 语义色（成功/警告/危险/信息/次要 各不相同），
   不使用 !important 覆盖，避免紧急/重要/普通等标签失去颜色区分度。 */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}

/* -- 按钮样式 -- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004d99);
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: none;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.3);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: none;
    background: transparent;
}

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

.btn-outline-danger {
    color: var(--danger-red);
    border: none;
    background: transparent;
}

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

/* -- 表单样式 -- */
.form-control {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all 0.3s;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

/* 自定义下拉列表的输入框focus样式 - 不要添加box-shadow */
.custom-select-wrapper .form-control:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: none !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-select {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-select:hover {
    border-color: #cbd5e1;
}

/* -- Datalist下拉列表样式优化 -- */
input[list] {
    position: relative;
}

input[list]:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1) !important;
}

input[list]:hover {
    border-color: #cbd5e1;
}

/* 自定义datalist下拉菜单样式(适用于支持该特性的浏览器) */
input[list]::-list-item {
    margin: 0;
    padding: 8px 12px;
}

input[list]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* -- 页面标题区 -- */
.page-header {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8fafc 100%);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.page-header h4 {
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.5px;
}

/* -- 标签页导航 -- */
.nav-tabs {
    border: none;
    gap: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
    display: inline-flex;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    font-weight: 700;
    transform: translateY(-3px);
}

.nav-tabs .nav-link.active::before {
    opacity: 1;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    font-size: 17px;
}

.nav-pills .nav-link {
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* -- 模态框 -- */
.modal-content {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 18px 24px;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-orange), #d97706) !important;
    color: #fff;
}

.modal-header.bg-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    color: #fff;
}

.modal-body {
    color: var(--text-primary);
    padding: 24px;
}

.modal-footer {
    border-top: 2px solid var(--border-color);
    padding: 16px 24px;
}

/* -- 前台首页 -- */
.frontend-home {
    background: var(--bg-light);
}

.hero-banner {
    background: linear-gradient(135deg, #004080 0%, #0074D9 50%, #0099ff 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner .btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero-banner .btn-outline-primary:hover {
    background: #fff;
    color: var(--primary-blue);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-banner a:not(.btn) {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    display: inline-block;
}

.hero-banner a:not(.btn):hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 科室资源中心：与首页蓝色视觉体系统一 */
.department-resources-section {
    background: linear-gradient(180deg, #f4f9fe 0%, #edf5fc 100%);
    border-top: 1px solid #dbe9f5;
    border-bottom: 1px solid #dbe9f5;
    scroll-margin-top: 72px;
}
.resource-center-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.resource-center-kicker { margin-bottom: 6px; color: #0d6efd; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; }
.resource-center-heading h4 { color: #0d6efd; font-size: 25px; }
.resource-center-heading p { font-size: 14px; }
.department-resources-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.resource-category-nav { position: sticky; top: 76px; overflow: hidden; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.resource-category-nav-title { padding: 14px 16px; color: #fff; font-size: 15px; font-weight: 600; background: #0d6efd; }
.resource-category-nav-title i { font-size: 18px; }
.resource-category-link { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid #eef3f8; color: #405b74; font-size: 15px; font-weight: 600; text-decoration: none; transition: all .2s; }
.resource-category-link i { font-size: 18px; color: #0d6efd; }
.resource-category-link:last-child { border-bottom: 0; }
.resource-category-link:hover, .resource-category-link.active { padding-left: 20px; color: #0d6efd; background: #e9f5ff; }
.resource-category-link.active { box-shadow: inset 4px 0 0 #0d6efd; }
.resource-category-link span { margin-left: auto; min-width: 24px; padding: 3px 9px; border-radius: 999px; color: #55738e; background: #eaf1f7; font-size: 12px; font-weight: 700; text-align: center; }
.resource-category-link.active span { color: #0d6efd; background: #fff; box-shadow: inset 0 0 0 1px #0d6efd; }
.resource-category-content { min-width: 0; }
.resource-category-block { position: relative; margin-bottom: 18px; padding: 20px; overflow: hidden; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; }
.resource-category-block::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #0d6efd; }
.resource-category-block:last-child { margin-bottom: 0; }
.resource-category-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #153d67; }
.resource-category-title-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #0875c8; background: #e7f4ff; font-size: 18px; }
.resource-category-heading span { display: block; font-size: 16px; font-weight: 800; }
.resource-category-heading p { margin: 2px 0 0; color: #7890a5; font-size: 12px; }
.resource-category-heading small { margin-left: auto; padding: 4px 8px; border-radius: 9px; color: #66839b; background: #f0f6fa; font-size: 11px; font-weight: 600; white-space: nowrap; }
.resource-link-card { display: flex; align-items: flex-start; gap: 14px; min-height: 108px; padding: 18px; border: 1px solid #dceaf4; border-radius: 12px; background: #fff; color: var(--text-primary); text-decoration: none; transition: transform .22s, box-shadow .22s, border-color .22s; }
.resource-link-card:hover { transform: translateY(-4px); border-color: #5cb1e3; box-shadow: 0 14px 26px rgba(21, 109, 176, .18); color: var(--text-primary); }
.resource-link-icon { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #0879ca; background: linear-gradient(135deg, #e9f6ff, #c9e6fb); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(11,125,208,.08); }
.resource-link-body { min-width: 0; flex: 1; }
.resource-link-body h6 { margin: 2px 0 6px; color: #1c4163; font-size: 16px; font-weight: 700; line-height: 1.45; }
.resource-link-body p { display: -webkit-box; margin: 0; overflow: hidden; color: #6b8197; font-size: 14px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.resource-external-icon { margin-left: 6px; color: #5a9ed0; font-size: 12px; }
.resource-topic-card { position: relative; }
.resource-topic-card::after { content: '进入专题'; position: absolute; right: 12px; bottom: 10px; color: #4a92c7; font-size: 10px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.resource-topic-card:hover::after { opacity: 1; }
.resource-topic-count { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; color: #0b6cba; background: #e9f5ff; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(11,125,208,.12); }
.dr-cat-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 3px 9px; border-radius: 4px; color: #0d6efd; background: #e7f1ff; font-size: 12px; font-weight: 600; }
.dr-cat-meta i { font-size: 13px; }
.resource-topic-page { min-height: calc(100vh - 126px); background: linear-gradient(180deg, #f3f9ff, #eef5fb); }
.resource-back-link { display: inline-block; margin-bottom: 22px; color: #36759f; font-size: 14px; font-weight: 700; text-decoration: none; }
.resource-back-link:hover { color: #0074D9; }
.resource-topic-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; padding: 26px; border: 1px solid #dcebf7; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(29, 93, 151, .09); }
.resource-topic-hero-icon { display: flex; flex: 0 0 58px; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; color: #0879ca; background: linear-gradient(135deg, #def3ff, #c7e8ff); font-size: 28px; }
.resource-topic-category { margin-bottom: 4px; color: #4980a5; font-size: 12px; font-weight: 700; }
.resource-topic-hero h1 { margin: 0; color: #173e66; font-size: 25px; font-weight: 800; }
.resource-topic-hero p { margin: 5px 0 0; color: #8095a8; font-size: 13px; }
.resource-topic-total { display: flex; flex-direction: column; align-items: center; margin-left: auto; min-width: 88px; padding-left: 18px; border-left: 1px solid #e2edf5; color: #7190a7; font-size: 11px; }
.resource-topic-total strong { color: #0879ca; font-size: 28px; line-height: 1.1; }
.resource-empty-state { border: 1px dashed #9dbbd5; border-radius: var(--radius-md); color: #5a7890; background: rgba(255,255,255,.62); }
.resource-empty-state > i { font-size: 30px; color: #79a8ce; }
.resource-empty-state small { color: #7891a5; }
@media (max-width: 767.98px) { .resource-center-heading { align-items: start; } .department-resources-layout { grid-template-columns: 1fr; } .resource-category-nav { position: static; } .resource-category-heading { align-items: flex-start; } .resource-category-heading small { margin-top: 3px; } }

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-card-mini {
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    overflow: hidden;
}

.stat-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card-mini .stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-card-mini .stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.role-badge-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    min-width: 90px;
    transition: all 0.3s;
}

.role-badge-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.role-badge-card .role-count {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-blue);
}

.role-badge-card .role-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.announcement-card {
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    overflow: hidden;
}

.announcement-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.formula-box {
    border: 2px dashed var(--primary-blue);
    border-radius: var(--radius-md);
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-content {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* -- 登录页 -- */
.login-page {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    max-width: 950px;
    width: 100%;
}

.login-container {
    display: flex;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-white);
    border: none;
}

.login-brand {
    background: linear-gradient(135deg, #1e3a8a, #0074D9);
    color: #fff;
    padding: 50px 35px;
    width: 45%;
    display: flex;
    align-items: center;
}

.brand-content h2 {
    font-size: 24px;
    font-weight: 800;
}

.brand-features {
    font-size: 15px;
    opacity: 0.95;
}

.login-form-side {
    width: 55%;
    display: flex;
    align-items: center;
    padding: 40px;
}

/* -- 个人中心 -- */
.profile-header {
    background: linear-gradient(135deg, #1e3a8a, #0074D9);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    border: 4px solid rgba(255,255,255,0.3);
}

/* -- 公告列表 -- */
.announcement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 768px) { .announcement-list { grid-template-columns: 1fr; } }

.announcement-list .announcement-item {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
    display: flex; flex-direction: column; gap: 6px;
    height: 100%;
}
.announcement-list .announcement-item h6 { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.announcement-list .announcement-item p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.announcement-list .announcement-item small { margin-top: auto; color: var(--text-muted); font-size: 11px; }

.announcement-list .announcement-item:hover {
    border-color: #93c5fd;
    background: #f5faff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 110, 178, .12);
}

/* -- 通知已读/未读 -- */
.announcement-list .announcement-item { cursor: pointer; }
.announcement-list .announcement-item.announcement-unread {
    border-left: 3px solid #dc3545;
    background: #fff8f8;
}
.announcement-list .announcement-item.announcement-read {
    opacity: .82;
}
.announcement-list .announcement-item.announcement-read h6 { color: var(--text-secondary); font-weight: 500; }
.ann-unread-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #dc3545; display: inline-block; flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .18);
}
.announcement-read .ann-unread-dot { display: none; }

/* -- 快捷入口 -- */
.card-body .row.g-2 {
    margin: -10px;
}

.card-body .row.g-2 > * {
    padding: 10px;
}

.btn-outline-primary.w-100,
.btn-outline-success.w-100,
.btn-outline-info.w-100,
.btn-outline-warning.w-100,
.btn-outline-danger.w-100,
.btn-outline-secondary.w-100,
.btn-outline-dark.w-100 {
    padding: 14px 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.btn-outline-primary.w-100:hover,
.btn-outline-success.w-100:hover,
.btn-outline-info.w-100:hover,
.btn-outline-warning.w-100:hover,
.btn-outline-danger.w-100:hover,
.btn-outline-secondary.w-100:hover,
.btn-outline-dark.w-100:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* -- 日期选择器优化 (Flatpickr) -- */
/* Flatpickr自定义样式 */
.flatpickr-input {
    cursor: pointer !important;
}

.flatpickr-input:hover {
    border-color: var(--primary-blue) !important;
    background: #f8fbff;
}

.flatpickr-input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1) !important;
}

/* Flatpickr日历容器样式 */
.flatpickr-calendar {
    box-shadow: var(--shadow-lg) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
}

/* Flatpickr选中日期样式 */
.flatpickr-day.selected {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.flatpickr-day.selected:hover {
    background: var(--primary-dark) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-blue) !important;
}

.flatpickr-day:hover {
    background: #e8f4ff !important;
    border-color: #b3d9ff !important;
}

/* -- 小屏适配 -- */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-brand {
        display: none;
    }
    
    .login-form-side {
        width: 100%;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    .table-responsive .table {
        font-size: 13px;
    }
    
    .table-responsive .table th {
        font-size: 12px;
    }
    
    .table-responsive .table td {
        font-size: 13px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .hero-banner {
        padding: 40px 0;
    }
}

/* -- 打印样式 -- */
@media print {
    .navbar, .btn, footer, .card-header .btn {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .bonus-amount {
        color: #000;
    }
    
    .table th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* -- 滚动条美化 -- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-dark));
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), #1d4ed8);
}

/* -- 自定义下拉列表样式(与form-select一致) -- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-dropdown {
    position: fixed;
    background: #fff;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
    z-index: 1080;
    box-sizing: border-box;
}

.custom-select-dropdown.show {
    display: block;
}

.custom-select-dropdown .dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 14px;
}

.custom-select-dropdown .dropdown-item:hover {
    background: #e8f4ff;
    color: var(--primary-blue);
}

.custom-select-dropdown .dropdown-item.active {
    background: var(--primary-blue);
    color: #fff;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-dark));
    border-radius: 4px;
}

/* -- 加载动画 -- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* -- 行内编辑单元格 -- */
.editable-cell {
    cursor: pointer;
    transition: background-color 0.15s;
    position: relative;
}

.editable-cell:hover {
    background-color: rgba(0, 116, 217, 0.08) !important;
}

.editable-cell:hover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px dashed var(--primary-blue);
    pointer-events: none;
}

.editable-cell .form-control,
.editable-cell .form-select {
    padding: 2px 4px;
    font-size: inherit;
    height: auto;
    min-height: 24px;
}

.editable-cell .form-select {
    padding-right: 20px;
}

/* -- 整单元格可点击的复选框 -- */
.checkbox-cell {
    cursor: pointer;
}

.checkbox-cell .form-check-input,
.checkbox-cell .flow-checkbox {
    pointer-events: none;
    cursor: pointer;
}

/* 资源专题详情：统一后台卡片风格 */
.resource-topic-page { min-height: calc(100vh - 126px); background: #f4f7fb; }
.resource-topic-container { max-width: 1440px; }
.resource-topic-breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 10px; color: #8a9bad; font-size: 12px; }
.resource-topic-breadcrumb a { color: #397dad; font-weight: 600; text-decoration: none; }
.resource-topic-breadcrumb a:hover { color: #0074d9; }
.resource-topic-breadcrumb > i { color: #b9c8d5; font-size: 10px; }
.resource-topic-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 22px; border: 1px solid #d9e5f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgba(31, 70, 105, .08); }
.resource-topic-hero-icon { display: flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 9px; color: #0879ca; background: #e4f3ff; font-size: 23px; }
.resource-topic-heading { min-width: 0; }
.resource-topic-hero h1 { margin: 1px 0 0; color: #234a70; font-size: 20px; font-weight: 700; }
.resource-topic-hero p { margin: 4px 0 0; color: #758ba0; font-size: 12px; }
.resource-topic-category { color: #1682c7; font-size: 11px; font-weight: 700; }
.resource-topic-total { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 50px; margin-left: auto; padding-left: 16px; border-left: 1px solid #e0e9f1; color: #7e96aa; font-size: 11px; }
.resource-topic-total strong { color: #0879ca; font-size: 22px; line-height: 1; }
.resource-topic-list-header { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; color: #285a85; font-size: 14px; font-weight: 700; }
.resource-topic-list-header small { color: #93a4b4; font-size: 11px; font-weight: 400; }
.topic-detail-link-card { position: relative; display: flex; gap: 14px; min-height: 108px; padding: 18px 18px; overflow: hidden; border: 1px solid #dce6ef; border-radius: 10px; background: #fff; color: #294963; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.topic-detail-link-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(180deg,#0074d9,#005ba0); content: ''; opacity: 0; transition: opacity .2s; }
.topic-detail-link-card:hover { transform: translateY(-3px); border-color: #8bc6ea; box-shadow: 0 8px 22px rgba(24, 110, 178, .14); color: #294963; }
.topic-detail-link-card:hover::before { opacity: 1; }
.topic-detail-link-icon { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9px; color: #0074d9; background: linear-gradient(135deg,#e4f3ff,#d0e7fb); font-size: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.topic-detail-index { position: absolute; top: 10px; right: 14px; color: #b8ccdc; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.topic-detail-link-card h6 { margin: 2px 0 6px; color: #1e3a5a; font-size: 16px; font-weight: 700; line-height: 1.4; display: flex; align-items: center; gap: 5px; }
.topic-detail-link-card h6 .title-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-detail-link-card h6 i.arrow { color: #4a9cd0; font-size: 13px; opacity: .85; transition: transform .2s ease, opacity .2s; }
.topic-detail-link-card:hover h6 i.arrow { transform: translateX(3px); opacity: 1; }
.topic-detail-link-card h6 i.box-arrow { color: #4a9cd0; font-size: 11px; margin-left: 4px; }
.topic-detail-link-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #5b7184; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-detail-link-card .topic-source { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 9px; border-radius: 999px; color: #1682c7; background: #eaf4fc; font-size: 11px; font-weight: 600; }
@media (max-width: 576px) { .topic-detail-link-card { padding: 14px; gap: 12px; min-height: 92px; } .topic-detail-link-icon { flex: 0 0 38px; width: 38px; height: 38px; font-size: 18px; } .topic-detail-link-card h6 { font-size: 15px; } .topic-detail-link-card p { font-size: 12px; } }
@media (max-width: 576px) { .resource-topic-hero { align-items: flex-start; padding: 15px; } .resource-topic-total { min-width: 54px; padding-left: 9px; } .resource-topic-list-header small { display: none; } }

/* 仪表盘-活动统计表：铺满主内容区，与上方统计卡同宽一致；加大内边距与字号，层次清晰。 */
.activity-stat-table { width: 100%; margin: 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.activity-stat-table thead th { background: #f1f5f9; color: var(--text-primary); border-bottom: 1px solid var(--border-color); font-size: 14px; font-weight: 700; padding: 12px 14px; white-space: nowrap; }
.activity-stat-table tbody td { padding: 14px; border-color: #eef2f6; font-size: 14px; vertical-align: middle; }
.activity-stat-table tbody tr:hover td { background: #f8fafc; }
.activity-stat-table .btn { font-size: 13px; }
.activity-stat-toggle { transition: background .15s, box-shadow .15s; user-select: none; }
.activity-stat-toggle:hover { background: #e7eef5 !important; box-shadow: inset 0 0 0 1px #c9d8e4; }
.activity-stat-toggle .toggle-icon { display: inline-block; transition: transform .2s ease; color: var(--primary-blue); }
.activity-stat-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(90deg); }

/* 我的工天概览 - 默认折叠 */
.workday-overview-toggle, .department-overview-toggle { transition: color .15s; }
.workday-overview-toggle:hover, .department-overview-toggle:hover { color: var(--primary-blue) !important; }
.workday-overview-toggle .toggle-icon, .department-overview-toggle .toggle-icon { display: inline-block; transition: transform .2s ease; color: #6b7d8e; }
.workday-overview-toggle[aria-expanded="true"] .toggle-icon, .department-overview-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.activity-stat-card { transition: transform .15s, box-shadow .15s; }
.activity-stat-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.activity-fill-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 6px 10px; border-radius: 8px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.activity-fill-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.activity-fill-btn i { font-size: 14px; line-height: 1; }
@media (max-width: 768px) {
    .activity-stat-table thead th { padding: 10px 8px; font-size: 13px; }
    .activity-stat-table tbody td { padding: 10px 8px; font-size: 13px; }
}

/* 定时发送 - 时间输入框 */
.flatpickr-datetime { cursor: pointer; }
.flatpickr-datetime:hover { border-color: var(--primary-blue, #0074d9); background: #f8fbff; }
.flatpickr-datetime:focus { border-color: var(--primary-blue, #0074d9); box-shadow: 0 0 0 .2rem rgba(0,116,217,.15); }

/* 资源卡片 - 统一风格（管理端 + 公开端共享） */
.dr-cat-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border: 1px solid #dee2e6; cursor: pointer; }
.dr-cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(13,110,253,0.12); border-color: #0d6efd; }
.dr-cat-card:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.dr-cat-card .dr-cat-name { color: #0d6efd; font-weight: 600; }
.dr-cat-card .dr-cat-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.dr-cat-card .dr-cat-arrow { color: #0d6efd; opacity: .35; transition: transform .2s ease, opacity .2s ease; }
.dr-cat-card:hover .dr-cat-arrow { opacity: 1; transform: translateX(3px); }
.resource-topic-breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 14px; color: #6c757d; font-size: 13px; }
.resource-topic-breadcrumb a { color: #0d6efd; font-weight: 600; text-decoration: none; }
.resource-topic-breadcrumb a:hover { color: #0056b3; text-decoration: underline; }
.resource-topic-breadcrumb > i { color: #adb5bd; font-size: 10px; }
.resource-topic-breadcrumb .current { color: #212529; font-weight: 500; }

/* ===== 仪表盘 Tab 面板：生产效能看板（.pf-）====== */
.pf-kpi{border-left:4px solid #0d6efd}
.pf-kpi.g{border-left-color:#198754}
.pf-kpi.o{border-left-color:#fd7e14}
.pf-kpi.t{border-left-color:#0dcaf0}
.pf-chart{height:320px}
.pf-bar{height:9px;border-radius:5px;background:#e9ecef;overflow:hidden}
.pf-bar>span{display:block;height:100%;background:#0d6efd}
.pf-note{border-left:4px solid #ffc107}
.pf-tbl td,.pf-tbl th{vertical-align:middle;white-space:nowrap}
.pf-tbl .nm{white-space:normal;min-width:130px}

/* ===== 仪表盘 Tab 面板：现场服务与人力占用（.ss-）====== */
.ss-kpi{border-left:4px solid #0d6efd}
.ss-kpi.g{border-left-color:#198754}
.ss-kpi.o{border-left-color:#fd7e14}
.ss-kpi.t{border-left-color:#0dcaf0}
.ss-kpi.r{border-left-color:#dc3545}
.ss-chart{height:320px}
.ss-bar{height:9px;border-radius:5px;background:#e9ecef;overflow:hidden}
.ss-bar>span{display:block;height:100%;background:#0d6efd}
.ss-note{border-left:4px solid #ffc107}
.ss-tbl td,.ss-tbl th{vertical-align:middle;white-space:nowrap}
.ss-tbl .nm{white-space:normal;min-width:120px}
.ss-resident{background:#fff3cd}
.ss-onsite{animation:ss-pulse 2s ease-in-out infinite}
@keyframes ss-pulse{0%,100%{box-shadow:0 0 0 0 rgba(25,135,84,.4)}50%{box-shadow:0 0 0 8px rgba(25,135,84,0)}}

/* 仪表盘 Tab 内容区上下间距 */
.dashboard-tab-content > .tab-pane > .row:first-child { margin-top: .25rem; }
