
/* 模态框样式 */
.publish-work.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    background-color: rgba(2, 6, 23, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.publish-work.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.publish-work .modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 1rem;
    overflow: hidden;
    background-color: #1e293b;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.publish-work.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.publish-work .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #334155;
}

.publish-work .modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.publish-work .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem;
    border-top: 1px solid #334155;
}

/* 输入框样式 */
.publish-work .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #273449;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #f8fafc;
    placeholder-color: #94a3b8;
    transition: all 0.2s ease;
}

.publish-work .form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.publish-work .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.publish-work .form-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
}

/* 比例选择器样式 */
.publish-work .ratio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: #273449;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.publish-work .ratio-option:hover {
    border-color: rgba(74, 144, 226, 0.5);
    background-color: #334155;
}

.publish-work .ratio-option.active {
    border-color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    color: #f8fafc;
    font-weight: 500;
}

.publish-work .ratio-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #0f172a;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

/* 按钮样式 */
.publish-work .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.publish-work .btn-primary {
    background-color: #4a90e2;
    color: #ffffff;
}

.publish-work .btn-primary:hover {
    background-color: #3b82f6;
}

.publish-work .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.5);
}

.publish-work .btn-secondary {
    background-color: #334155;
    color: #cbd5e1;
}

.publish-work .btn-secondary:hover {
    background-color: #475569;
}

.publish-work .btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.3);
}

/* 动画效果 */
.publish-work .slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.publish-work .delay-100 {
    animation-delay: 0.1s;
}

.publish-work .delay-200 {
    animation-delay: 0.2s;
}

/* 比例信息显示 */
.publish-work .ratio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #273449;
    border-radius: 0.5rem;
}

.publish-work .ratio-info-label {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.publish-work .ratio-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #f8fafc;
}