/* ==================== 优化后的样式文件 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* CSS变量定义 */
:root {
    --body-bg-start: #000000;
    --body-bg-end: #000000;
    --body-text-color: #000000;
}

/* 夜间模式变量 */
.theme-dark {
    --body-bg-start: #1a1a2e;
    --body-bg-end: #16213e;
    --body-text-color: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, var(--body-bg-start) 0%, var(--body-bg-end) 100%);
    color: var(--body-text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ==================== 页面布局 ==================== */
.page-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

/* ==================== 顶部值班信息栏 ==================== */
.top-duty-bar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 12px;
    box-sizing: border-box;
    flex-wrap: wrap;
    z-index: 100;
    position: relative;
}

.top-duty-section {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    padding: 12px 16px;
    box-sizing: border-box;
}

/* 今日值班区域 - 蓝色主题 */
.top-duty-section.duty-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 本周劳动教育区域 - 绿色主题 */
.top-duty-section.labor-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

/* 夜间模式下的顶部值班栏 */
.theme-dark .top-duty-section.duty-section {
    background: linear-gradient(135deg, #4a3f9e 0%, #5a4a7e 100%);
}

.theme-dark .top-duty-section.labor-section {
    background: linear-gradient(135deg, #0d7a6f 0%, #2ab868 100%);
}

.top-duty-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.top-duty-icon {
    font-size: 16px;
}

.top-duty-title {
    flex: 1;
}

.top-duty-section .week-range {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.top-duty-content {
    font-size: 13px;
    line-height: 1.8;
}

.no-duty-info {
    opacity: 0.8;
    font-style: italic;
}

.duty-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.duty-label {
    white-space: nowrap;
    opacity: 0.9;
}

.duty-names {
    font-weight: 500;
}

/* 劳动教育班级标签 */
.labor-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.labor-class-badge {
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.labor-more {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 11px;
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-duty-bar {
        flex-direction: column;
        padding: 10px 12px;
        margin: 8px 10px 0 10px;
        gap: 10px;
    }

    .top-duty-section {
        min-width: 100%;
    }

    .top-duty-header {
        font-size: 13px;
    }

    .top-duty-content {
        font-size: 12px;
    }

    .labor-class-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* 固定顶部栏下面的主要容器 */
.main-container {
    flex: 1;
    margin-top: 10px; /* 值班栏高度 + 间距 */
    min-height: calc(100vh - 20px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    gap: 20px;
    padding: 32px 20px;
    margin-top: 0; /* 紧挨着今日值班模块 */
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 80px); /* 减去导航栏和今日值班的高度 */
    box-sizing: border-box;
}

/* 移动端布局（768px以下） */
@media (max-width: 768px) {
    .content-wrapper {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 16px;
        margin-top: 5px; /* 手机端只要0.5厘米（5px）的间距 */
        gap: 20px;
        min-height: calc(100vh - 5px); /* 手机端最小高度 */
        box-sizing: border-box;
    }
    

}

.left-sidebar {
    width: 100%;
}

.main-content {
    width: 100%;
}

.sidebar {
    width: 100%;
}

/* ==================== 顶部导航栏 ==================== */
/* 毛玻璃效果顶部导航栏 */
.header {
    display: none; /* 默认隐藏，改用悬浮菜单 */
}

/* 传统导航栏样式 - 毛玻璃透明效果 */
.header.traditional-navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.85) 0%, rgba(102, 126, 234, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 0 40px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.header.traditional-navbar .header-left {
    flex: 0 0 auto;
}

.header.traditional-navbar .site-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.header.traditional-navbar .header-nav {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.header.traditional-navbar .nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.header.traditional-navbar .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.header.traditional-navbar .nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 500;
}

.header.traditional-navbar .nav-item.admin-item {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.header.traditional-navbar .nav-item.admin-item:hover {
    background: rgba(255, 193, 7, 0.3);
}

.header.traditional-navbar .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header.traditional-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.header.traditional-navbar .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.header.traditional-navbar .user-name {
    font-size: 14px;
    font-weight: 500;
}

.header.traditional-navbar .btn-logout {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.header.traditional-navbar .btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header.traditional-navbar .auth-buttons {
    display: flex;
    gap: 10px;
}

.header.traditional-navbar .btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.header.traditional-navbar .btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.header.traditional-navbar .btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header.traditional-navbar .btn-register {
    background: #ffc107;
    color: #333;
}

.header.traditional-navbar .btn-register:hover {
    background: #ffca28;
}

.header.traditional-navbar .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.header.traditional-navbar .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 传统导航栏下内容区需要顶部边距 */
.page-layout.has-traditional-navbar {
    padding-top: <?php echo $navbarSettings['height'] ?? 80; ?>px;
}

/* ==================== 悬浮菜单按钮 ==================== */
.float-menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    font-family: inherit;
}

.float-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(25, 118, 210, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.float-menu-btn:hover {
    background: rgba(25, 118, 210, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.float-menu-btn .menu-icon {
    font-size: 18px;
}

.float-menu-btn .menu-text {
    font-weight: 600;
}

/* 悬浮下拉菜单 */
.float-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.float-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.float-dropdown-item:last-child {
    border-bottom: none;
}

.float-dropdown-item:hover {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
    padding-left: 24px;
}

.float-dropdown-item .icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.float-dropdown-item.active {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
    font-weight: 600;
}

/* 分割线 */
.float-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

/* 管理员项 */
.float-dropdown-item.admin-item {
    color: #667eea;
    font-weight: 500;
}

.float-dropdown-item.admin-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 危险项 */
.float-dropdown-item.danger {
    color: #dc3545;
}

.float-dropdown-item.danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 深色主题适配 */
.theme-dark .float-menu-btn {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .float-dropdown {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .float-dropdown-item {
    color: #e0e0e0;
}

.theme-dark .float-dropdown-item:hover {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
}

.theme-dark .float-dropdown-item.active {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

.theme-dark .float-dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* 移动端悬浮菜单 */
@media (max-width: 768px) {
    .float-menu-container {
        top: 12px;
        left: 12px;
    }

    .float-menu-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .float-menu-btn .menu-text {
        display: none;
    }

    .float-dropdown {
        min-width: 200px;
    }

    .float-dropdown-item {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 汉堡菜单按钮（移动端显示） */
.hamburger-menu {
    display: none; /* 默认隐藏，移动端显示 */
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    transition: transform 0.3s;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-menu:hover span {
    background: rgba(100, 181, 246, 1);
}

/* 系统名称（左侧） */
.header-left .site-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
}

/* 主导航栏 - 居中对齐 */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.nav-content {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(100, 181, 246, 0.3);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.8) 0%, rgba(66, 165, 245, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-text {
    display: inline-block;
}

/* 用户功能区域（右侧） */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 200px;
    gap: 15px;
}

/* 主题切换按钮 */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn.dark-mode {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-text {
    display: inline-block;
}

/* 用户菜单样式保持不变 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-role, .user-department {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 移动端菜单样式 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 280px;
    background: rgba(25, 118, 210, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #64B5F6;
}

.mobile-menu-item.active {
    background: rgba(100, 181, 246, 0.3);
    color: white;
    border-left-color: white;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 20px;
}

/* 登录注册按钮样式保持不变 */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-register {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.4);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-login:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.btn-register:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.6);
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2) 0%, rgba(66, 165, 245, 0.2) 100%);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid rgba(100, 181, 246, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.user-info:hover {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.3) 0%, rgba(66, 165, 245, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.4);
    transform: translateY(-2px);
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(100, 181, 246, 0.5);
    border: 2px solid rgba(255,255,255,0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 800;
    font-size: 16px;
    color: white;
}

.user-role,
.user-department {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 700;
}

.dropdown-toggle:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    min-width: 240px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    margin-top: 12px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #64B5F615 0%, #42A5F515 100%);
    color: #1976D2;
}

.dropdown-item .icon {
    font-size: 18px;
}

.dropdown-item.admin-item {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
}

.dropdown-item.admin-item:hover {
    opacity: 0.9;
}

.dropdown-item.danger {
    color: #dc3545;
}

.dropdown-divider {
    border-top: 2px solid #e2e8f0;
    margin: 10px 0;
}

/* 登录注册按钮 */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-register {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.4);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-login:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}



/* ==================== 主内容区 ==================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 夜间模式下的section */
.theme-dark .section {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #0D47A1;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 夜间模式下的h2 */
.theme-dark .section h2 {
    color: #64b5f6;
}

.section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #0D47A1;
    margin: 20px 0 14px;
    padding-bottom: 6px;
}

/* 夜间模式下的h3 */
.theme-dark .section h3 {
    color: #64b5f6;
}
    border-bottom: 2px solid #f0f0f0;
}

.date-tag {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* ==================== 本周预定 ==================== */
/* 视图切换器 */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.view-btn {
    padding: 6px 16px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.view-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-btn.active {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(100, 181, 246, 0.3);
}

/* 日期导航按钮和日期显示 */
.nav-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(100, 181, 246, 0.25);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(100, 181, 246, 0.3);
}

.current-date {
    font-size: 14px;
    font-weight: 700;
    color: #0D47A1;
    padding: 6px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* ==================== 日视图 ==================== */
.day-view {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.period-section {
    margin-bottom: 28px;
}

.period-section:last-child {
    margin-bottom: 0;
}

.period-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.period-icon {
    font-size: 28px;
}

.period-title {
    font-size: 20px;
    font-weight: 700;
}

.period-count {
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
}

.period-bookings {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid #64B5F6;
    border: 1px solid #e2e8f0;
}

.booking-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.card-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-time {
    font-size: 18px;
    font-weight: 800;
    color: #1976D2;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #90CAF9;
}

.card-venue {
    font-size: 14px;
    color: #333;
    text-align: center;
    padding: 8px;
    background: #E3F2FD;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #90CAF9;
}

.card-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-activity {
    font-size: 18px;
    font-weight: 700;
    color: #0D47A1;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.card-applicant {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
}

.applicant-icon {
    font-size: 20px;
}

.card-applicant .phone {
    margin-left: auto;
    color: #555;
    font-size: 14px;
}

.card-department {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.department-icon {
    font-size: 18px;
}

.card-right {
    display: flex;
    align-items: center;
}

.booking-card .status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.booking-card .status-badge.approved {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.booking-card .status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* ==================== 周视图 - 可爱风格 ==================== */
.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #fef6ff 0%, #f0f8ff 50%, #fff0f5 100%);
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(255, 182, 193, 0.2);
}

.day-column {
    background: linear-gradient(180deg, #ffffff 0%, #f8f0ff 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.day-column:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.25);
    border-color: #d8bfd8;
}

.day-column.today {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe4ec 100%);
    color: #333333;
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.35);
    border: 3px solid #ffb6c1;
    transform: scale(1.03);
}

.day-column.today:hover {
    transform: scale(1.05);
}

.day-header {
    padding: 14px 8px;
    text-align: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e9f7 100%);
    border-bottom: 2px solid rgba(135, 206, 235, 0.3);
    position: relative;
}

.day-column.today .day-header {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-bottom: 3px solid #ffa07a;
}

.day-name {
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.day-column.today .day-name {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.day-date {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.day-column.today .day-date {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.day-bookings {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.period-group {
    margin-bottom: 6px;
}

.period-group:last-child {
    margin-bottom: 0;
}

.period-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #5e72e4;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 20px;
    margin-bottom: 6px;
    border: 1px solid rgba(94, 114, 228, 0.2);
}

.day-column.today .period-label {
    color: #f5365c;
    background: linear-gradient(135deg, rgba(245, 54, 92, 0.1) 0%, rgba(238, 90, 90, 0.1) 100%);
    border-color: rgba(245, 54, 92, 0.3);
}

.mini-booking-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

.mini-booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.mini-booking-card:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transform: translateX(3px);
    border-left-color: #ff6b6b;
}

.day-column.today .mini-booking-card {
    background: linear-gradient(135deg, #fffaf0 0%, #fff0f5 100%);
    border-left-color: #ff6b6b;
}

.mb-time {
    font-weight: 700;
    color: #667eea;
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mb-time::before {
    content: '⏰';
    font-size: 10px;
}

.day-column.today .mb-time {
    color: #f5365c;
}

.mb-activity {
    color: #2d3748;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.day-column.today .mb-activity {
    color: #4a5568;
}

.mb-applicant {
    color: #718096;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mb-applicant::before {
    content: '👤';
    font-size: 10px;
}

.day-column.today .mb-applicant {
    color: #a0aec0;
}

.mb-phone {
    margin-left: auto;
    color: #a0aec0;
    font-size: 10px;
}

.day-column.today .mb-phone {
    color: #cbd5e0;
}

.empty-day {
    text-align: center;
    color: #b8c1ec;
    font-size: 12px;
    padding: 25px 8px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    font-weight: 500;
}

.empty-day::before {
    content: '✨';
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

/* ==================== 周视图响应式 - 小屏幕自动换行 ==================== */
@media (max-width: 1200px) {
    .week-view {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        overflow-x: visible;
        padding: 12px;
        gap: 12px;
    }
    
    .day-column {
        min-width: unset;
        flex-shrink: unset;
    }
}

@media (max-width: 900px) {
    .week-view {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .week-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 10px;
    }
    
    .day-column {
        min-height: 280px;
    }
    
    .day-header {
        padding: 10px 6px;
    }
    
    .day-name {
        font-size: 13px;
    }
    
    .day-date {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .day-bookings {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .week-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 8px;
    }
    
    .day-column {
        min-height: 250px;
    }
    
    .day-name {
        font-size: 12px;
    }
    
    .mb-activity {
        font-size: 11px;
    }
    
    .mb-time, .mb-applicant {
        font-size: 10px;
    }
}

/* ==================== 月视图 - 日历风格 ==================== */
.month-calendar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.month-calendar .calendar-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px;
    margin-bottom: 12px;
}

.month-calendar .calendar-weekday {
    text-align: center;
    padding: 14px 10px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-radius: 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.month-calendar .calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 12px;
}

.month-calendar .calendar-day {
    background: #ffffff;
    border-radius: 12px;
    min-height: 110px;
    padding: 12px 12px 12px 36px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.month-calendar .calendar-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #64B5F6;
}

.month-calendar .calendar-day.today {
    border-color: #64B5F6;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.3);
}

.month-calendar .calendar-day.has-bookings {
    border-color: #64B5F6;
    border-width: 2px;
}

.month-calendar .calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.month-calendar .calendar-day.empty:hover {
    box-shadow: none;
    transform: none;
}

.month-calendar .calendar-day-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #1976D2;
    background: transparent;
    box-shadow: none;
}

.month-calendar .calendar-day.today .calendar-day-number {
    color: #0D47A1;
    font-weight: 700;
}

.month-calendar .calendar-day-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 80px;
    overflow-y: auto;
}

.month-calendar .calendar-booking-item {
    background: linear-gradient(135deg, #64B5F615 0%, #42A5F515 100%);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.month-calendar .calendar-booking-item:hover {
    box-shadow: 0 4px 8px rgba(100, 181, 246, 0.2);
    transform: scale(1.02);
    background: linear-gradient(135deg, #64B5F625 0%, #42A5F525 100%);
}

.month-calendar .calendar-day.today .calendar-booking-item {
    background: rgba(100, 181, 246, 0.15);
    border-color: rgba(100, 181, 246, 0.4);
}

.month-calendar .cb-time {
    font-weight: 800;
    color: #1a365d;
    font-size: 11px;
    white-space: nowrap;
    min-width: 50px;
}

.month-calendar .calendar-day.today .cb-time {
    color: #0D47A1;
}

.month-calendar .cb-activity {
    color: #2d3748;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.month-calendar .calendar-day.today .cb-activity {
    color: #0D47A1;
}

/* ==================== 重要会议 ==================== */
.important-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.important-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.important-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.important-date {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    font-weight: 700;
    font-size: 14px;
}

.important-info {
    flex: 1;
}

.important-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0D47A1;
}

.important-info p {
    font-size: 13px;
    color: #333;
    margin: 4px 0;
}

/* ==================== 右侧边栏 ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0D47A1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-card h3 .icon {
    font-size: 22px;
}

/* 演出活动卡片 - 明亮主题 */
.performances-card {
    background: linear-gradient(135deg, #ffffff 0%, #E3F2FD 100%);
    border: 2px solid #BBDEFB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 夜间主题适配 */
.theme-dark .performances-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.theme-dark .performance-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.theme-dark .performance-item:hover {
    border-color: #475569;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.theme-dark .performance-title {
    color: #f1f5f9;
}

.theme-dark .performance-type {
    background: #334155;
    color: #94a3b8;
}

.theme-dark .performance-meta,
.theme-dark .performance-venue,
.theme-dark .performance-organizer {
    color: #94a3b8;
}

.theme-dark .performance-meta .icon,
.theme-dark .performance-venue .icon,
.theme-dark .performance-organizer .icon {
    color: #64748b;
}

.theme-dark .performance-poster-placeholder {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.performances-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.performance-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.performance-item:hover {
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.2);
    transform: translateY(-4px);
    border-color: #64B5F6;
}

.performance-poster {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.performance-poster-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.performance-poster-placeholder .icon {
    font-size: 48px;
    opacity: 0.8;
}

.performance-info {
    padding: 16px;
}

.performance-title {
    font-size: 16px;
    font-weight: 700;
    color: #0D47A1;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.performance-type {
    display: inline-block;
    background: linear-gradient(135deg, #64B5F615 0%, #42A5F515 100%);
    color: #1976D2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.performance-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.meta-item .icon {
    font-size: 14px;
}

.performance-venue,
.performance-organizer {
    font-size: 12px;
    color: #444;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.performance-venue .icon,
.performance-organizer .icon {
    font-size: 13px;
}

/* 我的选座 */
.my-seats-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
}

.my-seats-card h3 {
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.my-seats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-seat-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.seat-activity {
    margin-bottom: 4px;
}

.seat-activity strong {
    display: inline;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.seat-date {
    font-size: 11px;
    color: #666;
    margin-left: 8px;
}

.seat-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.seat-floor {
    display: inline;
    margin-left: 8px;
}

.floor-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

.seat-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.seat-actions {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
    margin-top: 6px;
    width: 100%;
    justify-content: flex-end;
}

.btn-cancel-seat {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-seat:hover {
    background: #ffcdd2;
}

.btn-cancel-seat:hover {
    background: #d32f2f;
}

.seat-locked {
    font-size: 11px;
    color: #999;
    padding: 6px 0;
}

/* 今日值班 */
.today-duty-card {
    background: linear-gradient(135deg, #ffffff 0%, #E8F5E9 100%);
    border: 2px solid #C8E6C9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.today-duty-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.today-duty-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duty-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 4px;
}

.duty-icon {
    font-size: 16px;
}

.duty-label {
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
}

.duty-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.duty-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.duty-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.duty-detail {
    font-size: 12px;
    color: #666;
}

/* 今日值班模块 - 紧凑一排显示，紧贴悬浮菜单下方 */
.duty-top-row {
    background: linear-gradient(to bottom, #f8f9fa, white);
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
    margin-top: 10px; /* 位于悬浮菜单下方 */
    margin-bottom: 0;
    position: relative;
    z-index: 999;
}

.duty-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.duty-top-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    background: #f1f3f4;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.duty-categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
    align-items: center;
}

.duty-top-category {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.duty-top-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.duty-icon {
    font-size: 14px;
}

.duty-text {
    font-weight: 600;
    margin-right: 4px;
}

.duty-names {
    color: #333;
    font-weight: 400;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duty-empty {
    font-size: 14px;
    color: #999;
    font-style: italic;
    padding: 4px 12px;
}

/* 不同颜色区分类别 */
.duty-top-orange {
    background: linear-gradient(to right, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
    color: #e65100;
    border-color: rgba(255, 152, 0, 0.2);
}

.duty-top-blue {
    background: linear-gradient(to right, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    color: #1565c0;
    border-color: rgba(33, 150, 243, 0.2);
}

.duty-top-green {
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    color: #2e7d32;
    border-color: rgba(76, 175, 80, 0.2);
}

.duty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.duty-category {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.duty-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f5;
}

.duty-icon {
    font-size: 18px;
}

.duty-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.duty-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duty-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.duty-info {
    flex: 1;
}

.duty-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.duty-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.duty-class {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
}

.duty-phone {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 6px;
    border-radius: 4px;
}

.duty-area,
.duty-detail {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.duty-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* 移动端优化 - 紧凑一排显示今日值班 */
@media (max-width: 768px) {
    .duty-top-row {
        padding: 6px 0;
        border-bottom: 1px solid #eee;
    }
    
    .duty-top-container {
        padding: 0 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .duty-top-label {
        font-size: 13px;
        padding: 3px 10px;
        border-radius: 16px;
        align-self: flex-start;
    }
    
    .duty-categories-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }
    
    .duty-top-category {
        width: 100%;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
        justify-content: flex-start;
    }
    
    .duty-names {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .duty-empty {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 移动端调整内容区域间距 */
    .main-container {
        margin-top: 15px; /* 悬浮菜单高度 */
        min-height: calc(100vh - 15px);
    }

    .duty-top-row {
        margin-top: 15px; /* 悬浮菜单下方 */
        z-index: 999; /* 与桌面端保持一致 */
    }
    
    .content-wrapper {
        margin-top: 0;
        padding: 12px 12px 16px 12px;
        min-height: calc(100vh - 100px);
    }
}

.duty-more {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 4px 0;
}

/* 今日预约 */
.today-bookings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.today-booking {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.today-booking:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.time-badge {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.booking-details {
    flex: 1;
}

.booking-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0D47A1;
}

.booking-details p {
    font-size: 12px;
    color: #444;
    margin: 2px 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}

/* 快捷链接 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-link:hover {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    transform: translateX(4px);
}

.quick-link .icon {
    font-size: 20px;
}

.quick-link.admin-link {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

/* 系统公告 */
.system-notice {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.system-notice p {
    margin: 8px 0;
    padding-left: 16px;
    position: relative;
}

.system-notice p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1976D2;
}

/* 动态系统公告样式 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    position: relative;
}

.announcement-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.announcement-item.sticky {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.announcement-item.important {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.announcement-item.maintenance {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.announcement-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    flex: 1;
}

.announcement-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.important-badge {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.announcement-content {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b7280;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.announcement-date {
    color: #9ca3af;
}

.announcement-author {
    color: #6b7280;
    font-weight: 500;
}

.default-announcements p {
    margin: 8px 0;
    padding-left: 16px;
    position: relative;
}

.default-announcements p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1976D2;
}

/* 已结束活动 */
.completed-bookings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completed-booking {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid #64B5F6;
}

.completed-booking:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.completed-date {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    min-width: 50px;
}

.completed-details {
    flex: 1;
}

.completed-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0D47A1;
}

.completed-details > p {
    font-size: 12px;
    color: #444;
    margin: 2px 0;
}

.evaluation-pending {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.evaluation-info {
    margin-top: 6px;
}

.evaluation-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 4px;
}

.evaluation-score {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
}

.credit-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.credit-change.positive {
    color: #10b981;
    background: #d1fae5;
}

.credit-change.negative {
    color: #ef4444;
    background: #fee2e2;
}

.evaluation-feedback {
    font-size: 12px;
    color: #555;
    font-style: italic;
    margin-top: 4px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px;
    font-size: 13px;
    margin-top: auto;
}

/* ==================== 统一顶部栏高度 ==================== */
/* 为预约登记、查询预定、在线选座、重要会议、信誉分页面设置统一样式 */

/* 这些页面都使用与首页相同的标准布局 */
body.booking-page,
body.query-page,
body.seat-selection-page,
body.important-page,
body.credit-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区容器 - 设置适当的顶部边距，避免被固定导航栏遮挡 */
body.booking-page .container,
body.query-page .container,
body.seat-selection-page .container,
body.important-page .container,
body.credit-page .container {
    padding: 3cm 20px 32px 20px; /* 桌面端1.5厘米间距，与其他页面保持一致 */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    body.booking-page .container,
    body.seat-selection-page .container,
    body.important-page .container,
    body.credit-page .container {
        padding: 1.5cm 16px 24px 16px; /* 桌面端1.5厘米间距 */
        max-width: 100%;
    }
    
    /* 查询页面保持桌面端布局，取消响应式 */
    body.query-page .container {
        padding: 1.5cm 20px 32px 20px !important; /* 保持桌面端1.5厘米间距 */
    }
}

@media (max-width: 1024px) {
    body.booking-page .container,
    body.seat-selection-page .container,
    body.important-page .container,
    body.credit-page .container {
        padding: 1.5cm 16px 20px 16px; /* 桌面端1.5厘米间距 */
        gap: 20px;
    }
    
    /* 查询页面保持桌面端布局，取消响应式 */
    body.query-page .container {
        padding: 1.5cm 20px 32px 20px !important; /* 保持桌面端1.5厘米间距 */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body.booking-page .container,
    body.seat-selection-page .container,
    body.important-page .container,
    body.credit-page .container {
        padding: 8px 16px 16px 16px; /* 移动端非常小的间距 */
        gap: 16px;
    }
    
    /* 查询页面保持桌面端布局，取消响应式 */
    body.query-page .container {
        padding: 1.5cm 20px 32px 20px !important; /* 保持桌面端1.5厘米间距 */
        gap: 20px;
    }
}

/* 首页内容区域调整 */
.content-wrapper {
    padding: 1.5cm 20px 32px 20px; /* 中间间隔改为1.5厘米 */
}

@media (max-width: 1400px) {
    .content-wrapper {
        padding: 1.5cm 16px 24px 16px; /* 中间间隔改为1.5厘米 */
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        padding: 1.5cm 16px 20px 16px; /* 中间间隔改为1.5厘米 */
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 8px 16px 16px 16px; /* 顶部padding改为8px，非常小的间距 */
    }
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

/* ==================== 表单样式 ==================== */
.form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64B5F6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* ==================== 预约表单样式 ==================== */
.booking-form {
    max-width: 900px;
    margin: 0 auto;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea {
    font-size: 15px;
    padding: 10px 12px;
}

.booking-form .form-group label {
    font-size: 14px;
    margin-bottom: 6px;
}

.booking-form .form-group {
    margin-bottom: 14px;
}

.booking-form h3 {
    font-size: 16px;
    margin: 20px 0 12px;
    padding-bottom: 8px;
}

.booking-form .form-row {
    gap: 14px;
}

.booking-form .equipment-grid {
    gap: 12px;
    margin-bottom: 16px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.number-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.number-item label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.number-item input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* ==================== 查询表单样式 ==================== */
.query-form {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.query-form .form-group {
    margin-bottom: 0;
}

.query-form .form-group input,
.query-form .form-group select {
    font-size: 14px;
    padding: 10px 14px;
}

/* ==================== 消息提示 ==================== */
.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==================== 预约列表样式 ==================== */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.booking-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.booking-time {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.booking-time .duration {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

.booking-info {
    flex: 1;
}

.booking-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0D47A1;
}

.booking-info p {
    font-size: 14px;
    color: #444;
    margin: 6px 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.pending {
    background: #fff3e0;
    color: #e65100;
}

.badge.rejected {
    background: #ffebee;
    color: #c62828;
}

.badge.yes {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.no {
    background: #ffebee;
    color: #c62828;
}

.equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.notes {
    font-style: italic;
    color: #999;
    font-size: 13px;
}

/* ==================== 统计样式 ==================== */
.total-count {
    margin: 16px 0;
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 6px;
    color: #1976d2;
    font-weight: 500;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-card.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #FF7043 0%, #F4511E 100%);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 信誉分表格 ==================== */
.credit-list {
    margin-top: 16px;
}

.credit-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.credit-table thead {
    background: #f8f9fa;
}

.credit-table th,
.credit-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.credit-table th {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.credit-table td {
    font-size: 14px;
}

.credit-table tbody tr:hover {
    background: #f8f9fa;
}

.credit-table .positive {
    color: #2e7d32;
    font-weight: 600;
}

.credit-table .negative {
    color: #c62828;
    font-weight: 600;
}

.credit-table .score {
    font-weight: 600;
    font-size: 16px;
}

.credit-table .score.good {
    color: #2e7d32;
}

.credit-table .score.bad {
    color: #c62828;
}

/* ==================== 周视图样式 ==================== */
.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.week-day {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 12px;
    text-align: center;
}

.day-header h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.day-date {
    font-size: 12px;
    opacity: 0.9;
}

.day-count {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

.day-content {
    padding: 12px;
    min-height: 120px;
}

.mini-booking-card {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.mini-booking-card:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mini-booking-card .time {
    font-weight: 600;
    color: #1976D2;
    font-size: 13px;
    margin-bottom: 4px;
}

.mini-booking-card .info {
    font-size: 12px;
}

.mini-booking-card .name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.mini-booking-card .department {
    color: #666;
}

/* ==================== 重要活动卡片 ==================== */
.important-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.important-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.important-date {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.important-date .month {
    font-size: 18px;
    font-weight: 700;
}

.important-date .day {
    font-size: 28px;
    font-weight: 700;
    margin-top: 4px;
}

.important-info {
    flex: 1;
}

.important-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0D47A1;
}

.important-info .details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.important-info .detail-item {
    font-size: 14px;
    color: #666;
}

.important-info .detail-item .icon {
    margin-right: 6px;
}

/* ==================== 说明框 ==================== */
.notice-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.notice-box h4 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 16px;
}

.notice-box ul {
    margin-left: 20px;
    color: #856404;
}

.notice-box li {
    margin: 8px 0;
    font-size: 14px;
}

/* ==================== 查询头部 ==================== */
.query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.query-header h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0;
}

.query-header .total-count {
    margin: 0;
    background: transparent;
    padding: 0;
    color: #666;
    font-size: 14px;
}

/* ==================== 个人设置样式 ==================== */
.profile-card {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-radius: 12px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.profile-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.role-badge,
.department-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 14px;
    margin-right: 8px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
}

.detail-item label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.detail-item span {
    font-size: 16px;
    font-weight: 500;
}

.credit-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
}

.credit-info h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.credit-score {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.credit-score.good {
    color: #29B6F6;
}

.credit-score.bad {
    color: #ff6b6b;
}

.credit-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.credit-item {
    text-align: center;
}

.credit-item label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.credit-item span {
    font-size: 24px;
    font-weight: 700;
}

.credit-status {
    text-align: center;
    font-size: 16px;
    margin-top: 16px;
}

.password-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.password-card h3 {
    margin-bottom: 24px;
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1400px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr 340px;
        gap: 16px;
        padding: 1.5cm 16px 24px 16px; /* 与主规则保持一致，1.5厘米 */
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 1.5cm 16px 20px 16px; /* 与主规则保持一致，1.5厘米 */
    }

    .container {
        padding: 16px;
    }

    .sidebar {
        order: -1;
    }

    .week-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-row,
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 汉堡菜单显示 */
    .hamburger-menu {
        display: flex;
    }

    /* 隐藏桌面端导航栏 */
    .nav {
        display: none;
    }

    /* 调整标题大小 */
    .header-left .site-title {
        font-size: 18px;
        margin-left: 8px;
    }

    /* 调整用户信息显示 */
    .user-details {
        display: none; /* 移动端隐藏详细用户信息 */
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* 调整右侧区域 */
    .header-right {
        min-width: auto;
    }

    /* 调整页面容器边距 */
    .content-wrapper {
        padding: 8px 16px 16px 16px; /* 手机端非常小的间距，与第1892行保持一致 */
        gap: 16px;
    }

    .container {
        padding: 12px;
    }

    .section {
        padding: 20px;
    }

    .form-row,
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }

    /* 移动端内容页面的容器调整 */
    body.booking-page .container,
    body.seat-selection-page .container,
    body.important-page .container,
    body.credit-page .container {
        padding: 8px 16px 16px 16px; /* 手机端非常小的间距 */
        gap: 16px;
    }
    
    /* 查询页面保持桌面端布局，取消响应式 */
    body.query-page .container {
        padding: 1.5cm 20px 32px 20px !important; /* 保持桌面端1.5厘米间距 */
        gap: 20px;
    }
}

/* 中等屏幕尺寸响应式 */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .nav-content {
        gap: 2px;
        padding: 6px;
    }

    .nav-text {
        display: none; /* 中等屏幕只显示图标 */
    }

    .nav-item.active::after {
        left: 30%;
        right: 30%;
    }

    .header-left .site-title {
        font-size: 20px;
    }

    .user-details {
        display: none; /* 中等屏幕隐藏详细用户信息 */
    }
}

/* 小屏幕响应式 */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
        min-height: 70px;
    }
    
    .main-container {
        margin-top: 15px; /* 悬浮菜单高度 */
        min-height: calc(100vh - 15px);
    }

    .duty-top-row {
        margin-top: 15px; /* 悬浮菜单下方 */
        z-index: 999; /* 与桌面端保持一致 */
    }

    .header-left .site-title {
        font-size: 16px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hamburger-menu {
        padding: 4px;
    }

    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 13px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .mobile-menu {
        width: 250px;
    }
}

/* ==================== 登录提示层样式 ==================== */
.login-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.login-prompt-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideDown 0.4s ease;
}

.login-prompt h3 {
    font-size: 24px;
    color: #1976D2;
    margin-bottom: 16px;
    font-weight: 600;
}

.login-prompt p {
    font-size: 16px;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.6;
}

.login-prompt-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.login-prompt-buttons .btn {
    min-width: 120px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .login-prompt-content {
        padding: 30px 24px;
        margin: 20px;
    }
    
    .login-prompt-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .login-prompt-buttons .btn {
        width: 100%;
    }
    
    /* 移动端首页布局优化 */
    .mobile-dashboard {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* 今日值班横幅 - 移动端优化 */
    .today-duty-banner {
        background: linear-gradient(135deg, #4a90d9 0%, #357ab8 100%);
        padding: 16px;
        border-radius: 12px;
        color: white;
        margin-bottom: 0;
        box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
    }
    
    .today-duty-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .today-duty-header {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .today-duty-header .icon {
        font-size: 20px;
    }
    
    .today-duty-item {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        font-size: 13px;
        align-items: center;
    }
    
    .today-duty-item .duty-label {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
    
    .today-duty-item .duty-names {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .today-duty-item .duty-name {
        background: rgba(255, 215, 0, 0.25);
        color: #ffd700;
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 12px;
    }
    
    .today-duty-empty {
        text-align: center;
        padding: 12px;
        opacity: 0.8;
        font-size: 13px;
    }
    
    /* 预定情况 - 移动端优化 */
    .mobile-booking-section {
        background: white;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .mobile-view-switcher {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .mobile-view-switcher::-webkit-scrollbar {
        height: 4px;
    }
    
    .mobile-view-switcher::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 2px;
    }
    
    .mobile-view-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
        background: #f7fafc;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        font-size: 13px;
        color: #4a5568;
        text-decoration: none;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .mobile-view-btn.active {
        background: #667eea;
        border-color: #667eea;
        color: white;
        font-weight: 600;
    }
    
    .mobile-view-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        margin: 16px 0;
    }
    
    .mobile-nav-btn {
        color: #667eea;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-current-date {
        font-weight: 600;
        color: #2d3748;
        font-size: 13px;
    }
    
    /* 移动端日视图 */
    .mobile-day-view {
        background: white;
        border-radius: 12px;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .mobile-period-section {
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-period-section:last-child {
        border-bottom: none;
    }
    
    .mobile-period-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
        border-radius: 8px;
        color: white;
    }
    
    .mobile-period-icon {
        font-size: 20px;
    }
    
    .mobile-period-title {
        font-size: 15px;
        font-weight: 600;
    }
    
    .mobile-period-count {
        margin-left: auto;
        font-size: 12px;
        opacity: 0.9;
        background: rgba(255,255,255,0.2);
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    .mobile-booking-card {
        background: #ffffff;
        border-radius: 10px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        border-left: 3px solid #64B5F6;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-booking-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mobile-booking-time {
        font-size: 15px;
        font-weight: 700;
        color: #1976D2;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-booking-time .icon {
        font-size: 16px;
    }
    
    .mobile-booking-status {
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .mobile-booking-status.approved {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }
    
    .mobile-booking-status.pending {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
    }
    
    .mobile-booking-activity {
        font-size: 16px;
        font-weight: 600;
        color: #0D47A1;
        line-height: 1.3;
    }
    
    .mobile-booking-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-booking-detail {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #4a5568;
    }
    
    .mobile-booking-detail .icon {
        font-size: 14px;
        color: #718096;
        flex-shrink: 0;
    }
    
    .mobile-booking-venue {
        background: #E3F2FD;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        color: #1e40af;
        font-weight: 500;
        align-self: flex-start;
    }
    
    /* 移动端周视图 - 改为垂直流式布局 */
    .mobile-week-view {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-day-column {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .mobile-day-column.today {
        background: linear-gradient(135deg, #ffe4ec 0%, #ffccd9 100%);
        border: 2px solid #ffb6c1;
        box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
    }
    
    .mobile-day-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .mobile-day-name {
        font-weight: 700;
        color: #333;
        font-size: 15px;
    }
    
    .mobile-day-date {
        color: #666;
        font-size: 13px;
    }
    
    .mobile-day-bookings {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-mini-booking-card {
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .mobile-mb-time {
        font-size: 13px;
        font-weight: 600;
        color: #1976D2;
    }
    
    .mobile-mb-activity {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
    }
    
    .mobile-mb-applicant {
        font-size: 12px;
        color: #666;
    }
    
    .mobile-empty-day {
        text-align: center;
        padding: 20px;
        color: #999;
        font-size: 13px;
    }
    
    /* 移动端月视图 - 改为垂直流式布局 */
    .mobile-month-calendar {
        background: white;
        border-radius: 12px;
        padding: 16px;
    }
    
    .mobile-calendar-header {
        display: flex;
        justify-content: space-around;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-calendar-weekday {
        font-size: 12px;
        color: #718096;
        font-weight: 500;
        width: 14%;
        text-align: center;
    }
    
    .mobile-calendar-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .mobile-calendar-day {
        width: 14.28%;
        aspect-ratio: 1;
        padding: 4px;
        position: relative;
    }
    
    .mobile-calendar-day.empty {
        opacity: 0.3;
    }
    
    .mobile-calendar-day.today {
        background: linear-gradient(135deg, #ffe4ec 0%, #ffccd9 100%);
        border-radius: 8px;
    }
    
    .mobile-calendar-day.has-bookings {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-radius: 8px;
    }
    
    .mobile-calendar-day-number {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1.8;
    }
    
    .mobile-calendar-day.today .mobile-calendar-day-number {
        color: #d81b60;
    }
    
    .mobile-calendar-day-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 2px;
    }
    
    .mobile-calendar-booking-item {
        background: white;
        padding: 2px 4px;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 9px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-cb-time {
        color: #1976D2;
        font-weight: 600;
        font-size: 8px;
        flex-shrink: 0;
    }
    
    .mobile-cb-activity {
        color: #333;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }
    
    /* 最近演出 - 移动端优化 */
    .mobile-performances-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-performance-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    
    .mobile-performance-poster {
        width: 60px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .mobile-performance-poster-placeholder {
        width: 60px;
        height: 80px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e6ebff 100%);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-performance-poster-placeholder .icon {
        font-size: 24px;
        color: #667eea;
    }
    
    .mobile-performance-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .mobile-performance-title {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .mobile-performance-type {
        background: #667eea;
        color: white;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 600;
        align-self: flex-start;
        margin-bottom: 6px;
    }
    
    .mobile-performance-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
        color: #666;
    }
    
    .mobile-meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-meta-item .icon {
        font-size: 12px;
    }
    
    .mobile-performance-venue,
    .mobile-performance-organizer {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: #888;
    }
    
    .mobile-performance-venue .icon,
    .mobile-performance-organizer .icon {
        font-size: 11px;
    }
    
    /* 重要会议 - 移动端优化 */
    .mobile-important-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-important-card {
        background: white;
        border-radius: 10px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border-left: 4px solid #f59e0b;
    }
    
    .mobile-important-date {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        flex-shrink: 0;
        min-width: 60px;
    }
    
    .mobile-important-info {
        flex: 1;
    }
    
    .mobile-important-info h3 {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .mobile-important-info p {
        font-size: 12px;
        color: #666;
        margin-bottom: 4px;
    }
    
    /* 今日值班 - 移动端优化 */
    .today-duty-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-bottom: 16px;
        border: 2px solid #C8E6C9;
    }
    
    .today-duty-card h3 {
        font-size: 16px;
        color: #2E7D32;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e8f5e9;
    }
    
    .today-duty-card h3 .icon {
        font-size: 18px;
    }

    /* 系统信息 - 移动端优化 */
    .mobile-system-info {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-top: 8px;
    }
    
    .mobile-system-info h3 {
        font-size: 16px;
        color: #1976D2;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-system-info h3 .icon {
        font-size: 18px;
    }
    
    .mobile-system-notice {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        background: #f7fafc;
        padding: 16px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    
    .mobile-system-notice p {
        margin-bottom: 8px;
    }
    
    .mobile-system-notice p:last-child {
        margin-bottom: 0;
    }
}

/* 移动端最大480px进一步优化 */
@media (max-width: 480px) {
    .today-duty-header {
        font-size: 15px;
    }
    
    .today-duty-item {
        font-size: 12px;
    }
    
    .mobile-view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-booking-card {
        padding: 14px;
    }
    
    .mobile-booking-activity {
        font-size: 15px;
    }
    
    .mobile-performance-item {
        padding: 10px;
    }
    
    .mobile-performance-poster,
    .mobile-performance-poster-placeholder {
        width: 50px;
        height: 70px;
    }
    
    .mobile-performance-title {
        font-size: 14px;
    }
    
    .mobile-important-card {
        padding: 14px;
    }
    
    .mobile-system-info {
        padding: 16px;
    }
}

/* 删除移动端和桌面端显示控制规则，统一显示内容 */

/* 移动端响应式 - 保持桌面端布局，让侧边栏和主内容自适应 */
@media (max-width: 768px) {
    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .left-sidebar, .main-content, .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* 移除侧边栏的固定宽度 */
    .left-sidebar {
        order: 1;
    }
    
    .main-content {
        order: 2;
    }
    
    .sidebar {
        order: 3;
    }
    
    /* 确保卡片在小屏幕上显示良好 */
    .sidebar-card, .performances-card {
        margin-bottom: 15px;
    }
    
    /* 今日值班卡片优化 */
    .today-duty-card {
        margin-top: 15px;
    }
}

/* ==================== 现代化的预约表单样式 ==================== */

/* 表单卡片 */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

.form-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.form-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.form-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card-header .icon {
    font-size: 20px;
}

.form-card-body {
    padding: 24px;
}

/* 现代化的表单元素 */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 14px;
}

.form-label .required {
    color: #f56565;
    margin-left: 2px;
}

/* 输入框和选择框 */
.modern-input, .modern-select, .modern-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.modern-input:focus, .modern-select:focus, .modern-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 1px 2px rgba(0,0,0,0.03);
}

.modern-input.compact, .modern-select.compact {
    padding: 8px 12px;
    font-size: 13px;
}

.modern-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
}

.input-with-icon .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #718096;
    z-index: 1;
    pointer-events: none; /* 防止图标干扰点击 */
}

.input-with-icon .modern-input,
.input-with-icon .modern-select,
.input-with-icon .modern-textarea {
    padding-left: 40px;
    position: relative;
    z-index: 2;
}

.input-with-icon.compact .icon {
    left: 10px;
    font-size: 14px;
}

.input-with-icon.compact .modern-input,
.input-with-icon.compact .modern-select {
    padding-left: 32px;
}

/* 只读字段 */
.readonly-field {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #4a5568;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.readonly-field .icon {
    color: #667eea;
    font-size: 16px;
    flex-shrink: 0; /* 防止图标被压缩 */
}

/* 复选框 */
.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.modern-checkbox input[type="checkbox"] {
    display: none;
}

.modern-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s;
}

.modern-checkbox .icon {
    font-size: 16px;
    color: #667eea;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-label {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    color: #667eea;
}

.modern-checkbox.important .checkbox-label {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 160, 0, 0.1) 100%);
    border-color: #ffc107;
    color: #d97706;
}

.modern-checkbox.important .icon {
    color: #ffc107;
}

.modern-checkbox.important input[type="checkbox"]:checked + .checkbox-label {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
    border-color: #ffb300;
    color: #b45309;
}

/* 紧凑的设备需求网格 */
.compact-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.compact-checkbox-item .modern-checkbox {
    margin: 0;
}

.compact-checkbox-item .modern-checkbox .checkbox-label {
    padding: 8px 12px;
    font-size: 13px;
}

.compact-number-item {
    margin: 0;
}

.compact-number-item .form-label {
    font-size: 13px;
    margin-bottom: 6px;
}

/* 字段说明 */
.field-note {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
    font-style: italic;
}

/* 表单操作区 */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.actions-container {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn .icon {
    font-size: 18px;
}

.btn-primary.modern-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary.modern-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-hint .icon {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .compact-equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .form-card-header {
        padding: 14px 20px;
    }
    
    .form-card-body {
        padding: 20px;
    }
    
    .actions-container {
        flex-direction: column;
    }
    
    .modern-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .compact-equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }
}

/* ==================== 取消查询页面自适应显示 ==================== */

/* 在查询页面中，取消周视图的响应式布局 */
body.query-page .week-view {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

/* 在查询页面中，确保表单元素在小屏幕上也能保持桌面端布局 */
body.query-page .query-form .form-row {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    gap: 20px !important;
}

/* 确保查询页面的表单控件在移动端也保持桌面端样式 */
body.query-page .form-group {
    min-width: 180px !important;
}

/* 确保查询页面的日视图列表保持桌面端样式 */
body.query-page .booking-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* 确保查询页面的预约卡片在移动端也保持桌面端样式 */
body.query-page .booking-card {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 20px !important;
    padding: 20px !important;
}

/* 禁用所有移动端专用的查询页面样式 */
body.query-page .mobile-week-view,
body.query-page .mobile-view-btn,
body.query-page .mobile-booking-card,
body.query-page .mobile-mini-booking-card {
    display: none !important;
}

/* 移动端媒体查询 - 针对查询页面取消响应式 */
@media (max-width: 768px) {
    /* 确保查询页面的周视图保持7列布局 */
    body.query-page .week-view {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 8px !important;
        margin-top: 20px !important;
        overflow-x: auto !important;
    }
    
    /* 确保周视图的每一天列保持正常尺寸 */
    body.query-page .week-day {
        min-width: 140px !important;
    }
    
    /* 确保查询表单在移动端保持水平布局 */
    body.query-page .query-form .form-row {
        display: grid !important;
        grid-template-columns: auto auto auto !important;
        gap: 12px !important;
        overflow-x: auto !important;
    }
    
    /* 确保预约卡片保持桌面端布局 */
    body.query-page .booking-card {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        gap: 12px !important;
    }
    
    /* ===== 今日值班横幅样式 ===== */
    .duty-banner-row {
        background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
        border-bottom: 1px solid #d1e7fd;
        padding: 8px 0;
        margin-bottom: 20px;
    }
    
    .duty-banner-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    
    .duty-banner-label {
        flex-shrink: 0;
        font-weight: 600;
        color: #1a73e8;
        font-size: 14px;
        padding: 6px 12px;
        background: rgba(26, 115, 232, 0.08);
        border-radius: 6px;
        border: 1px solid rgba(26, 115, 232, 0.2);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .duty-banner-label::before {
        content: "📅";
        font-size: 12px;
    }
    
    .duty-banner-content {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        min-height: 32px;
    }
    
    .duty-banner-items {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .duty-banner-item {
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 13px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        cursor: default;
    }
    
    .duty-online {
        background: rgba(66, 133, 244, 0.1);
        color: #1a73e8;
        border: 1px solid rgba(66, 133, 244, 0.2);
    }
    
    .duty-online::before {
        content: "💻";
        font-size: 11px;
    }
    
    .duty-cleaning {
        background: rgba(52, 168, 83, 0.1);
        color: #0d652d;
        border: 1px solid rgba(52, 168, 83, 0.2);
    }
    
    .duty-cleaning::before {
        content: "🧹";
        font-size: 11px;
    }
    
    .duty-inspection {
        background: rgba(251, 188, 4, 0.1);
        color: #b06000;
        border: 1px solid rgba(251, 188, 4, 0.2);
    }
    
    .duty-inspection::before {
        content: "🔍";
        font-size: 11px;
    }
    
    .duty-banner-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    .duty-banner-empty {
        color: #666;
        font-size: 13px;
        font-style: italic;
        padding: 6px 12px;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 6px;
    }
    
    /* 移动端适配 */
    @media (max-width: 768px) {
        .duty-banner-container {
            flex-direction: column;
            gap: 10px;
            padding: 8px 12px;
        }
        
        .duty-banner-label {
            align-self: flex-start;
            font-size: 13px;
        }
        
        .duty-banner-items {
            justify-content: flex-start;
        }
        
        .duty-banner-item {
            padding: 3px 10px;
            font-size: 12px;
        }
    }
    
    @media (max-width: 480px) {
        .duty-banner-row {
            padding: 6px 0;
        }
        
        .duty-banner-items {
            flex-direction: column;
            width: 100%;
        }
        
        .duty-banner-item {
            width: 100%;
            justify-content: center;
        }
    }
    
    /* ===== 左侧栏今日值班卡片样式 ===== */
    .sidebar-card.duty-sidebar-card {
        background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid #e1e8f0;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
        margin-bottom: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-card.duty-sidebar-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        transform: translateY(-1px);
    }
    
    .duty-header {
        padding: 14px 18px 10px;
        background: linear-gradient(90deg, #f0f7ff 0%, #e6f2ff 100%);
        border-bottom: 1px solid #e1e8f0;
    }
    
    .duty-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    
    .duty-title-wrapper h3 {
        margin: 0;
        font-size: 16px;
        color: #1a73e8;
        font-weight: 600;
    }
    
    .duty-title-wrapper .icon {
        margin-right: 8px;
        font-size: 14px;
    }
    
    .duty-date {
        font-size: 12px;
        color: #666;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.8);
        padding: 3px 8px;
        border-radius: 20px;
        border: 1px solid #d1e7fd;
    }
    
    .duty-status-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }
    
    .status-dot.online {
        background: #34c759;
        box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
    }
    
    .status-dot.offline {
        background: #ff3b30;
        box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
    }
    
    .status-text {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }
    
    .duty-content {
        padding: 14px 18px;
    }
    
    .duty-empty-state {
        text-align: center;
        padding: 20px 0;
    }
    
    .empty-icon {
        font-size: 32px;
        margin-bottom: 12px;
        opacity: 0.5;
    }
    
    .empty-title {
        font-size: 14px;
        color: #666;
        margin-bottom: 4px;
        font-weight: 500;
    }
    
    .empty-desc {
        font-size: 12px;
        color: #999;
        margin: 0;
    }
    
    .duty-info-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .duty-info-item {
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    
    .duty-info-item:hover {
        border-color: #d1e7fd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .online-duty {
        border-left: 4px solid #00bcd4;
        background: linear-gradient(135deg, #e0f7fa 0%, #d4e4ff 100%);
    }

    .online-duty .duty-item-icon {
        color: #3498db;
    }

    .cleaning-duty {
        border-left: 4px solid #ff9500;
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    }

    .cleaning-duty .duty-item-icon {
        color: #f39c12;
    }

    .inspection-duty {
        border-left: 4px solid #5856d6;
        background: linear-gradient(135deg, #f3e5f5 0%, #e0e0e0 100%);
    }

    .inspection-duty .duty-item-icon {
        color: #9b59b6;
    }

    .duty-item-header {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
        border-bottom: 1px solid #dee2e6;
    }

    .duty-item-icon {
        font-size: 14px;
        margin-right: 6px;
        opacity: 0.8;
    }

    .duty-item-title {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
    }

    .duty-item-count {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
    }

    .duty-item-content {
        padding: 10px 14px;
    }
    
    .duty-person-detailed {
        padding: 8px 0;
    }
    
    .duty-person-detailed:not(:last-child) {
        border-bottom: 1px dashed #e9ecef;
    }
    
    .person-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
    }
    
    .person-extra {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .person-name {
        font-size: 15px;
        color: #2c3e50;
        font-weight: 600;
    }

    .person-area {
        font-size: 11px;
        color: #fff;
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
    }

    .person-time {
        font-size: 11px;
        color: #fff;
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
    }

    .person-class {
        font-size: 11px;
        background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
        color: #fff;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
        border: 1px solid #7d3c98;
    }

    .person-phone {
        font-size: 11px;
        background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
        color: #fff;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
        border: 1px solid #229954;
        font-family: inherit;
    }

    /* 劳动教育中专用的负责人和参与标签 */
    .labor-duty .person-class,
    .labor-duty .person-phone {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 8px;
    }

    .labor-duty .person-class:first-child {
        background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
        color: #fff;
        border: 1px solid #7d3c98;
    }

    .labor-duty .person-phone:last-child {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: #fff;
        border: 1px solid #2471a3;
    }
    
    .duty-more {
        font-size: 11px;
        color: #666;
        text-align: center;
        padding: 6px 0 3px;
        font-style: italic;
    }
    
    .duty-footer {
        padding: 10px 18px;
        background: #f8fafc;
        border-top: 1px solid #e9ecef;
        text-align: center;
    }
    
    .duty-link {
        font-size: 12px;
        color: #1a73e8;
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: color 0.2s ease;
    }
    
    .duty-link:hover {
        color: #0d5bb5;
        text-decoration: underline;
    }
    
    /* 移动端适配 */
    @media (max-width: 768px) {
        .duty-header {
            padding: 12px 14px 8px;
        }
        
        .duty-content {
            padding: 12px 14px;
        }
        
        .duty-title-wrapper h3 {
            font-size: 14px;
        }
        
        .duty-date {
            font-size: 11px;
            padding: 2px 6px;
        }
        
        .duty-item-header {
            padding: 8px 12px;
        }
        
        .duty-item-content {
            padding: 8px 12px;
        }
        
        .duty-person-detailed {
            padding: 6px 0;
        }
        
        .person-main {
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            margin-bottom: 3px;
        }
        
        .person-extra {
            gap: 4px;
        }
        
        .person-name {
            font-size: 12px;
        }
        
        .person-area,
        .person-time,
        .person-class,
        .person-phone {
            font-size: 10px;
            padding: 1px 4px;
        }
        
        .duty-more {
            font-size: 10px;
            padding: 4px 0 2px;
        }
        
        .duty-link {
            font-size: 11px;
        }
    }
    
    @media (max-width: 480px) {
        .sidebar-card.duty-sidebar-card {
            border-radius: 8px;
            margin-bottom: 12px;
        }
        
        .duty-title-wrapper {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
        
        .duty-date {
            align-self: flex-start;
        }
        
        .duty-header {
            padding: 10px 12px 6px;
        }
        
        .duty-content {
            padding: 10px 12px;
        }
        
        .duty-title-wrapper h3 {
            font-size: 13px;
        }
        
        .duty-date {
            font-size: 10px;
            padding: 1px 4px;
        }
        
        .person-name {
            font-size: 13px;
            font-weight: 600;
            color: #2c3e50;
        }

        .person-area {
            font-size: 10px;
            padding: 1px 5px;
        }

        .person-time {
            font-size: 10px;
            padding: 1px 5px;
        }

        .person-class {
            font-size: 10px;
            padding: 1px 5px;
        }

        .person-phone {
            font-size: 10px;
            padding: 1px 5px;
        }
    }
}

/* ===== 左侧栏劳动教育卡片样式 ===== */
.sidebar-card.labor-education-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0fff4 100%);
    border: 1px solid #b8e99c;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card.labor-education-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.labor-education-card .duty-header {
    padding: 14px 18px 10px;
    background: linear-gradient(90deg, #f0fff0 0%, #e6ffe6 100%);
    border-bottom: 1px solid #e1f0e1;
}

.labor-education-card .duty-title-wrapper h3 {
    color: #2e7d32;
}

.labor-education-card .duty-date {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

/* 劳动教育专用样式 */
.labor-duty {
    border-left: 4px solid #4caf50;
}

.labor-duty .duty-item-icon {
    color: #4caf50;
}

.labor-duty .duty-item-title {
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
}

/* 劳动教育班级名称样式 */
.labor-duty .person-name {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

.labor-duty .person-class {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    border: 1px solid #d63031;
}

.labor-duty .person-time {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border: 1px solid #c7781c;
}

.duty-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e9ecef;
    font-size: 11px;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 8px;
}

.location-icon {
    font-size: 14px;
    opacity: 0.8;
}

.location-text {
    flex: 1;
    font-size: 11px;
    color: #34495e;
    line-height: 1.4;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .labor-education-card .duty-header {
        padding: 12px 14px 8px;
    }
    
    .labor-education-card .duty-content {
        padding: 12px 14px;
    }
    
    .duty-location {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar-card.labor-education-card {
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .labor-education-card .duty-title-wrapper h3 {
        font-size: 13px;
    }
    
    .labor-education-card .duty-date {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .duty-location {
        font-size: 10px;
    }
}

/* 小屏幕手机端媒体查询 - 针对查询页面取消响应式 */
@media (max-width: 480px) {
    /* 在非常小的屏幕上，让周视图可以水平滚动 */
    body.query-page .week-view {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 6px !important;
        min-width: 1000px !important; /* 确保有足够的宽度显示7列 */
    }
    
    /* 确保每一天列保持最小宽度 */
    body.query-page .week-day {
        min-width: 120px !important;
    }
    
    /* 确保查询表单在小屏幕上也能保持布局 */
    body.query-page .query-form .form-row {
        display: grid !important;
        grid-template-columns: auto auto auto !important;
        gap: 8px !important;
        min-width: 600px !important; /* 确保表单有足够宽度 */
    }
    
    /* 确保表单组在小屏幕上也有最小宽度 */
    body.query-page .form-group {
        min-width: 150px !important;
    }
}

/* ========== 主题系统样式 ========== */

/* 白天主题（默认） */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --primary-color: #1976d2;
    --primary-light: #64b5f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(25, 118, 210, 0.8);
    --nav-blur: 10px;
}

/* 晚上主题 */
.theme-dark {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-light: #374151;
    --border-medium: #4b5563;
    --primary-color: #2196f3;
    --primary-light: #64b5f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(18, 18, 18, 0.9);
    --nav-blur: 12px;
}

/* 应用主题变量到元素 */
.theme-light .main-container,
.theme-light .content-wrapper {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-dark .main-container,
.theme-dark .content-wrapper {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* 夜间模式下的侧边栏和内容区 */
.theme-dark .left-sidebar .sidebar-card,
.theme-dark .sidebar .sidebar-card {
    background-color: #1e1e1e;
    border-color: #374151;
}

.theme-dark .left-sidebar .sidebar-card h3,
.theme-dark .sidebar .sidebar-card h3 {
    color: #f8fafc;
}

.theme-dark .left-sidebar .sidebar-card .icon,
.theme-dark .sidebar .sidebar-card .icon {
    color: #64b5f6;
}

/* 卡片样式 */
.theme-light .sidebar-card,
.theme-light .announcement-card,
.theme-light .meeting-card {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-color: var(--border-light);
}

.theme-dark .sidebar-card,
.theme-dark .announcement-card,
.theme-dark .meeting-card {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-color: var(--border-medium);
}

/* 文本颜色 */
.theme-light h1, .theme-light h2, .theme-light h3,
.theme-light .card-title, .theme-light .item-title {
    color: var(--text-primary);
}

.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark .card-title, .theme-dark .item-title {
    color: var(--text-primary);
}

.theme-light .card-content, .theme-light .item-content,
.theme-light .meta-info, .theme-light .description {
    color: var(--text-secondary);
}

.theme-dark .card-content, .theme-dark .item-content,
.theme-dark .meta-info, .theme-dark .description {
    color: var(--text-secondary);
}

/* 导航栏主题适配 */
.theme-light .header {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
}

.theme-dark .header {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
}

.theme-dark .nav-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .nav-item {
    color: rgba(255, 255, 255, 0.8);
}

.theme-dark .nav-item:hover {
    background: rgba(100, 181, 246, 0.2);
}

.theme-dark .nav-item.active {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.3) 0%, rgba(66, 165, 245, 0.3) 100%);
}

.theme-dark .header-left .site-title {
    color: white;
}

.theme-dark .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.theme-dark .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单主题适配 */
.theme-dark .mobile-menu {
    background: var(--bg-secondary);
}

.theme-dark .mobile-menu-header {
    background: var(--bg-tertiary);
}

.theme-dark .mobile-menu-item {
    color: var(--text-primary);
    border-bottom-color: var(--border-light);
}

.theme-dark .mobile-menu-item:hover {
    background: var(--bg-tertiary);
}

/* 按钮主题适配 */
.theme-dark .btn {
    background: var(--primary-color);
    color: white;
}

.theme-dark .btn:hover {
    background: var(--primary-light);
}

/* ==================== 用户悬浮菜单（右上角） ==================== */
.user-float-container {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 9999;
    font-family: inherit;
}

.user-float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(25, 118, 210, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-float-btn:hover {
    background: rgba(25, 118, 210, 1);
    transform: translateY(-2px);
}

.user-float-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-float-name {
    font-weight: 500;
}

.user-float-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-float-btn:hover .user-float-arrow {
    transform: translateY(2px);
}

.user-float-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-float-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-float-info {
    padding: 12px 16px;
    background: rgba(25, 118, 210, 0.05);
}

.user-float-role {
    font-size: 13px;
    color: #1976d2;
    font-weight: 600;
}

.user-float-dept {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* ==================== 主题切换按钮（右上角悬浮） ==================== */
.theme-float-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(25, 118, 210, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-float-btn:hover {
    background: rgba(25, 118, 210, 1);
    transform: rotate(15deg) scale(1.1);
}

/* 深色主题适配 - 用户悬浮菜单 */
.theme-dark .user-float-btn {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .user-float-dropdown {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .user-float-info {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .user-float-role {
    color: #64b5f6;
}

.theme-dark .user-float-dept {
    color: #aaa;
}

/* 深色主题适配 - 主题按钮 */
.theme-dark .theme-float-btn {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-float-container {
        top: 12px;
        right: 70px;
    }

    .user-float-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .user-float-name {
        display: none;
    }

    .theme-float-container {
        top: 12px;
        right: 12px;
    }

    .theme-float-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* 过渡动画 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header, .sidebar-card, .nav-item {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== 合并的值班安排卡片样式 ===== */
.sidebar-card.duty-labor-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid #e8eff5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card.duty-labor-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.duty-labor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    position: relative;
}

.tab-container {
    display: flex;
    gap: 8px;
    position: relative;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 16px;
}

.tab-text {
    font-size: 13px;
    font-weight: 500;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tab-btn.active .tab-badge {
    background: #667eea;
    color: white;
}

.tab-badge.active {
    background: #4caf50;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.duty-labor-content {
    background: white;
    min-height: 200px;
    position: relative;
}

.tab-content {
    display: none;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 劳动教育周信息 */
.labor-week-info {
    padding: 0 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.week-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
}

.week-icon {
    font-size: 14px;
}

.week-text {
    font-weight: 500;
}

.duty-item-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.duty-day-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.duty-labor-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8eff5;
    padding: 12px 16px;
    text-align: center;
}

.footer-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tab-btn {
        padding: 8px 12px;
        gap: 4px;
    }
    
    .tab-text {
        font-size: 12px;
    }
    
    .tab-icon {
        font-size: 14px;
    }
    
    .tab-badge {
        padding: 1px 6px;
        font-size: 10px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .week-range {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .duty-labor-header {
        padding: 12px;
    }
    
    .tab-btn {
        padding: 6px 8px;
        gap: 3px;
        font-size: 11px;
    }
    
    .tab-text {
        font-size: 11px;
    }
    
    .tab-icon {
        font-size: 12px;
    }
    
    .duty-labor-content {
        min-height: 150px;
    }
    
    .tab-content {
        padding: 10px;
    }
}
