/* 提交页面样式 */
:root {
    --primary-color: #3C20B5;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 主内容区域 */
.main-content {
    padding: 20px;
    min-height: 100vh;
}

/* 表单样式 */
#add-website-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-label.required::after {
    content: " *";
    color: var(--danger-color);
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-text {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* 图片预览 */
.image-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 5px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#image-preview {
    min-height: 50px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

.card-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.card-body li {
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.card-body li:last-child {
    margin-bottom: 0;
}

/* 按钮样式 */
.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
	margin-bottom:20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* 提示信息 */
.alert {
    border: none;
    border-radius: 5px;
    padding: 15px;
}

.alert-info {
    background-color: #FBDDC9;
    color: var(--info-color);
}

/* 标题样式 */
.h2 {
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    #add-website-form {
        padding: 20px;
    }
    
    .col-md-4 {
        margin-top: 30px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* 加载状态 */
#category[disabled] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 成功/错误消息 */
.message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 表单验证样式 */
.form-control:invalid, .form-select:invalid {
    border-color: var(--danger-color);
}

.form-control:valid, .form-select:valid {
    border-color: var(--success-color);
}
.tips1{
	color:#E54E1F !important;
	
}


/* 图片预览样式 */
.logo-preview-container {
    width: 150px;
    height: 150px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.logo-preview:hover {
    opacity: 1;
}

/* 富文本编辑器样式调整 */
#editor-container {
     height: 300px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
}

#editor-container .ql-toolbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-bottom: 1px solid #ced4da;
}

#editor-container .ql-container {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    height: 150px;
    font-family: inherit;
}

/* 必填项标识 */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-preview-container {
        width: 120px;
        height: 120px;
    }
    
    #editor-container .ql-container {
        height: 200px;
    }
}

/* 富文本编辑器样式 */
/* 富文本编辑器样式 */
#editor-container {
    height: 300px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
}

#editor {
    height: 100%;
    font-family: inherit;
}

/* 工具栏样式优化 */
.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #ced4da !important;
    padding: 8px !important;
}

.ql-container.ql-snow {
    border: none !important;
}

.ql-editor {
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: #6c757d;
    font-style: normal;
    font-size: 1rem;
}

/* 图片预览样式 */
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 5px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #editor-container {
        height: 250px;
    }
    
    .ql-editor {
        min-height: 180px;
    }
}
