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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* 修复：去掉所有链接的下划线 */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* 固定蓝色头部样式 */
.app-head {
    width: 100%;
    background-color: #1D62EB;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    position: fixed;
    z-index: 1000;
    top: 0;
    height: 56px;
}

.app-nav-layout {
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    width: auto;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.nav-logo {
    padding-right: 46px;
}

.nav-logo span {
    vertical-align: middle;
    line-height: 56px;
}

.app-name {
    color: #FFFFFF;
    font-size: 20px;
    margin-left: 8px;
    font-weight: bold;
}

.right-useinfo {
    padding-left: 24px;
    align-items: center;
    display: flex;
}

.user-name {
    color: #FFFFFF;
    margin-right: 20px;
    font-size: 14px;
}

.nav-link {
    color: #BED4FF;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #3E7EFF;
    color: #ffffff;
}

/* 主内容布局 */
body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#app {
    width: 100%;
    height: 100vh;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    position: relative;
}

#app-body {
    box-sizing: border-box;
    -webkit-flex: 1;
    flex: 1;
    overflow: auto;
    padding: 20px;
    margin: 0;
}

.layout-main {
    display: -webkit-flex;
    display: flex;
    height: 100%;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layout-main {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    .layout-sider {
        width: 100% !important;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #F0F1F4;
    }
    
    .layout-content {
        padding: 10px;
    }
}

/* 修复：确保兼容旧版WebKit内核浏览器 */
.layout-sider {
    -webkit-flex-shrink: 0;
}

.layout-content {
    -webkit-flex: 1;
}

.layout-sider {
    width: 224px;
    background: #ffffff;
    border-right: 1px solid #F0F1F4;
    flex-shrink: 0;
    overflow-y: auto;
    transition: width 0.3s ease;
    min-height: 0;
    padding-top: 56px;
}

.layout-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background-color: #f0f2f5;
    min-height: 0;
}

