/* 创建内容弹窗样式 */
.create-product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.create-product-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

.create-product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #3E4C6B 0%, #2c3e50 100%);
}

.create-product-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.create-product-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.create-product-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.create-product-modal-body {
    padding: 28px 24px;
}

.create-product-modal-body .form-group {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: block;
    align-items: unset;
    flex-wrap: unset;
}

.create-product-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.create-product-modal-body label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
    box-sizing: border-box;
}

.create-product-modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: #fafafa;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.create-product-modal-body select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: #fafafa;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.create-product-modal-body select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.create-product-modal-body select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.create-product-modal-body input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.create-product-modal-body input::placeholder {
    color: #bbb;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.create-product-modal-body input:readonly {
    cursor: pointer;
}

.create-product-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.create-product-modal-footer .modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.create-product-modal-footer .cancel-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.create-product-modal-footer .cancel-btn:hover {
    border-color: #3E4C6B;
    color: #3E4C6B;
}

.create-product-modal-footer .submit-btn {
    background: linear-gradient(135deg, #3E4C6B 0%, #2c3e50 100%);
    color: #fff;
}

.create-product-modal-footer .submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 76, 107, 0.4);
}

.create-product-modal-footer .submit-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 类别选择下拉列表 */
.category-select-wrapper {
    position: relative;
}

.category-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.category-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.category-dropdown-item:last-child {
    border-bottom: none;
}

.category-dropdown-item:hover {
    background-color: #f5f5f5;
}

/* 内容添加成功弹窗样式 */
.product-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2200;
}

.product-success-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 340px;
    padding: 40px 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

.product-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.product-success-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 28px;
}

.product-success-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-option-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
}

.success-option-btn.primary {
    background: linear-gradient(135deg, #3E4C6B 0%, #2c3e50 100%);
    color: #fff;
}

.success-option-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 76, 107, 0.4);
}

.success-option-btn.secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.success-option-btn.secondary:hover {
    background-color: #e2e8f0;
    color: #475569;
}

/* 模态框动画 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Toast 提示样式 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.toast-message {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.toast-message.success {
    background-color: #95de64;
}

.toast-message.error {
    background-color: #dc3545;
}