/* 科技感高端 UI 样式 - 基于 Galaxy UI 素材设计 */

/* 优化导航栏按钮样式 */
.navbar {
    padding: 0.5rem 0.75rem;
}

.sidebar-toggler,
.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggler:hover,
.navbar-toggler:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

.sidebar-toggler:active,
.navbar-toggler:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-toggler i {
    font-size: 1.25rem;
    color: var(--tech-primary, #ff9800);
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 152, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

:root {
    /* Logo主题配色方案 - 橙色温暖风格 */
    --tech-bg-dark: #fff8e1;
    /* 浅奶油色背景 */
    --tech-bg-darker: #fff3c4;
    /* 稍深的奶油色 */
    --tech-card-bg: rgba(255, 255, 255, 0.95);
    /* 白色卡片背景 */
    --tech-card-border: rgba(255, 152, 0, 0.4);
    /* 橙色边框 */
    --tech-primary: #ff9800;
    /* 亮橙色主色 */
    --tech-primary-glow: rgba(255, 152, 0, 0.5);
    --tech-primary-dark: #f57c00;
    /* 深橙色 */
    --tech-secondary: #ffb74d;
    /* 浅橙色 */
    --tech-accent: #ff6f00;
    /* 强调橙色 */
    --tech-text: #5d4037;
    /* 深棕色文字 */
    --tech-text-muted: #8d6e63;
    /* 稍浅的棕色 */
    --tech-gradient-1: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    --tech-gradient-2: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    --tech-gradient-3: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全局背景 - 深色科技感 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--tech-gradient-3);
    background-attachment: fixed;
    color: var(--tech-text);
    margin: 0;
    padding: 0;
    padding-top: 60px;
    position: relative;
    overflow-x: hidden;
}

/* 全局防横向滚动（*/
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 静态背景网格 - 橙色主题 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 152, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 152, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    /* 移除动画，保持静态 */
}

/* 导航栏 - 橙色主题 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--tech-primary);
    box-shadow: 0 4px 30px rgba(255, 152, 0, 0.15), 0 0 20px rgba(255, 152, 0, 0.1);
    padding: 12px 24px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    /* 桌面端隐藏溢出，移动端需要显示溢出（为了下拉菜单） */
    overflow: visible;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.navbar::-webkit-scrollbar {
    display: none;
}

.navbar .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navbar-brand {
    font-weight: 700;
    color: var(--tech-primary) !important;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--tech-primary-dark) !important;
    text-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    /* 移除缩放动画，减少视觉干扰 */
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border: 2px solid var(--tech-primary);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.logo-img:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    transform: scale(1.05);
}

.navbar-toggler {
    border: 2px solid var(--tech-primary);
    border-radius: 8px;
    padding: 6px 10px;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 152, 0, 0.1);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 152, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 侧边栏切换按钮（移动端） */
.sidebar-toggler {
    border: 2px solid var(--tech-primary);
    border-radius: 8px;
    padding: 8px 12px;
    background: transparent;
    color: var(--tech-primary);
    font-size: 20px;
    margin-right: 12px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggler:hover {
    background: rgba(255, 152, 0, 0.1);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.sidebar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.4);
    outline: none;
}

/* 侧边栏遮罩层（移动端） */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 侧边栏 - 橙色主题 */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    border-right: 2px solid var(--tech-primary);
    padding: 0 !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 240px !important;
    max-width: 240px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(255, 152, 0, 0.1), 0 0 30px rgba(255, 152, 0, 0.05);
    box-sizing: border-box;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* Firefox 滚动条 */
    scrollbar-width: thin;
    scrollbar-color: var(--tech-primary) rgba(255, 243, 196, 0.5);
    /* 优化滚轮滚动 */
    -webkit-overflow-scrolling: touch;
    /* 确保可以接收滚轮事件 */
    touch-action: pan-y;
    /* 确保可以接收鼠标事件 */
    pointer-events: auto;
    /* 确保可以滚动 */
    will-change: scroll-position;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 100%;
}

/* 侧边栏滚动条 - 科技感 */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 243, 196, 0.3);
    border-radius: 4px;
    margin: 4px 0;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--tech-primary), var(--tech-primary-dark));
    border-radius: 4px;
    box-shadow: 0 0 10px var(--tech-primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 30px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--tech-primary);
    box-shadow: 0 0 15px var(--tech-primary-glow);
}

/* 侧边栏链接 - 霓虹灯效果 */
.sidebar .nav-link {
    color: var(--tech-text);
    padding: 14px 20px;
    border-radius: 12px;
    margin: 4px 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
}

