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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 页面容器 */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* 登录页面样式 - 蓝紫色调 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    /* 蓝紫色渐变背景 */
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
}

/* 背景装饰圆形 - 蓝色调 */
.login-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(41, 128, 185, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    pointer-events: none;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.login-header {
    margin-bottom: 30px;
    position: relative;
}

.logo-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.login-form h1 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.login-form h1 span {
    display: block;
}

.login-subtitle {
    color: #718096;
    font-size: 13px;
    margin-bottom: 30px;
    font-weight: 500;
    opacity: 1;
}

/* 登录表单输入框样式 */
#loginForm .form-group {
    margin-bottom: 18px;
    text-align: left;
}

#loginForm .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
}

#loginForm .form-group label i {
    color: #667eea;
    font-size: 14px;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    font-weight: 400;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(0);
}

#loginForm input[type="text"]::placeholder,
#loginForm input[type="password"]::placeholder {
    color: #64748b;
    font-weight: 400;
}

/* 验证码容器样式 */
#loginForm .captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#loginForm .captcha-container input {
    flex: 1;
}

#loginForm .captcha-image {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#loginForm .captcha-image:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 记住我复选框样式 */
#loginForm .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    gap: 8px;
}

#loginForm .checkbox-label input[type="checkbox"] {
    display: none;
}

#loginForm .checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
}

#loginForm .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea, #2980b9);
    border-color: #667eea;
}

#loginForm .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    font-weight: bold;
}

#loginForm .form-help {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #718096;
    font-weight: 400;
}

/* 登录按钮样式 */
#loginForm button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

#loginForm button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#loginForm button[type="submit"]:hover::before {
    left: 100%;
}

#loginForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

#loginForm button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#loginForm button[type="submit"]:disabled {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#loginForm button[type="submit"] i {
    margin-right: 8px;
    font-size: 16px;
}

/* 锁定消息样式优化 */
#loginPage .lockout-message {
    background: linear-gradient(135deg, rgba(139, 0, 43, 0.2) 0%, rgba(220, 28, 61, 0.2) 100%);
    border: 2px solid rgba(139, 0, 43, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(139, 0, 43, 0.3);
    animation: slideInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
}

#loginPage .lockout-content i {
    font-size: 48px;
    color: #dc1c3d;
    margin-bottom: 15px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#loginPage .lockout-content h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

#loginPage .lockout-content p {
    color: #cbd5e1;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.6;
}

/* 响应式设计 - 登录页面 */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 25px;
        max-width: 100%;
        border-radius: 18px;
    }

    .login-form h1 {
        font-size: 24px;
    }

    .logo-icon {
        font-size: 42px;
    }

    #loginForm input[type="text"],
    #loginForm input[type="password"] {
        padding: 11px 14px;
        font-size: 13px;
    }

    #loginForm button[type="submit"] {
        padding: 13px 18px;
        font-size: 14px;
    }
}

/* 主页面布局 */
#mainPage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8f9fa;
}

/* 顶部导航栏样式 */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:  #667eea 100%;
    color: white;
    padding: 10px 20px;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 24px;
    color: #f8f9fa;
}

/* 一级菜单样式 */
.primary-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: flex-start;
    margin: 0 40px;
    max-height: 120px;
    overflow: hidden;
}

.primary-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 13px;
    color: #f8f9fa;
    margin: 2px 0;
    position: relative;
}

.primary-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.primary-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.primary-nav .nav-item::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    border-right: 1px dashed rgba(255, 255, 255, 0.3);
}

.primary-nav .nav-item:last-child::after {
    display: none;
}

