/* 交通监控页面特定样�?*/

/* 交通监控网格布局 - 优化后移除地图组件 */
.traffic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-bottom: 20px;
}

.traffic-video-main {
    grid-column: 1 / -1;
    grid-row: 1;
}

.thermal-video-container {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100%;
}

.visible-video-container {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 100%;
}

.fusion-video-container {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    height: 100%;
}

/* 校园数据统计面板 */
.campus-stats-panel {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* 主视频样式增�?*/
.main-video {
    height: 100%;
    position: relative;
    min-height: 800px;
    display: flex;
    flex-direction: column;
}

.main-video .video-body {
    height: 800px;
    position: relative;
    overflow: hidden;
    transition: none;
    /* 禁止高度过渡动画，防止切换时的布局跳动 */
    flex: 1;
    display: block;
}

.main-video .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.main-video .video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #38bdf8;
}

.main-video .video-placeholder span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* 统计卡片样式 */
.stats-card {
    background-color: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-header h3 {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.stats-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-tab {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.stats-tab.active {
    background-color: rgba(125, 211, 252, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(125, 211, 252, 0.4);
}

.stats-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.stat-data {
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 图表容器样式修改 */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 响应式调�?*/
@media (max-width: 1600px) {
    .traffic-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .traffic-video-main {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .thermal-video-container {
        grid-column: 1;
        grid-row: 2;
    }

    .visible-video-container {
        grid-column: 2;
        grid-row: 2;
    }

    .fusion-video-container {
        grid-column: 3;
        grid-row: 2;
    }

    .campus-stats-panel {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 1400px) {
    .traffic-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .traffic-video-main {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .thermal-video-container {
        grid-column: 1;
        grid-row: 2;
    }

    .visible-video-container {
        grid-column: 2;
        grid-row: 2;
    }

    .fusion-video-container {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .campus-stats-panel {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .main-video .video-body {
        height: 750px;
    }
}

@media (max-width: 992px) {
    .traffic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }

    .traffic-video-main {
        grid-column: 1;
        grid-row: 1;
    }

    .thermal-video-container {
        grid-column: 1;
        grid-row: 2;
    }

    .visible-video-container {
        grid-column: 1;
        grid-row: 3;
    }

    .fusion-video-container {
        grid-column: 1;
        grid-row: 4;
    }

    .campus-stats-panel {
        grid-column: 1;
        grid-row: 5;
    }

    .main-video .video-body {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .main-video .video-body {
        height: 600px;
    }

    .video-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .thermal-video-container {
        grid-column: 1;
        grid-row: 2;
    }

    .visible-video-container {
        grid-column: 1;
        grid-row: 3;
    }

    .fusion-video-container {
        grid-column: 1;
        grid-row: 4;
    }
}

/* 交通分析页面样�?*/
.traffic-analysis-container {
    padding: 20px;
}

/* 分析卡片样式 */
.analysis-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 分析控制按钮 */
.analysis-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover,
.control-btn.active {
    background-color: rgba(62, 232, 250, 0.1);
    border-color: rgba(62, 232, 250, 0.3);
    color: #38bdf8;
}

.light-theme .control-btn:hover,
.light-theme .control-btn.active {
    background-color: rgba(125, 211, 252, 0.2) !important;
    border: 1px solid rgba(125, 211, 252, 0.3) !important;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.search {
    background-color: rgba(62, 232, 250, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(62, 232, 250, 0.3);
}

.action-btn.reset {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.add {
    background-color: rgba(125, 211, 252, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 违规表格样式 - 整合和优�?*/
.violation-table-container {
    max-height: 500px;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #131722;
    margin-top: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.violation-table-container::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
}

.violation-table-container::-webkit-scrollbar-track {
    background: #131722;
    border-radius: 3px;
}

.violation-table-container::-webkit-scrollbar-thumb {
    background-color: #38bdf8;
    border-radius: 3px;
    border: 2px solid #131722;
}

.violation-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.8);
    table-layout: fixed;
    border: 1px solid #2a3040;
}

/* 表头固定效果 - 修复问题 */
.violation-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.violation-table th {
    background-color: #131722;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* 添加阴影效果，使固定表头更加明显 */
    color: #38bdf8;
    font-weight: 500;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #2a3040;
    border-right: 1px solid #2a3040;
    position: relative;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.violation-table td:not(:first-child):not(:last-child) {
    text-align: center;
}

.violation-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2a3040;
    border-right: 1px solid #2a3040;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.violation-table th:last-child,
.violation-table td:last-child {
    border-right: none;
}

/* 响应式调�?*/
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .analysis-controls,
    .action-buttons {
        flex-direction: column;
    }
}

/* 通知容器和样�?- 已禁�?
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: rgba(31, 41, 55, 0.9);
    border-radius: 5px;
    padding: 15px;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-left: 4px solid #38bdf8;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

.notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.notification-success {
    border-left-color: #4ade80;
}
.notification-success i {
    color: #4ade80;
}

.notification-error {
    border-left-color: #f87171;
}
.notification-error i {
    color: #f87171;
}

.notification-warning {
    border-left-color: #fbbf24;
}
.notification-warning i {
    color: #fbbf24;
}

.notification-info {
    border-left-color: #38bdf8;
}
.notification-info i {
    color: #38bdf8;
}
*/

/* 统计数据窗口样式 */
.stats-overview-window {
    background-color: #1a1e27;
    border-radius: 8px;
    border: 1px solid #2a3040;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* 浅色主题下的统计数据窗口样式 */
.light-theme .stats-overview-window {
    background-color: #f5f7fa;
    border: 1px solid #e1e5eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-overview-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #2a8bf2);
    z-index: 1;
}

.stats-window-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.stats-item {
    background-color: #131722;
    border-radius: 8px;
    flex: 1;
    min-width: 220px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #2a3040;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 浅色主题下的统计项样�?*/
.light-theme .stats-item {
    background-color: #ffffff;
    border: 1px solid #e1e5eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.light-theme .stats-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stats-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #38bdf8;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-item:hover::after {
    transform: scaleX(1);
}

.stats-number {
    font-size: 28px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stats-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

/* 浅色主题下的统计文本颜色 */
.light-theme .stats-text {
    color: rgba(0, 0, 0, 0.7);
}

.stats-item:hover .stats-text {
    color: rgba(255, 255, 255, 0.9);
}

.light-theme .stats-item:hover .stats-text {
    color: rgba(0, 0, 0, 0.9);
}

/* 响应式调�?*/
@media (max-width: 1200px) {
    .stats-window-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stats-item {
        min-width: 45%;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .stats-window-content {
        flex-direction: column;
    }

    .stats-item {
        width: 100%;
        margin: 10px 0;
    }
}

/* 车辆统计项颜色样�?*/
.stats-item.passed-vehicles .stats-number {
    color: #7dd3fc;
    /* 蓝色 - 已通过车辆 */
}

.stats-item.pending-vehicles .stats-number {
    color: #00FFFF;
    /* 青色 - 待判定车�?*/
}

.stats-item.green-vehicles .stats-number {
    color: #00FF00;
    /* 绿色 - 绿色车辆 */
}

.stats-item.illegal-vehicles .stats-number {
    color: #FF0000;
    /* 红色 - 违法车辆 */
}

/* 浅色主题下默认状态不显示彩色，只有选中或悬停时才显示 */
.light-theme .stats-item.passed-vehicles .stats-number,
.light-theme .stats-item.pending-vehicles .stats-number,
.light-theme .stats-item.green-vehicles .stats-number,
.light-theme .stats-item.illegal-vehicles .stats-number {
    color: #333;
    /* 默认深灰色 */
}

/* 为JavaScript提供通用的选中状态控制 */
.light-theme .stats-item.selected .stats-number {
    color: #0078d4 !important;
    /* 通用选中状态蓝色 */
}

.light-theme .chart-card.selected {
    border-color: #0078d4 !important;
}

/* 通用选中状态的底部线条 */
.light-theme .stats-item.selected::after {
    background: #0078d4 !important;
    transform: scaleX(1) !important;
}

/* 浅色主题下选中状态显示对应颜色 - 只针对特定选中的项 */
.light-theme .stats-item.passed-vehicles.selected .stats-number,
.light-theme .stats-item.passed-vehicles:hover .stats-number {
    color: #7dd3fc;
}

.light-theme .stats-item.pending-vehicles.selected .stats-number,
.light-theme .stats-item.pending-vehicles:hover .stats-number {
    color: #00FFFF;
}

.light-theme .stats-item.green-vehicles.selected .stats-number,
.light-theme .stats-item.green-vehicles:hover .stats-number {
    color: #00FF00;
}

.light-theme .stats-item.illegal-vehicles.selected .stats-number,
.light-theme .stats-item.illegal-vehicles:hover .stats-number {
    color: #FF0000;
}

/* 颜色对应的悬停效果线�?*/
.stats-item.passed-vehicles::after {
    background: #7dd3fc;
}

.stats-item.pending-vehicles::after {
    background: #00FFFF;
}

.stats-item.green-vehicles::after {
    background: #00FF00;
}

.stats-item.illegal-vehicles::after {
    background: #FF0000;
}

/* 浅色主题下默认状态不显示底部线条 */
.light-theme .stats-item.passed-vehicles::after,
.light-theme .stats-item.pending-vehicles::after,
.light-theme .stats-item.green-vehicles::after,
.light-theme .stats-item.illegal-vehicles::after {
    background: transparent;
}

/* 浅色主题下选中或悬停时显示对应底部线条 */
.light-theme .stats-item.passed-vehicles.selected::after,
.light-theme .stats-item.passed-vehicles:hover::after {
    background: #7dd3fc;
}

.light-theme .stats-item.pending-vehicles.selected::after,
.light-theme .stats-item.pending-vehicles:hover::after {
    background: #00FFFF;
}

.light-theme .stats-item.green-vehicles.selected::after,
.light-theme .stats-item.green-vehicles:hover::after {
    background: #00FF00;
}

.light-theme .stats-item.illegal-vehicles.selected::after,
.light-theme .stats-item.illegal-vehicles:hover::after {
    background: #FF0000;
}

/* 悬停时的边框颜色 */
.stats-item.passed-vehicles:hover {
    border-color: #7dd3fc;
}

.stats-item.pending-vehicles:hover {
    border-color: #00FFFF;
}

.stats-item.green-vehicles:hover {
    border-color: #00FF00;
}

.stats-item.illegal-vehicles:hover {
    border-color: #FF0000;
}

/* 浅色主题下默认状态不显示彩色边框 */
.light-theme .stats-item.passed-vehicles,
.light-theme .stats-item.pending-vehicles,
.light-theme .stats-item.green-vehicles,
.light-theme .stats-item.illegal-vehicles {
    border-color: #e1e5eb;
}

/* 浅色主题下选中或悬停时显示对应边框颜色 */
.light-theme .stats-item.passed-vehicles.selected,
.light-theme .stats-item.passed-vehicles:hover {
    border-color: #7dd3fc;
}

.light-theme .stats-item.pending-vehicles.selected,
.light-theme .stats-item.pending-vehicles:hover {
    border-color: #00FFFF;
}

.light-theme .stats-item.green-vehicles.selected,
.light-theme .stats-item.green-vehicles:hover {
    border-color: #00FF00;
}

.light-theme .stats-item.illegal-vehicles.selected,
.light-theme .stats-item.illegal-vehicles:hover {
    border-color: #FF0000;
}

/* 新的违规筛选窗口样�?*/
.violation-filter-window {
    background-color: #1a1e27;
    border-radius: 10px;
    border: 1px solid #2a3040;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: visible;
    position: relative;
    min-height: auto;
}

/* 浅色主题下的违规筛选窗口样�?*/
.light-theme .violation-filter-window {
    background-color: #f5f7fa;
    border: 1px solid #e1e5eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.violation-filter-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #7dd3fc);
    z-index: 1;
}

.filter-header {
    padding: 18px 25px;
    background-color: #131722;
    border-bottom: 1px solid #2a3040;
}

/* 浅色主题下的筛选头部样�?*/
.light-theme .filter-header {
    background-color: #e5e9f0;
    border-bottom: 1px solid #d1d5db;
}

.filter-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* 浅色主题下的筛选标题样�?*/
.light-theme .filter-header h3 {
    color: #333;
}

.filter-header h3 i {
    margin-right: 10px;
    color: #38bdf8;
}

.light-theme .filter-header h3 i {
    color: #0078d4;
}

.filter-content {
    padding: 25px;
    min-height: auto;
    overflow: visible !important;
}

/* 调整控制按钮在新容器中的样式 */
.filter-content .analysis-controls {
    margin-bottom: 25px;
}

.filter-content .control-btn {
    background-color: #131722;
    border: 1px solid #2a3040;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 浅色主题下的控制按钮样式 */
.light-theme .filter-content .control-btn {
    background-color: #ffffff;
    border: 1px solid #e1e5eb;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-content .control-btn:hover {
    background-color: rgba(62, 232, 250, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.light-theme .filter-content .control-btn:hover {
    background-color: rgba(0, 120, 212, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #0078d4;
}

.filter-content .action-buttons {
    margin-bottom: 25px;
}

.filter-content .action-btn {
    padding: 10px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* 浅色主题下的操作按钮样式 */
.light-theme .filter-content .action-btn.search {
    background-color: rgba(0, 120, 212, 0.2);
    color: #0078d4;
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.light-theme .filter-content .action-btn.reset {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .filter-content .action-btn.add {
    background-color: rgba(125, 211, 252, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

.filter-content .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.light-theme .filter-content .action-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 表格样式优化 */
.filter-content .violation-table-container {
    margin-top: 15px;
}

.light-theme .violation-table-container::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.light-theme .violation-table-container::-webkit-scrollbar-thumb {
    background-color: #0078d4;
    border: 2px solid #f5f7fa;
}

.filter-content .violation-table {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.light-theme .filter-content .violation-table {
    border: 1px solid #e1e5eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-content .violation-table th {
    background-color: #131722 !important;
    padding: 15px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.light-theme .filter-content .violation-table th {
    background-color: #e5e9f0 !important;
    color: #333;
    border-bottom: 1px solid #d1d5db;
}

.filter-content .violation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2a3040;
    font-size: 14px;
    line-height: 1.4;
}

.light-theme .filter-content .violation-table td {
    border-bottom: 1px solid #e1e5eb;
    color: #333;
}

.filter-content .violation-table tbody tr:hover {
    background-color: rgba(42, 48, 64, 0.4);
}

.light-theme .filter-content .violation-table tbody tr:hover {
    background-color: rgba(125, 211, 252, 0.2);
}

.filter-content .table-btn {
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-content .table-btn.details {
    background-color: rgba(62, 232, 250, 0.15);
    border: 1px solid rgba(62, 232, 250, 0.3);
}

.light-theme .filter-content .table-btn.details {
    background-color: rgba(0, 120, 212, 0.15);
    border: 1px solid rgba(0, 120, 212, 0.3);
    color: #0078d4;
}

.filter-content .table-btn.delete {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.light-theme .filter-content .table-btn.delete {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* 调整整体布局 */
.analysis-card.vehicle-stats {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(62, 232, 250, 0.4);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(62, 232, 250, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(62, 232, 250, 0);
    }
}

/* 激活状态的控制按钮样式 */
.control-btn.active {
    background-color: rgba(19, 23, 34, 0.8) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(62, 232, 250, 0.2) !important;
}

/* 违法类型筛选按钮样�?*/
.filter-button-group {
    margin-bottom: 20px;
    background-color: rgba(19, 23, 34, 1);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-title {
    color: #38bdf8;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.filter-title::before {
    content: '\f0b0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-filter {
    min-width: auto;
    font-size: 12px;
    padding: 6px 12px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
    background-color: rgba(19, 23, 34, 0.8);
    border: 1px solid #2a3040;
}

.type-filter:hover {
    border-color: rgba(62, 232, 250, 0.4);
    transform: translateY(-2px);
}

.type-filter.active {
    background-color: rgba(62, 232, 250, 0.15) !important;
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(62, 232, 250, 0.3) !important;
    font-weight: 500;
}

/* 其他筛选按钮容�?*/
.other-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        gap: 5px;
    }

    .type-filter {
        width: 100%;
        text-align: left;
    }

    .other-filters {
        flex-direction: column;
    }
}

/* 违法类型切换按钮样式 */
.toggle-violation-types {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 120px;
}

.toggle-violation-types i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.toggle-violation-types.active {
    border-color: #38bdf8 !important;
    background-color: rgba(62, 232, 250, 0.1) !important;
}

.toggle-violation-types.active i {
    transform: rotate(180deg);
}

/* 筛选展开动画效果 */
#violationTypesFilter {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    width: 450px;
    border-radius: 8px;
    margin-top: 10px;
    transform-origin: top left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 添加小三角指示器 */
#violationTypesFilter::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: rgba(19, 23, 34, 1);
    transform: rotate(45deg);
    z-index: -1;
    border-top: 1px solid #2a3040;
    border-left: 1px solid #2a3040;
}

/* 样式优化 - 确保按钮内容对齐 */
.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 筛选区域容�?*/
.filter-section {
    position: relative;
    margin-bottom: 15px;
    width: 120px;
}

/* 已有选择的违法类型按钮样�?*/
.toggle-violation-types.has-selection {
    background-color: rgba(62, 232, 250, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    font-weight: 500;
}

.toggle-violation-types.has-selection i {
    color: #38bdf8;
}

/* 让表格行高与内容匹配 */
.violation-table tr {
    height: 48px;
}

/* 表格内容居中 */
.violation-table td:not(:first-child):not(:last-child) {
    text-align: center;
}

/* 使用类选择器设置各列的宽度 */
.col-type {
    width: 15%;
    /* 违法类别 */
}

.col-video {
    width: 10%;
    /* 违法视频 */
}

.col-time {
    width: 18%;
    /* 违法时间 */
}

.col-location {
    width: 22%;
    /* 违法地点 */
}

.col-plate {
    width: 15%;
    /* 号码车牌 */
}

.col-action {
    width: 20%;
    /* 操作 */
}

/* 确保所有单元格的内容对齐方式一�?*/
.violation-table th,
.violation-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表格内容居中 */
.violation-table td:not(:first-child):not(:last-child) {
    text-align: center;
}

/* 对齐操作按钮 */
.col-action {
    text-align: center;
}

/* 补充被删除的表格行样�?*/
.violation-table tbody tr {
    transition: all 0.3s ease;
    height: 48px;
}

.violation-table tbody tr:nth-child(odd) {
    background-color: rgba(26, 30, 39, 0.4);
}

.violation-table tbody tr:nth-child(even) {
    background-color: rgba(19, 23, 34, 0.4);
}

.violation-table tbody tr:hover {
    background-color: rgba(62, 232, 250, 0.08);
    transition: background-color 0.2s ease;
}

.light-theme .violation-table tbody tr:nth-child(odd) {
    background-color: rgba(26, 30, 39, 0.0);
}

.light-theme .violation-table tbody tr:nth-child(even) {
    background-color: rgba(19, 23, 34, 0.05);
}

.light-theme .violation-table tbody tr:hover {
    transition: background-color 0.2s ease;
}

/* 补充表格按钮样式 */
.table-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.table-btn.details {
    background-color: rgba(62, 232, 250, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(62, 232, 250, 0.2);
}

.table-btn.delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.table-btn:hover {
    filter: brightness(1.2);
}

/* 补充列对齐样�?*/
.col-type {
    text-align: left !important;
}

.col-action {
    text-align: center !important;
}

/* 视频按钮样式 */
.video-btn {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 特定样式用于违法表格中的视频按钮 */
.violation-table .video-btn {
    width: auto;
    min-width: 70px;
    padding: 0 10px;
    white-space: nowrap;
    gap: 5px;
    background-color: rgba(30, 40, 60, 0.4);
    border: 1px solid rgba(61, 184, 255, 0.3);
}

.violation-table .video-btn i {
    margin-right: 3px;
    color: #38bdf8;
}

.violation-table .video-btn:hover {
    background-color: rgba(30, 40, 60, 0.6);
    border-color: rgba(61, 184, 255, 0.6);
    box-shadow: 0 0 10px rgba(61, 184, 255, 0.3);
}

.video-btn:hover {
    background-color: rgba(62, 232, 250, 0.15);
    color: #38bdf8;
    border-color: rgba(62, 232, 250, 0.3);
    transform: translateY(-2px);
}

.video-btn:active {
    transform: translateY(0);
}

.main-video .video-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    background-color: rgba(20, 25, 35, 0.9);
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(125, 211, 252, 0.1), rgba(125, 211, 252, 0.05));
    pointer-events: none;
    z-index: -1;
}

/* Add transparent box for violation video */
#violationVideo {
    width: 100%;
    max-height: 450px;
    border-radius: 10px;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(61, 184, 255, 0.3);
    box-shadow: 0 0 15px rgba(61, 184, 255, 0.2);
}

/* Add glowing effect on hover */
#violationVideo:hover {
    border-color: rgba(61, 184, 255, 0.6);
    box-shadow: 0 0 20px rgba(61, 184, 255, 0.35);
}

/* Video container wrapper with transparent background */
.violation-video-wrapper {
    position: relative;
    margin-top: 15px;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(30, 40, 60, 0.4);
    border: 1px solid rgba(61, 184, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.violation-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.1) 0%, rgba(56, 189, 248, 0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
}

/* Add corner accents to the video wrapper */
.violation-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background:
        linear-gradient(45deg, rgba(125, 211, 252, 0.5) 0%, transparent 7%),
        linear-gradient(135deg, rgba(125, 211, 252, 0.5) 0%, transparent 7%),
        linear-gradient(225deg, rgba(125, 211, 252, 0.5) 0%, transparent 7%),
        linear-gradient(315deg, rgba(125, 211, 252, 0.5) 0%, transparent 7%);
    pointer-events: none;
    z-index: 1;
}

/* Add pulsing effect around the video */
@keyframes pulseBorder {
    0% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(61, 184, 255, 0.2);
    }

    50% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(61, 184, 255, 0.3);
    }

    100% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(61, 184, 255, 0.2);
    }
}

/* Apply pulsing animation when the video is playing */
.video-playing .violation-video-wrapper {
    animation: pulseBorder 3s infinite ease-in-out;
}

/* Close modal button styles */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #38bdf8;
}

/* Video title enhancement */
#videoTitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(61, 184, 255, 0.5);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

#videoTitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(61, 184, 255, 0.8), transparent);
}

/* 视频卡片通用样式 */
.video-card {
    background-color: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap;
}

.video-header h3 {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.video-controls {
    display: flex;
    gap: 5px;
}

.video-body {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
}

.video-placeholder i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #38bdf8;
}

.video-placeholder span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 主视频样式增�?*/
.main-video {
    height: 100%;
}

.main-video .video-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
}

.main-video .video-body {
    height: 400px;
}

.main-video .video-placeholder {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.main-video .video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

.main-video .video-placeholder span {
    font-size: 16px;
}

/* 热成像视频特殊样�?*/
.thermal-video .video-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.3), rgba(56, 189, 248, 0.3));
}

.thermal-video .video-btn {
    color: rgba(125, 211, 252, 0.9);
}

/* 可见光视频特殊样�?*/
.visible-video .video-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.3), rgba(56, 189, 248, 0.3));
}

.visible-video .video-btn {
    color: rgba(125, 211, 252, 0.9);
}

/* 融合视频特殊样式 */
.fusion-video .video-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.3), rgba(56, 189, 248, 0.3));
}

.fusion-video .video-btn {
    color: rgba(125, 211, 252, 0.9);
}

/* 加载动画样式 */
.loading-animation {
    margin-bottom: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(62, 232, 250, 0.1);
    border-top: 3px solid #38bdf8;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* 图表容器样式增强 */
.chart-card {
    background-color: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(62, 232, 250, 0.3);
}

.chart-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header h3 {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.chart-actions {
    display: flex;
    gap: 5px;
}

.chart-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.chart-btn.active {
    background-color: rgba(62, 232, 250, 0.2);
    color: #38bdf8;
    border-color: rgba(62, 232, 250, 0.4);
}

.chart-body {
    padding: 20px;
    flex: 1;
    position: relative;
    min-height: 300px;
    max-height: 300px;
    height: 300px;
    overflow: hidden;
}

/* 图表动画效果 */
.chart-animation-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(62, 232, 250, 0.05) inset;
    transition: all 0.5s ease;
    height: 100%;
}

.chart-animation-container:hover {
    box-shadow: 0 0 30px rgba(62, 232, 250, 0.1) inset;
}

.chart-glow {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(62, 232, 250, 0.05),
            rgba(62, 232, 250, 0.1),
            rgba(62, 232, 250, 0.05),
            transparent);
    animation: chartGlowAnimation 4s infinite linear;
    transform: skewX(-20deg);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

@keyframes chartGlowAnimation {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* 特殊图表效果 */
.glowing-chart canvas {
    position: relative;
    z-index: 2;
}

/* 添加图表边框生长动画，确保仅应用于边�?*/
.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease;
    will-change: transform;
}

.chart-card:hover::before,
.chart-card.selected::before {
    transform: scaleX(1);
}

/* 浅色主题下默认不显示顶部边框动画 */
.light-theme .chart-card::before {
    background: transparent;
}

/* 浅色主题下选中或悬停时显示顶部边框动画 */
.light-theme .chart-card.selected::before,
.light-theme .chart-card:hover::before {
    background: linear-gradient(90deg, transparent, #0078d4, transparent);
}

/* 地图与统计布局 */
.map-flex-container {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 20px;
}

.map-api-container {
    flex: 3;
    background-color: rgba(31, 41, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-stats-container {
    flex: 2;
    background-color: rgba(31, 41, 55, 0.0);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 地图容器样式 */
#trafficFlowMap {
    width: 100%;
    height: 100%;
    background-color: #1a1e27;
}

/* 统计头部样式 */
.map-stats-container .stats-header {
    padding: 15px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-stats-container .stats-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.map-stats-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.map-stats-container .stat-item {
    background-color: rgba(19, 23, 34, 0.6);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-stats-container .stat-item:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.light-theme .map-stats-container .stat-item {
    background-color: rgba(19, 23, 34, 0.05);
}

.light-theme .map-stats-container .stat-item:hover {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.15), rgba(56, 189, 248, 0.15)) !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
}

/* 响应式调�?*/
@media (max-width: 1200px) {
    .map-flex-container {
        flex-direction: column;
        height: auto;
    }

    .map-api-container {
        height: 300px;
    }

    .map-stats-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .map-stats-container .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 地图错误提示样式 */
.map-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

/* 地图统计标签页样�?*/
.stats-tabs {
    display: flex;
    gap: 5px;
}

.stats-tab {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stats-tab.active {
    background-color: rgba(125, 211, 252, 0.2);
    color: #38bdf8;
    border-color: rgba(125, 211, 252, 0.4);
}

/* 高德地图控件样式优化 */
.amap-logo {
    display: none !important;
    /* 隐藏Logo（如可能�?*/
}

.amap-copyright {
    display: none !important;
    /* 隐藏版权信息（如可能�?*/
}

.amap-toolbar {
    background-color: rgba(31, 41, 55, 0.8) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.amap-scale {
    background-color: rgba(31, 41, 55, 0.7) !important;
    border-radius: 4px !important;
    padding: 2px 5px !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.amap-info-content {
    background-color: rgba(31, 41, 55, 0.9) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.amap-info-close {
    color: #ffffff !important;
    background-color: rgba(231, 76, 60, 0.8) !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 天气信息区域样式 */
.weather-info {
    margin-top: 15px;
    background-color: rgba(19, 23, 34, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.light-theme .weather-info {
    background-color: rgba(19, 23, 34, 0.05) !important;
}

.weather-header {
    padding: 12px 15px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-header h4 {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.weather-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.weather-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.weather-icon {
    font-size: 32px;
}

.weather-temp {
    font-size: 28px;
    font-weight: 600;
    color: #38bdf8;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.weather-detail-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
}

/* 统一视频卡片样式 */
.thermal-video-container .video-card,
.visible-video-container .video-card,
.fusion-video-container .video-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 统一视频内容区域高度 */
.thermal-video-container .video-body,
.visible-video-container .video-body,
.fusion-video-container .video-body {
    height: 350px;
    width: 100%;
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* 统一视频播放器样�?*/
.thermal-video-container .video-player,
.visible-video-container .video-player,
.fusion-video-container .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保视频填充整个容器 */
    background-color: #000;
}

/* 路口列表侧边栏样�?*/
.intersection-list-sidebar {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: rgba(19, 23, 34, 0.95);
    border-left: 1px solid #2a3040;
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.intersection-list-sidebar.active {
    right: 0;
}

.intersection-list-toggle {
    position: relative;
}

.intersection-list-toggle.active {
    background-color: #38bdf8;
    color: #131722;
}

.intersection-list-header {
    padding: 15px;
    border-bottom: 1px solid #2a3040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intersection-list-header h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.intersection-search {
    position: relative;
}

.intersection-search-input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #2a3040;
    border-radius: 4px;
    background-color: rgba(19, 23, 34, 0.7);
    color: #fff;
    font-size: 14px;
}

.intersection-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
}

.intersection-categories {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #2a3040;
    padding: 0 5px;
}

.category-tab {
    padding: 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    position: relative;
    font-weight: 500;
}

.category-tab:hover {
    color: #ffffff;
}

.category-tab.active {
    color: #38bdf8;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38bdf8;
}

.intersection-list-content {
    padding: 10px;
}

.intersection-group {
    margin-bottom: 15px;
    background-color: rgba(19, 23, 34, 0.6);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 48, 64, 0.5);
}

.group-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    background-color: rgba(42, 48, 64, 0.4);
    cursor: pointer;
    user-select: none;
}

.group-header i:first-child {
    margin-right: 10px;
    color: #38bdf8;
}

.group-header span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.group-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.intersection-group.collapsed .group-content {
    max-height: 0;
}

.intersection-group.collapsed .group-header i.fa-chevron-down {
    transform: rotate(-90deg);
}

.group-content {
    max-height: 1000px;
    transition: max-height 0.3s ease;
    overflow: hidden;
}



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

.intersection-item:hover {
    background-color: rgba(42, 48, 64, 0.5);
}

.intersection-item.active {
    background-color: rgba(62, 232, 250, 0.1);
    border-left: 3px solid #38bdf8;
}

.intersection-info {
    width: 100%;
}



.intersection-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.intersection-meta span {
    display: flex;
    align-items: center;
}

.intersection-meta i {
    margin-right: 4px;
    font-size: 10px;
}

/* 按钮和项目高亮效�?*/
.intersection-item:hover .intersection-name {
    color: #38bdf8;
}

.intersection-item.active .intersection-name {
    color: #38bdf8;
}

.intersection-item.active .intersection-meta {
    color: rgba(62, 232, 250, 0.7);
}

/* 分组折叠动画 */
.intersection-group .group-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-group.collapsed .group-content {
    max-height: 0;
}

.intersection-group .group-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.intersection-group.collapsed .group-header i.fa-chevron-down {
    transform: rotate(-90deg);
}

/* 分类标签动画效果 */
.category-tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-tab:hover::before {
    width: 80%;
}

.category-tab.active::before {
    width: 100%;
}

.category-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(76, 175, 80, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.category-tab:active::after {
    animation: ripple-tab 0.6s ease-out;
}

@keyframes ripple-tab {
    0% {
        transform: scale(0, 0);
        opacity: 0.7;
    }

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

/* 搜索框动�?*/
.intersection-search-input {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.intersection-search-input:focus {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.intersection-search i {
    transition: all 0.3s ease;
}

.intersection-search-input:focus+i {
    color: #4CAF50;
}

/* 路口状态指示器动画 */
.intersection-status {
    position: relative;
    overflow: hidden;
}

.intersection-status i {
    animation: pulse 2s infinite;
}

.intersection-status.low i {
    animation: pulse-low 2s infinite;
}

.intersection-status.medium i {
    animation: pulse-medium 2s infinite;
}

.intersection-status.high i {
    animation: pulse-high 2s infinite;
}

@keyframes pulse-low {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

@keyframes pulse-medium {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

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

    100% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes pulse-high {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* 预览图片悬停效果 */
.intersection-preview img {
    transition: transform 0.3s ease;
}

.intersection-item:hover .intersection-preview img {
    transform: scale(1.05);
}

/* 路口列表侧边栏动画效�?*/
.intersection-list-sidebar {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-list-sidebar:not(.active) {
    transform: translateX(100%);
}

/* 路口列表切换按钮动画 */
.intersection-list-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-list-toggle.active {
    transform: rotate(180deg);
}

/* 路口项目动画效果 */
.intersection-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-item:hover {
    transform: translateX(5px);
}

.intersection-item.active {
    transform: translateX(10px);
}

/* 分组折叠动画 */
.intersection-group .group-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-group.collapsed .group-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* 搜索框动画效�?*/
.intersection-search-input {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-search-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 分类标签动画效果 */
.category-tab {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab:hover {
    transform: translateY(-1px);
}

.category-tab.active {
    transform: translateY(-2px);
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intersection-item {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 状态指示器动画 */
.intersection-status i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-status.high i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

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

/* 滚动条动�?*/
.intersection-list-content::-webkit-scrollbar-thumb {
    transition: background-color 0.2s ease;
}

.intersection-list-content:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .intersection-list-sidebar {
        width: 280px;
    }

    .intersection-list-sidebar:not(.active) {
        transform: translateX(100%);
    }
}

/* 视频切换过渡效果 */
.video-switching .video-player {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-loaded .video-player {
    opacity: 1;
}

/* 防止视频容器在加载中改变尺寸 */
.main-video .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #131722;
    position: absolute;
    top: 0;
    left: 0;
}

/* 防止主视频组件因加载状态变化导致高度变�?*/
.main-video .video-header {
    position: relative;
    z-index: 15;
}

.main-video {
    display: flex;
    flex-direction: column;
}

.main-video .video-body {
    flex: 1;
    display: block;
    position: relative;
}

/* 确保视频状态指示器不影响布局 */
.video-status {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 15;
    pointer-events: none;
}

.city-area-text {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 视频元素填充整个窗口 */
.main-video-player {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 确保视频内容显示方式为铺满整个容�?*/
.traffic-video-main video {
    object-fit: cover !important;
}

/* 浅色主题下的文字颜色适配 */
.light-theme .stats-body,
.light-theme .chart-body,
.light-theme .chart-animation-container {
    color: #1e293b !important;
}

/* 浅色主题下的 stats-body 背景设置 */
.light-theme .map-stats-container .stats-body,
.light-theme .stats-card .stats-body {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* 浅色主题下 stats-body 及其子元素的文字颜色 */
.light-theme .map-stats-container .stats-body,
.light-theme .map-stats-container .stats-body *,
.light-theme .stats-card .stats-body,
.light-theme .stats-card .stats-body * {
    color: #1e293b !important;
}

.light-theme .stats-body *,
.light-theme .chart-body *,
.light-theme .chart-animation-container * {
    color: #1e293b !important;
}

/* 确保浅色主题下统计项文字颜色正确 */
.light-theme .stat-value {
    color: #1e293b !important;
}

.light-theme .stat-label {
    color: #4b5563 !important;
}

/* 浅色主题下图表容器背景移除 */
.light-theme .chart-card {
    background: transparent !important;
    border-color: #e1e5eb !important;
}

.light-theme .chart-card .chart-header {
    background: rgba(245, 247, 250, 0.8) !important;
}

.light-theme .chart-card.selected .chart-header,
.light-theme .chart-card:hover .chart-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.15), rgba(56, 189, 248, 0.15)) !important;
}

.light-theme .chart-card .chart-body {
    background: transparent !important;
}

/* 浅色主题下图表卡片选中状态 */
.light-theme .chart-card.selected,
.light-theme .chart-card:hover {
    border-color: rgba(125, 211, 252, 0.3) !important;
}

/* 浅色主题下图表标题和按钮文字颜色 */
.light-theme .chart-card .chart-header h3 {
    color: #1e293b !important;
}

.light-theme .chart-card .chart-btn {
    color: #1e293b !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-theme .chart-card .chart-btn:hover {
    color: #1e293b !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.light-theme .chart-card .chart-btn.active {
    color: #1e293b !important;
    background: rgba(125, 211, 252, 0.1) !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
}

/* 浅色主题下地图统计区域样式 */
.light-theme .map-stats-container .stats-header {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.3), rgba(56, 189, 248, 0.3));
    color: #ffffff !important;
}

.light-theme .map-stats-container .stats-header h3 {
    color: #ffffff !important;
}

.light-theme .map-stats-container .stats-body {
    background: rgba(255, 255, 255, 1) !important;
    color: #ffffff !important;
}

.light-theme .map-stats-container .stats-body * {
    color: #000000 !important;
}

.light-theme .map-stats-container .stat-value {
    color: #000000 !important;
}

.light-theme .map-stats-container .stat-label {
    color: #000000 !important;
}

/* 实时监控容器样式 */
.live-monitor-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

#liveMonitorCanvas {
    width: 100%;
    height: 450px;
    background: #000;
    border-radius: 8px;
}

/* 事故轮播样式 */
.accident-carousel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

.carousel-header h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.carousel-toggle {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.carousel-toggle:hover {
    background: rgba(62, 232, 250, 0.2);
}

.carousel-content {
    max-height: 200px;
    overflow-y: auto;
}

.accident-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.3s;
}

.accident-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accident-item.active {
    background: rgba(62, 232, 250, 0.1);
    border-left: 3px solid #38bdf8;
}

.accident-icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 24px;
}

.accident-item[data-severity="high"] .accident-icon {
    color: #ef4444;
}

.accident-item[data-severity="medium"] .accident-icon {
    color: #f59e0b;
}

.accident-item[data-severity="low"] .accident-icon {
    color: #10b981;
}

.accident-info {
    flex: 1;
    min-width: 0;
}

.accident-title {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}

.accident-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 2px;
}

.accident-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* 视频上传区域样式 */
.video-upload-section {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

.upload-header h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.upload-toggle {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.upload-toggle:hover {
    background: rgba(62, 232, 250, 0.2);
}

.upload-content {
    padding: 16px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.upload-content.collapsed {
    max-height: 0;
    padding: 0 16px;
}

.upload-area {
    margin-bottom: 16px;
}

.upload-placeholder {
    border: 2px dashed rgba(62, 232, 250, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-placeholder:hover {
    border-color: #38bdf8;
    background: rgba(62, 232, 250, 0.05);
}

.upload-placeholder i {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 8px;
    display: block;
}

.upload-placeholder span {
    color: #fff;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.upload-placeholder small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.detection-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.detection-controls .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.detection-status {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* 事故列表侧边栏样式 */
.accident-list-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: rgba(31, 41, 55, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.accident-list-sidebar.active {
    transform: translateX(0);
}

.accident-list-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accident-list-header h4 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 18px;
}

.accident-filters {
    display: flex;
    gap: 12px;
}

.filter-select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
}

.filter-select option {
    background: #1f2937;
    color: #fff;
}

.accident-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.accident-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.accident-stats .stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.accident-stats .stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #38bdf8;
    display: block;
    margin-bottom: 4px;
}

.accident-stats .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.accident-list {
    max-height: 400px;
    overflow-y: auto;
}

.accident-list-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.accident-list-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

.accident-list-item[data-severity="high"] {
    border-left-color: #ef4444;
}

.accident-list-item[data-severity="medium"] {
    border-left-color: #f59e0b;
}

.accident-list-item[data-severity="low"] {
    border-left-color: #10b981;
}

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

.accident-list-item-title {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.accident-list-item-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.accident-list-item-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
}

.accident-list-item-severity {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.accident-list-item-severity.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.accident-list-item-severity.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.accident-list-item-severity.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.accident-list-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.accident-confidence {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(62, 232, 250, 0.2);
    color: #38bdf8;
    border-radius: 4px;
    font-weight: 500;
}

.accident-source {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(125, 211, 252, 0.2);
    color: #7dd3fc;
    border-radius: 4px;
    font-weight: 500;
}

.accident-ai-analysis {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #38bdf8;
    margin-top: 8px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .accident-carousel {
        width: 250px;
    }
    
    .video-upload-section {
        width: 300px;
    }
    
    .accident-list-sidebar {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .accident-carousel {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 16px;
    }
    
    .video-upload-section {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 16px;
    }
    
    .accident-list-sidebar {
        width: 100%;
    }
}