* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移动端访问阻止提示 */
.mobile-block-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.mobile-block-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-block-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mobile-block-content h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.mobile-block-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.mobile-block-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.mobile-block-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mobile-block-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mobile-block-link:active {
    transform: translateY(0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    color: #333;
    padding: 12px 30px;
    text-align: left;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

header h1 {
    font-size: 1.4em;
    margin: 0;
    flex: 1;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.btn-home {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    padding: 6px 14px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-home:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* 视频布局容器 */
.video-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: gap 0.3s ease;
}

.video-left-panel {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    transition: flex 0.3s ease;
}

.video-right-panel {
    width: 320px;
    min-width: 280px;
    max-width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: width 0.3s ease;
}

/* 房间信息样式（右侧面板） */
.video-right-panel .room-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-right-panel .room-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-right-panel .room-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #333;
}

.video-right-panel .room-info-label {
    color: #666;
    font-weight: 500;
}

.video-right-panel .room-info-item strong {
    color: #667eea;
    font-weight: 600;
}

.video-right-panel .btn-copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 5px;
}

.video-right-panel .btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 玩家列表样式（右侧面板） */
.video-right-panel .players-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-right-panel .players-list-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.video-right-panel .players-list-header h3 {
    color: #333;
    font-size: 1em;
    margin: 0;
    font-weight: 600;
}

.video-right-panel .players-list-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-right-panel .player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.video-right-panel .player-item:hover {
    background: #f5f5f5;
    border-color: #667eea;
    transform: translateX(2px);
}

.video-right-panel .player-name {
    font-weight: 500;
    flex: 1;
    color: #333;
}

.video-right-panel .player-time {
    font-size: 0.8em;
    color: #999;
    margin-left: 10px;
}

.video-right-panel .players-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

main {
    padding: 30px;
    padding-top: 70px; /* 为固定的header留出空间 */
    background: transparent;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

/* 视频播放区域保持白色背景 */
.video-player-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0;
    flex: 0 0 auto;
}

/* 视频选择区域 */
.video-selector {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 12px;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #dee2e6;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 项目创建区域 */
.project-creator {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 12px;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #dee2e6;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.project-creator-header {
    margin-bottom: 30px;
}

.project-creator-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
}

.project-creator-desc {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.project-creator-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.project-creator-left {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.project-creator-right {
    width: 350px;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .project-creator-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-creator-right {
        width: 100%;
    }
    
    .project-creator-right .folder-structure-preview {
        position: static;
    }
    
    .project-type-radio-group {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* 项目类型单选框组 */
.project-type-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    user-select: none;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #667eea;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-label {
    flex: 1;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
}

/* 文件夹结构预览（右侧） */
.project-creator-right .folder-structure-preview {
    position: sticky;
    top: 90px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-top: 0;
}

.folder-structure-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.folder-structure-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.file-input-wrapper {
    display: inline-block;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 视频播放区域 */
.video-player-section {
    margin-bottom: 30px;
}

.video-controls-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    margin-bottom: 10px;
}

.video-controls-bar .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.video-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#videoPlayer {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    background: #000;
    object-fit: contain; /* 保持视频原始比例，不被裁剪 */
    max-height: 80vh; /* 限制最大高度 */
}

.mini-chart-container {
    margin-bottom: 15px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 6px;
    height: auto;
    min-height: 70px;
    position: relative;
}

#miniStatsChart {
    width: 100% !important;
    height: 60px !important;
    cursor: crosshair;
}

.mini-chart-tooltip {
    position: fixed !important;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    opacity: 1 !important;
    visibility: visible !important;
}

#miniChartTooltipTimecode {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    color: #fff;
}

#miniChartTooltipStats {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.mini-chart-tooltip-thumbnail {
    width: 160px;
    height: 90px;
    border-radius: 4px;
    margin-top: 5px;
    display: block;
    object-fit: contain;
    background: #000;
}

.timecode-display {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

/* 修改意见标记区域（类似统计图的横向轴标记） */
.feedback-markers-container {
    margin-top: 8px;
    margin-bottom: 15px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 6px;
    height: auto;
    min-height: 40px;
    position: relative;
}

.feedback-markers-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: transparent;
    overflow: visible;
    cursor: pointer;
}