.primary-nav .nav-item i {
    margin-right: 8px;
    font-size: 16px;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.user-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name-wrapper #userDisplayName {
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 角色标签样式 */
.user-role-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* 管理员角色 - 橙色高对比 */
.user-role-badge.admin {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* 普通用户角色 - 蓝绿色高对比 */
.user-role-badge.user {
    background: linear-gradient(135deg, #00BCD4, #00E5FF);
    color: #003D47;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 188, 212, 0.4);
    font-weight: 700;
}

/* 部门信息样式 */
.user-department {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-department::before {
    content: '📍';
    font-size: 12px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 用户信息区域按钮特殊样式 */
.user-actions .btn {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-actions .btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-actions .btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-actions .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.user-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* 主布局容器 */
.main-layout {
    display: flex;
    margin-top: 100px; /* 主布局从固定导航栏下方开始 */

    gap: 0; /* 确保二级菜单和主内容区域紧紧相邻 */
    background: #f8f9fa; /* 确保主布局也有背景色 */
}

/* 左侧二级菜单样式 */
.secondary-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #e1e8ed;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    display: none !important; /* 完全隐藏二级菜单标题 */
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.secondary-nav {
    flex: 1;
    padding: 15px 0; /* 适量的顶部和底部padding */
    overflow-y: auto;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.welcome-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.welcome-message p {
    font-size: 14px;
    margin: 0;
}

/* 二级菜单项样式 */
.secondary-nav-item {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.secondary-nav-item:hover {
    background: #f8f9fa;
    border-left-color: #3498db;
    color: #3498db;
}

.secondary-nav-item.active {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
    font-weight: 600;
}

.secondary-nav-item:last-child {
    border-bottom: none;
}

.secondary-nav-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 面包屑导航已移除 */

.content-area {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

/* 侧边栏滚动条样式 */
.secondary-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox 滚动条样式 */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* 禁用状态按钮样式 */
.btn-disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

.btn-disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
    color: #3498db;
}

.logo-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 导航菜单样式 */
.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.nav-section {
    padding: 0 15px;
}

.nav-item {
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-item-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-item-header {
    background: linear-gradient(90deg, #3498db, #2980b9);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.nav-item-header i:first-child {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
}

.nav-item-header span {
    flex: 1;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-item-header span {
    opacity: 0;
}

.nav-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-item.active .nav-arrow {
    transform: rotate(90deg);
}

.sidebar.collapsed .nav-arrow {
    opacity: 0;
}

/* 子菜单样式 */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.nav-item.active .nav-submenu {
    max-height: 500px;
}

.nav-subitem {
    margin: 2px 0;
    border-radius: 6px;
    overflow: hidden;
}

.nav-subitem-header {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-subitem-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-subitem.active .nav-subitem-header {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.nav-subitem-header i:first-child {
    width: 16px;
    text-align: center;
    margin-right: 10px;
    font-size: 14px;
}

.nav-subitem-header span {
    flex: 1;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-subitem-header span {
    opacity: 0;
}

/* 三级菜单样式 */
.nav-subsubmenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.nav-subitem.active .nav-subsubmenu {
    max-height: 300px;
}

.nav-subsubitem {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 70px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-subsubitem:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-subsubitem i {
    width: 14px;
    text-align: center;
    margin-right: 8px;
    font-size: 12px;
}

.nav-subsubitem span {
    flex: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-subsubitem span {
    opacity: 0;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 侧边栏折叠样式已移除，使用新的flex布局 */

/* 顶部导航栏 */
.top-header {
    background: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f8f9fa;
    color: #333;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details span:first-child {
    font-weight: 600;
    color: #333;
}

.user-role {
    font-size: 12px;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 内容区域样式已在上方定义 */

.content-page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.content-page.active {
    display: block;
}

/* 页面标题已移除 */

/* 页面内容 */
.page-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px;
}

.section-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 筛选区域 */
.filter-section {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

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

/* 表格样式 */
.table-container {
    overflow-x: auto;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background:  #667eea;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background:#667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-edit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2980b9, #1c5985);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* 文件名单元格样式 */
.filename-cell {
    max-width: 120px;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filename-cell a {
    color: #667eea;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.filename-cell a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* 当前文件信息样式 */
.current-file-info {
    margin-top: 5px;
    padding: 5px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    color: #6c757d;
}

.current-file-info small {
    color: #6c757d;
}

/* 表单样式 */
/* 模态框表单样式增强 */
.modal-content form {
    padding: 30px 40px;
    background: #fafbfc;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.form-row .form-group {
    flex: 1;
}

/* 表单操作按钮区域 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px 40px;
    background: white;
    border-top: 1px solid #e9ecef;
    margin: 30px -40px -30px -40px;
    border-radius: 0 0 12px 12px;
}

.modal-content .form-actions {
    margin: 20px -40px -30px -40px;
}

/* 响应式表单样式 */
@media (max-width: 768px) {
    .modal-content form {
        padding: 25px 30px;
    }

    .form-actions {
        padding: 20px 30px;
        margin: 25px -30px -25px -30px;
    }

    .modal-content .form-actions {
        margin: 15px -30px -25px -30px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-hint.success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-hint.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.file-help {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

/* 确认弹窗特殊样式 */
.modal.confirm-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease;
}

/* 确认弹窗内容样式 */
.confirm-modal .modal-content {
    margin: 0;
    width: auto;
    max-width: 500px;
    min-width: 420px;
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #2980b9);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px 50px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* 图片预览模态框 */
.image-preview-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
}

/* PDF预览全屏样式 */
.image-preview-content.pdf-preview {
    max-width: 98vw;
    max-height: 98vh;
    width: 98vw;
    height: 98vh;
    margin: 1vh auto;
}

.image-preview-body {
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0 0 12px 12px;
}

.image-preview-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片预览时让容器适应图片大小 */
.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* PDF预览时让容器占满全屏 */
.image-preview-content.pdf-preview .image-preview-container {
    min-height: calc(98vh - 80px);
    height: calc(98vh - 80px);
}

.image-preview-content.pdf-preview .image-preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

.progress-container {
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #2980b9);
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-right: 20px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-ellipsis {
    color: #6c757d;
    font-size: 14px;
    padding: 0 8px;
}

/* 底部操作区域样式 */
.section-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.section-footer .btn {
    min-width: 120px;
    font-size: 16px;
    padding: 12px 24px;
}

/* 状态样式 */
.overdue-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.overdue-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

.overdue-status.normal {
    background: #d4edda;
    color: #155724;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.captcha-image:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* 锁定消息样式 */
.lockout-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.lockout-content i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.lockout-content h3 {
    color: #721c24;
    margin-bottom: 10px;
}

.lockout-content p {
    color: #721c24;
    margin-bottom: 5px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
        margin: 10px;
    }
    
    /* 页面标题已移除 */
    
    .section-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background:  #5a6fd8;
}

/* 工具提示 */
[title] {
    position: relative;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 功能开发中页面样式 */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 40px 0;
}

.coming-soon i {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.coming-soon h3 {
    color: #495057;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.coming-soon p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* 管理员权限控制 */
.admin-only {
    display: none !important;
}

.admin-only.show {
    display: block !important;
}

/* 信息提示框 */
.info-message {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    color: #1976d2;
    font-size: 14px;
}

.info-message i {
    margin-right: 10px;
    font-size: 16px;
    color: #2196f3;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 审批详情模态框样式 */
.approval-detail-content {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.detail-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #007bff;
    margin-right: 8px;
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.detail-item label {
    font-weight: 600;
    color: #6c757d;
    min-width: 80px;
    margin-right: 10px;
}

.detail-item span {
    color: #495057;
    flex: 1;
}

.detail-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}


.change-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.change-item:last-child {
    border-bottom: none;
}

.change-item strong {
    color: #495057;
    margin-right: 8px;
}

.approval-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.approval-actions .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.approval-actions .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.approval-actions .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.approval-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: none;
    color: white;
}

.approval-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 字段对比样式 */
.field-comparison {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    transition: all 0.3s ease;
}

.field-comparison:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.field-comparison.field-changed {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
}

.field-comparison.field-unchanged {
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
}

/* 字段变更显示样式 */
.field-change-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.field-change-display strong {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
}

.original-value {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.change-arrow {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    margin: 0 4px;
}

.new-value {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* 字段未变更显示样式 */
.field-no-change-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-no-change-display strong {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
}

.field-value {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .field-change-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .field-change-display strong {
        min-width: auto;
    }
    
    .field-no-change-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .field-no-change-display strong {
        min-width: auto;
    }
}

/* 成功/错误消息样式 */
.message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    z-index: 3000;
    animation: slideInUp 0.3s ease;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.message.success {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: #ffffff;
}

.message.error {
    background: linear-gradient(135deg, #bd2130, #dc3545);
    color: #ffffff;
}

.message.info {
    background: linear-gradient(135deg, #117a8b, #17a2b8);
    color: #ffffff;
}

.message.warning {
    background: linear-gradient(135deg, #d39e00, #ffc107);
    color: #212529;
    text-shadow: none;
}

/* 用户禁用特殊提示 */
.message.user-disabled-message {
    background: linear-gradient(135deg, #8B0000, #DC143C) !important;
    color: #ffffff !important;
    border: 3px solid #FF0000;
    padding: 20px 28px !important;
    max-width: 450px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 首页样式 */
.homepage-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-section h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.welcome-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

.modules-overview {
    margin-bottom: 50px;
}

.modules-overview h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.modules-overview h2 i {
    margin-right: 10px;
    color: #667eea;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.module-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.module-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.quick-actions {
    text-align: center;
}

.quick-actions h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.quick-actions h2 i {
    margin-right: 10px;
    color: #667eea;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .homepage-content {
        padding: 20px;
    }
    
    .welcome-section {
        padding: 30px 15px;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}

/* 待办区域样式 */
.todo-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.todo-header {
    background: linear-gradient(135deg, #667eea, #2980b9);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.todo-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-header h2 i {
    font-size: 18px;
}

.todo-content {
    padding: 30px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.todo-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.todo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.todo-info {
    flex: 1;
}

.todo-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.todo-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.todo-count {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.todo-count.zero {
    background: #6c757d;
    box-shadow: none;
    animation: none;
}

/* 多选下拉框样式 */
.multi-select {
    min-height: 120px !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background-color: #fff !important;
}

.multi-select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: 0 !important;
}

.multi-select option {
    padding: 4px 8px !important;
    color: #333 !important;
}

.multi-select option:checked {
    background: linear-gradient(0deg, #007bff 0%, #007bff 100%) !important;
    color: white !important;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* 部门演练要求信息样式 */
.department-requirements {
    background:  #f3f0ff 0%;
   
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(116, 75, 162, 0.15);
    transition: all 0.3s ease;
}

.department-requirements:hover {
    box-shadow: 0 6px 20px rgba(116, 75, 162, 0.25);
    transform: translateY(-2px);
}

.requirements-header {
    background:  rgb(102, 126, 234);
    color: white;
    padding: 14px 18px;
    margin: 0;
    display: flex;
    align-items: center;
}

.requirements-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.requirements-header i {
    margin-right: 10px;
    color: #fff;
    font-size: 18px;
}

.requirements-content {
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid rgb(102, 126, 234) 0%;
    transition: all 0.2s ease;
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-label {
    font-weight: 600;
    color: #4a4a4a;
    min-width: 160px;
    font-size: 14px;
}

.requirement-value {
    color:rgb(102, 126, 234) 0%;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
  
}

.requirement-value.empty {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.2);
    font-weight: 500;
}

/* 审批详情样式 */
.detail-section {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
}

.detail-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 15px;
}

.change-details {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.change-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* 有变化的字段 */
.change-item.changed {
    border-left: 3px solid #667eea;
}

.change-item.changed:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 无变化的字段 */
.change-item.unchanged {
    border-left: 3px solid #d1d5db;
    background: #f9fafb;
}

.change-item.unchanged:hover {
    background: #f3f4f6;
}

.change-item:last-child {
    margin-bottom: 0;
}

.field-name {
    font-weight: 600;
    color: #4b5563;
    display: inline-block;
    min-width: 120px;
}

.change-text {
    color: #6b7280;
}

.old-value {
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: line-through;
}

.new-value {
    color: #10b981;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.current-value {
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f3f4f6;
}

.no-changes {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-style: italic;
}

.error-text {
    color: #ef4444;
    padding: 10px;
    text-align: center;
}

/* 冻结行样式 - 演练计划被锁定审批中 */
.frozen-row {
    background-color: #f3f4f6 !important;
    color: #6b7280;
    opacity: 0.8;
}

.frozen-row td {
    color: #6b7280;
}

.frozen-row:hover {
    background-color: #e5e7eb !important;
}

.frozen-row .btn-edit:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    color: white;
}

.frozen-row .btn-edit:disabled:hover {
    background-color: #9ca3af;
    border-color: #9ca3af;
}

/* ==================== 悬浮帮助按钮样式 ==================== */
/* 悬浮帮助按钮 */
.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 998;
}

.help-button:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #667eea 100%);
}

.help-button:active {
    transform: translateY(-2px) scale(1.05);
}

/* 帮助弹窗 */
.help-modal {
    display: none !important; /* 强制默认隐藏 */
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
}

/* 显示帮助弹窗 */
.help-modal.show {
    display: block !important;
    animation: helpSlideIn 0.3s ease-out;
}

@keyframes helpSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    width: 340px;
    overflow: hidden;
}

.help-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.help-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.help-contact:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.help-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.help-contact-info {
    flex: 1;
}

.help-contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.help-contact-phone {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-contact-phone a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.help-contact-phone a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 快速上手指南样式 */
.help-guide {
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.help-guide-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-guide-preview,
.btn-guide-download {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-guide-preview {
    background: linear-gradient(135deg, #667eea 0%, #2980b9 100%);
    color: white;
}

.btn-guide-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-guide-download {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-guide-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .help-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .help-modal {
        bottom: 80px;
        right: 20px;
        left: 20px;
    }

    .help-modal-content {
        width: auto;
    }

    .help-guide-buttons {
        flex-direction: column;
    }
}

/* ==================== 部门排序配置页面样式 ==================== */

/* 排序输入框样式 */
.order-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.order-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.order-input:hover {
    border-color: #999;
}

/* 隐藏数字输入框的上下箭头 */
.order-input::-webkit-inner-spin-button,
.order-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

/* 部门类别徽章样式 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.badge-primary {
    background-color: #667eea;
    color: white;
}

.badge-success {
    background-color: #48bb78;
    color: white;
}

.badge-secondary {
    background-color: #718096;
    color: white;
}

/* 排序操作按钮样式 */
#departmentOrderTable .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0 2px;
}

#departmentOrderTable .btn-sm i {
    font-size: 11px;
}

#departmentOrderTable .btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 表格行hover效果 */
#departmentOrderTable tbody tr {
    transition: background-color 0.2s ease;
}

#departmentOrderTable tbody tr:hover {
    background-color: #f7fafc;
}

/* 排序表格特殊样式 */
#departmentOrderTable td {
    vertical-align: middle;
}

/* 信息提示框增强样式 */
.info-message.warning-style {
    background: linear-gradient(135deg, #fff3cd, #ffc107);
    border: 2px solid #ff9800;
    color: #856404;
}

.info-message.warning-style i {
    color: #ff5722;
}
