* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-bg: #eff6ff;
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --dark: #1f2937;
    --dark-light: #374151;
    --dark-lighter: #4b5563;
    --light: #f9fafb;
    --light-gray: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 导航栏样式 - 明亮风格 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 150px;
    height: 60px;
    background: linear-gradient(135deg, #bfb83c, #88d1e1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6d2929;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-top: 4px;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
}

.nav-item i {
    font-size: 18px;
}

/* 欢迎标题样式 - 明亮风格 */
.welcome-title {
    text-align: center;
    margin: 40px 0 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff, var(--bg-secondary));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.welcome-title h1 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.welcome-title p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 四画面直播区域样式 - 明亮风格 */
.live-section {
    margin: 30px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.live-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-bg), #ffffff);
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

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

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

.live-controls {
    display: flex;
    gap: 10px;
}

.live-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.live-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.layout-button {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.layout-button:hover {
    background: var(--border-light);
    border-color: var(--primary-light);
}

.layout-button.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

/* 四画面直播网格 - 明亮风格 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background-color: var(--border-light);
    overflow: hidden;
}

.live-grid-1x1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.live-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.live-grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

/* 直播画面项 - 明亮风格 */
.live-item {
    background: var(--bg-card);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 400px;
}

.live-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    border-color: var(--primary);
}

.live-item.playing {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.live-item-header {
    padding: 12px 20px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    border-bottom: 1px solid var(--border);
}

.live-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.live-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--danger);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online .status-dot {
    background-color: var(--success);
    animation: pulse 2s infinite;
}

.status-offline .status-dot {
    background-color: var(--danger);
}

.live-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 视频容器样式 */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.live-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

/* 视频覆盖层 */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgb(14 14 14 / 6%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 1;
    transition: var(--transition);
    cursor: pointer;
    object-fit: cover;
}



.live-item.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* 播放按钮样式 */
.play-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.play-button i {
    font-size: 24px;
    color: white;
    margin-left: 4px;
}

