* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #ECF6FF;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 🚀 确保body背景不影响视频显示 */
body video {
    isolation: isolate !important;
    mix-blend-mode: normal !important;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    animation: none;
}

@keyframes pulse-bg {
    0% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
    padding-left: 0;
}

.back-button {
    position: absolute;
    left: -45px;
    top: 20px;
    z-index: 1000;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    user-select: none;
    text-shadow: none;
    overflow: hidden;
    min-width: auto;
    height: auto;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.back-button::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.back-button:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.back-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.back-button span {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 60px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.upload-container {
    background-color: #FEFEFE;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.upload-area {
    text-align: center;
    margin-bottom: 25px;
    padding: 30px;
    border: 2px dashed #cccccc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #999999;
    box-shadow: 0 0 15px rgba(153, 153, 153, 0.4);
}

.upload-btn {
    display: inline-block;
    background-color: #181C28;
    color: #ffffff;
    padding: 10px 25px;
    border: 2px solid #181C28;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 20px;
}

.upload-btn:hover {
    background-color: #2a2f3f;
    border-color: #2a2f3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 28, 40, 0.3);
}

.upload-btn input[type="file"] {
    display: none;
}

.upload-hint {
    font-size: 18px;
    color: #8892b0;
}

.video-preview {
    margin-top: 20px;
    text-align: center;
}

.video-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 自定义视频播放器进度条和scrubber样式 */
video::-webkit-media-controls-timeline {
    height: 4px;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    font-size: 12px;
}

/* 控制进度条scrubber（蓝色标记）的高度 */
video::-webkit-media-controls-timeline::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
}

/* 通用视频元素样式 */
video {
    /* 控制进度条高度 */
    /* 🚀 确保 controls 始终显示 */
    display: block !important;
}

video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
    display: flex !important;
}

/* 🚀 确保视频 controls 始终可见 */
video[controls] {
    display: block !important;
}

video[controls]::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 进度条轨道高度 */
video::-webkit-media-controls-timeline::-webkit-slider-runnable-track {
    height: 4px;
}

/* 进度条滑块（scrubber）高度 */
video::-webkit-media-controls-timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    margin-top: -4px;
}

.video-info {
    margin-top: 10px;
    font-size: 16px;
    color: #666666;
    font-weight: 500;
}

.analysis-controls {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#analysis-type {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    background-color: transparent;
    color: #444444;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    max-height: 200px;
    overflow-y: auto;
}

#analysis-type:focus {
    box-shadow: 0 0 8px rgba(204, 204, 204, 0.5);
}

#analysis-type option {
    padding: 8px;
    font-size: 16px;
    line-height: 1.5;
}

#analysis-type option:first-child {
    display: none;
}

