body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.version {
    font-size: 0.6em;
    color: #7f8c8d;
    vertical-align: super;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.extract-btn {
    background-color: #2ecc71;
    margin-top: 20px;
    width: 100%;
}

.extract-btn:hover {
    background-color: #27ae60;
}

.download-btn {
    background-color: #e74c3c;
    margin-top: 20px;
    width: 100%;
}

.download-btn:hover {
    background-color: #c0392b;
}

.upload-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#fileName {
    color: #7f8c8d;
    font-style: italic;
}

.video-preview {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

video {
    max-width: 100%;
    border-radius: 4px;
}

.progress-container {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background-color: #3498db;
    transition: width 0.3s;
}

#progressText {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.output-console {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
    height: 200px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.console-header {
    background-color: #2c3e50;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.console-content {
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    color: #34495e;
}

.log-entry {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.log-success {
    color: #27ae60;
}

.log-error {
    color: #e74c3c;
}

.log-info {
    color: #3498db;
}

/* 设置按钮样式 */
.settings-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    z-index: 10;
}

.menu-icon {
    font-size: 24px;
    color: #2c3e50;
}

.settings-menu {
    position: absolute;
    top: 50px;
    left: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    min-width: 150px;
}

.menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.close-btn:hover {
    color: #333;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirm-message {
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

.confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.confirm-yes {
    background-color: #2ecc71;
    color: white;
    border: none;
}

.confirm-no {
    background-color: #e74c3c;
    color: white;
    border: none;
}