/* 全局样式 */
.video-generator-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #3f3f3f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 顶部标题区域 */
.header-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;    
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0.5rem 0 0 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 主要内容区域 */
.main-content {
    padding: 0 0 3rem 0;
}

/* 卡片通用样式 */
.form-section, 
.preview-section, 
.status-section, 
.tips-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-card {
    background: rgba(194, 194, 194, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.438);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 标题区域 */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #4e4e4e;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    color: #4e4e4e;
    margin: 0 0 1rem 0;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.tips-title {
    font-size: 1.1rem;
    color: #4e4e4e;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #a0a0a0;
    margin: 0;
}

/* 表单控件 */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #919191;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

.form-control, 
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #808080;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #8899aa;
    opacity: 0.8;
}

.form-control:focus, 
.form-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2300d4ff' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
}

.form-select option:hover {
    background-color: #2a2a4e;
}

.form-select optgroup {
    background-color: #16213e;
    color: #00d4ff;
    font-weight: 600;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.form-control:focus + .input-glow {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* 按钮样式 */
.action-section {
    text-align: center;
    margin-top: 2rem;
}

.btn-generate {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:disabled {
    background: linear-gradient(45deg, #666666, #444444) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.btn-generate:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-generate:disabled::before {
    display: none;
}

/* 预览区域 */
.preview-placeholder {
    color: #808080;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 进度条 */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* 提示列表 */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    position: relative;
    padding-left: 1rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tips-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4e4e4e;
}

/* 状态消息样式 */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.main-status {    
    font-weight: bold;
    border-left: 4px solid #2196F3;
}

.sub_status {
    padding-left: 20px;    
    position: relative;
}

.sub_status::before {
    content: '▼';   /* 放小三角图标 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #FF9800;
}

.job-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.job-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.time-info span {
    display: block;
    font-size: 0.9em;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .form-section, 
    .preview-section, 
    .status-section, 
    .tips-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-generate {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* 视频预览窗口样式 */
.preview-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
}