.analyze-btn {
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.analyze-btn:hover {
    background: linear-gradient(135deg, #0056b3, #008b8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
}

/* 隐藏 Quick Request 按钮（保留功能逻辑，仅界面隐藏） */
#quick-request-btn,
#submit-answers-quick-btn {
    display: none !important;
}

/* 自定义问题输入框样式 */
.custom-question-container {
    margin-top: 20px;
    animation: fadeInDown 0.3s ease-out;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-question-container input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.custom-question-container input[type="text"]:focus {
    border-color: #0056b3;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
}

.custom-question-container input[type="text"]::placeholder {
    color: #999999;
    font-weight: 400;
}

/* 自定义问题提交按钮样式 */
.custom-submit-btn {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    flex-shrink: 0;
}

.custom-submit-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.custom-submit-btn:active {
    transform: translateY(0);
}

.custom-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-container {
    background-color: #FEFEFE;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.results-container h2 {
    color: #333333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.question-display {
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    font-size: 18px;
    color: #333333;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-icon-btn {
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.video-icon-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

.video-icon-btn:active {
    transform: scale(0.95);
}

.video-icon-btn svg {
    width: 18px;
    height: 18px;
}

.question-display strong {
    color: #007bff;
    font-weight: 600;
    margin-right: 8px;
}

.question-display span {
    color: #444444;
}

/* 视频播放器模态框样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.video-modal-content {
    position: relative;
    z-index: 10001;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10002;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.video-modal-close svg {
    width: 20px;
    height: 20px;
}

#modal-video-player {
    display: block;
    background-color: #000000;
    /* 🚀 不做任何处理，直接播放原始视频 */
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.results-content {
    padding: 30px 30px 15px 30px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #ffffff;
    min-height: 200px;
    display: block;
    text-align: left;
    color: #444444;
    font-size: 20px;
}

.results-content pre {
    margin-bottom: 0;
    padding-bottom: 5px;
}

.results-content .analyzing-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #007bff;
    font-size: 18px;
    text-align: center;
    margin: 0;
}

/* 🚀 确保results-content中的视频清晰显示 - 与画中画视频完全一致 */
.results-content video,
.results-content video[controls],
.results-content video[controls="true"],
.results-content video[preload],
.results-content video[playsinline],
.results-content video[src] {
    background-color: #000000 !important;  /* 黑色背景，与画中画视频一致 */
    opacity: 1 !important;
    filter: none !important;
    display: block !important;
    -webkit-filter: none !important;
    /* 确保视频正常显示，不受父容器影响 */
    mix-blend-mode: normal !important;
    /* 🚀 与画中画视频完全一致：不使用contain，只使用isolation */
    isolation: isolate !important;
    position: relative !important;
    z-index: 1 !important;
    /* 🚀 确保视频渲染正常 */
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    /* 🚀 明确移除contain属性（与画中画视频一致） */
    contain: none !important;
}

/* 🚀 确保contain属性正确应用 - 与画中画视频一致，使用none */
.results-content video[contain],
.results-content video[style*="contain"] {
    contain: none !important;
}

/* 🚀 确保results-content中视频的父div背景是白色 */
.results-content > div[style*="background-color"] {
    background-color: #ffffff !important;
}

/* 🚀 确保视频容器清晰 - 兼容写法 */
.results-content div video {
    background-color: #000000 !important;  /* 黑色背景，与第一个界面一致 */
    mix-blend-mode: normal !important;
}

.results-content div[style*="margin: 15px"] {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* 🚀 更强制的方式：直接匹配包含video的div */
.results-content div:has(> video) {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* 🚀 兼容不支持:has的浏览器 - 与画中画视频保持一致的简单样式 */
.results-content > div > video,
.results-content > div > video[controls],
.results-content > div > video[controls="true"] {
    background-color: #000000 !important;  /* 黑色背景，与画中画视频一致 */
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
    /* 🚀 不使用contain和transform，与画中画视频保持一致 */
    contain: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 🚀 确保results-content容器本身不影响视频 */
.results-content {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    /* 🚀 确保容器不创建新的混合上下文 */
    isolation: auto !important;
}

/* 🚀 确保results-content内的所有div都不影响视频 */
.results-content > div,
.results-content div {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* 强制隐藏旧的视频相关元素 */
.video-tabs,
#video-tabs,
#sample-video-container,
#custom-video-container,
.sample-video-container,
.custom-video-container {
    display: none !important;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.results-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
    border: 1px solid #cccccc;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .analysis-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #analysis-type {
        width: 100%;
        min-width: auto;
        font-size: 16px;
    }
    
    .analyze-btn {
        width: 100%;
        font-size: 16px;
    }
    
    .custom-question-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-question-container input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .custom-submit-btn {
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-cell.full-width {
        grid-column: 1;
    }
}

/* 问题详情界面样式 */
.questions-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    max-width: 1000px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
}

.questions-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
}

.questions-container h2 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    text-align: left;
    letter-spacing: -0.5px;
}

.questions-content {
    margin-top: 20px;
}

.questions-content p {
    color: #444444;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
}

.question-item {
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border-left: 6px solid #007bff;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.5s ease-out;
}

.question-item:nth-child(1) { animation-delay: 0.1s; }
.question-item:nth-child(2) { animation-delay: 0.2s; }
.question-item:nth-child(3) { animation-delay: 0.3s; }

.question-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 123, 255, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-left-color: #0056b3;
}

.question-item label {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 10px;
}

.question-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #007bff, #20c997);
    border-radius: 2px;
}

.question-item textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 20px;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

.question-item textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 
        0 0 0 4px rgba(0, 123, 255, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.question-item textarea:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.question-item label:empty {
    color: #6c757d;
    font-style: italic;
}

.question-item textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 20px;
}

.submit-answers {
    text-align: center;
    margin-top: 20px;
    padding-top: 0;
}

.submit-answers .analyze-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.submit-answers .analyze-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 123, 255, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.15);
}

.submit-answers .analyze-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(0, 123, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-answers .analyze-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.submit-answers .analyze-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .upload-container, .results-container, .questions-container {
        padding: 20px;
        margin: 15px auto;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .question-item {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .question-item label {
        font-size: 20px;
        margin-bottom: 12px;
        padding-left: 8px;
    }
    
    .question-item label::before {
        width: 3px;
        height: 18px;
    }
    
    .question-item textarea {
        font-size: 20px;
        min-height: 40px;
        padding: 10px 12px;
    }
    
    .submit-answers .analyze-btn {
        width: 100%;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Enhance tabs for tech feel */
.video-tabs {
    display: flex;
    justify-content: space-between; /* Changed to space-between for better alignment and width distribution */
    margin-bottom: 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab {
    flex: 1; /* Make tabs grow to fill the space, making them wider */
    padding: 15px 30px;
    margin: 0 5px; /* Adjusted margin for spacing */
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center text for better alignment */
}

.tab::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s;
}

.tab:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

.tab.active {
    background: linear-gradient(135deg, #0056b3, #008b8b);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); /* Neon glow */
}

.tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

/* 上传提交按钮容器样式 */
.upload-submit-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ask a new question 容器样式 */
.ask-question-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.ask-question-container span {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

#new-question-select {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #444444;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#new-question-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

#new-question-select option {
    padding: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.run-btn {
    background: #171717;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.run-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.run-btn:active {
    transform: translateY(0);
}

.run-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.new-custom-question-container {
    margin-top: 15px;
    padding: 0 20px 20px 20px;
}

.new-custom-question-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.new-custom-question-container input[type="text"]:focus {
    border-color: #0056b3;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
}

.new-custom-question-container input[type="text"]::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Upload a new video 容器样式 */
.upload-new-video-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.upload-new-video-container span {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

.upload-video-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #171717;
    color: #ffffff !important;
    border: none;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.upload-video-btn span,
.upload-video-btn #new-video-upload-label {
    color: #ffffff !important;
}

.upload-video-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upload-video-btn:active {
    transform: translateY(0);
}

.upload-new-video-container input[type="file"] {
    display: none;
}

#new-video-question-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#new-video-question-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

#new-video-question-input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* 清空按钮样式 */
.clear-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 6px;
    display: none;
    transition: color 0.2s ease;
    z-index: 10;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.clear-input-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.clear-input-btn:hover {
    color: #333333;
}

.clear-input-btn:active {
    color: #000000;
}

/* Analysis 按钮样式 */
.analysis-btn {
    background: #171717;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.analysis-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.analysis-btn:active {
    transform: translateY(0);
}

.analysis-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}
