body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}
.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
    color: #333;
    text-align: center;
}
.upload-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.upload-section label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-area:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}
.upload-area.dragover {
    border-color: #007bff;
    background-color: #e7f3ff;
}
.upload-area input[type="file"] {
    display: none;
}
.upload-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
}
.upload-text {
    color: #666;
}
.file-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    display: none;
}
.file-info.show {
    display: block;
}
.preview-container {
    margin-top: 30px;
    text-align: center;
}
.preview-container h3 {
    color: #333;
    margin-bottom: 15px;
}
.preview-video, .preview-image {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}
.submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 20px;
}
.submit-btn:hover {
    background-color: #c82333;
}
.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 5px;
    display: none;
}
.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.processing {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}
.progress {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    margin-top: 20px;
}
.progress-bar {
    height: 100%;
    background-color: #dc3545;
    width: 0%;
    transition: width 0.3s;
}
.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    display: none;
}
.video-result {
    margin-top: 30px;
    text-align: center;
}
.video-result h3 {
    color: #333;
    margin-bottom: 15px;
}
.video-result video {
    max-width: 100%;
    max-height: 500px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}
.download-btn:hover {
    background-color: #138496;
}
.navigation {
    text-align: center;
    margin-bottom: 20px;
}
.nav-link {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s;
}
.nav-link.story {
    background-color: #17a2b8;
}
.nav-link.story:hover {
    background-color: #138496;
}
.nav-link.ppt {
    background-color: #007bff;
}
.nav-link.ppt:hover {
    background-color: #0056b3;
}
.nav-link.text2image {
    background-color: #28a745;
}
.nav-link.text2image:hover {
    background-color: #218838;
}
.nav-link.text2speech {
    background-color: #6f42c1;
}
.nav-link.text2speech:hover {
    background-color: #5a3798;
}
.nav-link.video-synth {
    background-color: #dc3545;
}
.nav-link.video-synth:hover {
    background-color: #c82333;
}
.tips {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-radius: 5px;
    color: #004085;
}
.tips h4 {
    margin-bottom: 10px;
}
.tips ul {
    margin: 0;
    padding-left: 20px;
}
.tips li {
    margin-bottom: 5px;
}