.wiki-edit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.wiki-edit-header {
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #e74c3c;
    font-weight: bold;
}

.wiki-edit-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wiki-edit-title {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.wiki-edit-actions {
    display: flex;
    gap: 10px;
}

.btn-save {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-save:hover {
    background: #219653;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.form-section-subtitle {
    font-size: 18px;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
}

.field-count {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: normal;
}

.btn-add-field {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-add-field:hover {
    background: #2980b9;
}

.field-list-container {
    margin-bottom: 20px;
}

.field-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.field-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.1);
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.required-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.optional-badge {
    background: #f39c12;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.btn-remove-field {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.3s;
}

.btn-remove-field:hover {
    background: #c0392b;
}

.field-inputs {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .field-inputs {
        grid-template-columns: 1fr;
    }
}

.field-key label,
.field-value label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    font-weight: 500;
}

.field-key input,
.field-value input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.field-key input:focus,
.field-value input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.readonly-input {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.required-fields-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.field-tag {
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[disabled] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-help {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 5px;
}

.form-help ul {
    margin: 5px 0;
    padding-left: 20px;
}

.form-help li {
    margin-bottom: 3px;
}

.image-preview {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.image-preview img {
    display: block;
    margin-top: 10px;
    border-radius: 4px;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #3498db;
    background: #e8f4fc;
}

.editors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    min-height: 44px;
}

.editor-tag {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.no-editors {
    color: #95a5a6;
    font-style: italic;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* 新增样式 */
.readonly-input {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.field-help {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box i {
    font-size: 24px;
    color: var(--accent-color);
}

.info-box p {
    margin: 0;
    color: #555;
}