/* 影片生成站樣式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #eee;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #8892a0;
}

.video-form {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #eee;
}

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.required {
    color: #ff6b6b;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    border: none;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result {
    text-align: center;
}

#videoContainer {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

#videoContainer video {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

#downloadBtn {
    background: linear-gradient(90deg, #00ff88, #00d9ff);
    color: #1a1a2e;
}

.history {
    margin-top: 30px;
}

.history h2 {
    margin-bottom: 20px;
    color: #00d9ff;
}

#historyList {
    display: grid;
    gap: 15px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
}

.history-item .model {
    color: #00d9ff;
}

.history-item .time {
    color: #8892a0;
    font-size: 12px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    header h1 {
        font-size: 1.8em;
    }
}