.sidebar .nav-link::before {
    /* 移除滑动光效，减少视觉干扰 */
    display: none;
}

.sidebar .nav-link:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--tech-primary);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2), inset 0 0 20px rgba(255, 152, 0, 0.05);
    transform: translateX(5px);
    color: var(--tech-primary-dark);
}

.sidebar .nav-link.active {
    background: var(--tech-gradient-2);
    border-color: var(--tech-primary);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3), inset 0 0 20px rgba(255, 152, 0, 0.1);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link.active::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    /* 移除脉冲动画，保持静态 */
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover i {
    color: var(--tech-primary-dark);
}

.sidebar .nav-link.active i {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 主内容区 */
.container-fluid>.row {
    margin-left: 0;
    margin-right: 0;
}

.container-fluid>.row>.col-md-2.sidebar {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 240px !important;
    max-width: 240px !important;
    flex: 0 0 240px !important;
    box-sizing: border-box;
    overflow: hidden;
}

.container-fluid>.row>.col-md-10.content {
    margin-left: 240px !important;
    width: calc(100% - 240px) !important;
    max-width: calc(100% - 240px) !important;
    flex: 0 0 calc(100% - 240px) !important;
}

.content {
    padding: 24px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* 卡片 - 橙色主题 */
.card {
    border: 2px solid var(--tech-card-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.15), 0 0 0 1px rgba(255, 152, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tech-gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--tech-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(66, 196, 152, 0.3);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: var(--tech-gradient-2);
    border-bottom: 2px solid var(--tech-primary);
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    padding: 20px 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 24px;
    color: var(--tech-text);
}

/* 按钮 - 科技感霓虹灯 */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    /* 移除波纹动画，减少视觉干扰 */
    display: none;
}

.btn-primary {
    background: var(--tech-gradient-1) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.5), 0 0 30px rgba(255, 152, 0, 0.3) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--tech-gradient-1);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6), 0 0 40px rgba(255, 152, 0, 0.4) !important;
    transform: translateY(-2px) scale(1.02);
    background: var(--tech-gradient-1) !important;
    color: #fff !important;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-info:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

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

/* 表格 - 橙色主题 */
.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--tech-card-border);
}

.table thead {
    background: var(--tech-gradient-2);
    border-bottom: 2px solid var(--tech-primary);
}

.table th {
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--tech-primary);
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(66, 196, 152, 0.3);
}

.table td {
    border: none;
    border-bottom: 1px solid rgba(66, 196, 152, 0.1);
    padding: 16px;
    font-size: 15px;
    color: var(--tech-text);
}

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

.table tbody tr:hover {
    background: rgba(255, 152, 0, 0.08);
    box-shadow: inset 0 0 20px rgba(255, 152, 0, 0.05);
    /* 移除缩放，减少视觉干扰 */
}

/* 表单控件 - 橙色主题 */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid rgba(255, 152, 0, 0.4);
    padding: 12px 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tech-text);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tech-primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.3), inset 0 0 10px rgba(255, 152, 0, 0.05);
    outline: none;
    color: var(--tech-text);
}

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

/* 警告框 - 科技感 */
.alert {
    border-radius: 12px;
    border: 2px solid;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* 徽章 - 科技感 */
.badge {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.badge-primary {
    background: rgba(66, 196, 152, 0.2);
    border-color: var(--tech-primary);
    color: var(--tech-primary);
    box-shadow: 0 0 10px rgba(66, 196, 152, 0.3);
}

/* 模块卡片 - 首页 */
.module-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid var(--tech-card-border);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.15), 0 0 0 1px rgba(255, 152, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--tech-primary);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.25), 0 0 30px rgba(255, 152, 0, 0.2);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card .card-body {
    padding: 32px;
    text-align: center;
}

.module-card i {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    transition: all 0.4s ease;
    color: var(--tech-primary);
    filter: drop-shadow(0 2px 4px rgba(255, 152, 0, 0.3));
}

.module-card:hover i {
    color: var(--tech-primary-dark);
    filter: drop-shadow(0 4px 8px rgba(255, 152, 0, 0.4));
}

.module-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--tech-text);
    text-shadow: 0 0 10px rgba(66, 196, 152, 0.3);
}