/* 左侧菜单样式 */
.left-menu {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.el-menu-left {
    flex: 1;
    border-right: none;
    width: 224px;
    background: #fff;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}

/* 修复：确保菜单项正确显示 */
.el-menu-item {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 28px !important;
    color: #303133;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.el-menu-item i {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.el-menu-item .menu-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-menu-item .menu-text a {
    color: inherit;
    font-size: 14px !important;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.el-menu-item .menu-text a:hover {
    text-decoration: none !important;
}

.el-menu-item:hover {
    background-color: #ecf5ff;
    color: #409eff;
}

.el-menu-item.is-active {
    color: #409eff;
    background-color: #ecf5ff;
    border-right: 3px solid #409eff;
}

/* 子菜单样式 */
.el-submenu {
    position: relative;
}

.el-submenu__title {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 28px !important;
    color: #303133;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.el-submenu__title i {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.el-submenu__title .menu-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-submenu__title .menu-text:hover {
    text-decoration: none !important;
}

.el-submenu__title:hover {
    background-color: #ecf5ff;
    color: #409eff;
}

/* 修复：子菜单箭头图标样式 */
.el-submenu__title::after {
    content: "▸";
    font-size: 12px;
    color: #909399;
    transition: transform 0.3s;
    margin-left: 5px;
}

.el-submenu.is-active > .el-submenu__title::after {
    transform: rotate(90deg);
    color: #409eff;
}

.el-submenu.is-active .el-submenu__title {
    color: #409eff;
    background-color: #ecf5ff;
    border-right: 3px solid #409eff;
}

/* 修复：二级菜单默认隐藏，激活时显示 */
.el-submenu .el-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f9fafc;
    display: none !important; /* 默认隐藏 */
}

.el-submenu.is-active .el-menu {
    display: block !important; /* 激活时显示 */
    animation: slideDown 0.3s ease;
}

.el-submenu .el-menu-item {
    padding-left: 50px !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    height: 40px !important;
    line-height: 40px !important;
}

.el-submenu .el-menu-item i {
    margin-right: 8px;
    font-size: 14px;
}

.el-submenu .el-menu-item .menu-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-submenu .el-menu-item .menu-text a {
    color: inherit;
    font-size: 13px !important;
    text-decoration: none !important;
}

.el-submenu .el-menu-item .menu-text a:hover {
    text-decoration: none !important;
}

.el-submenu .el-menu-item:hover {
    background-color: #ecf5ff;
    color: #409eff;
}

.el-submenu .el-menu-item.is-active {
    color: #409eff;
    background-color: #ecf5ff;
    border-right: 3px solid #409eff;
}

/* 折叠状态 - 修复版 */
.layout-sider.collapsed {
    width: 100px !important;
}

.layout-sider.collapsed .el-menu-item .menu-text,
.layout-sider.collapsed .el-submenu__title .menu-text {
    display: none !important;
}

.layout-sider.collapsed .el-menu-item i,
.layout-sider.collapsed .el-submenu__title i {
    margin-right: 0;
    font-size: 18px;
}

.layout-sider.collapsed .el-submenu .el-menu {
    display: none !important;
}

/* 修复：折叠状态下隐藏子菜单箭头 */
.layout-sider.collapsed .el-submenu__title::after {
    display: none;
}

/* 修复：折叠状态下子菜单激活状态的调整 */
.layout-sider.collapsed .el-submenu.is-active .el-submenu__title {
    background-color: #ecf5ff;
    color: #409eff;
}

.layout-sider.collapsed .el-menu-item.is-active,
.layout-sider.collapsed .el-submenu.is-active .el-submenu__title {
    border-right: 3px solid #409eff;
}

/* 折叠按钮样式 */
.bottom-collapse {
    height: 60px;
    border-top: 1px solid #F0F1F4;
    color: #8C8C8C;
    font-size: 22px;
    line-height: 60px;
    text-align: right;
    padding-right: 21px;
    cursor: pointer;
    box-sizing: content-box;
}

.bottom-collapse:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.header div {
    font-size: 14px;
    opacity: 0.9;
}

.header a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

/* 导航菜单样式 */
.menu {
    background: white;
    padding: 0;
    border-bottom: 2px solid #e1e5e9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.menu-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    position: relative;
}

.menu-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.menu-nav a:hover {
    background-color: #f8f9fa;
    color: #007cba;
    border-bottom-color: #007cba;
    text-decoration: none !important;
}

.menu-nav a.active {
    background-color: #e7f3ff;
    color: #007cba;
    border-bottom-color: #007cba;
}

/* 下拉菜单样式 - 标准下拉模式 */
.dropdown {
    position: relative;
    display: inline-block;
    /* 确保下拉菜单位置正确 */
    vertical-align: top;
}

/* 下拉菜单容器 - 默认隐藏 */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 0;
    border: 1px solid #e1e5e9;
    border-top: none;
    /* 确保下拉菜单在正确的位置 */
    width: 160px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* 确保下拉菜单不会超出视口 */
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}

/* 下拉菜单项样式 */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #555;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 下拉菜单项悬停效果 */
.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007cba;
    text-decoration: none !important;
}

/* 关键规则：鼠标悬停在下拉菜单容器上时显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* 下拉菜单切换器样式 */
.dropdown-toggle {
    position: relative;
    padding-right: 20px !important;
}