/* 视频信息覆盖层 */
.video-info-overlay {
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* 视频控制栏 */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.live-item.playing:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.time-display {
    color: white;
    font-size: 12px;
    margin-left: auto;
}

/* 全屏直播按钮 */
.live-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.live-fullscreen-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.live-item-footer {
    padding: 10px 20px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.live-item-actions {
    display: flex;
    gap: 8px;
}

.live-action-btn {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.live-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* 视频加载状态 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.video-loading i {
    font-size: 32px;
    color: var(--primary);
    animation: spin 2s linear infinite;
}

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

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

/* 错误状态 */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--danger);
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.video-error i {
    font-size: 32px;
    color: var(--danger);
    margin-bottom: 10px;
}

/* 筛选器样式 - 明亮风格 */
.filter-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    margin: 40px 0 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-title i {
    color: var(--primary);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.filter-select:hover {
    border-color: var(--dark-lighter);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.filter-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.filter-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.filter-btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--dark-lighter);
}

/* 顶部栏样式 - 明亮风格 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.last-updated {
    background: var(--primary-bg);
    padding: 12px 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.last-updated i {
    color: var(--primary);
}

/* 时间轴区域样式 - 明亮风格 */
.timeline-section {
    margin: 40px 0;
}

.section-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header-compact h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.video-count {
    background: var(--primary-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
}

/* 时间轴线 */
.timeline-line {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* 时间轴项 */
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item {
    display: flex;
    position: relative;
}

.timeline-date {
    width: 120px;
    padding-right: 20px;
    text-align: right;
}

.date-box {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.date-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.date-day {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.date-month-year {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.date-weekday {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* 时间轴节点 */
.timeline-node {
    position: absolute;
    left: 117px;
    top: 25px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 视频内容 */
.timeline-content {
    flex: 1;
    padding-left: 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #6fa3d7, #7474dd);
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 8px;
    /* margin-top: 6px; */
    /* margin-bottom: 2px; */
    background-color: #9fa5aa21;
    margin: 3px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 完整显示封面 */
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.1));
}

/* 视频封面图片 */
.video-thumbnail .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    /* 半透明的白色背景 */
    z-index: 1;
    /* 保证图片在视频上层 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-thumbnail .overlay img {
    max-width: 80%;
    /* 控制封面图的大小 */
    max-height: 80%;
    object-fit: contain;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-play:hover {
    background: rgba(59, 130, 246, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play i {
    font-size: 24px;
    color: white;
    margin-left: 4px;
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
}

.video-info {
    padding: 20px;
}

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

.video-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--text-primary);
}

.device-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.video-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 40px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--text-muted);
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--border);
}

/* 视频播放模态框 - 明亮风格 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* 白色半透明背景 */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 模态框内容 */
.modal-content {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-card);
    /* 卡片背景色 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* 模态框标题栏 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.close-modal {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    /* 优化过渡效果 */
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

/* 视频播放器 */
.video-player {
    width: 100%;
    height: 500px;
    background-color: #000;
    /* 视频区域黑色背景 */
}

/* 直播视频全屏样式 */
.live-modal .video-player {
    width: 100%;
    height: 70vh;
    /* 更好的视口适应 */
    min-height: 500px;
    background-color: black;
}

/* 模态框信息区域 */
.modal-info {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {

    /* 调整模态框的宽度 */
    .modal-content {
        width: 95%;
    }

    /* 视频播放器自动适应高度 */
    .video-player {
        height: 60vh;
        /* 在小屏设备上视频自动适应高度 */
    }

    /* 关闭按钮稍微缩小 */
    .close-modal {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }

    .layout-button {
        background: var(--bg-secondary);
        color: var(--text-secondary);
        border: 1px solid var(--border);
        padding: 10px 20px;
        border-radius: var(--radius-sm);
        font-weight: 500;
        cursor: pointer;
        display: none;
        align-items: center;
        gap: 8px;
        transition: var(--transition);
    }

    .live-indicator {
        display: none;

    }

    .live-button {
        display: none;
    }

    .logo-icon {
        width: 150px;
        height: 60px;
        background: linear-gradient(135deg, #bfb83c, #88d1e1);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #6d2929;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        margin-top: 4px;
        margin-left: 10px;
    }
}

/* 页脚 - 明亮风格 */
/* 页脚 - 明亮风格（响应式优化版） */
footer {
    padding: 48px 20px 40px;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 14px;
}

/* 内容容器 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* 左右区域 */
.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 链接组 */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 链接样式 */
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
    padding: 6px 4px; /* 增大触摸区域 */
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
    footer {
        padding: 36px 16px calc(36px + env(safe-area-inset-bottom));
        text-align: center;
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        gap: 14px;
    }
}


/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .live-grid {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .filter-controls {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .timeline-line {
        left: 100px;
    }

    .timeline-date {
        width: 100px;
    }

    .timeline-node {
        left: 97px;
    }

    .live-grid {
        height: 400px;
    }

    .date-box {
        background: var(--bg-card);
        padding: 15px 5px 5px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        border-left: 4px solid var(--primary);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .live-controls {
        width: 100%;
        justify-content: space-between;
    }

    .timeline-line {
        left: 80px;
    }

    .timeline-date {
        width: 66px;
    }

    .timeline-node {
        left: 77px;
    }

    .timeline-content {
        padding-left: 30px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .live-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 800px;
    }

    .welcome-title h1 {
        font-size: 28px;
    }

    .welcome-title p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 10px 15px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .last-updated {
        width: 100%;
    }

    .live-grid {
        height: 750px;
        ;
    }

    .live-item-header,
    .live-item-footer {
        padding: 8px 12px;
    }

    .welcome-title h1 {
        font-size: 24px;
    }

    .welcome-title p {
        font-size: 14px;
    }
}