/* 响应式设计 */
/* 移动端优化：增加内容区域宽度，减少边框 */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .content {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }

    /* 显示侧边栏切换按钮 */
    .sidebar-toggler {
        display: block;
    }

    body {
        padding-top: 60px;
    }

    /* 侧边栏在移动端默认隐藏，以抽屉形式显示 */
    .sidebar {
        position: fixed !important;
        top: 60px !important;
        left: -280px !important;
        width: 280px !important;
        max-width: 280px !important;
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
        z-index: 1000 !important;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    }

    /* 侧边栏显示状态 */
    .sidebar.show {
        left: 0 !important;
    }

    .container-fluid>.row>.col-md-2.sidebar {
        position: fixed !important;
        top: 60px !important;
        left: -280px !important;
        width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .container-fluid>.row>.col-md-2.sidebar.show {
        left: 0 !important;
    }

    .container-fluid>.row>.col-md-10.content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 8px;
    }

    /* 导航栏品牌文字在小屏幕上隐藏 */
    .navbar-brand span {
        display: none;
    }
    
    /* 移动端导航栏布局优化 - Logo居中 */
    .navbar .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 1.1rem;
        z-index: 1;
    }
    
    .sidebar-toggler {
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .navbar-toggler {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    /* 确保左右按钮宽度一致，保持logo居中 */
    .sidebar-toggler,
    .navbar-toggler {
        width: 44px;
    }

    /* 移动端导航栏折叠菜单优化 - 悬浮面板 */
    .navbar-collapse {
        position: absolute;
        top: 64px;
        right: 12px;
        width: 220px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 152, 0, 0.2);
        padding: 8px 0;
        margin: 0;
        z-index: 1031;
    }

    /* 修复 Bootstrap collapse 动画 */
    .navbar-collapse.collapsing {
        height: auto !important;
        transition: opacity 0.2s ease;
        opacity: 0;
        display: block;
    }

    .navbar-collapse.show {
        opacity: 1;
    }

    /* 导航栏用户信息优化 */
    .navbar-nav .nav-link {
        padding: 10px 20px !important;
        font-size: 15px;
        color: var(--tech-text);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 152, 0, 0.05);
        color: var(--tech-primary);
    }

    /* 导航栏菜单项在移动端的样式 */
    .navbar-nav {
        padding: 0;
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 152, 0, 0.1);
    }
}

/* 扫描线效果 - 已禁用，避免视觉干扰 */
.scan-line {
    display: none;
    /* 移除扫描线动画 */
}

/* 移动端卡片优化 - 紧凑模式 */
@media (max-width: 767.98px) {
    .module-card .card-body {
        padding: 20px 16px;
        /* 减少内边距 */
    }

    .module-card i {
        font-size: 40px;
        /* 减小图标尺寸 (原56px) */
        margin-bottom: 8px;
        /* 减少图标下方间距 (原16px) */
    }

    .module-card h5 {
        font-size: 16px;
        /* 减小标题尺寸 (原18px) */
        margin-bottom: 8px;
        /* 减少标题下方间距 (原20px) */
    }

    .module-card p {
        margin-bottom: 12px;
        /* 减少说明文字下方间距 */
        font-size: 13px;
        /* 减小说明文字尺寸 */
        line-height: 1.4;
    }

    .module-card .btn {
        padding: 6px 16px;
        /* 减小按钮尺寸 */
        font-size: 13px;
        margin-top: 4px;
    }
}

/* 教师列表表格优化 - 紧凑型 Flex 布局 */
/* 教师列表表格优化 - 紧凑型 Flex 布局 */
.teacher-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.teacher-table thead,
.teacher-table tbody {
    display: block;
    width: 100%;
}

.teacher-table tr {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(66, 196, 152, 0.1);
}

.teacher-table th,
.teacher-table td {
    padding: 10px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
}

/* 姓名、性别、主教学科、部门 - 四列平均分布 */
.teacher-table th:nth-child(1),
.teacher-table td:nth-child(1),
.teacher-table th:nth-child(2),
.teacher-table td:nth-child(2),
.teacher-table th:nth-child(3),
.teacher-table td:nth-child(3),
.teacher-table th:nth-child(4),
.teacher-table td:nth-child(4) {
    flex: 1;
    min-width: 0;
}

/* 电话 - 固定宽度 */
.teacher-table th:nth-child(5),
.teacher-table td:nth-child(5) {
    width: 130px;
    flex: 0 0 130px;
}

/* 状态 - 固定宽度 */
.teacher-table th:nth-child(6),
.teacher-table td:nth-child(6) {
    width: 100px;
    flex: 0 0 100px;
}

/* 操作 - 固定宽度 */
.teacher-table th:nth-child(7),
.teacher-table td:nth-child(7) {
    width: 240px;
    flex: 0 0 240px;
    justify-content: center;
    gap: 4px;
}

