/* 管理菜单样式 */
.admin-menu {
    position: relative;
}

.admin-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
}

.admin-dropdown.show {
    display: block;
}

.admin-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-dropdown a:hover {
    background-color: #f5f5f5;
}

.admin-dropdown a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    width: 80%;
    max-width: 500px;
    animation: modalFadeIn 0.3s;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modal-header h2 {
    margin-bottom: 10px;
    color: #333;
}

.modal-header p {
    color: #666;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5ce5;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
}

.btn-secondary:hover {
    background-color: #dde2e6;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 5px;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
}

.toolbar-btn:hover {
    background-color: #e0e0e0;
}

.toolbar-separator {
    width: 1px;
    background-color: #ddd;
    margin: 0 5px;
}

/* 标签页样式 */
.tab-container {
    width: 100%;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #4a6cf7;
    border-bottom-color: #4a6cf7;
}

.tab-content {
    padding: 10px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 内容表格 */
.content-filters {
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.content-table {
    overflow-x: auto;
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
}

.content-table th,
.content-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.content-table tr:hover {
    background-color: #f9f9f9;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions a {
    color: #4a6cf7;
    text-decoration: none;
}

.table-actions .action-delete {
    color: #dc3545;
}

.status-published {
    display: inline-block;
    padding: 3px 8px;
    background-color: #28a745;
    color: white;
    border-radius: 3px;
    font-size: 12px;
}

.status-draft {
    display: inline-block;
    padding: 3px 8px;
    background-color: #ffc107;
    color: #333;
    border-radius: 3px;
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
} 