/* 基础样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #e6e6e6;
    --border-color: #2d3748;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: 56px;
}

/* 侧边栏 */
.sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.sidebar .card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.sidebar .card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    color: #a0aec0;
}

/* 主要内容区 */
#mainContent {
    padding-top: 20px;
    min-height: calc(100vh - 56px);
}

.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

/* 内容卡片 */
.content-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

.content-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px;
    color: white;
}

.content-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 上传区域 */
.drop-zone {
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(102, 126, 234, 0.05);
}

.drop-zone:hover {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: var(--secondary-color);
}

.drop-zone.dragover {
    background-color: rgba(102, 126, 234, 0.2);
    border-color: #48bb78;
}

/* 表格样式 */
.table {
    color: var(--text-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    color: #a0aec0;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a3d8f);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #48bb78;
}

.status-offline {
    background-color: #f56565;
}

.status-checking {
    background-color: #ed8936;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .content-card img {
        height: 200px;
    }
}

/* 播放器调整 */
.video-js {
    border-radius: 10px;
    overflow: hidden;
}

/* 历史记录项 */
.history-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.history-item:last-child {
    border-bottom: none;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 0.8em;
    color: #a0aec0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}