* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* 头部 */
.header {
    background: linear-gradient(90deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 2px solid #00d4ff;
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.3);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 28px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    background: linear-gradient(90deg, #00d4ff, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主容器 */
.container {
    display: flex;
    height: calc(100vh - 60px);
    padding: 10px;
    gap: 10px;
}

/* 左侧面板 */
.left-panel {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 中间面板 */
.center-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* 中间头部 */
.center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.center-title {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.more-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
}

.more-link:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateX(3px);
}

/* 右侧面板 */
.right-panel {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 图表盒子 */
.chart-box {
    flex: 1;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.box-title {
    font-size: 16px;
    color: #00d4ff;
    padding: 8px;
    margin-bottom: 5px;
    border-left: 3px solid #00d4ff;
    padding-left: 10px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.list-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-box-header .box-title {
    margin-bottom: 0;
}

.list-box-header .more-link {
    padding: 4px 12px;
    font-size: 13px;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* Tab 切换按钮 */
.tab-buttons {
    display: flex;
    gap: 5px;
}

.tab-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #fff;
}

.tab-btn.active {
    background: rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.chart {
    flex: 1;
    min-height: 0;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.video-box {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s;
}

.video-box:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.video-box.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.video-title {
    font-size: 14px;
    color: #00d4ff;
    padding: 5px 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    margin: 0;
}

.fullscreen-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

/* 视频控制按钮容器 */
.video-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-placeholder {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    gap: 15px;
}

.video-container {
    flex: 1;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-img {
    width: 100px;
    height: 100px;
    opacity: 0.6;
}

.parking-icon {
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.video-placeholder p {
    margin: 0;
    font-size: 13px;
}

/* 列表盒子 */
.list-box {
    flex: 1;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.list-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 可滚动列表 */
.scrollable-list {
    overflow: hidden;
    position: relative;
}

.scrollable-list .event-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.scrollable-list .event-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
    background: rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 10;
}

.scrollable-list .event-table thead tr {
    display: table-row;
}

.scrollable-list .event-table tbody {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.scrollable-list .event-table tbody .scroll-wrapper {
    display: block;
    width: 100%;
}

.scrollable-list .event-table tbody tr {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    height: 40px;
    align-items: center;
    box-sizing: border-box;
}

.scrollable-list .event-table tbody tr td {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollable-list .event-table th {
    padding: 8px;
    display: table-cell;
}

/* 单列表格（气体事件） */
.scrollable-list .event-table thead tr:has(> th:only-child),
.scrollable-list .event-table tbody tr:has(> td:only-child) {
    width: 100%;
}

.scrollable-list .event-table thead tr th:only-child {
    width: 100%;
    text-align: center;
}

.scrollable-list .event-table tbody tr td:only-child {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* 三列表格（车辆出入）- 3个td */
.scrollable-list .event-table tbody tr td:nth-child(3):last-child {
    /* 第3个是最后一个，说明是3列表格 */
}

.scrollable-list .event-table tbody tr:has(> td:nth-child(3)) td {
    width: 33.33%;
}

/* 四列表格（气体事件）- 有第4个td */
.scrollable-list .event-table tbody tr:has(> td:nth-child(4)) td,
.scrollable-list .event-table thead tr:has(> th:nth-child(4)) th {
    width: 25%;
}

/* 使用 cols-4 类明确指定4列 */
.scrollable-list .event-table.cols-4 tbody tr td,
.scrollable-list .event-table.cols-4 thead tr th {
    width: 25%;
}

/* 滚动条样式 */
.list-content::-webkit-scrollbar {
    width: 4px;
}

.list-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.list-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 2px;
}

/* 事件表格 */
.event-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.event-table thead {
    position: sticky;
    top: 0;
    background: rgba(0, 212, 255, 0.2);
    z-index: 1;
}

.event-table th {
    padding: 8px;
    text-align: left;
    color: #00d4ff;
    font-weight: bold;
}

.event-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.event-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* 暂无事件样式 */
.no-event-row {
    height: 200px !important;
    display: flex !important;
}

.no-event-cell {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(0, 255, 136, 0.6) !important;
    font-size: 24px !important;
    font-weight: bold !important;
    border-bottom: none !important;
}

/* 状态标签 */
.status-normal {
    color: #00ff88;
}

.status-warning {
    color: #ffaa00;
}

.status-danger {
    color: #ff4444;
}

/* 车辆类型样式 */
.type-entry {
    color: #00ff88;
    font-weight: bold;
}

.type-exit {
    color: #ff6b6b;
    font-weight: bold;
}

/* 车牌号样式 */
.plate-number {
    color: #00d4ff;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.5);
}

/* ========== 监控列表弹窗样式 ========== */
.monitor-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease-in-out;
}

.monitor-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.monitor-modal-content {
    background: linear-gradient(135deg, #0a1628 0%, #1a2845 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

.monitor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
}

.monitor-modal-header h2 {
    margin: 0;
    color: #00d4ff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.monitor-close-btn {
    background: rgba(255, 59, 59, 0.2);
    border: 2px solid #ff3b3b;
    color: #ff3b3b;
    font-size: 32px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.monitor-close-btn:hover {
    background: #ff3b3b;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.6);
}

.monitor-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.monitor-modal-body::-webkit-scrollbar {
    width: 10px;
}

.monitor-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.monitor-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 5px;
}

.monitor-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

.monitor-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.monitor-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.monitor-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.monitor-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.monitor-item-title {
    font-size: 14px;
    font-weight: bold;
    color: #00d4ff;
    margin: 0;
}

.monitor-item-device {
    font-size: 10px;
    color: #888;
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.monitor-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.monitor-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.monitor-item-label {
    color: rgba(255, 255, 255, 0.5);
    min-width: 60px;
}

.monitor-item-value {
    flex: 1;
    word-break: break-all;
}

.monitor-item-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.monitor-item-status.online {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.monitor-item-status.offline {
    background: rgba(255, 59, 59, 0.2);
    color: #ff3b3b;
    border: 1px solid #ff3b3b;
}

.monitor-item-url {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
    margin-top: 5px;
}

.monitor-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.monitor-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.monitor-btn:hover {
    background: #00d4ff;
    color: #0a1628;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.monitor-btn-secondary {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.monitor-btn-secondary:hover {
    background: #4ecdc4;
    color: #0a1628;
}

/* 无监控提示 */
.no-monitors {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-monitors-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-monitors-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-monitors-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* ========== 视频播放弹窗样式 ========== */
.video-player-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-in-out;
}

.video-player-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player-content {
    background: linear-gradient(135deg, #0a1628 0%, #1a2845 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    width: 95vw;  /* 使用视窗宽度的 95% */
    height: 90vh;
    max-width: 1800px;  /* 增加最大宽度 */
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.5);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    flex-shrink: 0;
}

.video-player-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-player-title h2 {
    margin: 0;
    color: #00d4ff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.video-player-device {
    font-size: 12px;
    color: #888;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.video-player-close {
    background: rgba(255, 59, 59, 0.2);
    border: 2px solid #ff3b3b;
    color: #ff3b3b;
    font-size: 32px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.video-player-close:hover {
    background: #ff3b3b;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.6);
}

.video-player-body {
    flex: 1;
    display: flex;
    align-items: stretch;  /* 改为 stretch 让子元素撑满 */
    justify-content: center;
    padding: 0;  /* 移除内边距 */
    background: #000;
    overflow: hidden;
    position: relative;
    min-height: 0;  /* 修复 flex 子元素高度问题 */
}

.video-player-container {
    flex: 1;  /* 自动填满父容器 */
    background: #000;
    border-radius: 0;  /* 移除圆角 */
    overflow: hidden;
    position: relative;
    width: 100%;  /* 明确指定宽度 */
    height: 100%;  /* 明确指定高度 */
    min-height: 400px;  /* 设置最小高度 */
}

/* 确保 Jessibuca 播放器占满容器 */
.video-player-container > div {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* 确保 canvas 元素填满容器 */
.video-player-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.video-player-info {
    padding: 10px 30px;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 4px 0;
    font-size: 12px;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    min-width: 60px;
    font-weight: bold;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.info-value.url-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff88;
    word-break: break-all;
}

/* 播放器错误提示 */
.player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ff6b6b;
    text-align: center;
    padding: 40px;
}

.player-error p {
    margin: 10px 0;
}

.player-error p:first-child {
    font-size: 24px;
    font-weight: bold;
}

.error-hint {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-player-content {
        width: 95%;
        max-height: 95vh;
    }

    .video-player-title h2 {
        font-size: 18px;
    }

    .video-player-body {
        min-height: 300px;
        padding: 10px;
    }

    .video-player-info {
        padding: 15px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========== 监控列表页面样式 ========== */
.monitor-page-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a2845 100%);
    border-bottom: 2px solid #00d4ff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

/* Tab 筛选容器 */
.tab-container {
    background: rgba(10, 22, 40, 0.6);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
}

.tab-buttons {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 10px 30px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: rgba(0, 212, 255, 0.7);
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    color: #00d4ff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* 空状态提示 */
.no-monitors {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-monitors-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-monitors-text {
    font-size: 18px;
    color: rgba(0, 212, 255, 0.7);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.back-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background: #00d4ff;
    color: #0a1628;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateX(-3px);
}

.page-title {
    margin: 0;
    color: #00d4ff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    flex: 1;
}

.header-spacer {
    width: 100px;
}

.monitor-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.monitor-list-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.monitor-item-page {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(26, 40, 69, 0.8) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.monitor-item-page:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* 隐藏 loading-overlay 的 hidden 类 */
.loading-overlay.hidden {
    display: none;
}

/* 监控列表页面 - 列表布局 */
.monitor-page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.monitor-list-page {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    overflow-y: auto;
    padding: 10px;
}

/* 全屏播放器容器 */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #000;
}

.fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100000;
    padding: 12px 24px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.05);
}

/* 分页导航栏 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(10, 22, 40, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
}

.pagination-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: #00d4ff;
    font-size: 16px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}
