/* SRT 白板动画管理台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f0e8;
    color: #333;
    line-height: 1.6;
}
.topbar {
    background: #2c2c2c;
    color: #f5ebd7;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 20px; font-weight: 600; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.view { display: none; }
.view.active { display: block; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn:hover { background: #f0f0f0; }
.btn-primary { background: #c85a2a; color: #fff; border-color: #c85a2a; }
.btn-primary:hover { background: #a84a1a; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-link { background: none; border: none; color: #c85a2a; padding: 4px 0; }
.btn-link:hover { background: none; text-decoration: underline; }

/* 项目卡片 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.project-card h3 { font-size: 16px; margin-bottom: 8px; }
.project-meta { font-size: 13px; color: #888; }
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}
.status-draft { background: #eee; color: #666; }
.status-ready { background: #e3f2fd; color: #1565c0; }
.status-rendering { background: #fff3e0; color: #e65100; }
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-failed { background: #ffebee; color: #c62828; }

/* 步骤卡片 */
.step-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-card h3 { font-size: 17px; margin-bottom: 16px; color: #2c2c2c; }

/* 场景列表 */
.scene-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.scene-no {
    width: 40px; height: 40px;
    background: #c85a2a; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; flex-shrink: 0;
}
.scene-info { flex: 1; }
.scene-info h4 { font-size: 15px; margin-bottom: 4px; }
.scene-subtitle { font-size: 13px; color: #666; max-height: 60px; overflow-y: auto; }
.scene-actions { display: flex; flex-direction: column; gap: 8px; }
.scene-thumb {
    width: 120px; height: 68px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 分镜建议 */
.scene-suggestion {
    padding: 12px;
    background: #faf8f4;
    border-left: 3px solid #c85a2a;
    border-radius: 4px;
    margin-bottom: 8px;
}
.scene-suggestion .num { font-weight: 600; color: #c85a2a; }
.scene-suggestion .time { font-size: 12px; color: #888; }
.scene-suggestion .text { font-size: 13px; margin-top: 4px; }

/* 渲染状态 */
.render-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #faf8f4;
    border-radius: 6px;
    margin-bottom: 8px;
}
.render-task .task-name { flex: 1; font-size: 14px; }
.progress-bar {
    width: 200px; height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #c85a2a;
    transition: width 0.3s;
}

/* 弹窗 */
.modal {
    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: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 400px;
    max-width: 90%;
}
.modal-content h3 { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.input-full {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.file-name { margin-left: 12px; color: #666; font-size: 14px; }
.render-controls { display: flex; gap: 12px; align-items: center; }
video { max-width: 100%; border-radius: 8px; margin-top: 12px; }
