/* 管理界面样式 */
#admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

#admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.admin-header {
    padding: 20px;
    background: #1a5fb4;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h3 {
    margin: 0;
    color: white;
}

#close-admin-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-content {
    padding: 20px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.admin-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-tab:hover {
    background: #e0e0e0;
}

.admin-tab.active {
    background: #1a5fb4;
    color: white;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-list {
    margin-bottom: 20px;
}

.admin-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #27ae60;
}

.admin-item.inactive {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-item-header h4 {
    margin: 0;
    color: #2c3e50;
}

.admin-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-item.active .admin-status {
    background: #27ae60;
    color: white;
}

.admin-item.inactive .admin-status {
    background: #e74c3c;
    color: white;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn:hover {
    transform: translateY(-2px);
}

.admin-btn-edit {
    background: #3498db;
    color: white;
}

.admin-btn-activate {
    background: #27ae60;
    color: white;
}

.admin-btn-deactivate {
    background: #f39c12;
    color: white;
}

.admin-btn-danger {
    background: #e74c3c;
    color: white;
}

.admin-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.admin-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.admin-form-group {
    margin-bottom: 15px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.admin-form-actions .btn {
    flex: 1;
}

.feature-list-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.feature-item input {
    flex: 1;
}

.remove-feature {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.add-feature {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    align-self: flex-start;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #admin-panel {
        width: 95%;
        height: 95vh;
        max-height: 95vh;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
        text-align: left;
    }
    
    .admin-item-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
    }
}