/* 表头样式优化 */
.teacher-table thead tr {
    background: rgba(66, 196, 152, 0.1);
    border-bottom: 2px solid var(--tech-primary);
}

/* 隔行背景色 */
.teacher-table tbody tr:nth-child(even) {
    background: rgba(255, 152, 0, 0.03);
}

/* 悬停效果 */
.teacher-table tbody tr:hover {
    background: rgba(255, 152, 0, 0.08) !important;
    transform: none;
    box-shadow: inset 0 0 10px rgba(255, 152, 0, 0.05);
}

/* 徽章微调 */
.teacher-table .badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* 移动端卡片式布局适配 */
@media (max-width: 991.98px) {
    .teacher-table {
        display: block;
        background: transparent;
        border: none;
    }

    .teacher-table thead {
        display: none;
        /* 隐藏表头 */
    }

    .teacher-table tbody {
        display: block;
    }

    .teacher-table tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .teacher-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        text-align: right;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
    }

    /* 显示标签 */
    .teacher-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--tech-text-muted);
        margin-right: auto;
        font-size: 13px;
    }

    /* 姓名作为卡片标题 */
    .teacher-table td:nth-child(1) {
        background: var(--tech-gradient-2);
        color: white;
        font-size: 18px;
        font-weight: bold;
        padding: 16px;
        justify-content: flex-start;
        border-bottom: none;
    }

    .teacher-table td:nth-child(1)::before {
        display: none;
    }

    /* 状态浮动在右上角 */
    .teacher-table td:nth-child(6) {
        position: absolute;
        top: 16px;
        right: 16px;
        width: auto;
        padding: 0;
        border: none;
        background: transparent;
        justify-content: flex-end;
    }

    .teacher-table td:nth-child(6)::before {
        display: none;
    }

    /* 操作列底部铺满 */
    .teacher-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 8px;
        background: #f8f9fa;
        padding: 12px 16px;
        width: 100%;
        flex-wrap: wrap;
    }

    .teacher-table td:last-child::before {
        display: none;
    }

    /* 调整按钮大小 */
    .teacher-table .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
        flex: 1;
        /* 按钮均分宽度 */
        max-width: 120px;
    }
}

/* 班级列表表格优化 - 紧凑型 Flex 布局 */
.class-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1000px;
    /* 防止内容挤压 */
}

.class-table thead,
.class-table tbody {
    display: block;
    width: 100%;
}

.class-table tr {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(66, 196, 152, 0.1);
}

.class-table th,
.class-table td {
    padding: 10px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
}

/* 列宽分配 */
/* 班级名称 */
.class-table th:nth-child(1),
.class-table td:nth-child(1) {
    flex: 1;
    min-width: 0;
}

/* 班主任 */
.class-table th:nth-child(2),
.class-table td:nth-child(2) {
    flex: 1;
    min-width: 0;
}

/* 教室位置 */
.class-table th:nth-child(3),
.class-table td:nth-child(3) {
    flex: 1;
    min-width: 0;
}

/* 学生人数 - 固定宽度 */
.class-table th:nth-child(4),
.class-table td:nth-child(4) {
    width: 100px;
    flex: 0 0 100px;
}

/* 操作 - 固定宽度 */
.class-table th:nth-child(5),
.class-table td:nth-child(5) {
    width: 420px;
    /* 增加宽度以容纳4个按钮 */
    flex: 0 0 420px;
    justify-content: center;
    gap: 4px;
}


/* 移动端卡片式布局适配 */
@media (max-width: 991.98px) {
    .class-table {
        display: block;
        background: transparent;
        border: none;
        min-width: 0;
        /* 重置最小宽度，防止移动端布局错乱 */
    }

    .class-table thead {
        display: none;
    }

    .class-table tbody {
        display: block;
    }

    .class-table tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .class-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        text-align: right;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
    }

    .class-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--tech-text-muted);
        margin-right: auto;
        font-size: 13px;
    }

    /* 班级名称作为卡片标题 */
    .class-table td:nth-child(1) {
        background: var(--tech-gradient-2);
        color: white;
        font-size: 18px;
        font-weight: bold;
        padding: 16px;
        justify-content: flex-start;
        border-bottom: none;
    }

    .class-table td:nth-child(1)::before {
        display: none;
    }

    /* 班级名称内的 span 样式调整 */
    .class-table td:nth-child(1) .class-name-display {
        color: white !important;
        padding: 0;
        background: none !important;
    }

    /* 学生人数浮动在右上角 */
    .class-table td:nth-child(4) {
        position: absolute;
        top: 0px;
        right: 16px;
        width: auto;
        padding: 0;
        border: none;
        background: transparent;
        justify-content: flex-end;
    }

    .class-table td:nth-child(4)::before {
        display: none;
    }

    /* 操作列底部铺满 */
    .class-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 8px;
        background: #f8f9fa;
        padding: 12px 16px;
        width: 100%;
        flex: 0 0 100%;
        /* 重置宽度为100% */
        flex-wrap: wrap;
    }

    .class-table td:last-child::before {
        display: none;
    }

    /* 调整按钮大小 */
    .class-table .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
        flex: 1;
        max-width: 120px;
    }
}
/* ===== 从首页提取的移动端样式统一优化 ===== */