.feedback-marker {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.feedback-marker:hover {
    width: 5px;
    z-index: 11;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.feedback-marker.text {
    background: #2196F3;
}

.feedback-marker.voice {
    background: #9C27B0;
}

.feedback-marker-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 300px;
    min-width: 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.feedback-marker:hover .feedback-marker-tooltip {
    opacity: 1;
}

.feedback-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

/* 修改意见标记详情（点击后显示在标记下方） */
.feedback-marker-detail {
    position: absolute;
    top: calc(100% + 10px);
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    border: 1px solid #e0e0e0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.feedback-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.feedback-detail-user {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.feedback-detail-timecode {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
}

.feedback-detail-time {
    color: #999;
    font-size: 11px;
}

.feedback-detail-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.feedback-detail-close:hover {
    background: #e0e0e0;
    color: #333;
}

.feedback-detail-body {
    padding: 15px;
}

.feedback-detail-content-text {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
}

.feedback-detail-content-voice {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.feedback-detail-content-voice audio {
    width: 100%;
    max-width: 400px;
}

/* 浮窗视频播放器样式 */
.floating-video-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: move;
    user-select: none;
}

.floating-video-container.dragging {
    cursor: grabbing;
}

.floating-video-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.floating-video-title {
    font-size: 14px;
    font-weight: 600;
}

.floating-video-controls {
    display: flex;
    gap: 8px;
}

.floating-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
    padding: 0;
}

.floating-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.floating-btn.close-btn:hover {
    background: rgba(255, 0, 0, 0.5);
}

.floating-video-wrapper {
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

#floatingVideoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.floating-timecode-display {
    background: #f5f5f5;
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
}

.timecode-display strong {
    color: #667eea;
    font-weight: 600;
}

/* 统计图表区域 */
.stats-section {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-top: none;
    flex: 0 0 auto;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-section h2 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
}

.chart-type-switcher {
    display: flex;
    gap: 10px;
}

.chart-type-btn {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.chart-type-btn:hover {
    background: #e0e0e0;
    border-color: #667eea;
}

.chart-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.chart-container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    position: relative;
}

#statsChart {
    width: 100%;
    height: 450px !important;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.chart-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-timecode {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #667eea;
}

.tooltip-stats {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.tooltip-thumbnail {
    width: 160px;
    height: 90px;
    border-radius: 4px;
    display: block;
    margin-top: 8px;
}

/* 明细表格区域 */
.details-section {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-top: none;
    flex: 0 0 auto;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.details-section h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.details-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.details-search {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.details-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.details-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

/* 用户统计样式 */
.user-stats-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.user-stats-section h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.user-stats-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.user-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.user-stats-table thead {
    background: #f8f9fa;
}

.user-stats-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.user-stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.user-stats-table tbody tr:hover {
    background: #f8f9fa;
}

.user-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.user-stats-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.details-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.details-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.details-table tbody tr {
    border-bottom: 1px solid #e8eaed;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.details-table tbody tr:hover {
    background-color: #f5f7fa;
}

.details-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.details-table tbody tr:nth-child(even):hover {
    background-color: #f5f7fa;
}

.details-table td {
    padding: 15px 20px;
    font-size: 13px;
    color: #3c4043;
}

.details-table td:first-child {
    font-family: 'Courier New', monospace;
    color: #3c4043;
    font-weight: 500;
}

.details-table td:nth-child(2) {
    color: #5f6368;
}

.details-table td:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-table td:nth-child(4) {
    color: #999;
    font-size: 12px;
}

.details-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.details-action-badge.like {
    background: #4CAF50;
}

.details-action-badge.ok {
    background: #ff9800;
}

.details-action-badge.dislike {
    background: #f44336;
}

.details-action-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.details-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 历史记录区域 */
.history-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #666;
    font-size: 14px;
}

.history-toggle-btn:hover {
    color: #333;
}

.history-toggle-btn.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.history-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    cursor: pointer;
    user-select: none;
}

.history-list {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.history-list.collapsed {
    display: none;
}

.btn-refresh {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #5568d3;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-item-header {
    margin-bottom: 8px;
}

.history-item-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
}

.history-item-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.history-item-code {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.history-item-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.history-item-status.status-active {
    background: #4CAF50;
    color: white;
}

.history-item-status.status-completed {
    background: #999;
    color: white;
}

.history-item-video-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.history-item-video-type.video-type-online {
    background: #2196F3;
    color: white;
}

.history-item-video-type.video-type-local {
    background: #FF9800;
    color: white;
}

.history-item-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
}

.history-item-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-item-stat-label {
    color: #666;
}

.history-item-stat-value {
    font-weight: 600;
    color: #333;
}

.history-item-stat-value.likes {
    color: #4CAF50;
}

.history-item-stat-value.oks {
    color: #ff9800;
}

.history-item-stat-value.dislikes {
    color: #f44336;
}

.history-item-time {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item-end-time {
    color: #ff9800;
    font-weight: 500;
}

.history-loading,
.history-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 10px 20px;
    }

    header h1 {
        font-size: 1.2em;
    }

    main {
        padding: 20px;
        padding-top: 60px; /* 为固定的header留出空间 */
        min-height: calc(100vh - 60px);
    }
    
    /* 视频选择区域响应式 */
    .video-selector {
        padding: 40px 20px;
        margin: 0;
    }
    
    .video-selector-header h2 {
        font-size: 1.4em;
    }
    
    /* 小屏幕下表单项垂直排列 */
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
    
    .form-row .upload-form-group {
        margin-bottom: 0;
    }
    
    .upload-form-group {
        margin-bottom: 18px;
    }
    
    input[type="datetime-local"] {
        font-size: 14px !important;
    }

    /* 视频布局响应式 */
    .video-layout-container {
        flex-direction: column;
        gap: 15px;
    }

    .video-right-panel {
        width: 100%;
    }

    .video-right-panel .room-info {
        width: 100%;
    }

    .video-right-panel .players-list {
        width: 100%;
        max-height: 300px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px 10px;
    }
    
    /* 历史记录卡片响应式 */
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .history-item-badges {
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }
    
    .history-item-code,
    .history-item-status,
    .history-item-video-type {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 中等屏幕 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        margin: 0 15px;
    }

    main {
        padding: 25px;
        padding-top: 70px; /* 为固定的header留出空间 */
        min-height: calc(100vh - 70px);
    }

    .video-right-panel {
        width: 280px;
        min-width: 260px;
        max-width: 300px;
    }

    .video-layout-container {
        gap: 15px;
    }
}

/* 宽屏 (1025px - 1920px) */
@media (min-width: 1025px) and (max-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    main {
        padding: 30px;
        padding-top: 70px; /* 为固定的header留出空间 */
        min-height: calc(100vh - 70px);
    }

    .video-right-panel {
        width: 320px;
        min-width: 300px;
    }

    .video-layout-container {
        gap: 25px;
    }
}

/* 超宽屏 (> 1920px) */
@media (min-width: 1921px) {
    .container {
        max-width: 1800px;
    }

    main {
        padding: 40px;
        padding-top: 70px; /* 为固定的header留出空间 */
        min-height: calc(100vh - 70px);
    }

    .video-right-panel {
        width: 360px;
        min-width: 340px;
        max-width: 400px;
    }

    .video-layout-container {
        gap: 30px;
    }

    /* 优化视频播放器在超宽屏上的显示 */
    #videoPlayer {
        max-width: 100%;
    }

    /* 优化统计图表在超宽屏上的显示 */
    .stats-section {
        max-width: 100%;
    }
}