/* 下拉菜单箭头 */
.dropdown-toggle::after {
    content: "▼";
    font-size: 8px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

/* 激活状态样式 - 修复版 */
.menu-nav li.active,
.menu-nav li.dropdown.active {
    background-color: #e7f3ff;
}

.menu-nav li.active > a,
.menu-nav li.dropdown.active > a {
    background-color: #e7f3ff;
    color: #007cba;
    border-bottom-color: #007cba;
}

/* 确保下拉菜单中的激活项也正确显示 */
.dropdown-menu a.active {
    background-color: #e7f3ff !important;
    color: #007cba !important;
    font-weight: 500;
}

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

/* 内容区域样式 */
.content {
    padding: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #e1e5e9;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none !important;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #bd2130;
}

/* 登录页面样式 */
.login-container {
    width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-container h2 {
    color: #007cba;
    margin-bottom: 30px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.card-header {
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    color: #007cba;
    font-size: 18px;
    font-weight: 600;
}

/* 统计信息样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid #007cba;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* 空单元格样式 */
.empty-cell {
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-nav {
        flex-direction: column;
    }
    
    .menu-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .content {
        padding: 15px;
    }
    
    .login-container {
        width: 90%;
        margin: 50px auto;
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端下拉菜单调整 */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #e1e5e9;
        border-top: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* 移动端激活状态样式 */
    .menu-nav li.dropdown.active .dropdown-menu {
        display: block;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导入说明样式 */
.import-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #007cba;
}

.import-notes h4 {
    margin-top: 0;
    color: #007cba;
}

.format-examples {
    background: white;
    padding: 10px;
    border-radius: 3px;
    font-family: monospace;
    margin: 10px 0;
}

.template-links ul {
    list-style: none;
    padding: 0;
}

.template-links li {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 快速导航样式 */
.quick-nav {
    list-style: none;
    padding: 0;
}

.quick-nav li {
    margin-bottom: 10px;
}

/* 课程表特殊样式 */
.special-course {
    background-color: #e6f7ff;
    padding: 5px;
    border-radius: 4px;
}

.course-type {
    color: #1890ff;
    font-weight: bold;
}

.special-label {
    color: #d4380d;
    font-size: 12px;
    font-weight: bold;
}

/* ==================== 空堂查询页面样式 ==================== */

/* 空堂教师查询页面特有样式 */
.query-type {
    margin-bottom: 20px;
}

.query-type label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
}

.results {
    margin-top: 25px;
}

.date-info {
    background: #e7f3ff;
    border: 1px solid #007cba;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.teacher-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.teacher-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.teacher-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.teacher-item[style*="cursor: pointer"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

.teacher-name {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
    font-size: 16px;
}

.teacher-subject {
    color: #6c757d;
    font-size: 14px;
}

.teacher-classes {
    color: #28a745;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

.teacher-group {
    color: #6f42c1;
    font-size: 13px;
    margin-top: 5px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results h4 {
    color: #495057;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.user-info {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* 表单容器样式 */
.form-container-free {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* 表单组样式 */
.form-group-free {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group-free label {
    display: inline-block;
    width: auto;
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
    font-size: 0.9em;
}

.form-control {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 180px;
    font-size: 0.9em;
}

/* 按钮样式补充 */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    background-color: #007bff;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.btn-secondary {
    background-color: #6c757d;
}

/* 筛选行样式 */
.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.filter-item {
    flex: 1;
    min-width: auto;
    margin-right: 10px;
}

.filter-item:last-child {
    margin-right: 0;
}

/* 查看课表按钮样式 */
.view-schedule-btn {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-schedule-btn:hover {
    background-color: #218838;
}

/* 浮窗样式 */
.floating-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.floating-window.active {
    display: block;
}

.floating-window-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-window-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.8;
}

.floating-window-content {
    padding: 20px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* 课表样式 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-table th, .schedule-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tr:hover {
    background-color: #e9ecef;
}

.schedule-table small {
    color: #6c757d;
    font-size: 0.85em;
}

/* 新增：高亮单元格样式 */
.highlight-cell {
    background-color: #90ee90 !important; /* 浅绿色背景 */
    border: 2px solid #28a745 !important; /* 绿色边框 */
    font-weight: bold;
    position: relative;
}

.highlight-cell::after {
    content: "● 查询时间";
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    color: #28a745;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 3px;
    border-radius: 2px;
}

.stats-info {
    background: #e7f3ff;
    border: 1px solid #007cba;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.double-teacher {
    color: #28a745;
    font-weight: bold;
}

.odd-week {
    color: #007bff;
}

.even-week {
    color: #dc3545;
}

/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* 改进的加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(0, 123, 255, 0.2);
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(0, 123, 255, 0.6);
    animation: spin 1.5s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(0, 123, 255, 0.4);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-status {
    color: #6c757d;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    animation: pulse 2s infinite;
    position: relative;
}

.loading-status::after {
    content: '';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 错误状态样式 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 30px;
    text-align: center;
}

.error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8d7da;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-state h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .floating-window {
        width: 95%;
        max-height: 95vh;
    }
    
    .floating-window-content {
        padding: 15px;
    }
    
    .schedule-table {
        font-size: 14px;
    }
    
    .schedule-table small {
        font-size: 0.75em;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .highlight-cell::after {
        font-size: 9px;
        padding: 0px 2px;
    }
}

@media (max-width: 576px) {
    .teacher-list {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-wrap: wrap;
    }
    
    .filter-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 减少运动敏感用户的可访问性选项 */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    .loading-spinner::before,
    .loading-spinner::after {
        animation: none;
        border-top-color: #007bff;
    }
    
    .loading-status {
        animation: none;
    }
}