* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #f3f6fb;
}

/* 整体布局 */
.container {
    display: flex;
    height: 100vh;
}

/* 左侧导航 */
.sidebar {
    width: 230px;
    background: linear-gradient(180deg, #0a2a5e, #1c4fb3);
    color: white;
    padding: 20px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 40px;
}

.menu {
    list-style: none;
}

.menu li {
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.menu li:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu li.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* 右侧内容 */
.main {
    flex: 1;
    padding: 25px;
    overflow: auto;
}

.header {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

/* 布局 */
.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

/* 图片 */
.class-img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    height: 370px;
    object-fit: cover;
}

/* 图表 */
.chart {
    width: 100%;
    height: 300px;
}

/* mediapipe头像 */
.face-box {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.face {
    text-align: center;
    flex: 1;
    min-width: 60px;
}

.face img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #eaeaea;
    object-fit: cover;
}

.face p {
    font-size: 12px;
    margin-top: 6px;
    color: #555;
}

/* 专注度 */
.focus-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 85%, #eaeaea 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #3b82f6;
    margin-right: 20px;
}

.bars {
    flex: 1;
    min-width: 200px;
}

.bar {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.bar-label {
    width: 60px;
    font-size: 14px;
    color: #666;
}

.bar-bg {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    margin: 0 10px;
}

.bar-fill {
    height: 10px;
    background: #3b82f6;
    border-radius: 10px;
    transition: width 0.3s;
}

.bar-value {
    width: 40px;
    font-size: 14px;
    color: #3b82f6;
    font-weight: bold;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 响应式 */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 80px;
        padding: 10px;
    }

    .sidebar .logo {
        font-size: 0;
        text-align: center;
    }

    .sidebar .logo::first-letter {
        font-size: 22px;
    }

    .menu li {
        text-align: center;
        padding: 12px 5px;
        font-size: 12px;
    }
}

/* 视频分析页面特有样式 */
.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.video-player {
    width: 100%;
    border-radius: 10px;
    background: #000;
}

.video-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 8px 16px;
    background: #1c4fb3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #0a2a5e;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 统计表格 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.stats-table tr:hover {
    background: #f9f9f9;
}