/* 渐变标题样式 */
.display-4 {
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* 移动端优化：增加内容区域宽度，减少边框 */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .content {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 优化导航栏按钮样式 */
.navbar {
    padding: 0.5rem 0.75rem;
}

.sidebar-toggler,
.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggler:hover,
.navbar-toggler:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

.sidebar-toggler:active,
.navbar-toggler:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-toggler i {
    font-size: 1.25rem;
    color: var(--tech-primary, #ff9800);
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 152, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 移动端导航栏布局优化 */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 1.1rem;
        z-index: 1;
    }
    
    .sidebar-toggler {
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .navbar-toggler {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    /* 确保左右按钮宽度一致，保持logo居中 */
    .sidebar-toggler,
    .navbar-toggler {
        width: 44px;
    }
}

/* Sports schedule page enhancements */
.schedule-hero .hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--tech-gradient-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.25);
}

.import-card {
    border: 2px dashed rgba(255, 152, 0, 0.4);
}

.import-card.drag-over {
    border-color: var(--tech-primary);
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.2);
    transform: translateY(-2px);
}

.import-card .upload-icon {
    font-size: 42px;
    color: var(--tech-primary);
}

.event-card-modern .event-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--tech-text);
}

.event-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-chip {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.chip-primary {
    background: var(--tech-gradient-2);
    color: #fff;
    border-color: var(--tech-primary);
}

.chip-outline {
    background: rgba(255, 152, 0, 0.08);
    color: var(--tech-primary);
    border-color: rgba(255, 152, 0, 0.35);
}

.chip-muted {
    background: rgba(0, 0, 0, 0.02);
    color: var(--tech-text-muted);
    border-color: rgba(0, 0, 0, 0.04);
}

.chip-accent {
    background: rgba(255, 183, 77, 0.15);
    color: #d97706;
    border-color: rgba(255, 183, 77, 0.35);
}

.status-badge {
    background: rgba(255, 152, 0, 0.15);
    color: var(--tech-primary-dark);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 600;
}

.empty-state .empty-icon {
    font-size: 48px;
    color: var(--tech-primary);
}

/* mobile tweaks */
@media (max-width: 575.98px) {
    .schedule-hero .card-body,
    .import-card .card-body {
        padding: 20px;
    }
    .event-card-modern .event-name {
        font-size: 16px;
    }
    .event-meta-chips {
        gap: 6px;
    }
}

/* 运动会管理中心 - 模块卡片配色变体 */
.module-card--orange {
    border-color: rgba(255, 152, 0, 0.4);
}

.module-card--orange:hover {
    border-color: #ff9800;
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.25), 0 0 30px rgba(255, 152, 0, 0.2);
}

.module-card--orange::before {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
}

.module-card--green {
    border-color: rgba(52, 199, 89, 0.4);
}

.module-card--green:hover {
    border-color: #34c759;
    box-shadow: 0 12px 40px rgba(52, 199, 89, 0.25), 0 0 30px rgba(52, 199, 89, 0.2);
}

.module-card--green::before {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
}

.module-card--blue {
    border-color: rgba(0, 122, 255, 0.4);
}

.module-card--blue:hover {
    border-color: #007aff;
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.25), 0 0 30px rgba(0, 122, 255, 0.2);
}

.module-card--blue::before {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
}

/* 运动会管理中心 - 移动端适配 */
@media (max-width: 767.98px) {
    .module-card--orange,
    .module-card--green,
    .module-card--blue {
        margin-bottom: 1.5rem;
    }
    
    .module-card .card-body p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* 检录详情页 - 移动端优化 */
@media (max-width: 767.98px) {
    .card-header.d-flex {
        gap: 8px;
    }
    
    .card-header h4 {
        font-size: 18px;
    }
    
    .card-header .btn-sm {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .card-header .btn-sm i {
        font-size: 14px;
    }
    
    .card-header .btn-sm span {
        display: inline;
    }
}