/* 视频选择器标题和说明 */
.video-selector-header {
    margin-bottom: 25px;
    text-align: center;
}

.video-selector-header h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-selector-desc {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 上传模式切换 */
.upload-mode-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.mode-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    background: #ffffff;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mode-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mode-icon {
    font-size: 1.2em;
    line-height: 1;
}

.mode-text {
    font-weight: 600;
}

/* 模式内容说明 */
.mode-content-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.mode-info-text {
    margin: 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* 选择文件按钮样式（区别于模式切换按钮） */
.btn-select-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: all 0.3s;
}

.btn-select-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.btn-select-file:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-icon {
    font-size: 1.2em;
    line-height: 1;
}

/* 上传表单 */
.upload-form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.label-icon {
    font-size: 1.1em;
    line-height: 1;
}

.label-text {
    font-weight: 600;
}

.form-input-enhanced {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #ffffff;
    color: #333;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.form-input-enhanced::placeholder {
    color: #999;
    font-weight: 400;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.85em;
    color: #888;
    line-height: 1.4;
    padding-left: 2px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 表单项行布局 - 让房间标题和审片结束时间并排显示 */
.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-row .upload-form-group {
    flex: 1;
    margin-bottom: 0;
}

.upload-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.review-end-time-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-end-time-wrapper label {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

/* 时间选择框增强样式 - 与输入框统一 */
.datetime-input-enhanced {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #ffffff;
    color: #333;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.datetime-input-enhanced:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.datetime-input-enhanced:hover {
    border-color: #adb5bd;
}

/* 兼容旧的datetime-input类名，使用增强样式 */
.datetime-input {
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #ffffff;
    color: #333;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.datetime-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.datetime-input:hover {
    border-color: #adb5bd;
}

/* 针对datetime-local输入框的浏览器特定样式 */
input[type="datetime-local"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 14px 16px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.3s !important;
    background: #ffffff !important;
    color: #333 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    width: 100% !important;
}

input[type="datetime-local"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
    background: #fafbff !important;
}

input[type="datetime-local"]:hover {
    border-color: #adb5bd !important;
}

/* WebKit浏览器（Chrome, Safari）的datetime-local样式 */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    margin-left: 4px;
    transition: opacity 0.3s;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="datetime-local"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="datetime-local"]::-webkit-datetime-edit-text {
    color: #999;
    padding: 0 4px;
}

input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: #333;
    padding: 0 2px;
}

