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

.modal-content {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 18px;
}

.close {
    color: var(--gray-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
}

.export-option {
    margin-bottom: 15px;
}

.export-option label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.encoding-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: normal;
}

.radio-option:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-option span {
    color: var(--dark-color);
}

.modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 更新日志模态框样式 */
.changelog-modal-content {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.changelog-version {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.changelog-version ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-version li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--dark-color);
}

.changelog-version li:last-child {
    margin-bottom: 0;
}

/* 更新日志查看按钮样式 */
.changelog-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 100;
}

.changelog-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.changelog-button:active {
    transform: translateY(0);
}

.changelog-button svg {
    width: 24px;
    height: 24px;
}