/* Firefox的datetime-local样式 */
input[type="datetime-local"]::-moz-placeholder {
    color: #999;
}

input[type="datetime-local"]:focus::-moz-placeholder {
    color: transparent;
}

.upload-info {
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 0.9em;
}

/* 活跃房间列表 */
.active-rooms-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.active-rooms-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
}

.active-rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.active-room-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.active-room-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.room-card-header {
    margin-bottom: 10px;
}

.room-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    word-break: break-word;
    line-height: 1.4;
}

.room-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.room-code-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.room-code-badge.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.room-code-badge.clickable:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.room-card-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    align-items: center;
}

.room-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.room-code-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.room-card-time-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.room-card-time {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    flex: 1;
}

.room-card-start-time {
    color: #666;
}

.room-card-end-time {
    color: #666;
}

.room-card-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-enter-room {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.btn-enter-room:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 修改意见列表区域 */
.feedback-section {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.feedback-header {
    margin-bottom: 20px;
}

.feedback-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.feedback-list-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

.feedback-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    cursor: pointer;
}

.feedback-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-item-highlight {
    background: #fff3cd !important;
    border-left-color: #ffc107 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    }
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.feedback-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-item-user {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.feedback-item-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #667eea;
    color: white;
}

.feedback-item-timecode {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 500;
    font-size: 13px;
}

.feedback-item-time {
    color: #999;
    font-size: 12px;
}

.feedback-item-body {
    margin-top: 10px;
}

.feedback-content-text {
    padding: 15px;
    background: white;
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
}

.feedback-content-voice {
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.feedback-content-voice audio {
    width: 100%;
    max-width: 500px;
}

/* 新建项目区域 */
.new-project-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.btn-new-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-new-project .btn-icon {
    font-size: 1.2em;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-modal {
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
}

/* 项目创建表单 */
#projectCreateForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.directory-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.directory-input-wrapper .form-input-enhanced {
    flex: 1;
}

.btn-browse-dir {
    padding: 14px 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-text {
    color: #333;
    font-size: 15px;
}

.form-group select.form-input-enhanced {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* 快速操作区域 */
.quick-actions-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.quick-actions-header {
    text-align: center;
    margin-bottom: 24px;
}

.quick-actions-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.quick-actions-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    min-width: 160px;
    justify-content: center;
}

.btn-action .btn-icon {
    font-size: 1.2em;
}

.btn-config-folders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-config-folders .btn-icon {
    font-size: 1.2em;
}

/* 文件夹结构预览 */
.folder-structure-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.folder-structure-list {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.folder-structure-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #333;
}

.folder-structure-main {
    font-weight: 600;
    color: #667eea;
}

.folder-structure-sub {
    padding-left: 20px;
}

.folder-indent {
    color: #999;
    margin-right: 4px;
}

.folder-icon {
    font-size: 1.1em;
}

.folder-name {
    flex: 1;
}

/* 文件夹结构配置对话框 */
.folder-config-modal {
    max-width: 800px;
}

.folder-config-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 24px 0;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
}

.folder-config-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
}

.folder-config-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.folder-config-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.folder-config-content {
    padding: 24px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.folder-config-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.folder-config-type-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.btn-add-folder {
    padding: 8px 16px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.folder-config-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.folder-config-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.folder-config-item .folder-name-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
}

.btn-remove-folder {
    padding: 10px 16px;
    font-size: 20px;
    line-height: 1;
    min-width: 40px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-folder:hover {
    background: #c82333;
    transform: scale(1.05);
}

.folder-config-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.directory-input-wrapper .form-input-enhanced {
    cursor: text;
}

/* 消息提示（Toast）样式 */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 500px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(102, 126, 234, 0.3);
    animation: toastProgress linear;
}

.toast.success .toast-progress {
    background: rgba(40, 167, 69, 0.3);
}

.toast.error .toast-progress {
    background: rgba(220, 53, 69, 0.3);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

